treelistctrl.cpp File Reference

#include "wx/wxprec.h"
#include <wx/app.h>
#include <wx/treebase.h>
#include <wx/timer.h>
#include <wx/textctrl.h>
#include <wx/imaglist.h>
#include <wx/settings.h>
#include <wx/dcclient.h>
#include <wx/dcscreen.h>
#include <wx/scrolwin.h>
#include <wx/dcmemory.h>
#include <wx/apptrait.h>
#include <wx/dcbuffer.h>
#include <wx/tooltip.h>
#include <wx/hashmap.h>
#include "treelistctrl.h"
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <algorithm>
#include <wx/dynarray.h>
#include <wx/arrimpl.cpp>

Include dependency graph for treelistctrl.cpp:

Go to the source code of this file.

Classes

class  wxTreeListHeaderWindow
class  wxTreeListMainWindow
class  wxTreeListRenameTimer
class  wxEditTextCtrl
class  wxTreeListItemCellAttr
class  wxTreeListItem

Functions

 WX_DEFINE_ARRAY (wxTreeListItem *, wxArrayTreeListItems)
 WX_DECLARE_OBJARRAY (wxTreeListColumnInfo, wxArrayTreeListColumnInfo)
 WX_DEFINE_OBJARRAY (wxArrayTreeListColumnInfo)
 WX_DECLARE_HASH_MAP (int, wxTreeListItemCellAttr *, wxIntegerHash, wxIntegerEqual, wxTreeListItemCellAttrHash)
 IMPLEMENT_DYNAMIC_CLASS (wxTreeListHeaderWindow, wxWindow)
 EVT_ERASE_BACKGROUND (wxTreeListHeaderWindow::OnEraseBackground) void wxTreeListHeaderWindow
 EVT_ERASE_BACKGROUND (wxTreeListMainWindow::OnEraseBackground) void wxTreeListMainWindow
static int LINKAGEMODE tree_ctrl_compare_func (wxTreeListItem **item1, wxTreeListItem **item2)
 IMPLEMENT_DYNAMIC_CLASS (wxTreeListCtrl, wxControl)
 END_EVENT_TABLE ()

Variables

static const int NO_IMAGE = -1
static const int LINEHEIGHT = 10
static const int LINEATROOT = 5
static const int MARGIN = 2
static const int MININDENT = 16
static const int BTNWIDTH = 9
static const int BTNHEIGHT = 9
static const int EXTRA_WIDTH = 4
static const int EXTRA_HEIGHT = 4
static const int HEADER_OFFSET_X = 0
static const int HEADER_OFFSET_Y = 1
static const int DRAG_TIMER_TICKS = 250
static const int FIND_TIMER_TICKS = 500
static const int RENAME_TIMER_TICKS = 250
const wxChar * wxTreeListCtrlNameStr = _T("treelistctrl")
static wxTreeListColumnInfo wxInvalidTreeListColumnInfo
static wxTreeListMainWindows_treeBeingSorted = NULL


Function Documentation

END_EVENT_TABLE (  ) 

EVT_ERASE_BACKGROUND ( wxTreeListMainWindow::OnEraseBackground   ) 

Definition at line 1943 of file treelistctrl.cpp.

References LINEHEIGHT, and MININDENT.

EVT_ERASE_BACKGROUND ( wxTreeListHeaderWindow::OnEraseBackground   ) 

Definition at line 1233 of file treelistctrl.cpp.

IMPLEMENT_DYNAMIC_CLASS ( wxTreeListCtrl  ,
wxControl   
)

IMPLEMENT_DYNAMIC_CLASS ( wxTreeListHeaderWindow  ,
wxWindow   
)

static int LINKAGEMODE tree_ctrl_compare_func ( wxTreeListItem **  item1,
wxTreeListItem **  item2 
) [static]

Definition at line 3166 of file treelistctrl.cpp.

References wxTreeListMainWindow::OnCompareItems(), and s_treeBeingSorted.

Referenced by wxTreeListMainWindow::SortChildren().

WX_DECLARE_HASH_MAP ( int  ,
wxTreeListItemCellAttr ,
wxIntegerHash  ,
wxIntegerEqual  ,
wxTreeListItemCellAttrHash   
)

WX_DECLARE_OBJARRAY ( wxTreeListColumnInfo  ,
wxArrayTreeListColumnInfo   
)

WX_DEFINE_ARRAY ( wxTreeListItem ,
wxArrayTreeListItems   
)

WX_DEFINE_OBJARRAY ( wxArrayTreeListColumnInfo   ) 


Variable Documentation

const int BTNHEIGHT = 9 [static]

Definition at line 97 of file treelistctrl.cpp.

const int BTNWIDTH = 9 [static]

Definition at line 96 of file treelistctrl.cpp.

const int DRAG_TIMER_TICKS = 250 [static]

Definition at line 103 of file treelistctrl.cpp.

const int EXTRA_HEIGHT = 4 [static]

Definition at line 99 of file treelistctrl.cpp.

Referenced by wxTreeListCtrl::CalculateAndSetHeaderHeight().

const int EXTRA_WIDTH = 4 [static]

Definition at line 98 of file treelistctrl.cpp.

const int FIND_TIMER_TICKS = 500 [static]

Definition at line 104 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnChar().

const int HEADER_OFFSET_X = 0 [static]

Definition at line 100 of file treelistctrl.cpp.

const int HEADER_OFFSET_Y = 1 [static]

Definition at line 101 of file treelistctrl.cpp.

Referenced by wxTreeListCtrl::CalculateAndSetHeaderHeight().

const int LINEATROOT = 5 [static]

Definition at line 93 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::CalculateLevel(), wxTreeListMainWindow::GetItemWidth(), wxTreeListMainWindow::PaintItem(), and wxTreeListMainWindow::PaintLevel().

const int LINEHEIGHT = 10 [static]

Definition at line 92 of file treelistctrl.cpp.

Referenced by EVT_ERASE_BACKGROUND().

const int MARGIN = 2 [static]

Definition at line 94 of file treelistctrl.cpp.

const int MININDENT = 16 [static]

Definition at line 95 of file treelistctrl.cpp.

Referenced by EVT_ERASE_BACKGROUND(), and wxTreeListMainWindow::SetIndent().

const int NO_IMAGE = -1 [static]

Definition at line 90 of file treelistctrl.cpp.

Referenced by MaskImageCtrl::Create(), CPImageCtrl::Create(), wxTreeListItem::GetCurrentImage(), wxTreeListItem::GetImage(), wxTreeListMainWindow::GetItemWidth(), wxTreeListMainWindow::PaintItem(), wxTreeListItem::wxTreeListItem(), and wxTreeListItemCellAttr::wxTreeListItemCellAttr().

const int RENAME_TIMER_TICKS = 250 [static]

Definition at line 105 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnMouse().

wxTreeListMainWindow* s_treeBeingSorted = NULL [static]

Definition at line 3164 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::SortChildren(), and tree_ctrl_compare_func().

wxTreeListColumnInfo wxInvalidTreeListColumnInfo [static]

Definition at line 109 of file treelistctrl.cpp.

Referenced by wxTreeListHeaderWindow::GetColumn().

const wxChar* wxTreeListCtrlNameStr = _T("treelistctrl")

Definition at line 107 of file treelistctrl.cpp.


Generated on 24 Nov 2014 for Hugintrunk by  doxygen 1.4.7