Main Page   Class Hierarchy   Compound List   File List   Compound Members  

transdlg.h

00001 
00002 
00003 /*
00004  *Definition of class for dialog to specify transformation values.
00005 */
00006 
00007 #ifndef TRANSDLG_H
00008 #define TRANSDLG_H
00009 
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013 
00016 
00017 //:defenition
00021 class Transformations: public wxDialog
00022 {
00023         public:
00024 
00025         // Constructor.
00026                 Transformations(GDSMainWindow* parent,long style = (wxTHICK_FRAME | wxCAPTION));
00027 
00028       // Destructor.
00029                 ~Transformations();
00030 
00031       // Windows initialization.
00032                 void                            SetupWindow(bool);
00033 
00034       // Close window if OK-button is pressed.
00035                 void                            CmOk();
00036 
00037       // Set default values if RESET-button is pressed.
00038                 void                            CmReset();
00039 
00040       // Use new settings without closing the window.
00041            void         CmApply();
00042 
00043       // Restore last settings without closing the window.
00044         void            CmUndo();
00045 
00046       // Called when checkbox "_item" was clicked.
00047         void                            EnableItem(char*, bool);
00048 
00049       // Close window if EXIT-button is pressed.
00050         void                            OnCloseWindow(wxCloseEvent& event);
00051 
00052         protected:
00053       // Should the action be peformed on Group A (false) or the all layers structures (true)
00054         bool                    _all_layers;
00055 
00056       // Pointer to mainwindow.
00057                 GDSMainWindow*  _parent;
00058 
00059       // wxWindows class.
00060                 wxPanel*                        _panel;
00061 
00062       // wxWindows class.
00063                 wxButton*               _ok;
00064 
00065       // wxWindows class.
00066                 wxButton*               _reset;
00067 
00068       // wxWindows class.
00069            wxButton*            _apply;
00070 
00071       // wxWindows class.
00072         wxButton*       _undo;
00073 
00074       // wxWindows class.
00075                 wxStaticBox*            _movebox;
00076 
00077       // wxWindows class.
00078                 wxStaticBox*            _mirrorbox;
00079 
00080       // wxWindows class.
00081                 wxStaticBox*            _scalebox;
00082 
00083       // wxWindows class.
00084                 wxStaticBox*            _rotatebox;
00085 
00086       // wxWindows class.
00087                 wxStaticBox*            _selectbox;
00088 
00089       // wxWindows class.
00090                 wxRadioBox*                     _ed_cwORccw;
00091 
00092       // wxWindows class.
00093                 wxTextCtrl*                     _ed_scale_h;
00094 
00095       // wxWindows class.
00096                 wxTextCtrl*                     _ed_degrees;
00097 
00098       // wxWindows class.
00099                 wxTextCtrl*                     _ed_move_h;
00100 
00101       // wxWindows class.
00102                 wxTextCtrl*                     _ed_move_v;
00103 
00104       // wxWindows class.
00105       wxCheckBox*               _check_move;
00106 
00107       // wxWindows class.
00108       wxCheckBox*               _check_mirror_h;
00109 
00110       // wxWindows class.
00111       wxCheckBox*               _check_mirror_v;
00112 
00113       // wxWindows class.
00114                 wxCheckBox*             _check_scale_h;
00115 
00116       // wxWindows class.
00117                 wxCheckBox*             _check_ratio;
00118 
00119       // wxWindows class.
00120       wxCheckBox*               _check_rotate;
00121 
00122       // wxWindows class.
00123                 wxCheckBox*             _check_select;
00124 
00125       // String which contains scale value.
00126       wxString                  _scale_h_ratio;
00127 
00128       // String which contains degree value.
00129       wxString                  _degr;
00130 
00131       // String which contains horizontal move value.
00132                 wxString                        _move_h;
00133 
00134       // String which contains vertical move value.
00135       wxString                  _move_v;
00136 
00137       // Horizontal mirror value.
00138       bool                      _mirror_x;
00139 
00140       // Vertical mirror value.
00141       bool                      _mirror_y;
00142 
00143       // Declare used events.
00144       DECLARE_EVENT_TABLE()
00145 };
00146 
00147 #endif
transdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page