ToolMap
Loading...
Searching...
No Matches
tmsymboldlglinemultiple.h
1/***************************************************************************
2 tmsymboldlgline.h
3 Display Line Symbology dialog
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_SYMBOLDLGLINE_MULTIPLE_H_
20#define _TM_SYMBOLDLGLINE_MULTIPLE_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 <wx/notebook.h>
31#include <wx/spinctrl.h>
32
33#include "tmsymboldlgline.h" // tmSymbolDlg declaration
34
36 public:
37 int m_PanelNo;
38
39 // multiple symbology
40 long m_QueryID;
41 wxColour m_SelColourMultiple;
42 int m_SelShapeMultiple;
43 int m_SelWidthMultiple;
44
45 wxColour m_UnSelColourMultiple;
46 int m_UnSelShapeMultiple;
47 int m_UnSelWidthMultiple;
48
50 m_PanelNo = 0;
51 m_QueryID = wxNOT_FOUND;
52 m_SelColourMultiple = *wxBLUE;
53 m_SelShapeMultiple = 0;
54 m_SelWidthMultiple = 1;
55 m_UnSelColourMultiple = *wxGREEN;
56 m_UnSelShapeMultiple = 0;
57 m_UnSelWidthMultiple = 1;
58 }
59};
60
62 private:
63 wxColourPickerCtrl* m_LineColourCtrl;
64 wxSpinCtrl* m_LineWidthCtrl;
65 wxChoice* m_LinePatternCtrl;
66 tmSliderWithText* m_TransparencySlider;
67
68 wxNotebook* m_SymbologyTypeCtrl;
69 wxChoice* m_MQueryCtrl;
70 wxColourPickerCtrl* m_MSelColourCtrl;
71 wxChoice* m_MSelSymbolCtrl;
72 wxSpinCtrl* m_MSelWidthCtrl;
73 wxColourPickerCtrl* m_MUnSelColourCtrl;
74 wxChoice* m_MUnSelSymbolCtrl;
75 wxSpinCtrl* m_MUnSelWidthCtrl;
76
78
79 void _Init();
80
81 void CreateControlsLine();
82
83 virtual bool TransferDataToWindow();
84
85 virtual bool TransferDataFromWindow();
86
87 DECLARE_DYNAMIC_CLASS(tmSymbolDLGLine)
88
89 public:
92
94
95 tmSymbolDLGLineMultiple(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
96 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE,
97 const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION,
98 const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE, long style = SYMBOL_TMSYMBOLDLG_STYLE);
99
100 bool Create(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
101 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE, const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION,
102 const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE, long style = SYMBOL_TMSYMBOLDLG_STYLE);
103
104 void SetDialogData(const tmSymbolDataLineMultiple& data) {
105 m_DlgData = data;
106 }
107
108 tmSymbolDataLineMultiple GetDialogData() {
109 return m_DlgData;
110 }
111};
112
113#endif
Definition tmsliderwithtxt.h:47
Definition tmsymboldlglinemultiple.h:61
tmSymbolDLGLineMultiple()
Constructors.
Definition tmsymboldlglinemultiple.cpp:20
Definition tmsymboldlgline.h:83
Definition tmsymboldlg.h:55
Definition tmsymboldlglinemultiple.h:35
Definition tmsymboldlgline.h:66