Files
wxWidgets/docs/latex/wx
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
..
2000-10-12 16:32:03 +00:00
2001-04-14 19:46:05 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
2002-08-27 19:01:23 +00:00
2002-04-16 23:06:47 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2002-07-05 16:43:21 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
1999-10-06 15:42:04 +00:00
1999-07-10 21:06:05 +00:00
2000-02-01 15:54:47 +00:00
2001-07-10 13:44:04 +00:00
2001-04-14 19:46:05 +00:00
2002-05-29 08:28:03 +00:00
2000-12-20 16:10:46 +00:00
2002-04-12 09:31:12 +00:00
2000-07-15 19:51:35 +00:00
1999-06-16 16:34:31 +00:00
2002-02-11 21:27:27 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
2000-07-15 19:51:35 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
2002-07-05 16:43:21 +00:00
2000-03-15 00:21:49 +00:00
2002-04-17 11:48:11 +00:00
2002-07-05 16:43:21 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
2002-08-22 20:14:47 +00:00
2002-08-30 21:05:53 +00:00
2002-08-30 21:05:53 +00:00
2000-07-15 19:51:35 +00:00
1999-11-08 16:38:17 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2002-07-05 16:43:21 +00:00
2001-01-02 16:42:03 +00:00
2000-07-15 19:51:35 +00:00
2002-01-23 15:49:03 +00:00
2000-03-15 00:21:49 +00:00
2002-04-02 23:26:22 +00:00
2002-08-22 22:03:09 +00:00
2002-07-05 16:43:21 +00:00
2000-03-15 00:21:49 +00:00
2001-05-25 12:47:00 +00:00
2002-04-06 15:04:27 +00:00
2000-07-15 19:51:35 +00:00
2002-07-16 12:03:44 +00:00
2000-02-26 14:42:10 +00:00
2000-01-23 16:25:47 +00:00
2002-02-15 21:50:50 +00:00
2000-09-10 19:01:03 +00:00
2000-09-10 19:01:03 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
2000-01-23 16:25:47 +00:00
2000-01-23 16:25:47 +00:00
2000-09-08 14:51:08 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
2002-04-16 23:01:58 +00:00
2000-07-15 19:51:35 +00:00
2002-07-05 16:43:21 +00:00
2002-08-16 21:07:48 +00:00
1999-08-06 11:51:44 +00:00
1999-07-10 21:06:05 +00:00
1998-09-06 14:43:36 +00:00
2002-08-15 19:38:46 +00:00
2002-08-16 21:07:48 +00:00
2002-08-20 13:41:45 +00:00
2002-08-16 21:07:48 +00:00
2001-01-02 07:59:43 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
1999-02-28 13:58:05 +00:00
2000-07-15 19:51:35 +00:00
2002-03-22 18:52:05 +00:00
2000-03-15 00:21:49 +00:00
1999-06-16 16:34:31 +00:00
2001-04-14 19:46:05 +00:00
2000-12-20 16:10:46 +00:00
2000-03-15 00:21:49 +00:00
2001-05-24 16:03:25 +00:00
2002-08-16 21:07:48 +00:00
2000-01-23 16:25:47 +00:00
2000-01-23 16:25:47 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-03-15 00:21:49 +00:00
2000-07-15 19:51:35 +00:00
2000-03-15 00:21:49 +00:00
2002-05-05 09:35:44 +00:00
2002-05-26 12:46:20 +00:00
2002-08-30 21:28:56 +00:00
2002-05-26 12:46:20 +00:00
2002-05-26 12:46:20 +00:00
2000-03-18 09:20:21 +00:00
2000-02-01 16:05:08 +00:00
2000-03-15 00:21:49 +00:00
2001-07-17 08:27:42 +00:00
2000-12-29 23:44:11 +00:00
2000-07-15 19:51:35 +00:00
1999-12-12 17:02:50 +00:00
2000-07-15 19:51:35 +00:00
2000-08-14 11:42:35 +00:00
2001-12-04 19:41:53 +00:00
2000-11-17 09:06:56 +00:00
2000-07-15 19:51:35 +00:00
2000-01-02 18:13:45 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-12-20 16:10:46 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2001-11-20 14:55:10 +00:00
2002-08-20 13:41:45 +00:00
2001-05-25 12:47:00 +00:00
2001-04-25 15:38:00 +00:00
2002-04-15 18:24:46 +00:00
2002-04-06 15:04:27 +00:00
2002-05-31 09:59:00 +00:00
2000-07-15 19:51:35 +00:00
2000-02-28 15:57:06 +00:00
2002-08-23 15:59:29 +00:00
2000-07-15 19:51:35 +00:00
2001-06-11 16:17:47 +00:00
1999-11-22 12:13:55 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
2000-07-15 19:51:35 +00:00
1999-09-30 07:13:40 +00:00
2001-02-22 12:56:29 +00:00
2002-04-17 11:48:11 +00:00
2000-07-15 19:51:35 +00:00
2002-03-22 19:13:29 +00:00
2002-08-16 21:07:48 +00:00
2000-01-23 16:25:47 +00:00
2000-07-15 19:51:35 +00:00