Vadim Zeitlin
011ad05168
Remove wxHAS_NAMESPACES and gcc 2.95 checks.
...
We use namespaces elsewhere without any checks now so it doesn't make sense to
keep checking for them here.
We also don't support g++ 2.95 since ages so no need to check for it neither.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-12 22:47:21 +00:00
Vadim Zeitlin
295a34e95d
Ukrainian translations update from Yuri Chornoivan.
...
Also changed charset from KOI8-U to UTF-8for ease of maintenance.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-12 11:22:43 +00:00
Václav Slavík
10ff14524b
Make it possible to subclass wxMenuBar in XRC (patch #11679 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-11 12:48:29 +00:00
Václav Slavík
e03951b772
Fixed possible buffer overflow in wxXmlResource::GetXRCID() (patch #11715 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-11 12:36:16 +00:00
Jaakko Salli
ec3cce5a29
Removed most of the propgrid '#ifndef SWIG' pre-compiler conditions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-10 16:45:39 +00:00
Václav Slavík
a2837c3c43
Fixed wxGauge's best size to conform to Windows HIG.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-10 13:31:58 +00:00
Vadim Zeitlin
9508a23a1b
Move wxPosixPermissions definition from wx/file.h to wx/filefn.h.
...
This fixes compilation with wxUSE_FILE=0 as wxFileName::Mkdir() still uses
these constants but their definitions were not available in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-10 11:38:41 +00:00
Stefan Csomor
76fe30bbad
support fullscreen display (translucent status) in all 4 orientations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 09:35:22 +00:00
Robin Dunn
d4d799e9ea
Test m_nowpeer pointer before using it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:34:11 +00:00
Robin Dunn
564af280f0
Set Id and EventObject for wxSetCursorEvent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:33:44 +00:00
Robin Dunn
7313db77a7
Ignore the time portion of the datetime object when setting the date.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:32:21 +00:00
Robin Dunn
aa48d3053d
Remove functions duplicated in dnd_osx.cpp.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-09 01:24:22 +00:00
Robin Dunn
1ed7a2064a
Allow more than one timer with the same ID. Closes #11699 .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-08 20:06:04 +00:00
Vadim Zeitlin
f2d7fdf7b0
Add support for showing "elevation" icon in wxMSW buttons.
...
Add, document and test in the widgets sample wxButton::SetAuthNeeded().
Closes #11705 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-08 19:52:00 +00:00
Stefan Csomor
126254a8d0
adding carbon event missing in 10.4 headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-08 07:20:39 +00:00
Kevin Ollivier
1232607d6d
Implement EVT_MAXIMIZE support for OS X Cocoa.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-07 02:43:28 +00:00
Kevin Ollivier
05c218ee24
Fix handling of the *.* extension case, before this fix it was being passed as a "*" filter to the Cocoa dialog which, not being a valid extension, meant that no files were selectable.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-06 18:19:43 +00:00
Kevin Ollivier
75a2c6a1ee
Get wxSearchCtrl text events working, and share the text event handler code among all the various wxTextCtrl-based classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-06 17:00:38 +00:00
Kevin Ollivier
f9022ad209
Forgot about the drag source delegate, which is the perfect place to put GiveFeedback related handling.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-06 16:42:44 +00:00
Kevin Ollivier
808cbd174a
Add an accessor to get the current drop source from window.mm so that we can implement GiveFeedback support, and also move a couple functions that check the current drop source into common DND OS X code as a result.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-06 01:45:58 +00:00
Jouk Jansen
1111fe434b
undefine not working FSWATCHER from OpenVMS compile setup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-04 07:26:55 +00:00
Vadim Zeitlin
95ad763a77
Extract wxSTOCK_WITHOUT_ELLIPSIS from wxSTOCK_FOR_BUTTON.
...
Make it possible to use this flag on its own, without wxSTOCK_WITH_MNEMONIC
which is also part of wxSTOCK_FOR_BUTTON. This can be useful for e.g. toolbar
buttons.
Closes #11681 , #11682 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-04 01:33:32 +00:00
Vadim Zeitlin
9439bc6955
Fix selection event sending for Ctrl-click in generic wxDataViewCtrl.
...
Ctrl-clicking on the only currently selected item in wxDataViewCtrl crashed
because we dereferenced first element of the empty m_selection array when
generating the selection change event.
Instead, send the event for the current item, this should be more consistent
with the native versions behaviour and at the very least doesn't crash.
Closes #11684 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-04 01:20:02 +00:00
Vadim Zeitlin
1d4b9c37cb
Make wxDataObjectComposite::GetObject() public.
...
Allow retrieving individual wxDataObjects from wxDataObjectComposite and add
an example showing how can this be done to the documentation.
Closes #11692 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-04 01:02:43 +00:00
Vadim Zeitlin
2d1e63c0a5
Test wxTE_PROCESS_ENTER style in the widgets sample.
...
Add a checkbox for toggling wxTE_PROCESS_ENTER to the text page and use this
style by default. This makes it easier to check that this style works as
intended, including that it generates the correct events.
See #11691 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 21:07:46 +00:00
Vadim Zeitlin
15b8500726
Correct the bounding box calculation in wxGTK wxDC::DrawBitmap().
...
Take into account the axis direction when calculating the bounding box.
This is consistent with not reversing the bitmap even when the axis are
reversed which is probably the expected behaviour.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 21:07:42 +00:00
Vadim Zeitlin
d3019e4d0a
Fix bug in wxMSW wxMessageDialog when the text was empty.
...
Don't crash in ReplaceStaticWithEdit() dereferencing an invalid end()-1
iterator in this case, use the always valid rbegin() instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 21:07:38 +00:00
Vadim Zeitlin
2dcf60dab4
Correct bounding box calculation in wxGTK wxDC::DrawText().
...
Physical coordinates were incorrectly used to update the bounding box instead
of the logical ones.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 21:07:32 +00:00
Julian Smart
b30661fdd0
Don't select all if there is nothing to select.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 11:43:08 +00:00
Julian Smart
fc6d9d0d45
Don't delete previous character when pressing Del at end of buffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 09:51:53 +00:00
Stefan Csomor
a533f0504f
safe degradation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 08:32:42 +00:00
Kevin Ollivier
20559592cb
Rebake after DND changes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 06:08:31 +00:00
Kevin Ollivier
7dab9892b3
Refactor DND code into Carbon and Cocoa parts, and provide a basic OS X Cocoa implementation for wxDropSource::DoDragDrop.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 05:31:31 +00:00
Kevin Ollivier
803e2857b3
Add sanity check on the item number.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 05:22:13 +00:00
Julian Smart
205a1ad98f
Fixes for incorrect selection, extra newline insertion when undoing deletion of selection,
...
incorrect SetScrollbar optimization, insufficient refresh for operations on last line,
HasCharacter/ParagraphAttributes bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 22:19:33 +00:00
Jaakko Salli
7261371b17
Do not clear property selection when adding new properties, but instead correct positions of any open editor controls.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 15:19:41 +00:00
Julian Smart
8c0f078408
Don't crash if there's no top window.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 11:23:31 +00:00
Julian Smart
76d7fc2904
Simplify SetSelectionRange and make consistent with SetSelection.
...
Fix a bug that returns true for character and paragraph style tests if no characters or paragraphs were found.
Fix SetSelection to position caret at end.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 10:45:51 +00:00
Stefan Csomor
44f97e649a
adapting to new API variant
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 08:23:59 +00:00
Kevin Ollivier
2fea6972c7
nschars is never used for the wxEVT_CHAR case, so don't assign it a different value for this case.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 01:20:15 +00:00
Kevin Ollivier
98182acce8
Use the correct type to fix Tiger compilation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 00:48:23 +00:00
Jaakko Salli
c05fe84146
Added nominal wxPG_PROP_READONLY support for editor controls other than wxTextCtrl-based ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:15:17 +00:00
Jaakko Salli
8669431add
Added command to set wxPG_PROP_READONLY in the propgrid sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:14:24 +00:00
Jaakko Salli
34c921fc4d
Fixed value column rendering for properties which do not create editor control when selected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:13:13 +00:00
Stefan Csomor
f0a9f45635
avoiding catching incorrect shortcuts, see #11676
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 14:42:51 +00:00
Stefan Csomor
5aa6ea933f
supporting clipboard command shortcuts on osx_cocoa as well, simplifying code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 11:01:53 +00:00
Vadim Zeitlin
96e790a567
Disable wxUSE_FSWATCHER under Unix if neither inotify nor kqueue is available.
...
Don't define wxUSE_FSWATCHER as 1 in configure if we can't implement it.
Also add a check to wx/unix/chkconf.h to verify that we didn't end up with an
inconsistent configuration somehow.
Closes #11670 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-29 13:07:26 +00:00
Michael Wetherell
1682f86006
Fix for file length fixup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 21:46:18 +00:00
Stefan Csomor
f135deaa90
storing modal returncode correctly for carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 13:49:16 +00:00
Stefan Csomor
3039af96f6
make sure modality is reflected correctly when rerouted from window-modal to app-modal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 13:48:35 +00:00