NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
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 <wx/dynarray.h>
#include <wx/arrimpl.cpp>
#include "treelistctrl.h"
#include <wx/log.h>
#include <wx/msgdlg.h>
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()

END_EVENT_TABLE ( )

◆ EVT_ERASE_BACKGROUND() [1/2]

EVT_ERASE_BACKGROUND ( wxTreeListHeaderWindow::OnEraseBackground  )

Definition at line 1431 of file treelistctrl.cpp.

◆ EVT_ERASE_BACKGROUND() [2/2]

EVT_ERASE_BACKGROUND ( wxTreeListMainWindow::OnEraseBackground  )

Definition at line 2204 of file treelistctrl.cpp.

References LINEHEIGHT, and MININDENT.

◆ IMPLEMENT_DYNAMIC_CLASS() [1/2]

IMPLEMENT_DYNAMIC_CLASS ( wxTreeListCtrl  ,
wxControl   
)

◆ IMPLEMENT_DYNAMIC_CLASS() [2/2]

IMPLEMENT_DYNAMIC_CLASS ( wxTreeListHeaderWindow  ,
wxWindow   
)

◆ tree_ctrl_compare_func()

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

Definition at line 3608 of file treelistctrl.cpp.

References _T, wxTreeListMainWindow::OnCompareItems(), and s_treeBeingSorted.

Referenced by wxTreeListMainWindow::SortChildren().

Here is the call graph for this function:

◆ WX_DECLARE_HASH_MAP()

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

◆ WX_DECLARE_OBJARRAY()

WX_DECLARE_OBJARRAY ( wxTreeListColumnInfo  ,
wxArrayTreeListColumnInfo   
)

◆ WX_DEFINE_ARRAY()

WX_DEFINE_ARRAY ( wxTreeListItem ,
wxArrayTreeListItems   
)

◆ WX_DEFINE_OBJARRAY()

WX_DEFINE_OBJARRAY ( wxArrayTreeListColumnInfo  )

Variable Documentation

◆ BTNHEIGHT

const int BTNHEIGHT = 9
static

Definition at line 98 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnPaint().

◆ BTNWIDTH

const int BTNWIDTH = 9
static

Definition at line 97 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnPaint().

◆ DRAG_TIMER_TICKS

const int DRAG_TIMER_TICKS = 250
static

Definition at line 104 of file treelistctrl.cpp.

◆ EXTRA_HEIGHT

const int EXTRA_HEIGHT = 4
static

◆ EXTRA_WIDTH

const int EXTRA_WIDTH = 4
static

Definition at line 99 of file treelistctrl.cpp.

Referenced by wxTreeListHeaderWindow::OnPaint().

◆ FIND_TIMER_TICKS

const int FIND_TIMER_TICKS = 500
static

Definition at line 105 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnChar().

◆ HEADER_OFFSET_X

const int HEADER_OFFSET_X = 0
static

Definition at line 101 of file treelistctrl.cpp.

Referenced by wxTreeListHeaderWindow::OnPaint().

◆ HEADER_OFFSET_Y

const int HEADER_OFFSET_Y = 1
static

◆ LINEATROOT

◆ LINEHEIGHT

const int LINEHEIGHT = 10
static

Definition at line 93 of file treelistctrl.cpp.

Referenced by EVT_ERASE_BACKGROUND().

◆ MARGIN

◆ MININDENT

const int MININDENT = 16
static

◆ NO_IMAGE

◆ RENAME_TIMER_TICKS

const int RENAME_TIMER_TICKS = 250
static

Definition at line 106 of file treelistctrl.cpp.

Referenced by wxTreeListMainWindow::OnMouse().

◆ s_treeBeingSorted

wxTreeListMainWindow* s_treeBeingSorted = NULL
static

◆ wxInvalidTreeListColumnInfo

wxTreeListColumnInfo wxInvalidTreeListColumnInfo
static

Definition at line 110 of file treelistctrl.cpp.

Referenced by wxTreeListHeaderWindow::GetColumn().

◆ wxTreeListCtrlNameStr

const wxChar* wxTreeListCtrlNameStr = _T("treelistctrl")

Definition at line 108 of file treelistctrl.cpp.