Václav Slavík
6ecb1fdd31
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
2009-07-30 07:09:43 +00:00
Michael Wetherell
fb4b0165b2
Fix SetToolTip(NULL) to unset the tooltip.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-28 17:48:37 +00:00
Vadim Zeitlin
32eda62d16
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
2009-07-26 21:10:27 +00:00
Vadim Zeitlin
896f810d44
Hungarian translation update.
...
Submitted by Ocsvari Aron
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-26 20:15:18 +00:00
Vadim Zeitlin
24aae88a4c
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
2009-07-26 15:50:03 +00:00
Vadim Zeitlin
e49776ccfb
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
2009-07-26 00:24:20 +00:00
Vadim Zeitlin
a16a233822
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
2009-07-25 23:13:58 +00:00
Vadim Zeitlin
704006b381
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
2009-07-25 22:53:23 +00:00
Vadim Zeitlin
1c54277e53
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
2009-07-25 22:26:23 +00:00
Vadim Zeitlin
c82c5274f2
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
2009-07-25 22:26:15 +00:00
Vadim Zeitlin
ad73320555
Add support for stc library.
...
Closes #11025 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-25 22:26:06 +00:00
Vadim Zeitlin
7705c44f29
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
2009-07-25 17:09:37 +00:00
Vadim Zeitlin
9b26a198ce
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
2009-07-25 16:41:33 +00:00
Vadim Zeitlin
3fff75338a
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
2009-07-25 16:41:25 +00:00
Vadim Zeitlin
3b5137c4e0
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
2009-07-25 16:41:16 +00:00
Vadim Zeitlin
e94ee7915b
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
2009-07-25 16:41:05 +00:00
Vadim Zeitlin
34a9a0244b
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
2009-07-25 16:40:56 +00:00
Vadim Zeitlin
9b95e87cb0
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
2009-07-25 16:40:49 +00:00
Vadim Zeitlin
39dfe3d454
Add a period to the sentence end.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-25 16:40:42 +00:00
Vadim Zeitlin
7ccf316e1a
Set all parent frame icons for print preview frame.
...
Using SetIcon(GetIcon()) resulted in ugly scaled icons being used for small icons while using SetIcons(GetIcons()) correctly reuses all parent frame icons in the child one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-25 16:40:35 +00:00
Stefan Csomor
7c798d002e
implementing checkbox using UISwitch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-24 21:20:58 +00:00
Vadim Zeitlin
ac1665bdb9
Remove inexistent wx/osx/carbon/databrow.h file.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-24 12:35:00 +00:00
Vadim Zeitlin
36a6cfd2fb
Fix harmless unused parameter warning.
...
'info' was only used with WXWIN_COMPATIBILITY_2_8 on in wxLog::DoLogRecord().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-24 12:34:48 +00:00
Vadim Zeitlin
ee2f43c042
This is apparently needed by Windows installer (WiX), see #10970 .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 23:34:46 +00:00
Vadim Zeitlin
1687f8af7b
They seem to have been inversed, see #10970 .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 23:28:24 +00:00
Vadim Zeitlin
e431c7df61
Always correctly invalid best size when bitmap changes.
...
Previously it was done only when the initial bitmap was set, not when it was
subsequently changed.
Closes #11018 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 23:01:10 +00:00
Vadim Zeitlin
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
32cdc45397
Implement wxGetHostName() for Windows CE.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 17:31:06 +00:00
Vadim Zeitlin
89d62794e4
Implement wxVLogTrace() accidentally removed by recent changes.
...
Also change the unit test to test wxVLogTrace() as well as wxLogTrace.
Closes #11011 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 13:40:44 +00:00
Vadim Zeitlin
2839804c35
Correct example in wxStringBufferLength documentation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 23:23:01 +00:00
Stefan Csomor
581c5049b1
added missing files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 17:56:41 +00:00
Vadim Zeitlin
57563c712b
Use wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().
...
Under Debian Linux 64 bit time_t is 64 bit long but libc doesn't seem to handle values beyond 2^32
correctly, e.g. wrong results are returned from localtime() for them. And it would seem that platforms
where sizeof(long) > sizeof(time_t) might exist too so it seems safer to only work with 32 bit time_t
values until we can reliably detect platforms which support 64 bit ones.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 17:56:35 +00:00
Vadim Zeitlin
eaed41872c
Handle %e in ParseFormat().
...
This allows us to parse the format returned by wxLocale::GetInfo(wxLOCALE_DATE_TIME_FMT) under Linux.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 16:44:06 +00:00
Vadim Zeitlin
52256b21b9
Added ParseFormat("%s") tests.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 16:41:52 +00:00
Stefan Csomor
0c2dc57d58
added missing files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 15:32:28 +00:00
Vadim Zeitlin
68e6eb7d67
Don't call IAutoComplete::Init() twice for the same control as this leaks memory, just change the strings used for completion instead ( closes #10968 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 14:30:29 +00:00
Stefan Csomor
a7f2b179fb
adapting to SDK 3.0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-22 09:48:54 +00:00
Vadim Zeitlin
3185abc278
Support delayed destruction in console applications too.\n\nThis only works if there is a running event loop but if there is one, we can have the same kind of problems with non-GUI objects such as sockets in console applications as we have with windows in GUI ones, so we must support this (see #10989 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-21 14:16:44 +00:00
Vadim Zeitlin
2388960a08
added a test for white space after CDATA (see #10552 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-21 11:26:01 +00:00
Vadim Zeitlin
81f0d3caef
Include wx/dataobj.h from wx/clipbrd.h.
...
This is necessary in order to define wxVector<wxDataFormat> at least when
wxVector is std::vector (as in wxUSE_STL==1 build) because vectors of
incomplete types can't be used.
Also removed inclusions of this and other unneeded headers from MSW and OS X
headers and removed a hopefully out of date comment about Mac code being wx
1.xx-based from the latter.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 23:54:08 +00:00
Vadim Zeitlin
43b2d5e7c3
Put braces around all calls to wxLogFunctions() inside an if statement.
...
This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 16:47:54 +00:00
Jaakko Salli
c9cc9a2f3e
Fixed wxPropertyGridInterface::SetPropertyValues() documentation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 15:06:04 +00:00
Vadim Zeitlin
26bacb82ff
Dispatch pending events without waiting for idle time ( closes #10994 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 12:14:42 +00:00
Vadim Zeitlin
a6982a3882
expand the collapsible panes contents to fill the entire pane area (see #11004 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-19 17:24:15 +00:00
Vadim Zeitlin
5d0d7c2058
removed wxDatePickerCtrlGeneric::SetFormat() which didn't exist but was declared and documented ( closes #10988 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-19 16:49:29 +00:00
Vadim Zeitlin
9fceb168bc
fix more -Wparentheses warnings after wxLog changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-19 16:16:46 +00:00
Vadim Zeitlin
c0e616bb3d
Document wxMessageOutput and related classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 23:48:50 +00:00
Vadim Zeitlin
8570a7b18f
Flush output stream in wxMessageOutputStderr::Output() to avoid losing any output if the program crashes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 23:23:39 +00:00
Vadim Zeitlin
e8c9268b3a
Add option FILE* parameter to wxMessageOutputStderr ctor, just as with wxLogStderr.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 23:22:51 +00:00
Paul Cornett
52ada3cdeb
fix crash with repeated split horizontal/vertical and replace window, #11002
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 22:46:26 +00:00