ToolMap
Loading...
Searching...
No Matches
tmAAttribTree Class Reference
Inheritance diagram for tmAAttribTree:
wxTreeMultiCtrl

Public Member Functions

 tmAAttribTree ()
 Two step constructor.
 
 tmAAttribTree (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTMC_DEFAULT_STYLE, const wxValidator &validator=wxDefaultValidator, const wxString &name=_T("tmAAttribTree"))
 Default constructor.
 
 ~tmAAttribTree ()
 destructor
 
void AddLayerNode (const wxString &layername)
 Add a node for specified layer.
 
bool FindLayerNode (const wxString &layername)
 Search for a given node.
 
tmAAttribCtrlIterateAllCtrl (bool restart=false)
 Iterate all controls.
 
tmAAttribCtrlAddControl (const ProjectDefMemoryFields &fieldinfo)
 Add control into actual node.
 
- Public Member Functions inherited from wxTreeMultiCtrl
 wxTreeMultiCtrl ()
 
 wxTreeMultiCtrl (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTMC_DEFAULT_STYLE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTreeMultiCtrlNameStr)
 
virtual ~wxTreeMultiCtrl ()
 
bool Create (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTMC_DEFAULT_STYLE, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTreeMultiCtrlNameStr)
 
wxTreeMultiItem HitTest (wxPoint const &pt, int &flags)
 
int GetChildrenCount (const wxTreeMultiItem &item)
 
wxTreeMultiItem GetFocus ()
 
void OnDraw (wxDC &dc)
 
wxTreeMultiItem AddRoot (const wxString &caption, const wxString &name=wxEmptyString)
 
wxTreeMultiItem AppendWindow (const wxTreeMultiItem &ParentItem, wxWindow *window=nullptr, const wxString &name=wxEmptyString, wxTreeMultiWindowInfo const &info=wxTreeMultiWindowInfoDefault, int flags=0)
 
wxTreeMultiItem InsertWindow (wxTreeMultiItem const &ParentItem, size_t Position, wxWindow *window=nullptr, wxString const &Name=wxEmptyString, wxTreeMultiWindowInfo const &info=wxTreeMultiWindowInfoDefault, int flags=0)
 
wxTreeMultiItem PrependWindow (wxTreeMultiItem const &ParentItem, wxWindow *window=nullptr, const wxString &name=wxEmptyString, wxTreeMultiWindowInfo const &info=wxTreeMultiWindowInfoDefault, int flags=0)
 
wxTreeMultiItem AppendNode (wxTreeMultiItem const &ParentItem, const wxString &caption=wxEmptyString, const wxString &name=wxEmptyString)
 
wxTreeMultiItem InsertNode (wxTreeMultiItem const &ParentItem, size_t Position, wxString const &caption, wxString const &name)
 
wxTreeMultiItem PrependNode (wxTreeMultiItem const &ParentItem, wxString const &caption=wxEmptyString, wxString const &name=wxEmptyString)
 
bool Delete (wxTreeMultiItem &item)
 
void DeleteAllItems (void)
 
void DeleteChildren (const wxTreeMultiItem &item)
 
void ExpandNodes (bool recursive=false)
 
void CollapseNodes (bool recursive=false)
 
void Expand (const wxTreeMultiItem &item, bool recursive)
 
void Collapse (const wxTreeMultiItem &item, bool recursive)
 
void CollapseAndReset (const wxTreeMultiItem &item)
 
void Fold (const wxTreeMultiItem &item, bool expand=true)
 
size_t GetSelectedItemCount (void) const
 
wxTreeMultiItem GetFirstSelectedItem (void) const
 
wxTreeMultiItem GetLastSelectedItem (void) const
 
wxTreeMultiItem GetSelectedItem (size_t Index) const
 
size_t GetSelectedItemIndex (wxTreeMultiItem const &Item) const
 
void SelectItem (wxTreeMultiItem const &Item, bool UnselectOthers=true, bool ExpandSelection=false)
 
void UnselectAll (void)
 
void Unselect (wxTreeMultiItem const &Item)
 
void Exclude (const wxTreeMultiItem &item)
 
void Include (const wxTreeMultiItem &item)
 
