wxWidgets/include/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
..
generic disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gtk strings are now wxChar 2002-08-15 20:43:00 +00:00
gtk1 strings are now wxChar 2002-08-15 20:43:00 +00:00
html disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mac disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mgl disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
motif wxChoice derives from wxChoiceBase; renamed Append to DoAppend 2002-08-24 10:54:15 +00:00
msw Mods for Wine compilation 2002-08-30 20:34:27 +00:00
os2 Weekly update 2002-08-30 21:20:42 +00:00
protocol disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
stc Changed FindTExt intercase to more easily handle additional flags. 2002-06-04 19:25:29 +00:00
univ IsSingleLine() is now in the base class 2002-07-23 21:59:40 +00:00
unix disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
x11 Renamed internal GetClientWindow to GetClientAreaWindow so 2002-08-02 08:31:59 +00:00
xrc Added generic LoadObject methods that can load any classtype from a 2002-08-24 02:26:13 +00:00
.cvsignore
accel.h implemented explicit copy constructor and assignement operator 2002-05-07 20:40:04 +00:00
app.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
arrimpl.cpp corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
artprov.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
bitmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
bmpbuttn.h corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
brush.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
buffer.h use wxWcslen() instead of wcslen() which isn't always available in wxWCharBuffer; do accept NULL in wx[W]CharBuffer ctor as the code elsewhere uses this 2002-08-25 17:14:51 +00:00
build.h added wxBuildOptions and check that they are the same for the program and the library on startup 2002-05-07 19:56:43 +00:00
busyinfo.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
button.h
calctrl.h
caret.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
checkbox.h
checklst.h
chkconf.h wxMGL requires wxUSE_PALETTE 2002-06-07 17:56:53 +00:00
choicdlg.h
choice.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
clipbrd.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
clntdata.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmdline.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmdproc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmndata.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
colordlg.h uses native implementation for mac 2002-04-24 19:53:23 +00:00
colour.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
combobox.h
confbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
config.h
containr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
control.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cshelp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ctrlsub.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cursor.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
dataobj.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
date.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
datetime.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
datetime.inl
datstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
db.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dbgrid.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dbkeyg.h
dbtable.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dcbuffer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dcclient.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
dcmemory.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
dcprint.h
dcps.h
dcscreen.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
dcsvg.h wxSVGDC class include files 2002-06-19 09:17:46 +00:00
dde.h
debug.h new wxASSERT implementation using wxAssert() helper function 2002-06-13 19:37:43 +00:00
defs.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dialog.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dialup.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dir.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dirctrl.h
dirdlg.h added missing include file 2002-05-04 13:17:36 +00:00
display.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dnd.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
docmdi.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
docview.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dragimag.h Added wxDF_HTML 2002-04-17 11:48:11 +00:00
dynarray.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dynlib.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dynload.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
effects.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
encconv.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
event.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
evtloop.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
expr.h
fdrepdlg.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
features.h added raw key code and flags support (based on patch from Bryce Denney) 2002-04-07 21:06:59 +00:00
ffile.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
file.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fileconf.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filedlg.h Now compiling 2002-02-08 17:44:23 +00:00
filefn.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filename.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filesys.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
font.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontdlg.h fixes to wxFontDialog after recent changes 2002-05-12 22:26:01 +00:00
fontenc.h Lots of work to set PangoFontDescription as the 2002-08-06 16:41:31 +00:00
fontenum.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontutil.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
frame.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_inet.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_mem.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_zip.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gauge.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gdicmn.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gdiobj.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
geometry.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gifdecod.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
glcanvas.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
grid.h
gsocket.h Patch [ 588837 ] Fixes comment style in gsocket.* 2002-07-31 20:44:31 +00:00
hash.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
hashmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
help.h Use wxHtmlHelpController for HTML help, not wxHelpControllerHtml :-) 2002-03-23 12:02:54 +00:00
helpbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
helphtml.h
helpwin.h
icon.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
iconbndl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagbmp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
image.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imaggif.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagiff.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagjpeg.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imaglist.h Added wxListCtrl to derive from wxGenericListCtrl, 2002-07-22 23:03:03 +00:00
imagpcx.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagpng.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagpnm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagtiff.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagxpm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
intl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ioswrap.h
ipc.h added wx/ipc.h and used/documented it 2002-04-15 18:24:46 +00:00
ipcbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
isql.h HWND already typedef'ed when compiling with EMX (OS/2). 2002-08-25 18:25:21 +00:00
isqlext.h
joystick.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
layout.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
laywin.h
list.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listbox.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listctrl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listimpl.cpp
log.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
longlong.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
matrix.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mdi.h Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00
memconf.h
memory.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
memtext.h corrected warnings when compiling with -Wall -W 2002-05-07 21:58:27 +00:00
menu.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
menuitem.h Applied docview patch 2002-04-12 13:15:44 +00:00
metafile.h
mimetype.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
minifram.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
module.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
msgdlg.h
msgout.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mstream.h
notebook.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
object.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
odbc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ownerdrw.h Applied patch from Benjamin Williams to improve 2002-08-04 19:03:56 +00:00
palette.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
panel.h
paper.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
pen.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
platform.h added wxCHECK_GCC_VERSION() macro 2002-08-24 21:28:48 +00:00
popupwin.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
print.h
printdlg.h made printing to PS possible under wxMGL 2002-07-15 22:55:14 +00:00
prntbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
process.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
progdlg.h
prop.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
propform.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
proplist.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ptr_scpd.h Applied patch [ 587450 ] Scoped Smart pointers and docs 2002-08-08 09:57:05 +00:00
quantize.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
radiobox.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
radiobut.h
regex.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
region.h Reformatted Motif headers; added __WXX11__ symbol support to common headers; 2002-02-05 16:34:33 +00:00
resource.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sashwin.h
sckaddr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sckipc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sckstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
scrolbar.h
scrolwin.h added ViewStart() as synonym for GetViewStart() in WXWIN_COMPATIBILITY_2_2 mode 2002-06-18 12:47:40 +00:00
settings.h Cosmetic changes to wxSS::GetScreen: 2002-05-19 22:44:27 +00:00
setup_redirect.h
sizer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
slider.h
snglinst.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
socket.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
spawnbrowser.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
spinbutt.h
spinctrl.h switch to a separate implementation for mac 2002-08-02 15:30:58 +00:00
splash.h
splitter.h include wx/event.h before declarign the types (patch 543270) 2002-04-13 16:41:03 +00:00
stack.h
statbmp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
statbox.h
statline.h
stattext.h
statusbr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
strconv.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
stream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
string.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sysopt.h
tab.h
tabctrl.h
taskbar.h
tbarbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tbarsmpl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
textbuf.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
textctrl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
textdlg.h
textfile.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tglbtn.h
thread.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
thrimpl.cpp wxMutex changes (explicitly specify the type), return values for all wxMutex/wxSemaphore/wxCondition methods and general cleanup 2002-06-06 18:31:59 +00:00
time.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
timer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tipdlg.h Applied patch [ 600500 ] Tip-of-day: comments, translatable 2002-08-31 12:08:02 +00:00
tipwin.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tokenzr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
toolbar.h compilation fixes for wxUSE_TOOLBAR under MSW 2002-03-15 00:33:05 +00:00
tooltip.h
toplevel.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
treebase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
treectrl.h
treelay.h
txtstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
types.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
url.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
utils.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
valgen.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
validate.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
valtext.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
variant.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
vector.h
version.h
vms_x_fix.h
volume.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wave.h
wfstream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
window.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wizard.h my previous backwards compatible fix wasn't really very compatible 2002-08-27 15:37:54 +00:00
wx_cw_cm.h opaque toolbox structs under Classic break access to contrlDefProc 2002-08-24 06:55:46 +00:00
wx_cw_d.h
wx_cw.h
wx_cwc_d.h
wx_cwc.h
wx_cwu_d.h
wx.h
wxchar.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wxexpr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wxhtml.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wxprec.h applied patch to build wxMSW with CW7 (patch 550445) 2002-05-09 22:34:44 +00:00
wxshlb_cw_d.h
wxshlb_cw.h
wxshlb_cwc_d.h
wxshlb_cwc.h
wxshlba_cw_d.h
wxshlba_cw.h
wxshlba_cwc_d.h
wxshlba_cwc.h
xpmdecod.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
xpmhand.h Added error directive for MSW since no longer needed. 2002-08-07 20:21:26 +00:00
zipstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
zstream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00