Main Page Class Hierarchy Compound List File List Compound Members

# layprops.h

    00001
    00002
    00003 /*
    00004  * Definition of class for dialog to specify the layerproperties.
    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 //:defenition
    00031
    00032 class LayerPropertiesDialog : public wxDialog
    00033 {
    00034         public:
    00035
    00036         // Constructor.
    00037                 LayerPropertiesDialog(GDSMainWindow* parent,char* title,long style =0 ,char* name = "Layer_Properties_Dialog");
    00038
    00039       // Destructor.
    00040                 ~LayerPropertiesDialog();
    00041
    00042       //
    00043                 Setup* Get_New_Setup();
    00044
    00045       // Redraw layout.
    00046       void                      Redraw();
    00047
    00048       // Set control properties.
    00049                 void                    FillControls(int start);
    00050
    00051       // Store control settings.
    00052                 void                    StoreControls(int start);
    00053
    00054       // Windows initialisarion.
    00055                 void                    SetupWindow(Setup* prev_setup);
    00056
    00057       //close/hide window if HIDE-button is pressed.
    00058                 void                    CmHide();
    00059
    00060       // redraw canvas to see the changes
    00061                 void                    CmRedraw();
    00062
    00063       // Close window if CANCEL-button is pressed.
    00064       void                      CmCancel();
    00065
    00066       void                      CmVisible();
    00067
    00068       // Set read properties.
    00069       void                      CmRead();
    00070
    00071       // Go to previous set of layers if PREVIOUS-button is pressed.
    00072       void              CmPrev();
    00073
    00074       // Go to next set of layers if NEXT-button is pressed.
    00075       void        CmNext();
    00076
    00077       // Select layer.
    00078       void                      CmSelect();
    00079
    00080       // pointer to the setup as was.
    00081                 Setup*                          _prev_setup;
    00082
    00083       // pointer to the backup setup.
    00084                 Setup*                          _back_setup;
    00085
    00086       // pointer to the setup new.
    00087                 Setup*                          _setup;
    00088
    00089       // will increase or decrease with 10 (ten layers on the screen).
    00090                 int                                     _startvalue;
    00091
    00092       // wxWindows class.
    00093                 wxButton*       _buttonHIDE;
    00094
    00095       // wxWindows class.
    00096                 wxButton*       _buttonCANCEL;
    00097
    00098       // wxWindows class.
    00099                 wxButton*       _buttonVISIBLE;
    00100
    00101       // wxWindows class.
    00102                 wxButton*       _buttonREAD;
    00103
    00104       // wxWindows class.
    00105                 wxButton*       _buttonSELECT;
    00106
    00107       // wxWindows class.
    00108                 wxButton*       _buttonPREV;
    00109
    00110       // wxWindows class.
    00111                 wxButton*       _buttonNEXT;
    00112
    00113       // wxWindows class.
    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       // Pointer to mainwindow.
    00141                 GDSMainWindow*  _parent;
    00142
    00143       // wxWindows class.
    00144                 wxPanel*                   _panel1;
    00145
    00146       // wxWindows class.
    00147                 wxStaticBox*   _groupbox1;
    00148                 wxStaticBox*   _groupbox2;
    00149
    00150       // wxWindows class, layer number edit control.
    00151                 wxStaticText*   _numberbox[10];
    00152
    00153       // wxWindows class, layer name edit control.
    00154                 wxTextCtrl*             _namebox[10];
    00155
    00156       // wxWindows class, layer available checkbox control.
    00157                 wxCheckBox*             _availablebox[10];
    00158
    00159       // wxWindows class, layer visible checkbox control.
    00160                 wxCheckBox*             _visiblebox[10];
    00161
    00162       // wxWindows class, layer selectable checkbox control.
    00163                 wxCheckBox*             _selectablebox[10];
    00164
    00165       // wxWindows class, layer readlayer checkbox control.
    00166                 wxCheckBox*             _readlayerbox[10];
    00167
    00168       // wxWindows class, layer fill color buttons.
    00169                 wxBitmapButton*         _fillbut[10];
    00170
    00171       // wxWindows class, layer border color buttons.
    00172                 wxBitmapButton*         _borderbut[10];
    00173
    00174       // wxWindows class, layer pattern color buttons.
    00175                 wxBitmapButton*         _patternbut[10];
    00176
    00177       // wxWindows class, mapping for gds in.
    00178                 wxTextCtrl*             _gdsinmap[10];
    00179
    00180       // wxWindows class, mapping for gds out.
    00181                 wxTextCtrl*             _gdsoutmap[10];
    00182
    00183       // wxWindows class.
    00184                 wxStaticText*   _numberlabel;
    00185
    00186       // wxWindows class.
    00187                 wxStaticText*   _namelabel;
    00188
    00189       // wxWindows class.
    00190                 wxStaticText*   _availablelabel;
    00191
    00192       // wxWindows class.
    00193                 wxStaticText*   _visiblelabel;
    00194
    00195       // wxWindows class.
    00196                 wxStaticText*   _selectablelabel;
    00197
    00198       // wxWindows class.
    00199                 wxStaticText*   _readlayerlabel;
    00200
    00201       // wxWindows class.
    00202                 wxStaticText*   _filllabel;
    00203
    00204       // wxWindows class.
    00205                 wxStaticText*   _borderlabel;
    00206
    00207       // wxWindows class.
    00208       wxStaticText*     _patternlabel;
    00209
    00210       // wxWindows class.
    00211       wxStaticText*     _mappinglabel;
    00212
    00213       // wxWindows class.
    00214       wxBitmap*      _f_bitm[10];
    00215
    00216       // wxWindows class.
    00217       wxBitmap*      _b_bitm[10];
    00218
    00219       // wxWindows class.
    00220       wxBitmap*      _p_bitm[10];
    00221
    00222       // wxWindows class.
    00223       PatternDialog* _patternDialog;
    00224
    00225       // wxWindows class, the brush.
    00226                 wxBrush*                                _brush;
    00227
    00228       // wxWindows class, to help construct the colour dialog.
    00229                 wxColourData*           _cdata;
    00230
    00231       // wxWindows class, the colour dialog.
    00232                 wxColourDialog*         _cd;
    00233
    00234       // Declare used events.
    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 -- -- . -- Main Page