Commit Graph

4365 Commits

Author SHA1 Message Date
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
Gilles Depeyrot
af49c4b8a2 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Julian Smart
5cf69f76a1 Added RTTI macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:14:30 +00:00
David Webster
018d3030cc Weekly update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:20:42 +00:00
Julian Smart
3bce6687f4 Mods for Wine compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 20:34:27 +00:00
David Webster
f289196b3a Lots of updates fixing radiobox processing, checkboxes and add notebook control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 13:37:52 +00:00
Vadim Zeitlin
07901ec945 added wxSpinCtrl::SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 01:00:04 +00:00
Vadim Zeitlin
a69be60b0f removed wxApp::DoInit(); added wxApp::CreateMessageOutput(); fixed wxMsgOutput memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:58:34 +00:00
Vadim Zeitlin
98020767fd removed extra trailing semicolons which break compilation for some compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:39:33 +00:00
Vadim Zeitlin
d7cbabe039 disable children when the parent is disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:34:08 +00:00
Vadim Zeitlin
0493ba1399 changed wxExecute(char **) version to take wxChar **
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-29 21:54:39 +00:00
Vadim Zeitlin
0ca5105b34 don't crash in wx(Flex)GridSizer with division by 0, assert instead; also factored out a lot of duplicated code in a single function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-29 21:48:32 +00:00
Julian Smart
f9ceab7ce6 Ditribution script mods;
Use wxImageList instead of wxGenericImageList where possible
in wxListCtrl


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 08:54:00 +00:00
Vadim Zeitlin
96d7977711 apparently CW always has vsnprintf()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 19:04:42 +00:00
Vadim Zeitlin
ef66935925 my previous backwards compatible fix wasn't really very compatible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 15:37:54 +00:00
Stefan Csomor
0624ce56d8 fixed miscasing in GetOutCode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 15:14:57 +00:00
Vadim Zeitlin
81764280af compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 09:26:30 +00:00
Vadim Zeitlin
750cefbca2 deprecated static wxWizard::Create()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 09:17:36 +00:00
Vadim Zeitlin
d4ea46dbad (blind) fix for BC++ compilation problem with wxPutc() redefinition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 08:56:50 +00:00
Vadim Zeitlin
768f1af6a2 added extra parentheses to wxDynamicCast() to allow using it like wxDynamicCast(foo, Foo)->DoFoo()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-26 20:58:53 +00:00
Stefan Csomor
93e5d8999f added forcing to image conversion to always attempt a color icon (needed eg for menus)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 21:02:39 +00:00
Vadim Zeitlin
129db666f1 Windows compilation fixes after recent changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 19:03:06 +00:00
Stefan Neis
64a1d923e6 HWND already typedef'ed when compiling with EMX (OS/2).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:25:21 +00:00
Stefan Neis
6502915206 protected to restrictive for compiling with EMX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:24:18 +00:00
Stefan Neis
28ff8c8f9e Added __WXPM__ specific include, so it also compiles without pre-compiled headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:22:48 +00:00
Stefan Neis
a2cd9b8641 Update to current API.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:20:54 +00:00
Gilles Depeyrot
c016649521 BSD systems define _T to something different in ctype.h, therefore include
ctype.h before overriding _T


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:20:46 +00:00
Stefan Neis
063807f6c3 Added an include to timer.h (needed for non-precompiled headers).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:20:22 +00:00
Stefan Neis
8d8bd9bf15 Added the usual GNU pragma.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 18:17:54 +00:00
Vadim Zeitlin
e93e5b0bb6 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
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 17:14:51 +00:00
Vadim Zeitlin
f6f5941be5 reorganized, improved and hopefully simplified wxchar.h and printf() functions handling; also added wxWcslen() to fix wcslen() problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-25 17:13:44 +00:00
Stefan Csomor
2072fbbbc9 added new default handlers for open/print events, removing the need for using private headers in the specific application
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 22:04:04 +00:00
Vadim Zeitlin
44893b87ab added wxCHECK_GCC_VERSION() macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 21:28:48 +00:00
Robin Dunn
ec53826c06 Fixed wxGridCellFloatEditor::Clone
Changed wxGridCellEditor::GetString to use %f instead of %g to match
the Renderer, otherwise it would truncate/round the value to
m_precision significant digits instead of m_precision digits after the
decimal point.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 20:03:42 +00:00
Julian Smart
c33c81c30f wxChoice derives from wxChoiceBase; renamed Append to DoAppend
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 10:54:15 +00:00
Gilles Depeyrot
0326d9689e opaque toolbox structs under Classic break access to contrlDefProc
the default value is fine for Classic & Carbon unless __WXDEBUG__ is defined


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 06:55:46 +00:00
Robin Dunn
92e898b0b4 Added generic LoadObject methods that can load any classtype from a
resources and return it as a wxObject (Assuming there is a handler for
it.)

Enabled wxFrames and wxDialogs to be loaded using a new instance
rather than only with existing instances.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 02:26:13 +00:00
Vadim Zeitlin
74ee96987a compilation fix for Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 19:53:25 +00:00
Stefan Csomor
26bea6ac6d added wxSIZE_T.. defines (every release of CW has a different typedef but I hope they all end up as unsigned long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 12:41:01 +00:00
Ron Lee
fdb599058d Updates for 2.3.3 debs.
Typo fix for start of local event id's.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 03:33:12 +00:00
Vadim Zeitlin
7fb1b2b4c4 fixed default button handling: don't keep BS_DEFPUSHBUTTON style when the app loses focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 20:34:29 +00:00
Vadim Zeitlin
5036ea9074 send event from Clear() for a simple text control, send only one event from SetValue() instead of 2 for a rich one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 18:02:16 +00:00
Vadim Zeitlin
a4f25aef35 made wxFrame::SendSizeEvent() public and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 17:03:38 +00:00
Vadim Zeitlin
2eb4c3aabe reverted patch 598016 (removed MSWCreateControl() visible parameter)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 16:00:45 +00:00
Julian Smart
c832ef4985 Applied patch [ 598016 ] remove flicker during combo box creation
By Benjamin I. Williams (biwillia76)

The attached patch completely fixes the flicker problem when
creating combo boxes.  It also will make it elementary to
remove flicker during the creation of other controls
(although all the other controls are flicker free, AFAIK).
It does this by adding an optional 'visible' parameter to
the internal MSWCreateControl method, whereby the caller can
create a control invisibly by default, perform some
complicated sizing calculations, and then finally show the
control before the Create finished.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 09:41:05 +00:00
David Webster
1b75810c8d Font updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 01:02:37 +00:00
Stefan Csomor
17e504023d I think this is now defined in the common accel.h, I'll remove it if no build complains...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-21 16:08:29 +00:00
David Webster
25fc812c74 File dialog fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-21 04:12:31 +00:00
Vadim Zeitlin
15c3723c60 added wxCheckListBox::HitTest() (modified patch 594524)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 22:55:32 +00:00
Vadim Zeitlin
411165f3f4 added and documented wxProcess::Is{Input|Error}Available() and IsInputOpened
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 22:33:20 +00:00