]>
Commit | Line | Data |
---|---|---|
484523cf JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: treebase.cpp | |
3 | // Purpose: Base wxTreeCtrl classes | |
4 | // Author: Julian Smart | |
5 | // Created: 01/02/97 | |
6 | // Modified: | |
7 | // Id: $Id$ | |
8 | // Copyright: (c) 1998 Robert Roebling, Julian Smart et al | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | // ============================================================================= | |
13 | // declarations | |
14 | // ============================================================================= | |
15 | ||
16 | // ----------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ----------------------------------------------------------------------------- | |
19 | ||
20 | #ifdef __GNUG__ | |
21 | #pragma implementation "treebase.h" | |
22 | #endif | |
23 | ||
24 | // For compilers that support precompilation, includes "wx.h". | |
25 | #include "wx/wxprec.h" | |
26 | ||
27 | #ifdef __BORLANDC__ | |
1e6feb95 | 28 | #pragma hdrstop |
484523cf JS |
29 | #endif |
30 | ||
1e6feb95 VZ |
31 | #if wxUSE_TREECTRL |
32 | ||
484523cf JS |
33 | #include "wx/treebase.h" |
34 | #include "wx/settings.h" | |
35 | #include "wx/log.h" | |
36 | #include "wx/intl.h" | |
37 | #include "wx/dynarray.h" | |
38 | #include "wx/arrimpl.cpp" | |
39 | #include "wx/dcclient.h" | |
40 | #include "wx/msgdlg.h" | |
41 | ||
ed2ec17c GT |
42 | |
43 | // ---------------------------------------------------------------------------- | |
44 | // events | |
45 | // ---------------------------------------------------------------------------- | |
46 | ||
47 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_DRAG) | |
48 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_RDRAG) | |
49 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT) | |
50 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_LABEL_EDIT) | |
51 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_DELETE_ITEM) | |
52 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_GET_INFO) | |
53 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SET_INFO) | |
54 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_EXPANDED) | |
55 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_EXPANDING) | |
56 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_COLLAPSED) | |
57 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_COLLAPSING) | |
58 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SEL_CHANGED) | |
59 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SEL_CHANGING) | |
60 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_KEY_DOWN) | |
61 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_ACTIVATED) | |
62 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK) | |
63 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK) | |
64 | DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG) | |
65 | ||
484523cf JS |
66 | // ---------------------------------------------------------------------------- |
67 | // Tree event | |
68 | // ---------------------------------------------------------------------------- | |
69 | ||
484523cf JS |
70 | wxTreeEvent::wxTreeEvent(wxEventType commandType, int id) |
71 | : wxNotifyEvent(commandType, id) | |
72 | { | |
73 | m_code = 0; | |
51d67338 | 74 | m_itemOld = 0l; |
484523cf JS |
75 | } |
76 | ||
1e6feb95 VZ |
77 | #endif // wxUSE_TREECTRL |
78 |