wxWidgets/samples
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
..
artprov updated CW exported xml projects 2002-08-24 20:57:15 +00:00
calendar updated CW exported xml projects 2002-08-24 20:57:15 +00:00
caret updated CW exported xml projects 2002-08-24 20:57:15 +00:00
checklst updated CW exported xml projects 2002-08-24 20:57:15 +00:00
config updated CW exported xml projects 2002-08-24 20:57:15 +00:00
console added tests for wxString::To/FromAscii 2002-08-20 15:07:51 +00:00
controls made it compile with wxUniv (which doesn't have tooltips) 2002-08-27 20:26:56 +00:00
db updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dialogs Applied patch [ 600500 ] Tip-of-day: comments, translatable 2002-08-31 12:08:02 +00:00
dialup Patch [ 584078 ] Misc samples fixes from Dimitri Schoolwerth 2002-08-01 19:12:24 +00:00
dnd updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docview updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docvwmdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dragimag updated CW exported xml projects 2002-08-24 20:57:15 +00:00
drawing updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dynamic updated CW exported xml projects 2002-08-24 20:57:15 +00:00
erase updated CW exported xml projects 2002-08-24 20:57:15 +00:00
event updated CW exported xml projects 2002-08-24 20:57:15 +00:00
exec updated CW exported xml projects 2002-08-24 20:57:15 +00:00
font updated CW exported xml projects 2002-08-24 20:57:15 +00:00
grid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
help updated CW exported xml projects 2002-08-24 20:57:15 +00:00
html updated CW exported xml projects 2002-08-24 21:08:41 +00:00
image updated CW exported xml projects 2002-08-24 20:57:15 +00:00
internat updated CW exported xml projects 2002-08-24 20:57:15 +00:00
ipc Unicode compilation problems in the samples (patch from Dimitri) 2002-05-10 12:26:30 +00:00
joytest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
keyboard updated CW exported xml projects 2002-08-24 20:57:15 +00:00
layout updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listbox updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listctrl added icons to virtual list mode 2002-08-27 09:38:11 +00:00
mdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
memcheck Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
menu updated CW exported xml projects 2002-08-24 20:57:15 +00:00
mfc patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
minifram updated CW exported xml projects 2002-08-24 20:57:15 +00:00
minimal updated CW exported xml projects 2002-08-24 20:57:15 +00:00
mobile Attempts to reduce errors in compile farm for 2002-08-24 10:01:47 +00:00
multimon Applied patch [ 573644 ] wxDisplay for Mac (again) 2002-07-19 20:42:34 +00:00
nativdlg patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
newgrid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
notebook updated CW exported xml projects 2002-08-24 20:57:15 +00:00
oleauto Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
opengl updated CW exported xml projects 2002-08-24 21:08:41 +00:00
ownerdrw removed a few warnings and CW compilation problems (patch from Dimitri) 2002-03-27 18:43:13 +00:00
png updated CW exported xml projects 2002-08-24 20:57:15 +00:00
printing updated CW exported xml projects 2002-08-24 20:57:15 +00:00
proplist updated CW exported xml projects 2002-08-24 20:57:15 +00:00
propsize updated CW exported xml projects 2002-08-24 20:57:15 +00:00
regtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
resource updated CW exported xml projects 2002-08-24 20:57:15 +00:00
richedit updated CW exported xml projects 2002-08-24 20:57:15 +00:00
rotate updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sashtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
scroll updated CW exported xml projects 2002-08-24 20:57:15 +00:00
scrollsub updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sockets Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
splitter updated CW exported xml projects 2002-08-24 20:57:15 +00:00
statbar updated CW exported xml projects 2002-08-24 20:57:15 +00:00
stc Applied patch [ 571965 ] update stc contrib stuff 2002-06-23 14:01:57 +00:00
svg svg Unix fix 2002-06-21 09:46:32 +00:00
tab updated CW exported xml projects 2002-08-24 20:57:15 +00:00
taskbar updated CW exported xml projects 2002-08-24 20:57:15 +00:00
text updated CW exported xml projects 2002-08-24 20:57:15 +00:00
thread updated CW exported xml projects 2002-08-24 21:08:41 +00:00
toolbar updated CW exported xml projects 2002-08-24 21:08:41 +00:00
treectrl ignore files produced when building samples 2002-08-24 20:19:34 +00:00
treelay updated CW exported xml projects 2002-08-24 21:08:41 +00:00
typetest updated CW exported xml projects 2002-08-24 21:08:41 +00:00
validate updated CW exported xml projects 2002-08-24 21:08:41 +00:00
widgets updated CW exported xml projects 2002-08-24 21:08:41 +00:00
wizard updated CW exported xml projects 2002-08-24 21:08:41 +00:00
wxtest ignore files produced when building samples 2002-08-24 20:19:34 +00:00
xrc Applied [ 594925 ] Implement wxArtProvider and XRC together 2002-08-16 11:24:46 +00:00
.cvsignore ignore samples workspace files 2001-10-10 01:15:51 +00:00
configure added propsize to the list of samples 2002-08-21 18:41:23 +00:00
configure.in added propsize to the list of samples 2002-08-21 18:41:23 +00:00
makefile.b32 Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.dos Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.g95 Applied docview patch 2002-04-12 13:15:44 +00:00
Makefile.in replaced make with $MAKE 2000-03-11 16:38:01 +00:00
makefile.vc Applied docview patch 2002-04-12 13:15:44 +00:00
samples.dsw Applied docview patch 2002-04-12 13:15:44 +00:00