A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/treectrl__ex_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/wx/treectrl_ex.cpp Source File

41 #include <wx/msgdlg.h> 42 #include <wx/filedlg.h> 43 #include <wx/imaglist.h> 59  long

style,

const

wxValidator& validator,

62

style = style & ~wxTR_MULTIPLE;

63

wxTreeCtrl::Create(parent,

id

, pos,

size

, style, validator, name);

65

wxImageList * imglist =

new

wxImageList(13, 13);

70  wxT

(

"tree_unchecked_icon.png"

));

72  wxT

(

"tree_tristate_icon.png"

));

74  wxT

(

"tree_checked_icon.png"

));

85

imglist->Add(wxArtProvider::GetBitmap(

wxT

(

"treectrl_ex::notchecked"

)));

86

imglist->Add(wxArtProvider::GetBitmap(

wxT

(

"treectrl_ex::halfchecked"

)));

87

imglist->Add(wxArtProvider::GetBitmap(

wxT

(

"treectrl_ex::checked"

)));

93

wxTreeCtrl::SetImageList(imglist);

99  delete

wxTreeCtrl::GetImageList();

105

wxTreeItemId

id

= HitTest(event.GetPosition(),

flags

);

106  if

(

id

.IsOk() && (

flags

& wxTREE_HITTEST_ONITEMICON)) {

116  if

(event.GetKeyCode() == WXK_SPACE && GetSelection().IsOk()) {

170

wxTreeItemIdValue cookie;

171  for

(wxTreeItemId cid = GetFirstChild(

id

, cookie); cid.IsOk(); cid=GetNextChild(

id

, cookie)){

175

wxTreeCtrl::SetItemImage(

id

,

state

);

182

wxTreeItemId parent = GetItemParent(

id

);

187

wxTreeItemIdValue cookie;

190  bool

bSomethingChecked =

false

;

192  for

(wxTreeItemId cid = GetFirstChild(parent, cookie); cid.IsOk(); cid=GetNextChild(parent, cookie)){

193

bSomethingChecked |= (wxTreeCtrl::GetItemImage(cid) ==

TREE_EX_CHECKED

);

200  if

(bSomethingChecked) {

203

wxTreeCtrl::SetItemImage(parent, parent_state);

233  for

(

size_t

ix = 0; ix < ids.size(); ix++ ){

241

wxTreeItemId root = GetRootItem();

252

wxTreeItemIdValue 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