ToolMap
Loading...
Searching...
No Matches
tmsymboldlgraster.h
1/***************************************************************************
2 tmsymboldlgraster.h
3 Display raster 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_SYMBOLDLGRASTER_H_
20#define _TM_SYMBOLDLGRASTER_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 "tmsymboldlg.h" // tmSymbolDlg declaration
34
35const int ID_SYMDLGRASTER_PANEL = 10216;
36const int ID_SYMDLGRASTER_USE_TRANSPARENCY_COLOR = 10082;
37const int ID_SYMDLGRASTER_TRANSPARENCY_COLOR = 10087;
38const int ID_SYMDLGRASTER_TRANSPARENCY = 10086;
39
41 int m_GlobalTransparency;
42 bool m_DoMultiplyRaster;
43};
44
46 private:
47 tmSliderWithText* m_TransparencySlider;
48 wxCheckBox* m_MultiplyCtrl;
49
50 tmSymbolDataRaster m_DlgData;
51
52 void _Init();
53
54 void CreateControls();
55
56 virtual bool TransferDataToWindow();
57
58 virtual bool TransferDataFromWindow();
59
60 DECLARE_DYNAMIC_CLASS(tmSymbolDLGRaster)
61
62 DECLARE_EVENT_TABLE()
63
64 public:
67
69
70 tmSymbolDLGRaster(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
71 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE,
72 const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION, const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE,
73 long style = SYMBOL_TMSYMBOLDLG_STYLE);
74
75 bool Create(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
76 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE, const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION,
77 const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE, long style = SYMBOL_TMSYMBOLDLG_STYLE);
78
79 void SetDialogData(const tmSymbolDataRaster& data) {
80 m_DlgData = data;
81 }
82
83 tmSymbolDataRaster GetDialogData() {
84 return m_DlgData;
85 }
86};
87
88#endif
Definition tmsliderwithtxt.h:47
Definition tmsymboldlgraster.h:45
tmSymbolDLGRaster()
Constructors.
Definition tmsymboldlgraster.cpp:26
Definition tmsymboldlg.h:55
Definition tmsymboldlgraster.h:40