ToolMap
Loading...
Searching...
No Matches
tmaattribtree.h
1/***************************************************************************
2 tmaattribtree.h
3 Definition of advanced attribution controls such as the tmAAttribTree
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17// comment doxygen
18
19#ifndef _TM_AATTRIBTREE_H_
20#define _TM_AATTRIBTREE_H_
21
22// For compilers that support precompilation, includes "wx/wx.h".
23#include <wx/wxprec.h>
24
25// Include wxWidgets' headers
26#ifndef WX_PRECOMP
27#include <wx/wx.h>
28#endif
29
30#include "../components/wxtreemultictrl/TreeMultiItemWindow.h"
31#include "../components/wxtreemultictrl/wxTreeMultiCtrl.h" // for wxTreeMultiCtrl
32#include "../core/projectdefmemory.h" // for fields definitions
33#include "tmaattribctrls.h" // for tree ctrls
34
36 private:
37 // member
38 wxTreeMultiItem m_ActualNode;
39
40 protected:
41 public:
43
44 tmAAttribTree(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxDefaultSize, long style = wxTMC_DEFAULT_STYLE,
46 const wxValidator& validator = wxDefaultValidator, const wxString& name = _T("tmAAttribTree"));
47
49
50 // layer operations
51 void AddLayerNode(const wxString& layername);
52
53 bool FindLayerNode(const wxString& layername);
54
55 tmAAttribCtrl* IterateAllCtrl(bool restart = false);
56
57 // attributes operations
59};
60
61#endif
Storing Fields property in memory.
Definition projectdefmemory.h:198
Abstract class for tmAAttribTree Items.
Definition tmaattribctrls.h:50
Definition tmaattribtree.h:35
tmAAttribCtrl * IterateAllCtrl(bool restart=false)
Iterate all controls.
Definition tmaattribtree.cpp:83
bool FindLayerNode(const wxString &layername)
Search for a given node.
Definition tmaattribtree.cpp:68
void AddLayerNode(const wxString &layername)
Add a node for specified layer.
Definition tmaattribtree.cpp:54
tmAAttribCtrl * AddControl(const ProjectDefMemoryFields &fieldinfo)
Add control into actual node.
Definition tmaattribtree.cpp:107
~tmAAttribTree()
destructor
Definition tmaattribtree.cpp:46
tmAAttribTree()
Two step constructor.
Definition tmaattribtree.cpp:28
This is the visual control, which will contain all the logic for the tree mechanism.
Definition wxTreeMultiCtrl.h:541
An intermediate class which is used to return as 'item' value for the wxTreeMultiCtrl....
Definition wxTreeMultiCtrl.h:173