ToolMap
Loading...
Searching...
No Matches
tmsymboldlg.h
1/***************************************************************************
2 tmsymboldlg.h
3 Display 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_SYMBOLDLG_H_
20#define _TM_SYMBOLDLG_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#include <wx/numdlg.h>
30
31#include <wx/clrpicker.h> // colour picker used in all child
32#include <wx/html/htmlwin.h> // html window for metadata
33#include <wx/notebook.h>
34#include <wx/spinctrl.h>
35#include <wx/colordlg.h>
36
37#include "../core/tmcolourpickerctrl.h" // colour picker
38#include "../core/tmsliderwithtxt.h" // slider with textctrl
39#include "tmlayerpropertiesdef.h" // for LoadQueries
40#include "tmsymbolpendef.h" // pen and brush defintions
41
42const int ID_LINESSYMBOLOGY = 10079;
43// const int ID_SYMDLG_NOTEBOOK = 10116;
44const int ID_SYMDLG_PANEL = 10159;
45// const int ID_SYMDLG_INFOTXT = 10215;
46
47#define SYMBOL_TMSYMBOLDLG_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
48#define SYMBOL_TMSYMBOLDLG_TITLE _("Symbology")
49#define SYMBOL_TMSYMBOLDLG_IDNAME ID_LINESSYMBOLOGY
50#define SYMBOL_TMSYMBOLDLG_SIZE wxSize(400, 300)
51#define SYMBOL_TMSYMBOLDLG_POSITION wxDefaultPosition
52
53class DataBaseTM;
54
55class tmSymbolDLG : public wxDialog {
56 private:
57 DataBaseTM* m_pDB;
58
59 void _Init();
60
61 void CreateControlsBasic();
62
63 DECLARE_DYNAMIC_CLASS(tmSymbolDLG)
64
65 protected:
66 wxPanel* m_SymbolPanel;
67
68 // wxHtmlWindow * m_MetaDataWnd;
69 void SetSizeHint();
70
71 wxArrayLong m_QueriesId;
72
73 void _LoadQueries(wxChoice* choicectrl, TOC_GENERIC_NAME toctarget);
74
75 public:
78
80
81 tmSymbolDLG(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
82 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE, const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION,
83 const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE, long style = SYMBOL_TMSYMBOLDLG_STYLE);
84
85 bool Create(wxWindow* parent, wxWindowID id = SYMBOL_TMSYMBOLDLG_IDNAME,
86 const wxString& caption = SYMBOL_TMSYMBOLDLG_TITLE, const wxPoint& pos = SYMBOL_TMSYMBOLDLG_POSITION,
87 const wxSize& size = SYMBOL_TMSYMBOLDLG_SIZE, long style = SYMBOL_TMSYMBOLDLG_STYLE);
88
89 void SetDatabase(DataBaseTM* database) {
90 m_pDB = database;
91 }
92
93 // void SetMetaData (const wxString & metadata);
94 // void CreateControlsLine();
95 /*void CreateControlsPoint();
96 void CreateControlsPolygon();
97 void CreateControlsRaster();*/
98};
99
100#endif
Definition database_tm.h:80
Definition tmsymboldlg.h:55
tmSymbolDLG()
Constructors.
Definition tmsymboldlg.cpp:26