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
..
2002-08-31 11:29:13 +00:00
2002-08-15 20:43:00 +00:00
2002-08-15 20:43:00 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-24 10:54:15 +00:00
2002-08-30 20:34:27 +00:00
2002-08-30 21:20:42 +00:00
2002-08-31 11:29:13 +00:00
2002-06-04 19:25:29 +00:00
2002-07-23 21:59:40 +00:00
2002-08-31 11:29:13 +00:00
2002-08-02 08:31:59 +00:00
2002-08-24 02:26:13 +00:00
2002-05-07 20:40:04 +00:00
2002-08-31 11:29:13 +00:00
2002-05-07 21:58:27 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-05-07 21:58:27 +00:00
2002-02-05 16:34:33 +00:00
2002-08-25 17:14:51 +00:00
2002-05-07 19:56:43 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-06-07 17:56:53 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-04-24 19:53:23 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2001-12-23 15:52:29 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-02-05 16:34:33 +00:00
2002-02-05 16:34:33 +00:00
2002-06-19 09:17:46 +00:00
2002-06-13 19:37:43 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-05-04 13:17:36 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-04-17 11:48:11 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-04-07 21:06:59 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-08 17:44:23 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-05-12 22:26:01 +00:00
2002-08-06 16:41:31 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-07-31 20:44:31 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-03-23 12:02:54 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-07-22 23:03:03 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-04-15 18:24:46 +00:00
2002-08-31 11:29:13 +00:00
2002-08-25 18:25:21 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-20 09:09:55 +00:00
2002-08-31 11:29:13 +00:00
2002-05-07 21:58:27 +00:00
2002-08-31 11:29:13 +00:00
2002-04-12 13:15:44 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-04 19:03:56 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-24 21:28:48 +00:00
2002-08-31 11:29:13 +00:00
2002-07-15 22:55:14 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-08 09:57:05 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-02-05 16:34:33 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-06-18 12:47:40 +00:00
2002-05-19 22:44:27 +00:00
2002-01-26 10:59:51 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-02 15:30:58 +00:00
2002-04-13 16:41:03 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-06-06 18:31:59 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 12:08:02 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-03-15 00:33:05 +00:00
2001-11-24 23:55:43 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2001-12-19 21:43:09 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-27 15:37:54 +00:00
2002-08-24 06:55:46 +00:00
2001-12-11 06:40:48 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00
2002-05-09 22:34:44 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-01-20 16:09:58 +00:00
2002-08-31 11:29:13 +00:00
2002-08-07 20:21:26 +00:00
2002-08-31 11:29:13 +00:00
2002-08-31 11:29:13 +00:00