8 #ifndef __BuildingDlg_H__
9 #define __BuildingDlg_H__
11 #include "wx/colourdata.h"
14 #include "vtui/AutoDialog.h"
15 #include "vtdata/Building.h"
16 #include "vtdata/StructArray.h"
28 BuildingDlg( wxWindow *parent, wxWindowID
id,
const wxString &title,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxDEFAULT_DIALOG_STYLE );
34 wxTextCtrl* GetFeatures() {
return (wxTextCtrl*) FindWindow( ID_FEATURES ); }
35 wxButton* GetLevelCopy() {
return (wxButton*) FindWindow( ID_LEVEL_COPY ); }
36 wxButton* GetLevelDel() {
return (wxButton*) FindWindow( ID_LEVEL_DEL ); }
37 wxButton* GetLevelDown() {
return (wxButton*) FindWindow( ID_LEVEL_DOWN ); }
38 wxButton* GetLevelUp() {
return (wxButton*) FindWindow( ID_LEVEL_UP ); }
39 wxStaticBitmap* GetColorBitmap1() {
return (wxStaticBitmap*) FindWindow( ID_COLOR1 ); }
40 wxStaticBitmap* GetColorBitmap2() {
return (wxStaticBitmap*) FindWindow( ID_COLOR2 ); }
41 wxListBox* GetLevelCtrl() {
return (wxListBox*) FindWindow( ID_LEVEL ); }
42 wxListBox* GetEdgeCtrl() {
return (wxListBox*) FindWindow( ID_EDGE ); }
43 wxChoice* GetFacadeChoice() {
return (wxChoice*) FindWindow( ID_FACADE ); }
50 void RefreshLevelsBox();
51 void RefreshEdgesBox();
52 void HighlightSelectedLevel();
53 void HighlightSelectedEdge();
54 void UpdateMaterialControl();
55 void UpdateColorControl();
56 void UpdateFeatures();
59 void DeleteCurrentLevel();
60 void CopyCurrentLevel();
61 void SetupValidators();
62 bool AskForTypeAndSlope(
bool bAll, RoofType &eType,
int &iSlope);
63 void AdjustDialogForEdges();
66 virtual void EnableRendering(
bool bEnable) {}
69 virtual void Modified() {}
82 wxString m_strMaterial1;
83 wxString m_strMaterial2;
84 wxString m_strEdgeSlopes;
85 wxString m_strFeatures;
87 static wxColourData s_ColorData;
90 wxStaticBitmap *m_pColorBitmapControl;
91 wxListBox *m_pLevelListBox;
92 wxListBox *m_pEdgeListBox;
99 void OnChoiceFacade( wxCommandEvent &
event );
100 void OnVertOffset( wxCommandEvent &event );
101 void OnFeatDoor( wxCommandEvent &event );
102 void OnFeatWindow( wxCommandEvent &event );
103 void OnFeatWall( wxCommandEvent &event );
104 void OnFeatClear( wxCommandEvent &event );
105 void OnEdgeSlope( wxCommandEvent &event );
106 void OnLevelDown( wxCommandEvent &event );
107 void OnEdges( wxCommandEvent &event );
108 void OnLevelDelete( wxCommandEvent &event );
109 void OnLevelUp( wxCommandEvent &event );
110 void OnLevelCopy( wxCommandEvent &event );
111 void OnStoryHeight( wxCommandEvent &event );
112 void OnSpinStories( wxSpinEvent &event );
113 void OnColor1( wxCommandEvent &event );
114 virtual void OnOK( wxCommandEvent &event );
115 void OnCloseWindow(wxCloseEvent& event);
116 void OnInitDialog(wxInitDialogEvent& event);
117 void OnLevel( wxCommandEvent &event );
118 void OnEdge( wxCommandEvent &event );
119 void OnSetRoofType( wxCommandEvent &event );
120 void OnSetEdgeSlopes( wxCommandEvent &event );
121 void OnSetMaterial( wxCommandEvent &event );
122 void OnCharHook( wxKeyEvent &event );
125 DECLARE_EVENT_TABLE()
128 #endif // __BuildingDlg_H__