00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __ORDERDLG_H
00020 #define __ORDERDLG_H
00021
00022 #ifndef WX_PRECOMP
00023 #include "wx/wx.h"
00024 #endif
00025
00026
00027
00028
00029 class A2DEDITORDLLEXP a2dDragListBox: public wxListBox
00030
00031 {
00032
00033 public:
00034
00035 a2dDragListBox(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size,
00036 int n,const wxString choices[],long style);
00037
00038 void OnMouseLeftDown(class wxMouseEvent &);
00039 void OnMouseLeftUp(class wxMouseEvent &);
00040 void CmListBox(wxCommandEvent&);
00041
00042
00043 DECLARE_EVENT_TABLE()
00044
00045 int m_selection;
00046
00047 };
00048
00049
00050
00051 class A2DEDITORDLLEXP a2dLayerDialog: public wxDialog
00052 {
00053 public:
00054
00055
00056 a2dLayerDialog( wxWindow* parent, a2dLayers* layersetup, bool onOrder, bool modal,
00057 const wxString& title, const wxString& name = wxT("layer_dlg") );
00058
00059
00060 ~a2dLayerDialog();
00061
00062
00063 void Init( a2dLayers* layersetup );
00064
00065 wxUint16 GetSelectedLayer() { return m_layerselected; }
00066 void SetSelectedLayer( wxUint16 layerselected ) { m_layerselected = layerselected; }
00067
00068 protected:
00069
00070
00071 void CmOk(wxCommandEvent &);
00072
00073
00074 void CmCancel(wxCommandEvent &);
00075
00076
00077
00078 void CmListBox(wxCommandEvent &);
00079
00080
00081 void OnCloseWindow(wxCloseEvent& event);
00082
00083 void OnChangedDocument( a2dCommandEvent& event );
00084
00085 void OnComEvent( a2dComEvent& event );
00086
00087 wxButton* m_buttonOK;
00088
00089 wxButton* m_buttonCANCEL;
00090
00091 wxListBox* m_listbox;
00092
00093
00094 a2dSmrtPtr<a2dLayers> m_layersetup;
00095
00096
00097 wxUint16 m_layerselected;
00098
00099
00100 bool m_onOrder;
00101
00102
00103 bool m_modal;
00104
00105
00106 DECLARE_EVENT_TABLE()
00107
00108 };
00109
00110
00111
00112
00113 class A2DEDITORDLLEXP a2dLayerOrderDialog: public wxDialog
00114 {
00115 public:
00116
00117
00118 a2dLayerOrderDialog( wxWindow* parent, a2dLayers* layersetup, const wxString& title, long style = 0, const wxString& name = wxT("layer_order_dlg") );
00119
00120
00121 ~a2dLayerOrderDialog();
00122
00123
00124 void Init( a2dLayers* layersetup );
00125
00126
00127 void StoreOrder();
00128
00129 protected:
00130
00131
00132 void CmOk(wxCommandEvent &);
00133
00134
00135 void CmCancel(wxCommandEvent &);
00136
00137
00138 void CmUp(wxCommandEvent &);
00139
00140
00141 void CmDown(wxCommandEvent &);
00142
00143
00144 void CmShow(wxCommandEvent &);
00145
00146
00147
00148 void CmListBox(wxCommandEvent &);
00149
00150
00151 void OnCloseWindow(wxCloseEvent& event);
00152
00153 void OnChangedDocument( a2dCommandEvent& event );
00154
00155 void OnComEvent( a2dComEvent& event );
00156
00157 wxButton* m_buttonOK;
00158
00159 wxButton* m_buttonCANCEL;
00160
00161 a2dDragListBox* m_listbox;
00162
00163 wxButton* m_buttonUP;
00164
00165 wxButton* m_buttonDOWN;
00166
00167 wxButton* m_buttonSHOW;
00168
00169
00170 a2dSmrtPtr<a2dLayers> m_layersetup;
00171
00172
00173 DECLARE_EVENT_TABLE()
00174
00175 };
00176
00177 #endif