wxWidgets.git
14 years agoCleanly separate GUI socket-related code from net library.
Vadim Zeitlin [Mon, 17 Aug 2009 23:02:46 +0000 (23:02 +0000)] 
Cleanly separate GUI socket-related code from net library.

This fixes linking problems under Unix introduced by recent changes which
fixed previous problems which were due to files not being linked in at all.

In order to provide a clean separation between base, net and core libraries we
now use the same wxSocketManager (wxSocketFDBasedManager), defined in net
library for both console and GUI Unix applications and just use different FD
IO manager for them: the latter can be defined in base and core libraries as
it doesn't involve wxSocketImpl at all, only its base wxFDIOHandler class.

At more detailed level, these changes required:
 1. Adding the new wxFDIOManager class.
 2. Refactoring the old (and now removed) wxSocketFDIOManager to use the same
    code as wxSocketFDIOManager. This involved:
  a) Adding handler and direction parameter to RemoveInput().
  b) Storing the mask of registered events in wxFDIOHandler itself.
  c) Defining wxFDIOManagerUnix which works with wxFDIODispatcher.
 3. Changing the traits classes in Unix ports to define GetFDIOManager()
    instead of GetSocketManager().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo changes, just put the files in alphabetical order.
Vadim Zeitlin [Mon, 17 Aug 2009 23:02:34 +0000 (23:02 +0000)] 
No changes, just put the files in alphabetical order.

List files in BASE_UNIX_AND_DARWIN_SRC in alphabetical order for consistency
with the other file names variables and to make it more convenient to update
it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoExtract wxFDIOHandler in its own header.
Vadim Zeitlin [Mon, 17 Aug 2009 23:02:29 +0000 (23:02 +0000)] 
Extract wxFDIOHandler in its own header.

The files defining classes processing events on file descriptor only need this
class and not wxFDIODispatcher itself so reduce build dependencies by extracting
wxFDIOHandler in a separate header which they can include instead of the
entire fdiodispatcher.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded wxFDIOHandler::IsOk() and use it with wxSocketImplUnix.
Vadim Zeitlin [Mon, 17 Aug 2009 23:02:18 +0000 (23:02 +0000)] 
Added wxFDIOHandler::IsOk() and use it with wxSocketImplUnix.

