Stefan Csomor
5a1b961650
adding check for invalid date
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 18:52:55 +00:00
Stefan Csomor
6f23613669
as the native control doesn't check the min max values, we do it ourselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 17:55:43 +00:00
Vadim Zeitlin
08267a6e1f
Don't translate closing single quote in the font face name.
...
This is completely unnecessary and just creates extra work for the
translators.
See #15247 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 13:54:43 +00:00
Julian Smart
8836dcaadd
The style listbox now takes into account the style background colour if specified.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 09:51:32 +00:00
Stefan Csomor
d4e5c5b98a
adding hook, but unfortunately no solution yet for wxComboBox::SetEditable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 06:51:24 +00:00
Stefan Csomor
fde8374482
cocoa needs a special implementation for read-only combo box
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 05:45:35 +00:00
Stefan Csomor
1d90958ba3
Clear is also expected to clear the text
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-12 05:25:22 +00:00
Stefan Csomor
e4673c0ee2
adding default impl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 22:26:11 +00:00
Stefan Csomor
5ed9f8b231
add more high-level event concepts, fixing native button number
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 22:25:21 +00:00
Stefan Csomor
cd0f218cdd
notify the event loop that synthesized events are on the queue, wait for them to be available, also on OSX a double click has to be synthesized slightly differently
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 17:56:27 +00:00
Stefan Csomor
d60957aac5
better support for ui action simulation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 17:54:07 +00:00
Václav Slavík
31f125ed00
Use correct extensions in wxDynamicLibrary::CanonicalizeName() on OS X.
...
Contrary to the documentation, this function incorrectly appended the
.bundle extension on OS X for libraries as well as modules.
Fixed to use .dylib for libraries (wxDL_LIBRARY) and continue to use
.bundle for loadable modules (wxDL_MODULE). Change GetDllExt() to take optional wxDynamicLibearyCategory argument.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 16:46:49 +00:00
Julian Smart
1c47b9489d
Untranslated strings now won't be overwritten by regenerating the dialog.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 14:01:47 +00:00
Julian Smart
93a16a7d51
Fixed a refresh bug due to the optimized refresh rect being calculated incorrectly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-11 10:20:11 +00:00
Vadim Zeitlin
5833988cb7
Add wxMouseEvent::GetColumnsPerAction().
...
This is similar to the existing GetLinesPerAction() but is for, surprise,
columns.
Also change the documentation to say that the value returned by both of these
methods is 3 under "most platforms" as some wxOSX currently uses 1 and not 3.
Closes #15239 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-10 15:53:29 +00:00
Vadim Zeitlin
4775836d37
Avoid problems when reparenting a TLW under a child in wxGTK.
...
Don't use a TLW with gtk_fixed_put().
Closes #15237 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-10 15:53:04 +00:00
Vadim Zeitlin
bf5e92db1c
Fix crash when undoing the deletion of a nested table column in wxRTC.
...
Fix the object parent when applying the actions.
Closes #15186 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-10 15:52:41 +00:00
Vadim Zeitlin
eef348ff20
Don't mark the strings "1", "2", ... "10" as translatable.
...
They are the same in all the languages, don't create extra work for the
translators.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-10 15:51:10 +00:00
Vadim Zeitlin
5124841297
Use library-specific description in their version resources for MSW DLLs.
...
Reusing the same description for all files wasn't especially useful, make it
more informative.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-08 02:23:58 +00:00
Vadim Zeitlin
13dec1dbeb
Simplify the version information resource definition a little.
...
Put the correct data into FileVersion and InternalName fields and remove
LegalTrademarks, PrivateBuild and SpecialBuild completely as they are optional
and shouldn't be present if the corresponding flags are not set, see
http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-08 02:23:52 +00:00
Vadim Zeitlin
c315aa3db6
Add back the copyright symbol to the version information resource.
...
It has somehow disappeared in r62054 (see #10659 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-08 02:23:48 +00:00
Vadim Zeitlin
5c3a156cf4
Update copyright year in the version information resource.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-08 02:08:30 +00:00
Stefan Csomor
083c9c2088
associate the outline view with the impl, fixes #13748
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 16:18:53 +00:00
Stefan Csomor
e17d84e1b2
refactoring focus handling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 07:22:54 +00:00
Stefan Csomor
ba0cf6af6d
exposing wxOSXGetViewFromResponder
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 07:06:19 +00:00
Stefan Csomor
09ffaca3a6
adding a more extensive version to arrive at the impl when given a native control, taking into account eg the composited controls of a scrollview
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 06:54:50 +00:00
Stefan Csomor
3678169caa
adding comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 06:27:02 +00:00
Stefan Csomor
5856534c86
avoiding reentrancy problems and congestion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 17:54:31 +00:00
Stefan Csomor
ea9ae179ed
avoiding focus lost events when a different subview gets focused, see #14042
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 17:49:03 +00:00
Stefan Csomor
19736e6452
make sure we don't execute pending deletes either when in runModel, otherwise reentrancy problems occur
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 14:57:56 +00:00
Stefan Csomor
04a123c642
using ordinary Show for popup windows as on MSW which activates it as well, I'll rewire ShowWithoutActivating for the other use case, fixes #15008
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 13:21:10 +00:00
Stefan Csomor
c609b780c7
refactoring SizeEvent sending
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 13:01:50 +00:00
Stefan Csomor
cf83b0cfb6
refactoring SizeEvent sending
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 12:58:29 +00:00
Stefan Csomor
60d66be369
attempt to get the 'new focus' window parameter of a focus kill event set correctly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 10:37:01 +00:00
Stefan Csomor
b7005dfd8a
deal with Cocoa as we do with Carbon, see #15008
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 08:34:11 +00:00
Stefan Csomor
77d2aaf0b4
make sure mouse moved events are always delivered, see #15008
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 08:32:15 +00:00
Stefan Csomor
e80711dd54
make sure button clicks etc. on a popup window don't lead to a dismissal because their GetWindow()/parent = popup check didn't work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-03 08:30:33 +00:00
Stefan Csomor
b206de3205
don't take resize indicators into account if we are at 10.7 or higher, they don't exist anymore … see #15187
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-02 09:57:26 +00:00
Stefan Csomor
b0cb918598
propagate scroll wheel events to parent, fixes #15187
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-02 09:33:33 +00:00
Stefan Csomor
cd15bcaf50
fixes potential crash under gatekeeper
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 18:29:41 +00:00
Stefan Csomor
da73c5c65b
only set native window level, when not using a wrapped native window, see #14739
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 18:28:53 +00:00
Paul Cornett
3ffa8d8c02
update position for widgets in native containers, fixes #15231
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-01 17:06:14 +00:00
Vadim Zeitlin
4e1e8dc51b
Change wxMSW wxTreeCtrl::DoFreeze() to not hide the tree any more.
...
Hiding the tree when it's frozen, as done in r72665, results in its own
problems, e.g. loss of focus. So don't do this but resize the control to a
very small size when freezing it and restore it to its old size afterwards.
Closes #15166 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:36 +00:00
Vadim Zeitlin
926df8a162
Add wxFileDialog::GetCurrentlySelectedFilename().
...
Also send wxEVT_UPDATE_UI events for the extra controls in wxFileDialog.
The combination of these changes allows extra controls to update their state
depending on the current selection in the dialog. Show a simple example of
doing it in the dialogs sample.
Closes #15235 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:27 +00:00
Vadim Zeitlin
1054bcb21f
Fix wxStyledTextCtrl::SetInsertionPointEnd().
...
This relied on SetInsertionPoint(-1) working like in wxTextCtrl but it didn't.
Add an explicit check to it for consistency with the other classes and to make
SetInsertionPointEnd() work.
Closes #15234 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:16 +00:00
Vadim Zeitlin
0a72cae73d
Improve horizontal scrolling in wxRibbonControl.
...
Scroll by entire "sections", i.e. panes of the ribbon, instead of scrolling by
a fixed number of pixels as it's much more useful and user-friendly to uncover
the next section entirely instead of asking the user to press on the arrow
several times before being able to use it.
Closes #15232 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:11 +00:00
Vadim Zeitlin
ff3493c0ce
Use deferred window positioning in wxWindow::Layout() in wxMSW.
...
Ensure that {Begin,End}RepositioningChildren() are called before/after
changing the positions of multiple children, whether we're using sizers or
constraints.
This fixes display corruption which could happen under Windows 7 and a child
resized first became bigger, pushing off the children resized later.
Closes #15214 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:06 +00:00
Vadim Zeitlin
1a986642f5
Add wxWindow::BeginRepositioningChildren() and EndRepositioningChildren().
...
This is just a refactoring of wxMSW code to make it possible to use deferred
window positioning from other places in subsequent commits.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:21:03 +00:00
Vadim Zeitlin
a2d65663a0
Fix assert when adding columns to wxGrid using native header.
...
Change the order of updating m_colWidths array and the native header control
in wxGird::Redimension() to ensure that we can test whether the column is
shown (which results in accessing m_colWidths element at this column index)
from the wxGridHeaderCtrl::SetColumnCount().
Closes #15225 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 23:20:48 +00:00
Stefan Csomor
3d184f1e60
using an empty default menu bar when no menubar is available, see #12402
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-31 18:19:49 +00:00