Main Page Class Hierarchy Compound List File List Compound Members

# circleditdlg.h

    00001
    00002
    00003 /*
    00004  * Definition of class for dialog to specify radius and units.
    00005 */
    00006
    00007 #ifndef CIRCLEDIT_H
    00008 #define CIRCLEDIT_H
    00009 #ifdef __GNUG__
    00010 #pragma interface
    00011 #endif
    00012
    00015
    00016 //:defenition
    00020 #include "tool.h"
    00021
    00022 class CircleditDialog: public wxDialog
    00023 {
    00024         public:
    00025         // Constructor.
    00026                 CircleditDialog(EditCircleTool* tool,GDSMainWindow* parent, long style = (wxTHICK_FRAME | wxCAPTION));
    00027
    00028       // Windows initialization.
    00029       void                              SetupWindow();
    00030
    00031       // Return width.
    00032       double                    GetRadius();
    00033
    00034       // Get Unitsetting.
    00035       char* GetUnit();
    00036
    00037       // Set Unitvalue.
    00038       void SetUnit(char* buf);
    00039
    00040       // Close window if OK-button is pressed.
    00041                 void                            CmOk();
    00042
    00043       // Use new settings without closing the window.
    00044       void                              CmApply();
    00045
    00046       // Close window if EXIT-button is pressed.
    00047         void                            OnCloseWindow(wxCloseEvent& event);
    00048
    00049       void Update();
    00050       void FocusSet();
    00051       void FocusKill();
    00052       void OnActivate(wxActivateEvent& event);
    00053
    00054         protected:
    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*                 _apply;
    00067
    00068       // wxWindows class.
    00069       wxStaticBox*              _widthbox;
    00070
    00071       // wxWindows class.
    00072       wxTextCtrl*                       _width;
    00073
    00074       // wxWindows class.
    00075       wxChoice*         _settings_list;
    00076
    00077       // wxWindows class.
    00078       wxString                          _choices[9];
    00079
    00080       // String which contains acurracy setting.
    00081       char                                      _acc[10];
    00082
    00083       // String which contains unitsetting.
    00084       char                                      _unit[10];
    00085
    00086       EditCircleTool*   _tool;
    00087
    00088       bool _focus;
    00089
    00090       // Declare used events.
    00091       DECLARE_EVENT_TABLE()
    00092 };
    00093
    00094 #endif

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