]> git.saurik.com Git - wxWidgets.git/blame - src/common/treebase.cpp
Applied patch #420395 (adding wxCLIP_SIBBLINGS capability -- but not by default)
[wxWidgets.git] / src / common / treebase.cpp
CommitLineData
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__
28#pragma hdrstop
29#endif
30
31#include "wx/treebase.h"
32#include "wx/settings.h"
33#include "wx/log.h"
34#include "wx/intl.h"
35#include "wx/dynarray.h"
36#include "wx/arrimpl.cpp"
37#include "wx/dcclient.h"
38#include "wx/msgdlg.h"
39
ed2ec17c
GT
40
41// ----------------------------------------------------------------------------
42// events
43// ----------------------------------------------------------------------------
44
45DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_DRAG)
46DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_RDRAG)
47DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)
48DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_LABEL_EDIT)
49DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_DELETE_ITEM)
50DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_GET_INFO)
51DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SET_INFO)
52DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_EXPANDED)
53DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_EXPANDING)
54DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)
55DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)
56DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SEL_CHANGED)
57DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_SEL_CHANGING)
58DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_KEY_DOWN)
59DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)
60DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)
61DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)
62DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG)
63
484523cf
JS
64// ----------------------------------------------------------------------------
65// Tree event
66// ----------------------------------------------------------------------------
67
68IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
69
70wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
71 : wxNotifyEvent(commandType, id)
72{
73 m_code = 0;
51d67338 74 m_itemOld = 0l;
484523cf
JS
75}
76