Main Page Class Hierarchy Compound List File List Compound Members

# cursordlg.h

    00001
    00002
    00003 /*
    00004  * Definition of class for dialog to set the cursorposition.
    00005 */
    00006 #ifndef CURSORDLG_H
    00007 #define CURSORDLG_H
    00008
    00009 #ifdef __GNUG__
    00010 #pragma interface
    00011 #endif
    00012
    00013 #include "wxwin.h"
    00014 #include "mainwin.h"
    00017
    00018 //:defenition
    00022
    00023 class CursorDialog: public wxDialog
    00024 {
    00025         public:
    00026         // Constructor.
    00027 //              CursorDialog(GDSMainWindow* parent, long style = (wxTHICK_FRAME | wxCAPTION));
    00028                 CursorDialog(GDSMainWindow* parent, long style);
    00029
    00030       // Windows initialization.
    00031       void                              SetupWindow();
    00032
    00033       // Return width.
    00034       double                    GetCursorX();
    00035
    00036       // Get Unitsetting.
    00037       double                    GetCursorY();
    00038
    00039       // Set X position of cursor.
    00040       void                              SetCursorX(double);
    00041
    00042       // Set Y position of cursor.
    00043       void                              SetCursorY(double);
    00044
    00045       // Close window if OK-button is pressed.
    00046                 void                            CmOk();
    00047
    00048       // Use new settings without closing the window.
    00049       void                              CmApply();
    00050
    00051       // Close window if EXIT-button is pressed.
    00052         void                            OnCloseWindow(wxCloseEvent& 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*              _XYbox;
    00070
    00071       // wxWindows class.
    00072       wxStaticBox*              _units_box;
    00073
    00074       // wxWindows class.
    00075       wxTextCtrl*                       _XX;
    00076
    00077                 //wxWindows class.
    00078                 wxTextCtrl*                     _YY;
    00079
    00080                 wxTextCtrl*                     _accuracy;
    00081
    00082       // wxWindows class.
    00083       wxChoice*                 _units_list;
    00084
    00085       // wxWindows class.
    00086       wxString                  _choices[9];
    00087
    00088       // X-coordinate of cursorposition.
    00089       double                                    X;
    00090
    00091       // Y-coordinate of cursorposition.
    00092       double                                    Y;
    00093
    00094       // String which contains the accuracy value.
    00095       char                                      _acc[10];
    00096
    00097       // String which contains the unitsetting.
    00098       char                                      _unit[10];
    00099
    00100
    00101       // Declare used events.
    00102       DECLARE_EVENT_TABLE()
    00103 };
    00104
    00105 #endif

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