NCBI C++ ToolKit
|
Search Toolkit Book for CwxTreeCtrlEx
#include <gui/widgets/wx/treectrl_ex.hpp>
Public Types | |
enum | TTreeState { TREE_EX_UNDEF =-1 , TREE_EX_UNCHECKED = 0 , TREE_EX_THREESTATE = 1 , TREE_EX_CHECKED = 2 } |
Public Member Functions | |
CwxTreeCtrlEx (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTreeCtrlNameStr) | |
~CwxTreeCtrlEx () | |
void | CheckAll (bool bcheck=true) |
void | SetCheck (const wxTreeItemId &item, bool bcheck=true) |
bool | GetCheck (const wxTreeItemId &item) |
size_t | GetCheckedMultiple (wxArrayTreeItemIds &ids) const |
void | SetCheckMultiple (const wxArrayTreeItemIds &ids) |
Protected Member Functions | |
void | OnLeftDown (wxMouseEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
void | OnFocus (wxFocusEvent &event) |
void | x_SetState (const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF) |
TTreeState | x_ModifyState (const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF) |
TTreeState | x_ValidateState (const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF) |
TTreeState | x_ProcessDownstream (const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF) |
TTreeState | x_ProcessUpstream (const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF) |
void | x_GetCheckedMultiple (wxArrayTreeItemIds &ids, wxTreeItemId &item) const |
DECLARE_EVENT_TABLE () | |
Definition at line 44 of file treectrl_ex.hpp.
Enumerator | |
---|---|
TREE_EX_UNDEF | |
TREE_EX_UNCHECKED | |
TREE_EX_THREESTATE | |
TREE_EX_CHECKED |
Definition at line 47 of file treectrl_ex.hpp.
CwxTreeCtrlEx::CwxTreeCtrlEx | ( | wxWindow * | parent, |
wxWindowID | id = -1 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = wxTreeCtrlNameStr |
||
) |
Definition at line 57 of file treectrl_ex.cpp.
References GetDefaultFileArtProvider(), wxFileArtProvider::RegisterFileAlias(), ncbi::grid::netcache::search::fields::size, and wxT.
CwxTreeCtrlEx::~CwxTreeCtrlEx | ( | ) |
Definition at line 97 of file treectrl_ex.cpp.
Definition at line 216 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, TREE_EX_UNCHECKED, and x_SetState().
Referenced by CFeatureCheckPanel::x_InitTree().
|
protected |
Definition at line 226 of file treectrl_ex.cpp.
References TREE_EX_CHECKED.
Referenced by CFeatureCheckPanel::x_AccessState(), and CFeatureCheckPanel::x_GetSelections().
size_t CwxTreeCtrlEx::GetCheckedMultiple | ( | wxArrayTreeItemIds & | ids | ) | const |
Definition at line 238 of file treectrl_ex.cpp.
References x_GetCheckedMultiple().
|
protected |
Definition at line 210 of file treectrl_ex.cpp.
|
protected |
Definition at line 114 of file treectrl_ex.cpp.
References x_SetState().
|
protected |
Definition at line 102 of file treectrl_ex.cpp.
References flags, and x_SetState().
Definition at line 221 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, TREE_EX_UNCHECKED, and x_SetState().
Referenced by CFeatureCheckPanel::x_AccessState(), and CFeatureCheckPanel::x_SetSelections().
void CwxTreeCtrlEx::SetCheckMultiple | ( | const wxArrayTreeItemIds & | ids | ) |
Definition at line 231 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, and x_SetState().
|
protected |
Definition at line 246 of file treectrl_ex.cpp.
References TREE_EX_CHECKED.
Referenced by GetCheckedMultiple().
|
protected |
Definition at line 128 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, TREE_EX_THREESTATE, TREE_EX_UNCHECKED, and TREE_EX_UNDEF.
Referenced by x_ProcessDownstream(), and x_SetState().
|
protected |
Definition at line 166 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, TREE_EX_UNCHECKED, and x_ModifyState().
Referenced by x_ValidateState().
|
protected |
Definition at line 180 of file treectrl_ex.cpp.
References TREE_EX_CHECKED, TREE_EX_THREESTATE, and TREE_EX_UNCHECKED.
Referenced by x_ValidateState().
|
protected |
Definition at line 123 of file treectrl_ex.cpp.
References x_ModifyState(), and x_ValidateState().
Referenced by CheckAll(), OnKeyDown(), OnLeftDown(), SetCheck(), and SetCheckMultiple().
|
protected |
Definition at line 159 of file treectrl_ex.cpp.
References x_ProcessDownstream(), and x_ProcessUpstream().
Referenced by x_SetState().