Main Page   Class Hierarchy   Compound List   File List   Compound Members  

settingsdlg.h

00001 
00002 
00003 /*
00004  * Definition of class for dialog to specify width, units and pathtype.
00005 */
00006 
00007 #ifndef SETTINGS_H
00008 #define SETTINGS_H
00009 
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013 
00016 
00017 //:defenition
00021 
00022 class SettingsDialog: public wxDialog
00023 {
00024         public:
00025         // Constructor.
00026                 SettingsDialog(GDSMainWindow* parent, long style = (wxTHICK_FRAME | wxCAPTION));
00027 
00028       // Windows initialization.
00029       void                              SetupWindow();
00030 
00031       // Close window if OK-button is pressed.
00032                 void                            CmOk();
00033 
00034       // Use new settings without closing the window.
00035       void                              CmApply();
00036 
00037       // Close window if EXIT-button is pressed.
00038         void                            OnCloseWindow(wxCloseEvent& event);
00039 
00040       double                    GetPathtype();
00041 
00042       char*                             GetPathwidth();
00043 
00044       // Get pathtype selection and give command "setpathtype" in the commandhandler, which returns TRUE
00045       // if a pathtype has been selected.
00046                 void                            CmRadioButton(wxEvent& event);
00047 
00048 
00049         protected:
00050 
00051                 char*                   GetUnit();
00052 
00053       // Pointer to mainwindow.
00054                 GDSMainWindow*          _parent;
00055 
00056       // wxWindows class.
00057                 wxPanel*                                _panel;
00058 
00059       // wxWindows class.
00060                 wxButton*                       _ok;
00061 
00062       // wxWindows class.
00063       wxButton*                 _apply;
00064 
00065       // wxWindows class.
00066                 wxRadioBox*                     _ed_setpath;
00067 
00068       // wxWindows class.
00069                 wxCheckBox*                     _spline;
00070 
00071       // wxWindows class.
00072       wxStaticBox*              _widthbox;
00073 
00074       // wxWindows class.
00075       wxTextCtrl*                       _width;
00076 
00077       // wxWindows class.
00078       wxChoice*         _settings_list;
00079 
00080       // wxWindows class.
00081       wxString                          _choices[9];
00082 
00083       // String which contains acurracy setting.
00084       char                                      _acc[10];
00085 
00086       // String which contains unitsetting.
00087       char                                      _unit[10];
00088 
00089       // Declare used events.
00090       DECLARE_EVENT_TABLE()
00091 };
00092 
00093 #endif
settingsdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page