15#ifndef _TMSYMBOLRULE_H_
16#define _TMSYMBOLRULE_H_
26#include <wx/clrpicker.h>
28#include "../components/wxserialize/tmserialize.h"
29#include "tmlayerpropertiesdef.h"
37const int ID_SYMBOLEDIT_COLORCTRL = 10370;
41 TM_GIS_SPATIAL_TYPES m_SpatialType;
42 wxString m_AttributFilter;
47 int _GetRandomNumberForColor();
49 tmSymbolVector* _NewSymbolVectorBasedOnSpatType(TM_GIS_SPATIAL_TYPES spatialtype);
64 inline const TM_GIS_SPATIAL_TYPES GetSpatialType()
const;
66 inline const bool IsActive()
const;
68 void SetActive(
bool value);
70 inline const wxString GetAttributFilter()
const;
72 void SetAttributFilter(wxString value);
74 inline const wxString GetRuleName()
const;
76 void SetRuleName(wxString value);
78 void SetRandomColor();
80 static void InitRandomGenerator();
87inline const TM_GIS_SPATIAL_TYPES tmSymbolRule::GetSpatialType()
const {
91inline const bool tmSymbolRule::IsActive()
const {
95inline const wxString tmSymbolRule::GetAttributFilter()
const {
96 return m_AttributFilter;
99inline const wxString tmSymbolRule::GetRuleName()
const {
116 tmSymbolRuleArray m_Rules;
118 int m_DlgSelectedPanel;
119 wxString m_DlgSelectedFieldname;
129 inline tmSymbolRuleArray* GetRulesRef();
131 bool ShowSymbolRuleDlg(wxWindow* parent,
const wxPoint& position);
135 wxString GetFieldName() {
136 return m_DlgSelectedFieldname;
144 static void RuleArrayClear(tmSymbolRuleArray* rules);
146 static void RuleArrayCopy(
const tmSymbolRuleArray* srcrules, tmSymbolRuleArray* dstrules);
149inline tmSymbolRuleArray* tmSymbolRuleManager::GetRulesRef() {
162 wxButton* m_ColourCtrl;
163 wxTextCtrl* m_NameCtrl;
164 wxTextCtrl* m_AttributeCtrl;
165 wxCheckBox* m_EnabledCtrl;
167 void _CreateControls();
169 virtual bool TransferDataFromWindow();
171 virtual bool TransferDataToWindow();
173 void OnSymbologyEdit(wxCommandEvent& event);
175 DECLARE_EVENT_TABLE();
179 const wxString& caption = _(
"Edit Symbology"),
const wxPoint& pos = wxDefaultPosition,
180 const wxSize& size = wxDefaultSize);
187inline tmSymbolRule* tmSymbolRuleEdit_DLG::GetRule()
const {
Storing object of layer type.
Definition tmlayerproperties.h:47
Definition tmserialize.h:36
Definition tmsymboldlg.h:55
Edit rule symbology dialog.
Definition tmsymbolrule.h:158
Symbol Rule manager.
Definition tmsymbolrule.h:114
Definition tmsymbolrule.h:39
Definition tmsymbolvector.h:29