This will allow to use the base wxFDIOHandler class only in GUI-specific
network code and this remove its dependency on wxSocketImplUnix. IOW it paves
the way for a proper solution of the problem fixed by r61336 without the hack
of r61335 which results in linking problems (which went undiscovered until now
but were, in fact, always present, i.e. r61335 couldn't work).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded multiple selection feature to wxPropertyGrid (enabled by setting wxPG_EX_MULTIP...
Jaakko Salli [Mon, 17 Aug 2009 18:36:00 +0000 (18:36 +0000)] 
Added multiple selection feature to wxPropertyGrid (enabled by setting wxPG_EX_MULTIPLE_SELECTION style)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix hangups when using sockets under OS X.
Vadim Zeitlin [Sun, 16 Aug 2009 23:14:07 +0000 (23:14 +0000)] 
Fix hangups when using sockets under OS X.

A socket event apparently doesn't count as a real event under OS X and our
wxEventLoop::DispatchTimeout() doesn't return when it happens -- so we need to
generate an artificial wake up event ourselves to make it do it and return
control to the code in wxSocket::DoWait() in order for it to process the event.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't forget to reset wxSocketImplMac members to NULL.
Vadim Zeitlin [Sun, 16 Aug 2009 23:14:02 +0000 (23:14 +0000)] 
Don't forget to reset wxSocketImplMac members to NULL.

This avoids an assert in dtor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse CF socket manager in GUI OS X applications.
Vadim Zeitlin [Sun, 16 Aug 2009 23:13:55 +0000 (23:13 +0000)] 
Use CF socket manager in GUI OS X applications.

wxSocketManagerMac was never created under OS X since wxSocket code
refactoring as wxGUIAppTraits::GetSocketManager() wasn't overridden.

Doing this required an extra nasty hack with a global variable in the base
library which is used just to pass the socket manager pointer from the net
library to the core one without creating a dependency between them but this
seems unfortunately unavoidable.

See #11030.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoVirtualize wxSocketImpl creation by routing it via wxSocketManager.
Vadim Zeitlin [Sun, 16 Aug 2009 23:13:45 +0000 (23:13 +0000)] 
Virtualize wxSocketImpl creation by routing it via wxSocketManager.

This is necessary to create different kinds of sockets for the console and GUI
applications under OS X: unlike Unix which use different socket managers for
the console and GUI programs but still use the same data structures in both
cases as X11 and derived toolkits APIs are very similar, Core Foundation
sockets don't have anything in common with their console counterparts and so
we need to use different wxSocketImpl versions too.

A side effect of this commit is that now we need to force linking of
src/msw/sockmsw.cpp when using sockets: this wasn't necessary before because
it contained wxSocketImpl method definition but now that there are no more
direct dependencies on it, MSVC linker simply discards the object file unless
we force it to link with it.

Notice that this commit doesn't change anything yet, it simply refactors the
code to use wxSocketManager::CreateSocket() instead of wxSocketImpl::Create()
in preparation for the next change.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCreate both the full and OS X specific tag files in makeosxtags.sh.
Vadim Zeitlin [Sun, 16 Aug 2009 23:13:37 +0000 (23:13 +0000)] 
Create both the full and OS X specific tag files in makeosxtags.sh.

Also don't duplicate the files already processed by the generic create_tags in
OS X-specific part.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed bug: wxPGProperty::SetName() crashed if it was called before property was added...
Jaakko Salli [Sun, 16 Aug 2009 15:17:50 +0000 (15:17 +0000)] 
Fixed bug: wxPGProperty::SetName() crashed if it was called before property was added to grid (fixes #11111)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd samples files missing from distribution.
Vadim Zeitlin [Sun, 16 Aug 2009 13:32:11 +0000 (13:32 +0000)] 
Add samples files missing from distribution.

Mostly XPM icons but also a header from dataview sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded workaround for VC6 internal compiler error (fixes #11104)
Jaakko Salli [Sat, 15 Aug 2009 05:30:18 +0000 (05:30 +0000)] 
Added workaround for VC6 internal compiler error (fixes #11104)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove buildbot.css as it's never been used.
Michael Wetherell [Fri, 14 Aug 2009 19:09:55 +0000 (19:09 +0000)] 
Remove buildbot.css as it's never been used.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove testdrive bots.
Michael Wetherell [Fri, 14 Aug 2009 18:57:15 +0000 (18:57 +0000)] 
Remove testdrive bots.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd new unix bots.
Michael Wetherell [Fri, 14 Aug 2009 18:55:36 +0000 (18:55 +0000)] 
Add new unix bots.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRename ravnsgaard.xml to unix.xml
Michael Wetherell [Fri, 14 Aug 2009 18:45:55 +0000 (18:45 +0000)] 
Rename ravnsgaard.xml to unix.xml

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAllow customizing wxDebugReportCompress output file.
Vadim Zeitlin [Fri, 14 Aug 2009 00:06:03 +0000 (00:06 +0000)] 
Allow customizing wxDebugReportCompress output file.

It may be useful to change the directory where it is generated to allow the
users to find it more quickly. Also allow changing the crash report base name
for completeness.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded wxStandardPaths::MSWGetShellDir().
Vadim Zeitlin [Fri, 14 Aug 2009 00:05:56 +0000 (00:05 +0000)] 
Added wxStandardPaths::MSWGetShellDir().

This function allows to get the location of Windows shell special folders not
covered by wxStandardPaths methods (yet), e.g. CSIDL_DESKTOPDIRECTORY.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMinor updates to Vietnamese translations.
Vadim Zeitlin [Thu, 13 Aug 2009 09:58:30 +0000 (09:58 +0000)] 
Minor updates to Vietnamese translations.

Patch from Trần Ngọc Quân.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet correct EOL style for .po files which didn't have it.
Vadim Zeitlin [Thu, 13 Aug 2009 09:50:57 +0000 (09:50 +0000)] 
Set correct EOL style for .po files which didn't have it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCreate compressed debug report file outside of temporary directory.
Vadim Zeitlin [Tue, 11 Aug 2009 18:16:39 +0000 (18:16 +0000)] 
Create compressed debug report file outside of temporary directory.

Otherwise the compressed file is deleted when the temporary directory is (it
doesn't happen if temporarily files are left because an error occurred while
the report generation but perversely enough no useful information was left if
no errors happened).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse the app name, not display name, as debug report name,
Vadim Zeitlin [Tue, 11 Aug 2009 18:16:32 +0000 (18:16 +0000)] 
Use the app name, not display name, as debug report name,

This name is used for files/directories and so should be short and not contain
spaces while the display name usually does contain them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDo not generate wxEVT_PG_SELECTED with direct ClearSelection() and SelectProperty...
Jaakko Salli [Tue, 11 Aug 2009 16:53:05 +0000 (16:53 +0000)] 
Do not generate wxEVT_PG_SELECTED with direct ClearSelection() and SelectProperty() calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAnother compilation fix after wxFlexGridSizer ctors change.
Vadim Zeitlin [Tue, 11 Aug 2009 10:54:40 +0000 (10:54 +0000)] 
Another compilation fix after wxFlexGridSizer ctors change.

wxFlexGridSizer ctor was even used incorrectly even in layout sample itself,
once again the code was supposed to create 3*3 sizer, not 3-column sizer with
3 pixel vertical gap.

Changed ctors to be more explicit and to use a 5 pixel gap in both directions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoIf zero spacing after paragraph is explicitly specified, suppress spacing after parag...
Julian Smart [Tue, 11 Aug 2009 09:28:02 +0000 (09:28 +0000)] 
If zero spacing after paragraph is explicitly specified, suppress spacing after paragraph.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCompilation fix after wxFlexGridSizer ctors change.
Vadim Zeitlin [Tue, 11 Aug 2009 00:19:03 +0000 (00:19 +0000)] 
Compilation fix after wxFlexGridSizer ctors change.

wxFlexGridSizer ctor was even used incorrectly in a wx sample: the sizer was
supposed to have 2 columns, not 4 with 2 pixels of vertical gap.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoReorganize and improve wxSizer::SetItemMinSize() documentation.
Vadim Zeitlin [Mon, 10 Aug 2009 11:18:45 +0000 (11:18 +0000)] 
Reorganize and improve wxSizer::SetItemMinSize() documentation.

Closes #11093.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect wxSizer::InsertSpacer() description.
Vadim Zeitlin [Mon, 10 Aug 2009 11:18:38 +0000 (11:18 +0000)] 
Correct wxSizer::InsertSpacer() description.

Closes #11092.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse "non-negative" in assert message instead of "positive".
Vadim Zeitlin [Mon, 10 Aug 2009 11:18:31 +0000 (11:18 +0000)] 
Use "non-negative" in assert message instead of "positive".

Closes #11059.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUpdate wxFlexGridSizer ctors to match (new) wxGridSizer ones.
Vadim Zeitlin [Mon, 10 Aug 2009 11:18:23 +0000 (11:18 +0000)] 
Update wxFlexGridSizer ctors to match (new) wxGridSizer ones.

Confusing wxFlexGridSizer(int cols, int vgap = 0, int hgap = 0) was removed as
well as corresponding wxGridSizer ctor overload. New ctor overloads taking gap
as wxSize were added.

See #11040.

Closes #11091.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMade wxWindow::HasScrollbar() do what it says.
Vadim Zeitlin [Mon, 10 Aug 2009 11:18:09 +0000 (11:18 +0000)] 
Made wxWindow::HasScrollbar() do what it says.

Added wxWindow::CanScroll() with the old HasScrollbar() meaning but changed
HasScrollbar() to check for the scrollbar existence instead of just checking
if it might exist.

Closes #10897.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMark a couple of labels for translation.
Julian Smart [Sun, 9 Aug 2009 15:56:09 +0000 (15:56 +0000)] 
Mark a couple of labels for translation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed wxPGProperty ctor documentation
Jaakko Salli [Sun, 9 Aug 2009 09:14:29 +0000 (09:14 +0000)] 
Fixed wxPGProperty ctor documentation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect examples in wxStaticBox(Sizer) documentation.
Vadim Zeitlin [Fri, 7 Aug 2009 12:39:41 +0000 (12:39 +0000)] 
Correct examples in wxStaticBox(Sizer) documentation.

Added missing wxID_ANY in the control creation calls.

Also rephrase/extend the discussion about creating windows shown inside the
static box as its children or siblings.

Closes #11086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't overwrite status message when restoring it if it changed.
Vadim Zeitlin [Thu, 6 Aug 2009 00:21:16 +0000 (00:21 +0000)] 
Don't overwrite status message when restoring it if it changed.

wxFrameBase::DoGiveHelp() could rewrite the status bar message if it was
changed while the menu was showing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse 0 instead of NULL to initialize wxUIntPtr.
Vadim Zeitlin [Thu, 6 Aug 2009 00:03:08 +0000 (00:03 +0000)] 
Use 0 instead of NULL to initialize wxUIntPtr.

This avoids warning about assigning NULL to a non-pointer with some g++
versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't pop explicitly changed status messages.
Vadim Zeitlin [Thu, 6 Aug 2009 00:01:43 +0000 (00:01 +0000)] 
Don't pop explicitly changed status messages.

Calls to SetStatusText() in between Push/PopStatusText() were simply lost
before, now the text explicitly changed by SetStatusText() is preserved by the
next call to PopStatusText().

This required adding a new virtual method, called DoUpdateStatusText(), which
is now implemented in all the derived classes instead of overriding
SetStatusText() (on the bright side, it doesn't need to do any checks already
done in the base class any more).

Also fix PushStatusText() to actually show the text being pushed at all under
wxMSW as a side effect.

And further reduce code duplication between wxStatusBarBase and the derived
classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix DrawStatusField() to work correctly with wxSB_FLAT style.
Vadim Zeitlin [Thu, 6 Aug 2009 00:01:12 +0000 (00:01 +0000)] 
Fix DrawStatusField() to work correctly with wxSB_FLAT style.

It didn't draw the text at all before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd test for Push/PopStatusText().
Vadim Zeitlin [Thu, 6 Aug 2009 00:00:47 +0000 (00:00 +0000)] 
Add test for Push/PopStatusText().

Allow to interactively push and pop status messages for the selected field.

This shows that currently PushStatusText() is completely broken under wxMSW
as it never shows the text being pushed at all because it is "optimized" away
due to an incorrect comparison with the old value (which turns out to be the
new one)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoProvide saner UI for setting status bar fields.
Vadim Zeitlin [Thu, 6 Aug 2009 00:00:39 +0000 (00:00 +0000)] 
Provide saner UI for setting status bar fields.

Instead of asking the user to enter N values in a row (which is really
annoying even for N=2 already), allow to select the status bar to set the
value for and only show a single dialog asking for the value of this pane.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo changes, just removed the whitespace.
Vadim Zeitlin [Thu, 6 Aug 2009 00:00:32 +0000 (00:00 +0000)] 
No changes, just removed the whitespace.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed up the short description of wxHashMap::find().
Bryan Petty [Wed, 5 Aug 2009 17:38:25 +0000 (17:38 +0000)] 
Fixed up the short description of wxHashMap::find().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet brush origin for hatch brushes too.
Vadim Zeitlin [Wed, 5 Aug 2009 17:25:33 +0000 (17:25 +0000)] 
Set brush origin for hatch brushes too.

They don't explicitly use a bitmap but MSDN still says that their origin
should be set to align brushes used on different windows.

Closes #11072.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxSplitterWindow mouse capture improvements and cleanup.
Vadim Zeitlin [Wed, 5 Aug 2009 17:25:27 +0000 (17:25 +0000)] 
wxSplitterWindow mouse capture improvements and cleanup.

- Handle mouse-capture-lost event to abort dragging mode.
- Remember mouse and sash position on buttondown event and use them as
  absolute reference during dragging. Avoid delta values from one mousemove to
  the next as this may introduce a skew during dragging and especially when
  coordinate clipping occurs.
- Clear the requested sash position when dragging in live mode.
- Draw the tracker at correct coordinates - taking into account the width of
  the pen used to draw the tracker.
- The old code did not clearly distinguish between live vs. tracking mode in
  some places.

Closes #11076.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoGenerate scroll events for key presses in wxScrolledWindow.
Vadim Zeitlin [Wed, 5 Aug 2009 17:25:14 +0000 (17:25 +0000)] 
Generate scroll events for key presses in wxScrolledWindow.

Don't duplicate the existing wxScrolledWindow::CalcScrollInc() logic in
HandleOnChar(), simply generate scrolling events from it, this simplifies the
code and ensures that it is more correct.

Closes #11070.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoReset static flag on cleanup.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:57 +0000 (17:24 +0000)] 
Reset static flag on cleanup.

s_stdIDsAdded was not reset and so the standard IDs were not added again if
the library was initialized, shut down and initialized again.

Closes #11075.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCleaned up low level OS X sources.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:50 +0000 (17:24 +0000)] 
Cleaned up low level OS X sources.

The low level files are those which are used by wxUniversal and so shouldn't
contain native controls implementations -- moved them from OSX_LOWLEVEL_SRC to
OSX_CARBON_COCOA_SRC.

Also removed the now unnecessary check for __WXUNIVERSAL__ in src/osx/accel.cpp.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded wxUSE_ACCEL guard.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:40 +0000 (17:24 +0000)] 
Added wxUSE_ACCEL guard.

Closes #11074.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded missing wxUSE_FONTENUM check.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:32 +0000 (17:24 +0000)] 
Added missing wxUSE_FONTENUM check.

Closes #11071.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxFileInputStream if wxFFileInputStream is not available.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:22 +0000 (17:24 +0000)] 
Use wxFileInputStream if wxFFileInputStream is not available.

Closes #11068.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxFile for IO if wxFFile is not available.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:16 +0000 (17:24 +0000)] 
Use wxFile for IO if wxFFile is not available.

Closes #11067.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemoved commented out code.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:10 +0000 (17:24 +0000)] 
Removed commented out code.

No real changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded #if wxUSE_TOOLBAR around use of wxToolBar.
Vadim Zeitlin [Wed, 5 Aug 2009 17:24:03 +0000 (17:24 +0000)] 
Added #if wxUSE_TOOLBAR around use of wxToolBar.

Closes #11066.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTest wxCalendarCtrl::SetDateRange() in the sample.
Vadim Zeitlin [Wed, 5 Aug 2009 13:40:39 +0000 (13:40 +0000)] 
Test wxCalendarCtrl::SetDateRange() in the sample.

See #11060.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agonon-pch build fix
Paul Cornett [Wed, 5 Aug 2009 04:59:18 +0000 (04:59 +0000)] 
non-pch build fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocorrecting #ifdef to #if, fixes #11062
Stefan Csomor [Tue, 4 Aug 2009 05:11:56 +0000 (05:11 +0000)] 
correcting #ifdef to #if, fixes #11062

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCompilation fix for wxUSE_FILECTRL && !(wxUSE_DIRDLG || wxUSE_FILEDLG).
Vadim Zeitlin [Mon, 3 Aug 2009 20:45:07 +0000 (20:45 +0000)] 
Compilation fix for wxUSE_FILECTRL && !(wxUSE_DIRDLG || wxUSE_FILEDLG).

wxFileCtrl needs wxFileIconsTable too.

Closes #11064.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImplement wxDataViewTreeStore::DeleteAllItems().
Vadim Zeitlin [Mon, 3 Aug 2009 20:42:49 +0000 (20:42 +0000)] 
Implement wxDataViewTreeStore::DeleteAllItems().

Just delete all root children.

Closes #11063.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect week day returned from wxCalendarCtrl::HitTest() on header click.
Vadim Zeitlin [Mon, 3 Aug 2009 20:37:03 +0000 (20:37 +0000)] 
Correct week day returned from wxCalendarCtrl::HitTest() on header click.

A combination of a wx bug in conversion from native control week days to
wxDateTime week days and a bug of native control itself when the first week
day is not Monday resulted in the day being off by one it did start with
Monday. The new code works correctly in both Monday and Sunday cases, at least
until the bug in comctl32.dll is corrected.

See comment:5 of #11057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded symbolic names for native control week days.
Vadim Zeitlin [Mon, 3 Aug 2009 20:36:56 +0000 (20:36 +0000)] 
Added symbolic names for native control week days.

No real changes, but MonthCal_Monday/Sunday is more clear than 0 or 6.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAlways use MCHITTESTINFO of minimal size.
Vadim Zeitlin [Mon, 3 Aug 2009 20:10:31 +0000 (20:10 +0000)] 
Always use MCHITTESTINFO of minimal size.

This struct has gained additional fields under Vista which are not supported under previous versions. We don't use these fields but just using a bigger struct makes functions using it fail under pre-Vista systems, so don't do this.

Closes #11057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMinor changes to wxGridSizer ctor docs.
Vadim Zeitlin [Mon, 3 Aug 2009 00:51:03 +0000 (00:51 +0000)] 
Minor changes to wxGridSizer ctor docs.

See #11040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse numeric values in VarFileInfo block.
Vadim Zeitlin [Mon, 3 Aug 2009 00:44:46 +0000 (00:44 +0000)] 
Use numeric values in VarFileInfo block.

This allows windres to compile it successfully and is probably the right thing to do for the SDK resource compiler as well (see #11055).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect wxPATH_NORM_DOTS comment and documentation.
Vadim Zeitlin [Sun, 2 Aug 2009 01:03:00 +0000 (01:03 +0000)] 
Correct wxPATH_NORM_DOTS comment and documentation.

It doesn't prepend the current working directory, only wxPATH_NORM_ABSOLUTE does.

Closes #11035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCheck indices validity better in wxGridStringTable.
Vadim Zeitlin [Sun, 2 Aug 2009 00:59:31 +0000 (00:59 +0000)] 
Check indices validity better in wxGridStringTable.

Calling GetValue(-1, -1) could crash as the code naively only checked upper boundary (and didn't use unsigned which would have made the extra check unnecessary but it's too late for this now).

Closes #11044.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMention that wxEVT_GRID_SELECT_CELL is generated by SetGridCursor() in one more place.
Vadim Zeitlin [Sun, 2 Aug 2009 00:53:51 +0000 (00:53 +0000)] 
Mention that wxEVT_GRID_SELECT_CELL is generated by SetGridCursor() in one more place.

It was already done in SetGridCursor() documentation; do it in wxEVT_GRID_SELECT_CELL own description as well (see #11045).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMake wxGridSizer ctors more consistent.
Vadim Zeitlin [Sun, 2 Aug 2009 00:48:58 +0000 (00:48 +0000)] 
Make wxGridSizer ctors more consistent.

The old and confusing wxGridSizer(int cols, int vgap = 0, int hgap = 0) is removed and replaced with wxGridSizer(int cols, int vgap, int hgap).

New ctor overloads using wxSize for the gap parameter added.

Closes #11040.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd checks of wxGridSizer::Set{Cols,Rows}() arguments.
Vadim Zeitlin [Sun, 2 Aug 2009 00:48:49 +0000 (00:48 +0000)] 
Add checks of wxGridSizer::Set{Cols,Rows}() arguments.

Number of rows or columns must be positive (see #11040).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSkip VarFileInfo block when using windres.
Vadim Zeitlin [Sun, 2 Aug 2009 00:19:55 +0000 (00:19 +0000)] 
Skip VarFileInfo block when using windres.

It doesn't seem to understand this syntax and dies with an uninformative "syntax error".

Closes #11055.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocompilation fix: only one wxInitialize form may have default argument values. It...
Václav Slavík [Fri, 31 Jul 2009 18:48:34 +0000 (18:48 +0000)] 
compilation fix: only one wxInitialize form may have default argument values. It doesn't make sense to specify only argc>0, so removed default values and added default wxInitializer ctor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoIn wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the...
Jaakko Salli [Fri, 31 Jul 2009 14:03:42 +0000 (14:03 +0000)] 
In wxPropertyGridPageState::DoDelete(), clear grid's m_propHover if it matches the property being deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoExport public wxDelegateTheme class.
Vadim Zeitlin [Fri, 31 Jul 2009 13:38:21 +0000 (13:38 +0000)] 
Export public wxDelegateTheme class.

This class is supposed to be public but wasn't accessible in shared library
build as it didn't have public visibility.

Closes #11051.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't test whether wxTopLevelWindowNative is defined.
Vadim Zeitlin [Fri, 31 Jul 2009 12:17:12 +0000 (12:17 +0000)] 
Don't test whether wxTopLevelWindowNative is defined.

It seems to be defined for all ports now so there is no need to check whether it is.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse base class ctors in wxTopLevelWindow.
Vadim Zeitlin [Fri, 31 Jul 2009 12:17:05 +0000 (12:17 +0000)] 
Use base class ctors in wxTopLevelWindow.

This avoids the second call to Init() already called by wxTopLevelWindowNative.

Closes #11054.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded another hyphen in "wxObject-derived" for consistency.
Vadim Zeitlin [Thu, 30 Jul 2009 13:40:46 +0000 (13:40 +0000)] 
Added another hyphen in "wxObject-derived" for consistency.

Closes #11047 again.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUndo accidental commit of .gitignore.
Vadim Zeitlin [Thu, 30 Jul 2009 13:38:47 +0000 (13:38 +0000)] 
Undo accidental commit of .gitignore.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoIgnore tags file.
Vadim Zeitlin [Thu, 30 Jul 2009 13:37:23 +0000 (13:37 +0000)] 
Ignore tags file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoBe more clear about Thaw() to DoThaw() renaming.
Vadim Zeitlin [Thu, 30 Jul 2009 13:20:59 +0000 (13:20 +0000)] 
Be more clear about Thaw() to DoThaw() renaming.

Closes #11048.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect typo in wxRefCounter description.
Vadim Zeitlin [Thu, 30 Jul 2009 13:14:25 +0000 (13:14 +0000)] 
Correct typo in wxRefCounter description.

Closes #11047.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadded wxInitialize() overload taking char**, to make use from main() easier
Václav Slavík [Thu, 30 Jul 2009 07:43:10 +0000 (07:43 +0000)] 
added wxInitialize() overload taking char**, to make use from main() easier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without...
Václav Slavík [Thu, 30 Jul 2009 07:09:43 +0000 (07:09 +0000)] 
Use wxInitializer in wxEntryReal() instead of directly calling wxEntryStart() without refcounting. This makes it possible to write hybrid CLI/GUI wx applications.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix SetToolTip(NULL) to unset the tooltip.
Michael Wetherell [Tue, 28 Jul 2009 17:48:37 +0000 (17:48 +0000)] 
Fix SetToolTip(NULL) to unset the tooltip.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImprove the menus.
Vadim Zeitlin [Sun, 26 Jul 2009 21:10:27 +0000 (21:10 +0000)] 
Improve the menus.

Added accelerators; use radio items for mututally exclusive choices. No real changes otherwise.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoHungarian translation update.
Vadim Zeitlin [Sun, 26 Jul 2009 20:15:18 +0000 (20:15 +0000)] 
Hungarian translation update.

Submitted by Ocsvari Aron

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSet access mode in wxRegKey::SetHkey().
Vadim Zeitlin [Sun, 26 Jul 2009 15:50:03 +0000 (15:50 +0000)] 
Set access mode in wxRegKey::SetHkey().

It was left uninitialized before resulting in the key being closed on access because the check for being opened in a mode with enough permissions failed even for Read.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect the check for wxSTOCK_FOR_BUTTON.
Vadim Zeitlin [Sun, 26 Jul 2009 00:24:20 +0000 (00:24 +0000)] 
Correct the check for wxSTOCK_FOR_BUTTON.

We need to check for equality here as wxSTOCK_FOR_BUTTON includes wxSTOCK_WITH_MNEMONIC but using the latter doesn't imply the former.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImplement wxWindow::GetToolTipText().
Vadim Zeitlin [Sat, 25 Jul 2009 23:13:58 +0000 (23:13 +0000)] 
Implement wxWindow::GetToolTipText().

This was declared in wx/window.h but somehow never implemented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAllow setting long version field in About dialog.
Vadim Zeitlin [Sat, 25 Jul 2009 22:53:23 +0000 (22:53 +0000)] 
Allow setting long version field in About dialog.

Long version is constructed by concatenating "Version " with the short version but can be overridden for the platforms which use it (currently MSW and OS X).

Closes 11027.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoClear targets in wxClipboard::Clear().
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:23 +0000 (22:26 +0000)] 
Clear targets in wxClipboard::Clear().

This seems to fix a memory leak rendering clipboard unusable after running wxGTK applications for a long time (see #10813).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMove #error for non-MSVC to the top of file.
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:15 +0000 (22:26 +0000)] 
Move #error for non-MSVC to the top of file.

This allows to reduce indentation of the rest of it and avoid a very long #if...#else.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd support for stc library.
Vadim Zeitlin [Sat, 25 Jul 2009 22:26:06 +0000 (22:26 +0000)] 
Add support for stc library.

Closes #11025.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix harmless MSVC warning.
Vadim Zeitlin [Sat, 25 Jul 2009 17:09:37 +0000 (17:09 +0000)] 
Fix harmless MSVC warning.

It complained about converting pointer to bool implicitly in wxAppConsoleBase::IsScheduledForDestruction().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't use mnemonic for Cancel button under MSW.
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:33 +0000 (16:41 +0000)] 
Don't use mnemonic for Cancel button under MSW.

Native dialogs don't, so we shouldn't neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse stock id instead of duplicating its string label in CheckFit().
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:25 +0000 (16:41 +0000)] 
Use stock id instead of duplicating its string label in CheckFit().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse wxSTOCK_FOR_BUTTON for message dialog custom labels.
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:16 +0000 (16:41 +0000)] 
Use wxSTOCK_FOR_BUTTON for message dialog custom labels.

This allows to use wxID_PRINT as a custom label without getting an unwanted ellipsis at the end.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded wxSTOCK_FOR_BUTTON flag for wxGetStockLabel().
Vadim Zeitlin [Sat, 25 Jul 2009 16:41:05 +0000 (16:41 +0000)] 
Added wxSTOCK_FOR_BUTTON flag for wxGetStockLabel().

This allows to retrieve labels appropriate for the buttons and not menu items which currently means without trailing ellipsis.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect wxGetStockLabel() documentation.
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:56 +0000 (16:40 +0000)] 
Correct wxGetStockLabel() documentation.

It was completely out of date; also separately documented wxStockLabelQueryFlag.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse Ok/Cancel dialog instead of Yes/No one in CheckFit().
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:49 +0000 (16:40 +0000)] 
Use Ok/Cancel dialog instead of Yes/No one in CheckFit().

This has the advantage of being able to close the dialog with "Esc" and also allows us to not specify the label for the "Cancel" button at all and use the default one, which is especially important under MSW where the label returned by wxGetStockLabel(wxID_CANCEL) is actually not the same string as is used in the native message boxes (they don't define an accelerator for the cancel button).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd a period to the sentence end.
Vadim Zeitlin [Sat, 25 Jul 2009 16:40:42 +0000 (16:40 +0000)] 
Add a period to the sentence end.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775