wxTreeMultiItem GetExcludedParent (const wxTreeMultiItem &item)
 
wxTreeMultiItem FindItem (const wxTreeMultiItem &item, const wxString &name, bool ignoreCase=false, bool skipFirst=false)
 
wxTreeMultiItem FindItem (const wxString &name, bool ignoreCase=false)
 
bool GetBooleanValue (int wndId)
 
wxString GetTextValue (int wndId)
 
void SetBooleanValue (int wndId, bool value=true)
 
void SetTextValue (int wndId, const wxString &value=wxEmptyString)
 
wxWindow * GetWindow (const wxTreeMultiItem &item)
 
void SetSelectionValue (int wndId, int sel)
 
int GetSelectionValue (int wndId)
 
void GetSelectionValues (int wndId, wxArrayInt &sels)
 
void SetSpacingY (int spacingY)
 
int GetSpacingY () const
 
wxTreeMultiItem GetFirstRoot (void) const
 
wxTreeMultiItem GetLastRoot (void) const
 
wxTreeMultiItem GetParent (wxTreeMultiItem const &item) const
 
wxTreeMultiItem GetFirstChild (const wxTreeMultiItem &item, int &cookie) const
 
wxTreeMultiItem GetNextChild (const wxTreeMultiItem &item, int &cookie) const
 
wxTreeMultiItem GetLastChild (const wxTreeMultiItem &item) const
 
wxTreeMultiItem GetNextSibling (wxTreeMultiItem const &item) const
 
wxTreeMultiItem GetPrevSibling (wxTreeMultiItem const &item) const
 
wxTreeMultiItem GetNext (wxTreeMultiItem const &item) const
 
wxTreeMultiItem GetPrevious (wxTreeMultiItem const &item) const
 
const wxFont & GetCaptionFont () const
 
void SetCaptionFont (const wxFont &font)
 
void SetCaption (wxTreeMultiItem const &item, const wxString &caption)
 

Constructor & Destructor Documentation

◆ tmAAttribTree() [1/2]

tmAAttribTree::tmAAttribTree ( )

Two step constructor.

Call Create when this constructor is called to build up the tmAAttribTree

Author
Lucien Schreiber (c) CREALP 2009
Date
05 March 2009

◆ tmAAttribTree() [2/2]

tmAAttribTree::tmAAttribTree ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTMC_DEFAULT_STYLE,
const wxValidator &  validator = wxDefaultValidator,
const wxString &  name = _T("tmAAttribTree") 
)

Default constructor.

Author
Lucien Schreiber (c) CREALP 2009
Date
05 March 2009

◆ ~tmAAttribTree()

tmAAttribTree::~tmAAttribTree ( )

destructor

Author
Lucien Schreiber (c) CREALP 2009
Date
05 March 2009

Member Function Documentation

◆ AddControl()

tmAAttribCtrl * tmAAttribTree::AddControl ( const ProjectDefMemoryFields fieldinfo)

Add control into actual node.

Parameters
fieldinfoAll fields info such as Type, name, etc.
Author
Lucien Schreiber (c) CREALP 2009
Date
06 March 2009

◆ AddLayerNode()

void tmAAttribTree::AddLayerNode ( const wxString &  layername)

Add a node for specified layer.

Parameters
layernameThe name of the layer
Author
Lucien Schreiber (c) CREALP 2009
Date
06 March 2009

◆ FindLayerNode()

bool tmAAttribTree::FindLayerNode ( const wxString &  layername)

Search for a given node.

We keep a object for the actual node, using this function set this object to the found node.

Parameters
layernamename of the layer we are searching for
Returns
true if node was found
Author
Lucien Schreiber (c) CREALP 2009
Date
06 March 2009

◆ IterateAllCtrl()

tmAAttribCtrl * tmAAttribTree::IterateAllCtrl ( bool  restart = false)

Iterate all controls.

Parameters
restartread controls from the begining ?
Returns
A valid tmAAttribCtrl pointer (don't destroy) or nullptr if no more controls
Author
Lucien Schreiber (c) CREALP 2009
Date
18 March 2009

The documentation for this class was generated from the following files: