griddlg.h Source File

Main Page Class Hierarchy Compound List File List Compound Members

# griddlg.h

    00001
    00002
    00003 /*
    00004  * Definition of class for dialog to specify the gridsettings.
    00005 */
    00006
    00007 #ifndef GRIDDLG_H
    00008 #define GRIDDLG_H
    00009
    00010 #ifdef __GNUG__
    00011 #pragma interface
    00012 #endif
    00013
    00014 #include <wx/colordlg.h>
    00015
    00018
    00019 //:defenition
    00023
    00024
    00025 class Gridsettings: public wxDialog
    00026 {
    00027         public:
    00028
    00029         // Constructor.
    00030                 Gridsettings(GDSMainWindow* parent, long style = (wxTHICK_FRAME | wxCAPTION));
    00031
    00032       // Destructor.
    00033                 ~Gridsettings();
    00034
    00035       // Windows initialization
    00036                 void                            SetupWindow();
    00037
    00038       // Close window if OK-button is pressed.
    00039                 void                            CmOk();
    00040
    00041       // Close window if EXIT-button is pressed.
    00042       void                              OnCloseWindow(wxCloseEvent& event);
    00043
    00044       // Close window if CANCEL-button is pressed.
    00045                 void                            CmCancel();
    00046
    00047       // Set gridcolour.
    00048                 void                            Cm_g_Bitb();
    00049
    00050       // Set background colour.
    00051                 void                            Cm_b_Bitb();
    00052
    00053       // Set gridcolour.
    00054                 void                            Set_Colour_Grid(long colour);
    00055
    00056       // Set background colour.
    00057                 void                            Set_Colour_Back(long colour);
    00058
    00059       // Redraw grid.
    00060       void                              Redraw();
    00061
    00062                 void                            OnChar(wxKeyEvent& event);
    00063                 void                            OnCharHook(wxKeyEvent& event);
    00064
    00065         protected:
    00066
    00067       // Pointer to mainwindow.
    00068                 GDSMainWindow*  _parent;
    00069
    00070       // wxWindows class.
    00071       wxStaticBox*              _space_box;
    00072
    00073       // wxWindows class.
    00074       wxStaticBox*              _colour_box;
    00075
    00076       // wxWindows class.
    00077                 wxPanel*                        _panel;
    00078
    00079       // wxWindows class.
    00080                 wxButton*               _ok;
    00081
    00082       // wxWindows class.
    00083                 wxButton*               _cancel;
    00084
    00085       // wxWindows class.
    00086       wxTextCtrl*               _ed_space;
    00087
    00088       // wxWindows class.
    00089                 wxRadioBox*             _ed_backORfore;
    00090
    00091       // wxWindows class.
    00092       wxStaticText*     _m_colour;
    00093
    00094       // wxWindows class.
    00095       wxStaticText*     _m_bcolour;
    00096
    00097       // wxWindows class.
    00098       wxColour*         _gcolour;
    00099
    00100       // wxWindows class.
    00101       wxColour*         _bcolour;
    00102
    00103       // wxWindows class.
    00104       wxBitmap*      _g_bitm;
    00105
    00106       // wxWindows class.
    00107       wxBitmap*      _b_bitm;
    00108
    00109       // wxWindows class.
    00110                 wxBitmapButton* _g_bitb;
    00111
    00112       // wxWindows class.
    00113                 wxBitmapButton* _b_bitb;
    00114
    00115       // wxWindows class.
    00116                 wxBrush*                                _g_brush;
    00117
    00118       // wxWindows class.
    00119                 wxBrush*                                _b_brush;
    00120
    00121       // wxWindows class.
    00122                 wxColourData*           _cdata;
    00123
    00124       // wxWindows class.
    00125                 wxColourDialog*         _cd;
    00126
    00127       // wxWindows class.
    00128       wxChoice*         _units_list;
    00129
    00130       // wxWindows class.
    00131       wxString                          _choices[9];
    00132
    00133       // String which contains gridspace.
    00134       char                                      _space[30];
    00135
    00136       // Declare used events.
    00137       DECLARE_EVENT_TABLE()
    00138
    00139 };
    00140
    00141 #endif

griddlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page