00001
00002
00003
00004
00005
00006
00007 #ifndef LAYERPROPS_H
00008 #define LAYERPROPS_H
00009
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013
00014 #include <wx/colordlg.h>
00015
00016 #define wxTEST_GENERIC_DIALOGS_IN_MSW 0
00017
00018 #if defined(__WXMSW__) && wxTEST_GENERIC_DIALOGS_IN_MSW
00019
00020 #include <wx/generic/colrdlgg.h>
00021
00022 #endif
00023
00026
00027
00031
00032 class LayerPropertiesDialog : public wxDialog
00033 {
00034 public:
00035
00036
00037 LayerPropertiesDialog(GDSMainWindow* parent,char* title,long style =0 ,char* name = "Layer_Properties_Dialog");
00038
00039
00040 ~LayerPropertiesDialog();
00041
00042
00043 Setup* Get_New_Setup();
00044
00045
00046 void Redraw();
00047
00048
00049 void FillControls(int start);
00050
00051
00052 void StoreControls(int start);
00053
00054
00055 void SetupWindow(Setup* prev_setup);
00056
00057
00058 void CmHide();
00059
00060
00061 void CmRedraw();
00062
00063
00064 void CmCancel();
00065
00066 void CmVisible();
00067
00068
00069 void CmRead();
00070
00071
00072 void CmPrev();
00073
00074
00075 void CmNext();
00076
00077
00078 void CmSelect();
00079
00080
00081 Setup* _prev_setup;
00082
00083
00084 Setup* _back_setup;
00085
00086
00087 Setup* _setup;
00088
00089
00090 int _startvalue;
00091
00092
00093 wxButton* _buttonHIDE;
00094
00095
00096 wxButton* _buttonCANCEL;
00097
00098
00099 wxButton* _buttonVISIBLE;
00100
00101
00102 wxButton* _buttonREAD;
00103
00104
00105 wxButton* _buttonSELECT;
00106
00107
00108 wxButton* _buttonPREV;
00109
00110
00111 wxButton* _buttonNEXT;
00112
00113
00114 wxButton* _buttonREDRAW;
00115
00116 protected:
00117
00118 void Update();
00119
00120 void OnChar(wxKeyEvent& event);
00121
00122 void OnCharHook(wxKeyEvent& event);
00123
00124 void Cm_but(wxEvent& event);
00125
00126 void Cm_B_BitB(wxEvent& event);
00127
00128
00129 void Cm_F_BitB(wxEvent& event);
00130
00131
00132 void Cm_P_BitB(wxEvent& event);
00133
00134
00135 wxColour* ltowxc(long colour);
00136
00137
00138 long wxctol(wxColour colour);
00139
00140
00141 GDSMainWindow* _parent;
00142
00143
00144 wxPanel* _panel1;
00145
00146
00147 wxStaticBox* _groupbox1;
00148 wxStaticBox* _groupbox2;
00149
00150
00151 wxStaticText* _numberbox[10];
00152
00153
00154 wxTextCtrl* _namebox[10];
00155
00156
00157 wxCheckBox* _availablebox[10];
00158
00159
00160 wxCheckBox* _visiblebox[10];
00161
00162
00163 wxCheckBox* _selectablebox[10];
00164
00165
00166 wxCheckBox* _readlayerbox[10];
00167
00168
00169 wxBitmapButton* _fillbut[10];
00170
00171
00172 wxBitmapButton* _borderbut[10];
00173
00174
00175 wxBitmapButton* _patternbut[10];
00176
00177
00178 wxTextCtrl* _gdsinmap[10];
00179
00180
00181 wxTextCtrl* _gdsoutmap[10];
00182
00183
00184 wxStaticText* _numberlabel;
00185
00186
00187 wxStaticText* _namelabel;
00188
00189
00190 wxStaticText* _availablelabel;
00191
00192
00193 wxStaticText* _visiblelabel;
00194
00195
00196 wxStaticText* _selectablelabel;
00197
00198
00199 wxStaticText* _readlayerlabel;
00200
00201
00202 wxStaticText* _filllabel;
00203
00204
00205 wxStaticText* _borderlabel;
00206
00207
00208 wxStaticText* _patternlabel;
00209
00210
00211 wxStaticText* _mappinglabel;
00212
00213
00214 wxBitmap* _f_bitm[10];
00215
00216
00217 wxBitmap* _b_bitm[10];
00218
00219
00220 wxBitmap* _p_bitm[10];
00221
00222
00223 PatternDialog* _patternDialog;
00224
00225
00226 wxBrush* _brush;
00227
00228
00229 wxColourData* _cdata;
00230
00231
00232 wxColourDialog* _cd;
00233
00234
00235 DECLARE_EVENT_TABLE()
00236
00237
00238 };
00239
00240 #endif
layprops.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . --