Commit Graph

49449 Commits

Author SHA1 Message Date
Vadim Zeitlin
1454b44261 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
2009-08-06 00:00:47 +00:00
Vadim Zeitlin
dac831bb08 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
2009-08-06 00:00:39 +00:00
Vadim Zeitlin
41d6e8b683 No changes, just removed the whitespace.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-06 00:00:32 +00:00
Bryan Petty
9e89b438fe 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
2009-08-05 17:38:25 +00:00
Vadim Zeitlin
1dc39a1fb5 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
2009-08-05 17:25:33 +00:00
Vadim Zeitlin
b5a9b87e16 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
2009-08-05 17:25:27 +00:00
Vadim Zeitlin
e2495f725c 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
2009-08-05 17:25:14 +00:00
Vadim Zeitlin
a58804eae1 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
2009-08-05 17:24:57 +00:00
Vadim Zeitlin
adc27ddcb5 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
2009-08-05 17:24:50 +00:00
Vadim Zeitlin
666db5d11c Added wxUSE_ACCEL guard.
Closes #11074.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-05 17:24:40 +00:00
Vadim Zeitlin
b7081ff84f Added missing wxUSE_FONTENUM check.
Closes #11071.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-05 17:24:32 +00:00
Vadim Zeitlin
c7f171ed4d 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
2009-08-05 17:24:22 +00:00
Vadim Zeitlin
ce0822e1b9 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
2009-08-05 17:24:16 +00:00
Vadim Zeitlin
2c181e9954 Removed commented out code.
No real changes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-05 17:24:10 +00:00
Vadim Zeitlin
2003562174 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
2009-08-05 17:24:03 +00:00
Vadim Zeitlin
a5cf7942c9 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
2009-08-05 13:40:39 +00:00
Paul Cornett
690a6489b0 non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-05 04:59:18 +00:00
Stefan Csomor
f1d7af8f68 correcting #ifdef to #if, fixes #11062
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-04 05:11:56 +00:00
Vadim Zeitlin
ad09ec03f2 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
2009-08-03 20:45:07 +00:00
Vadim Zeitlin
3569e0d042 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
2009-08-03 20:42:49 +00:00
Vadim Zeitlin
1b88c4e4a6 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
2009-08-03 20:37:03 +00:00
Vadim Zeitlin
18547275bb 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
2009-08-03 20:36:56 +00:00
Vadim Zeitlin
f9d2e19d21 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
2009-08-03 20:10:31 +00:00
Vadim Zeitlin
7345d6c192 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
2009-08-03 00:51:03 +00:00
Vadim Zeitlin
fbae649d1b 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
2009-08-03 00:44:46 +00:00
Vadim Zeitlin
31eacdaf44 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
2009-08-02 01:03:00 +00:00
Vadim Zeitlin
57e9abd613 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
2009-08-02 00:59:31 +00:00
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