ToolMap
Loading...
Searching...
No Matches
queries_panel_dlg.h
1/***************************************************************************
2 queries_panel_dlg.h
3 Display dialog for queries panel (simple version)
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_QUERIES_PANEL_DLG_H_
20#define _TM_QUERIES_PANEL_DLG_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/statline.h> // for static_line
31
32#include "../gis/tmlayerpropertiesdef.h" // for target definition
33
34/***************************************************************************/
43class QueriesListDLG : public wxDialog {
44 private:
45 protected:
46 wxTextCtrl* m_QueriesName;
47 wxTextCtrl* m_QueriesDescription;
48 wxChoice* m_Target;
49
50 public:
51 QueriesListDLG(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Edit queries"),
52 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
53 long style = wxRESIZE_BORDER | wxDEFAULT_DIALOG_STYLE);
54
56
57 // query name
58 wxString GetQueriesName() {
59 return m_QueriesName->GetValue();
60 }
61
62 void SetQueriesName(const wxString& name) {
63 m_QueriesName->SetValue(name);
64 }
65
66 // query description
67 wxString GetQueriesDescription() {
68 return m_QueriesDescription->GetValue();
69 }
70
71 void SetQueriesDescription(const wxString& desc) {
72 m_QueriesDescription->SetValue(desc);
73 }
74
75 // query target
76 int GetQueriesTarget() {
77 return m_Target->GetSelection();
78 }
79
80 void SetQueriesTarget(int toc_generic_name) {
81 m_Target->SetSelection(toc_generic_name);
82 }
83};
84
85#endif
Queries panel dialog.
Definition queries_panel_dlg.h:43
~QueriesListDLG()
Destructor.
Definition queries_panel_dlg.cpp:106