Vadim Zeitlin
c6cc8b15ce
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
2009-08-02 00:53:51 +00:00
Vadim Zeitlin
7e6edd2772
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
2009-08-02 00:48:58 +00:00
Vadim Zeitlin
4f671eebc9
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
2009-08-02 00:48:49 +00:00
Vadim Zeitlin
40857d43a3
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
2009-08-02 00:19:55 +00:00
Václav Slavík
d368860323
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
2009-07-31 18:48:34 +00:00
Jaakko Salli
4d18ddc7bf
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
2009-07-31 14:03:42 +00:00
Vadim Zeitlin
c6d61e6047
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
2009-07-31 13:38:21 +00:00
Vadim Zeitlin
77497ea37e
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
2009-07-31 12:17:12 +00:00
Vadim Zeitlin
49899527ff
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
2009-07-31 12:17:05 +00:00
Vadim Zeitlin
9a38aced4e
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
2009-07-30 13:40:46 +00:00
Vadim Zeitlin
ed22b1a8d8
Undo accidental commit of .gitignore.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 13:38:47 +00:00
Vadim Zeitlin
d65e3272e2
Ignore tags file.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 13:37:23 +00:00
Vadim Zeitlin
47d9ca165a
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
2009-07-30 13:20:59 +00:00
Vadim Zeitlin
63ff0fefcf
Correct typo in wxRefCounter description.
...
Closes #11047 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-30 13:14:25 +00:00
Václav Slavík
f380e251aa
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
2009-07-30 07:43:10 +00:00
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