Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
SelectDlg.h
1 //
2 // Name: SelectDlg.h
3 //
4 // Copyright (c) 2002-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __SelectDlg_H__
9 #define __SelectDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 
13 class vtRawLayer;
14 
15 // WDR: class declarations
16 
17 //----------------------------------------------------------------------------
18 // SelectDlg
19 //----------------------------------------------------------------------------
20 
21 class SelectDlg: public SelectDlgBase
22 {
23 public:
24  // constructors and destructors
25  SelectDlg( wxWindow *parent, wxWindowID id, const wxString &title,
26  const wxPoint& pos = wxDefaultPosition,
27  const wxSize& size = wxDefaultSize,
28  long style = wxDEFAULT_DIALOG_STYLE );
29 
30  // WDR: method declarations for SelectDlg
31  wxComboBox* GetComboValue() { return (wxComboBox*) FindWindow( ID_COMBO_VALUE ); }
32  wxChoice* GetCondition() { return (wxChoice*) FindWindow( ID_CONDITION ); }
33  wxListBox* GetField() { return (wxListBox*) FindWindow( ID_FIELD ); }
34  void FillValuesControl();
35  void SetRawLayer(vtRawLayer *pRL);
36 
37  int m_iField;
38  int m_iCondition;
39  wxString m_strValue;
40 
41 private:
42  // WDR: member variable declarations for SelectDlg
43  vtRawLayer *m_pLayer;
44  bool m_bSetting;
45  int m_iFauxFields;
46 
47 private:
48  // WDR: handler declarations for SelectDlg
49  void OnChoiceField( wxCommandEvent &event );
50  void OnInitDialog(wxInitDialogEvent& event);
51  void OnOK( wxCommandEvent &event );
52 
53 private:
54  DECLARE_EVENT_TABLE()
55 };
56 
57 
58 
59 
60 #endif