wxWidgets/samples/dialogs
Julian Smart 70373b5a57 Applied patch [ 600500 ] Tip-of-day: comments, translatable
By Robert O'Connor

This is a patch to wxTip Provider classes used by the "Tip of the day" dialog.

See wx-dev archives August 2002 for discussion of the functionality design.

It does 5 things:
-Support for comments inside the tips file. The pound character (#) is used, as recommended by Vadim.
-Allows optional easy translation support to tips, by marking them as translatable for gettext, by enclosing them in a _(""). Program will translate these tips at runtime from the active catalog.
-Blank lines or lines with just spaces are automatically skipped (I had to put this in, I keep wondering why I get blank tips sometimes and it is because the text file had a empty blank line at the end of the text file).
-There is a pluggable virtual function to preprocess to modify the tip in a derived class, in case something specialized is desired, such as variable expansion, etc, as recommended by Julian and Vadim.
-Now resets the tip counter if the previous tip is past the end of the file (ie you removed some tips, or changed tip files), as discussed on wx-dev.

This patch updates:
-The classes.
-The class documentation and the Tip-of-the-day topic overview documentation.
-The dialogs example, placing some new strings for the tips.txt file which demonstrate how to use the Tip-of-the-day features for in practice.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 12:08:02 +00:00
..
.cvsignore store CodeWarrior 5.3 projects as xml instead of binary projects 2001-12-02 18:11:49 +00:00
descrip.mms Committing in . 2000-08-24 10:58:27 +00:00
dialogs.cpp Removed all deprecated printing code. 2002-08-17 16:29:05 +00:00
dialogs.def *** empty log message *** 1998-05-22 19:57:05 +00:00
dialogs.dsp Updated VC++ files 2002-01-18 14:33:01 +00:00
dialogs.h More changes for better redraw flow under X11. 2002-03-28 18:57:50 +00:00
dialogs.ico There was no icon file in this example, causing compilation with VC to fail. I just stole a DialogEditor icon to use here 2001-04-27 03:41:47 +00:00
dialogs.pro added new project files for all samples and demos; removed the old ones 2001-10-09 22:30:29 +00:00
dialogs.rc 1. fixes to wxDC deleting logic (should fix ~wxPrinterDC leak), some code 2001-04-09 01:22:48 +00:00
dialogsM5.xml updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dialogsW7.xml applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
makefile.b32 Simplified BC++ makefiles; C++Builder 1.0 compilation seems to work; 1999-01-04 21:51:15 +00:00
makefile.bcc Changes for 16-bit BC++ (not there yet), GnuWin32; typetest sample 1998-12-28 12:35:49 +00:00
makefile.dos wxPaintDC -> wxDC in wxListCtrl; fixed compile problems in wxTreeCtrl (return 1998-12-20 23:49:21 +00:00
makefile.g95 Rationalised Cygwin sample makefiles 1999-02-09 15:37:52 +00:00
Makefile.in inserted @IF_GNU_MAKE@ to allow building with other make versions 2002-01-25 11:31:21 +00:00
makefile.mgl Watcom wxMGL makefiles 2002-01-17 23:42:27 +00:00
makefile.twn Added a few files; fixed some warnings and wxMotif compile problems 1999-01-31 18:47:10 +00:00
makefile.unx replaced "CC = gcc" and even stranger "CPP = gcc -g" (huh?) with 2001-11-28 18:10:15 +00:00
makefile.vc Renamed .nt makefiles to .vc and factored them out; made DND sample compile 1999-01-24 19:13:55 +00:00
makefile.wat Watcom C++ mods 1999-01-07 15:22:05 +00:00
tips.txt Applied patch [ 600500 ] Tip-of-day: comments, translatable 2002-08-31 12:08:02 +00:00