Commit Graph

44 Commits

Author SHA1 Message Date
Włodzimierz Skiba
ec157c8f95 Old API depreciated. Use of new API. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-04 19:35:52 +00:00
Robert Roebling
f7c6f947cf Added TREE_ITEM_MENU event that gets sent if the
user hits the "Menu" key on the newer keyboards.
   So far generic control only.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-26 17:37:59 +00:00
Robert Roebling
c7f73af494 Make wxTR_NO_LINES default under GTK2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-27 23:19:49 +00:00
Włodzimierz Skiba
0cd936a4fb wxTreeEvent::Clone() support [patch #1061198].
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 19:24:22 +00:00
Vadim Zeitlin
2782282522 use wxPtrToUInt/UIntToPtr instead of (removed) ULong versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 21:10:45 +00:00
Vadim Zeitlin
1a14587d59 VC++ warning fixes for /Wp64
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 13:09:00 +00:00
Włodzimierz Skiba
cb719f2e29 Source cleaning: whitespaces, tabs, -1/wxID_ANY/wxNOT_FOUND/wxDefaultCoord, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 18:20:56 +00:00
Robin Dunn
99cea4b370 wxTreeListCtrl still uses the wxTR_TWIST_BUTTONS style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 00:57:55 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
3a818b15a1 use static_cast<> in event table macros for type safety (patch 843206)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-10 22:15:19 +00:00
Julian Smart
156194e1d5 Applied patch [ 827011 ] Event-based processing of item tooltips in wxTreeCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 07:30:20 +00:00
Vadim Zeitlin
d5d29b8a22 renamed WX_DEFINE_ARRAY_NO_PTR in WX_DEFINE_ARRAY_PTR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-08 22:13:14 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Stefan Csomor
4393b50ccd fixing xti problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 17:55:53 +00:00
Vadim Zeitlin
fc7a2a602b undisable many warnings for VC++ in defs.h and fixed several thousands of them in the sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-22 00:24:07 +00:00
Vadim Zeitlin
c89d41600b only define operator bool() if operator long() is not defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-21 13:03:33 +00:00
Václav Slavík
e066bd132d compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 20:39:35 +00:00
Mattia Barbon
a9711a4deb Compilation fixes for !WXWIN_COMPATIBILITY_2_4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 19:27:14 +00:00
Vadim Zeitlin
9c7f49f569 added wxRendererNative to be used by the generic controls for rendering platfomr-specific parts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 17:52:26 +00:00
Vadim Zeitlin
f888d61444 made wx[Array]TreeItemId[s] more backwards compatible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 23:12:33 +00:00
Vadim Zeitlin
ee4b272189 replaced untyped hash with a typed one; 64 bit fixes (don't cast pointers to long...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-19 21:06:59 +00:00
Vadim Zeitlin
ae8c4b33a3 added state image support (patch 530155)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 12:46:48 +00:00
Robin Dunn
8adb5d4557 Added inline setters for wxTreeEvent so we don't need to add new
friends anytime someone wants to generate wxTreeEvents


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-07 00:30:37 +00:00
Mattia Barbon
ed39ff57b3 Remove unnecessary header dependencies. Fix resulting compilation
problems for wxMSW, wxGTK, wxMotif, wxX11 and wxMac in default
configuration. Non-default configurations will probably need some more
fixes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-10 21:07:36 +00:00
Julian Smart
dd23c25cde Applied patch [ 605189 ] add edit cancel notify to wxTreeEvent
Benjamin I. Williams

Currently there is no way of receiving notification
that a user cancelled an edit operation on a wxTreeCtrl
tree node label.

This patch adds a method "IsEditCancelled" to the
wxTreeEvent class. During an EVT_TREE_END_LABEL_EDIT
event, the programmer can now determine whether or not
the edit operation was cancelled by the user (by
pressing <ESC>).

This patch provides this implementation for both
wxMSW's wxTreeCtrl and the wxGenericTreeCtrl. Both
situations have been tested and work well.

The patch is not very invasive, and is much smaller
than I had expected.

Please see the relevent discussion on the wx-dev list
for more details.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 19:50:41 +00:00
Gilles Depeyrot
af49c4b8a2 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Vadim Zeitlin
1944ad7618 1. more consistency in wxTree/ListEvent methods naming convention:
GetKeyCode() instead of GetCode()
2. wxTreeEvent::GetKeyEvent()::IsAltDown() now works under MSW
3. wxTreeEvent::GetKeyCode() works for alnum keys


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-21 14:29:13 +00:00
Gilles Depeyrot
5a1cad6ea4 wxArray<T> macros have been changed to fix runtime problems under 64 bit
architectures. The base class is now implemented once for each needed
primitive type in order to avoid invalid reference casts. Macros are
provided to implement new arrays using these primitive base arrays.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-06 06:31:34 +00:00
Václav Slavík
c6f4913a76 applied patch that adds wxTR_FULL_ROW_HIGHLIGHT to wxTreeCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-17 00:30:23 +00:00
Robert Roebling
17d5bdf9e9 Aqua gets Aqua tree buttons automatically now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-15 13:49:05 +00:00
Václav Slavík
2b84e565c6 applied Greg's refinment of hist treectrl patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-23 19:39:04 +00:00
Vadim Zeitlin
b09bda689c added wxTreeEvent::GetKeyEvent() to allow to retrieve the key event flags from EVT_TREE_KEY_DOWN event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-24 16:39:49 +00:00
Robin Dunn
b8fbf1a035 Added classinfo macros for wxTreeEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-01 03:00:17 +00:00
Robert Roebling
618a5e382a Applied Greg's patch to tree control and related.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-18 13:09:26 +00:00
Vadim Zeitlin
1e6feb95a7 first pass of wxUniv merge - nothing works, most parts don't even compile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-26 20:59:19 +00:00
Vadim Zeitlin
161f4f7380 applied Unicode fixes for mingw32 (patch 429654)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 02:58:56 +00:00
Vadim Zeitlin
2f3dcbbf20 fixed (?) problems with assignment operator in wxTreeItemId
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-21 14:04:19 +00:00
Vadim Zeitlin
2e4df4bfaf 1. made compilation with WXWIN_COMPATIBILITY_EVENT_TYPES really work
2. moved ~50% of the event types in their own headers/sources from event.h/cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-31 17:16:40 +00:00
Robert Roebling
82a5f02c86 Updated ten thousand macros for new event type code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-26 17:35:36 +00:00
Julian Smart
5e0e6ceb8f Added accelerators to Undo/Redo menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-03 18:25:13 +00:00
Julian Smart
75212e68fd Removed #if wxUSE_TREECTRL (not in setup0.h, and not applied consistently)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-19 16:42:12 +00:00
Vadim Zeitlin
33737618bc part of the previous patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-10 19:21:59 +00:00
Julian Smart
484523cf52 Modified generic wxTreeCtrl to work under non-Unix platforms simultaneously
with the native control.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-04 13:59:45 +00:00