Vadim Zeitlin
8b5f6d9d47
use a single wxKeyboardEvent parameter instead of 4 bools in tons of places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 00:09:28 +00:00
Vadim Zeitlin
ba4d737a9e
allow specifying the initial modifier keys values in the ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 23:59:39 +00:00
Vadim Zeitlin
8a3e536cd5
- Main change is the addition of wxGridSelectRowsOrColumns selection mode
...
(which is still probably buggy, wxGridSelection needs to be reviewed)
- Add XYToCell() overloads returning wxGridCellCoords (instead of modifying the
argument passed by reference -- where did this come from?) and document them.
- Added GoToCell() which does make the new current cell visible unlike
SetGridCursor() (which was documented as doing it, but wasn't)
- Changed SetCurrentCell() to only not change the cell if wxEVT_GRID_SELECT_CELL
it generates is vetoed, not just processed as this seems to make more sense
- Split jumbo (~400 lines) ProcessGridCellMouseEvent() function into chunks
- Add many more comments to make reading this code seem less like puzzle
solving for the next unfortunate soul to do it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 23:33:04 +00:00
Vadim Zeitlin
0e0977894a
make wxKeyEvent and wxMouseEvent derive from the same wxKeyboardState object (indirectly via wxMouseState in the case of the latter) to make Get/HasModifiers() available in wxMouseEvent as well while avoiding code duplication
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 18:41:41 +00:00
Jaakko Salli
d577449426
Removed macros to create enum and flag props with custom, static choice sets. Now use wxPGProperty::SetChoices() instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:39:09 +00:00
Jaakko Salli
d53f610c1c
Eliminated WX_PG_DECLARE/IMPLEMENT_DERIVED_PROPERTY_CLASS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:24:34 +00:00
Jaakko Salli
7eac5c531c
Eliminated WX_PG_DECLARE_X_METHODS macros
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:13:51 +00:00
Jaakko Salli
697c314b16
Eliminate a warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 17:10:17 +00:00
Jaakko Salli
939d936402
Moved wxPGChoices m_choices member from various property classes to base wxPGProperty. This allows any property to have choices without subclassing and therefore work with Choice and ComboBox editors. Also removed redundant choice manipulation functions from wxPropertyGridinterface (ie. now use ones in wxPGProperty).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 16:57:33 +00:00
Jaakko Salli
57306cd4fd
Do not insert client data if client data is not used
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 16:43:40 +00:00
Michael Wetherell
96e6ebe64a
Change <checkout> slightly so that it doesn't display the branch as it makes
...
the column rather wide.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:42:18 +00:00
Francesco Montorsi
585a11d609
improved support for typedefs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:28:47 +00:00
Vadim Zeitlin
dc7f9c9cee
add unit test for wxTextEntry methods of wxComboBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:18:30 +00:00
Vadim Zeitlin
2851cf2582
fix bug in SetInsertionPoint(-1) implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:17:51 +00:00
Vadim Zeitlin
a5125dc6ed
set selection point to end in wxTextEntryBase::SetValue() as this should be done in all ports and in all controls (fixes a unit test failure for wxComboBox)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:13:38 +00:00
Vadim Zeitlin
b7bfef3806
implement EnableTextChangedEvents() to make ChangeValue() work as expected, i.e. not generate any events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:08:02 +00:00
Vadim Zeitlin
99b9c0eac1
do enable PCH for the tests, wx/wx.h was not precompiled for them resulting in much slower compilation than expected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 09:03:01 +00:00
Vadim Zeitlin
f0f6a32d4d
extract wxTextEntry unit tests in a reusable base class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 08:55:25 +00:00
Vadim Zeitlin
778ce4329a
set buffer length after reading the file contents into it successfully (part of #9980 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 08:18:30 +00:00
Vadim Zeitlin
41f6f17d01
return 0 (meaning the file is not seekable, as the docs now explain) instead of 4KB for the files in sysfs under Linux ( #9965 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 08:11:44 +00:00
Vadim Zeitlin
f915b92e09
fix ownerdrawn button label drawing in ODS_NOACCEL case ( #3519 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 07:50:44 +00:00
Vadim Zeitlin
e2074948cb
cancel the current operation if mouse capture is lost ( #9979 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 07:38:24 +00:00
Robert Roebling
4f47a8d0c6
Move definition of wxListIteratorFunction and ..SortFuntion to defs.h so it can be used from elsewhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 19:05:21 +00:00
Francesco Montorsi
8e1903816a
fix for gccxml
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 18:47:57 +00:00
Francesco Montorsi
f910f4d5cb
fix default arguments for various functions/ctors
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 18:47:34 +00:00
Francesco Montorsi
f1d5aa1285
few details fixed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 18:34:33 +00:00
Stefan Csomor
07897ae604
remove tests, from trunk, until we've sorted out the hangs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 18:14:21 +00:00
Jaakko Salli
35f6f7de48
Removed unused comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 17:47:19 +00:00
Jaakko Salli
e342075f46
Document struct wxPGPaintData in function docs of only function that uses it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 17:43:15 +00:00
Vadim Zeitlin
ff0447493d
mention that you need to update samples/samples.dsw manually currently
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 17:40:58 +00:00
Jaakko Salli
7926988b5f
Added section for propgrid sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 17:25:48 +00:00
Jaakko Salli
b55018ecbf
Replaced @link with @ref
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 17:14:13 +00:00
Vadim Zeitlin
856b41f96c
use #defines, not typedefs, for compatibility class names declarations to avoid breaking existing code forward declaring them
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 16:56:53 +00:00
Jaakko Salli
216214f83f
Made section names more globally unique
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 16:53:47 +00:00
Vadim Zeitlin
c70d645d7f
rebaked after propgrid sample addition
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 16:44:48 +00:00
Jaakko Salli
85ead075be
Added 'propgrid'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 15:23:18 +00:00
Stefan Csomor
d5e3081bba
adding new commands for tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 12:27:06 +00:00
Stefan Csomor
70bf329592
fixing deprecated constructors for osx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 09:12:32 +00:00
Stefan Csomor
326b62161d
in release builds gcc on osx evaporates these inlines if not WXEXPORTed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-18 08:38:25 +00:00
Vadim Zeitlin
2a02f84b94
ensure that the copies of the bitmap passed to wxMemoryDC ctor are not modified when this bitmap is
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 22:20:38 +00:00
Jaakko Salli
573cdf43af
Removed wxPGProperty class overview docs from actual header file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:15:36 +00:00
Jaakko Salli
15cbcd00da
Fixed typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:11:49 +00:00
Jaakko Salli
e999688506
Removed unused commented-out define
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:09:29 +00:00
Robert Roebling
682f6de664
minor corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:08:46 +00:00
Jaakko Salli
5b69ffcb68
Removed #ifndef DOXYGEN
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 18:08:22 +00:00
Jaakko Salli
c29e714c37
Added separate SetFocusOnCanvas() function so that m_editorFocused will be more reliable updated
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 17:34:22 +00:00
Jaakko Salli
68545f7889
Removed some old testing code. Added more appropriate minimal content.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 15:49:52 +00:00
Jaakko Salli
e213da24b8
Try to improve focus problem situation by using more SetFocusIgnoringChildren() instead of SetFocus()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 15:36:32 +00:00
Jaakko Salli
f4bc1aa27c
wxUSE_PROPGRID is now recognized by source and header files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 15:00:00 +00:00
Stefan Csomor
cfdef19f33
next attempt
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-17 08:13:59 +00:00