Vadim Zeitlin
|
fe733e34c2
|
add maxline restriction in single line mode textCtrl. let textctrl will fire wxEVT_TEXT_MAXLEN and not recive the chars when the text length beyond the maxlength
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:42:12 +00:00 |
|
Vadim Zeitlin
|
db0d7e67a9
|
set enc to wxUnusedVar in unicode mode, remove the old ugly code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:42:03 +00:00 |
|
Vadim Zeitlin
|
08603120f4
|
in unicode, we did not need the font encoding parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:42:00 +00:00 |
|
Vadim Zeitlin
|
df00ba55e0
|
adjust code to apply the wx coding guidelines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:57 +00:00 |
|
Vadim Zeitlin
|
96413683c5
|
free the data in deconstructor that created in constructor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:55 +00:00 |
|
Vadim Zeitlin
|
c973dd7be5
|
the font data have to stroe in m_nativeFontInfo, otherwise the constructor that use wxNavtiveFontInfo as parameter could not retrive the data in it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:51 +00:00 |
|
Vadim Zeitlin
|
d2573ed255
|
Add get/set strikeline support to wxFont/x11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:48 +00:00 |
|
Vadim Zeitlin
|
ae1bc4fa82
|
make wxPalette under x11 could store/get uchar RGB value in palette and also could get the color number in palette.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:45 +00:00 |
|
Vadim Zeitlin
|
5b52d6c752
|
Make sure the behaviour of slider in wxUniv is consistent with other ports, left to min, right to max
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:42 +00:00 |
|
Vadim Zeitlin
|
0947d75f2f
|
Make the comment more accurate, and the SetFocus is comment before, this is just restore it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:39 +00:00 |
|
Vadim Zeitlin
|
f172294263
|
treat -1 as the last position in wxTextCtrl::SetInsertionPoint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:36 +00:00 |
|
Vadim Zeitlin
|
0005984a4c
|
Make slider thumb could moving when use mouse drag it, and also set the slider value according to the thumb position
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:33 +00:00 |
|
Vadim Zeitlin
|
83eca161d7
|
Mouse capture data should only release when mouse release. And also make sure the data will delete in desconstructor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:30 +00:00 |
|
Vadim Zeitlin
|
e6d49edf3d
|
Add wxEVT_SLIDER support to wxSlider under wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:24 +00:00 |
|
Vadim Zeitlin
|
ba7835e5c6
|
add wxYield() to make sure the former event will executed done
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:21 +00:00 |
|
Vadim Zeitlin
|
18ccc964ee
|
In wxUniv x11 port. Should not set focus to popup control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:18 +00:00 |
|
Vadim Zeitlin
|
9d7a7ec556
|
after analisys the behaviour of treectrl in GTK and Qt, right arrow should not move down. Expand the current item will be fine
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:15 +00:00 |
|
Vadim Zeitlin
|
f83756c2e5
|
after reset the m_current(focused item) in ClearFocusedItem(), the test could pass under wxUniv. Due to wxGTK and wxOSX use it in same way. So remove the check in test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:12 +00:00 |
|
Vadim Zeitlin
|
f17b527764
|
ClearFocusedItem should reset the selected item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:09 +00:00 |
|
Vadim Zeitlin
|
bc19f463a2
|
add wxYield() after SetFocus(), set focus event needs to be processed before the control can accept input
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:06 +00:00 |
|
Vadim Zeitlin
|
3a189686d7
|
add a check, make sure some action key could generate wxEVT_TEXT event. That is needed in some control, such as wxSpinCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:41:03 +00:00 |
|
Vadim Zeitlin
|
c46487ac0f
|
When append menu with titlt, the menu should set the title
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:59 +00:00 |
|
Vadim Zeitlin
|
7bc33811b9
|
revised wxRadioButton draw function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:56 +00:00 |
|
Vadim Zeitlin
|
71a21c065d
|
rewrite the radio button draw function under gtk theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:53 +00:00 |
|
Vadim Zeitlin
|
66ed21d69b
|
Fix the position calculating of insert a radio menu item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:46 +00:00 |
|
Vadim Zeitlin
|
2e2ff9e8b0
|
make sure the first item of a radio group is checked by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:43 +00:00 |
|
Vadim Zeitlin
|
02526cc9d2
|
use DoGetValue() in parent class will be enough, and add readonly support to SetValue()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:39 +00:00 |
|
Vadim Zeitlin
|
26ce3d6361
|
wxListBox in wxUniv need to overwrite DoListHistTest function, otherwise Listbox::HitTest will call DoListHitTest in wx/listbox.h, which will always return wxNOT_FOUND
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:36 +00:00 |
|
Vadim Zeitlin
|
831045ff45
|
if call SetSelection by wxNOT_FOUND in listbox of wxUniv, just deselect all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:33 +00:00 |
|
Vadim Zeitlin
|
6fb16229f5
|
When call EnsureVisible in wxUniv, make sure reset visible lines range correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:30 +00:00 |
|
Vadim Zeitlin
|
ec6777f17d
|
Adjust code, to consistent with the coding style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:27 +00:00 |
|
Vadim Zeitlin
|
c2b83f1b72
|
wxCheckListBox must clear the object that created in parent class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:24 +00:00 |
|
Vadim Zeitlin
|
a4e72041fb
|
Add GetBitmap support to wxButton in wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:22 +00:00 |
|
Vadim Zeitlin
|
15908f0a43
|
If string are empty, DoGetTextExtent should not return descent by a random value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:18 +00:00 |
|
Vadim Zeitlin
|
4363f9b578
|
These test will cause test_gui segmentation fault, disable for now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:15 +00:00 |
|
Vadim Zeitlin
|
51ca7cdcd0
|
Enable these wxRegion constructor for x11 port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:08 +00:00 |
|
Vadim Zeitlin
|
a8b36e90eb
|
The unit test will use WX_ASSERT_FAILS_WITH_ASSERT to check DoSetRegion(test/geometry/region.cpp:101) eventually, and the macro could handle exception, not true or false. Change it consistent with other port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:05 +00:00 |
|
Vadim Zeitlin
|
8c6a9bd10d
|
Adjust the bitmapButton size according the bitmap size when set bitmap to BitmapButton in wxUniv port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:40:02 +00:00 |
|
Vadim Zeitlin
|
fc8d46b34a
|
wxColurRefData in x11 did not overwrite CreateRef function, so it should not use AllocExclusive(), use UnRef() instead, just like InitRGBA() function in wxGTK port did
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:59 +00:00 |
|
Vadim Zeitlin
|
07a471df83
|
wxUniv not support unicode yet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:56 +00:00 |
|
Vadim Zeitlin
|
44cf7023c0
|
Add more evidential comments, adjust code to follow coding style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:53 +00:00 |
|
Vadim Zeitlin
|
c40871e8ce
|
Fix the prepocessor directive, from __WXOSX_COCOA__ to __WXOSX__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:50 +00:00 |
|
Vadim Zeitlin
|
af4f17a553
|
Make wxSlider behaviours in wxUniv same as other ports, and generate proper wxScrollEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:47 +00:00 |
|
Vadim Zeitlin
|
58730bc356
|
Add wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS event to wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:44 +00:00 |
|
Vadim Zeitlin
|
2bfd94d59c
|
wxX11 use XColor directly, so wxX11 does not support alpha at all currently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:41 +00:00 |
|
Vadim Zeitlin
|
b413eeedea
|
GetLabel should return the original label that with mnemonics, the original label stored in wxControlBase m_labelOrig, get it by wxControlBase::GetLabel()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:38 +00:00 |
|
Vadim Zeitlin
|
32b4a42cd1
|
Fix Error: Failed to initialize GUI: no built-in themes found when run gui and load theme, by add WX_USE_THEME in the place that create them object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:34 +00:00 |
|
Vadim Zeitlin
|
196227619d
|
Adjust comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:28 +00:00 |
|
Vadim Zeitlin
|
65b8a129ad
|
Fix code input mistakes and type convertion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:25 +00:00 |
|
Vadim Zeitlin
|
f028e3325b
|
Remove the conditional preprocessor directive around wx/stockitem.h, the head file not cause any problem, revert the mistake that I made in 2e2b1313d97ea1c79a396333f40872157fd629d4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-09-23 17:39:22 +00:00 |
|