style,
constwxValidator& validator,
62style = style & ~wxTR_MULTIPLE;
63wxTreeCtrl::Create(parent,
id, pos,
size, style, validator, name);
65wxImageList * imglist =
newwxImageList(13, 13);
70 wxT(
"tree_unchecked_icon.png"));
72 wxT(
"tree_tristate_icon.png"));
74 wxT(
"tree_checked_icon.png"));
85imglist->Add(wxArtProvider::GetBitmap(
wxT(
"treectrl_ex::notchecked")));
86imglist->Add(wxArtProvider::GetBitmap(
wxT(
"treectrl_ex::halfchecked")));
87imglist->Add(wxArtProvider::GetBitmap(
wxT(
"treectrl_ex::checked")));
93wxTreeCtrl::SetImageList(imglist);
99 deletewxTreeCtrl::GetImageList();
105wxTreeItemId
id= HitTest(event.GetPosition(),
flags);
106 if(
id.IsOk() && (
flags& wxTREE_HITTEST_ONITEMICON)) {
116 if(event.GetKeyCode() == WXK_SPACE && GetSelection().IsOk()) {
170wxTreeItemIdValue cookie;
171 for(wxTreeItemId cid = GetFirstChild(
id, cookie); cid.IsOk(); cid=GetNextChild(
id, cookie)){
175wxTreeCtrl::SetItemImage(
id,
state);
182wxTreeItemId parent = GetItemParent(
id);
187wxTreeItemIdValue cookie;
190 boolbSomethingChecked =
false;
192 for(wxTreeItemId cid = GetFirstChild(parent, cookie); cid.IsOk(); cid=GetNextChild(parent, cookie)){
193bSomethingChecked |= (wxTreeCtrl::GetItemImage(cid) ==
TREE_EX_CHECKED);
200 if(bSomethingChecked) {
203wxTreeCtrl::SetItemImage(parent, parent_state);
233 for(
size_tix = 0; ix < ids.size(); ix++ ){
241wxTreeItemId root = GetRootItem();
252wxTreeItemIdValue cookie;
253 for(wxTreeItemId cid = GetFirstChild(item, cookie); cid.IsOk(); cid=GetNextChild(item, cookie)){
bool GetCheck(const wxTreeItemId &item)
TTreeState x_ProcessUpstream(const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF)
void x_SetState(const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF)
TTreeState x_ProcessDownstream(const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF)
void OnKeyDown(wxKeyEvent &event)
void SetCheck(const wxTreeItemId &item, bool bcheck=true)
void SetCheckMultiple(const wxArrayTreeItemIds &ids)
void x_GetCheckedMultiple(wxArrayTreeItemIds &ids, wxTreeItemId &item) const
TTreeState x_ModifyState(const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF)
void OnLeftDown(wxMouseEvent &event)
void CheckAll(bool bcheck=true)
TTreeState x_ValidateState(const wxTreeItemId &id, TTreeState state=TREE_EX_UNDEF)
size_t GetCheckedMultiple(wxArrayTreeItemIds &ids) const
void OnFocus(wxFocusEvent &event)
virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxFileArtProvider * GetDefaultFileArtProvider()
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4