Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
VehicleDlg.h
1 //
2 // Name: VehicleDlg.h
3 //
4 // Copyright (c) 2006-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __VehicleDlg_H__
9 #define __VehicleDlg_H__
10 
11 #include "wx/colourdata.h"
12 
13 #include "EnviroUI.h"
14 #include "../PlantingOptions.h"
15 
16 // WDR: class declarations
17 
18 //----------------------------------------------------------------------------
19 // VehicleDlg
20 //----------------------------------------------------------------------------
21 
23 {
24 public:
25  // constructors and destructors
26  VehicleDlg( wxWindow *parent, wxWindowID id, const wxString &title,
27  const wxPoint& pos = wxDefaultPosition,
28  const wxSize& size = wxDefaultSize,
29  long style = wxDEFAULT_DIALOG_STYLE );
30 
31  void UpdateColorControl();
32  void UpdateEnabling();
33  void ItemChanged();
34 
35  // public attributes
36  VehicleOptions m_options;
37 
38  // WDR: method declarations for VehicleDlg
39  wxButton* GetSetColor() { return (wxButton*) FindWindow( ID_SET_VEHICLE_COLOR ); }
40  wxStaticBitmap* GetColor() { return (wxStaticBitmap*) FindWindow( ID_COLOR3 ); }
41  wxChoice* GetChoice() { return (wxChoice*) FindWindow( ID_CHOICE_VEHICLES ); }
42 
43 private:
44  // WDR: member variable declarations for VehicleDlg
45  wxColourData m_ColorData;
46 
47 private:
48  // WDR: handler declarations for VehicleDlg
49  void OnChoiceVehicle( wxCommandEvent &event );
50  void OnSetColor( wxCommandEvent &event );
51  void OnInitDialog(wxInitDialogEvent& event);
52 
53 private:
54  DECLARE_EVENT_TABLE()
55 };
56 
57 #endif // __VehicleDlg_H__
58