distdlg.h Source File

Main Page Class Hierarchy Compound List File List Compound Members

# distdlg.h

    00001
    00004 /*
    00005  * Definition of class for dialog to display distances between points
    00006 */
    00007
    00008 #ifndef DISTDLG_H
    00009 #define DISTDLG_H
    00010
    00011 #ifdef __GNUG__
    00012 #pragma interface
    00013 #endif
    00014
    00017
    00018 //:defeniton
    00024
    00025 class DistanceDlg: public wxDialog
    00026 {
    00027         public:
    00028         // Constructor.
    00029                 DistanceDlg(GDSMainWindow*,char*,long style = (wxTHICK_FRAME | wxCAPTION),char *name="frame");
    00030
    00031       // Destructor.
    00032                 ~DistanceDlg();
    00033
    00034       // Hide window if HIDE-button is pressed.
    00035       void                              hide();
    00036
    00037       // Close window if EXIT-button is pressed.
    00038       void                              OnCloseWindow(wxCloseEvent& event);
    00039
    00040       //
    00041       void                              addCommand(char *);
    00042
    00043       // Set startpoint x and y.
    00044                 void           setStartPoint(double, double);
    00045
    00046       // Set relative point.
    00047                 void           setRelPoint(double, double);
    00048
    00049                 // Clear all settings.
    00050       void                              ClearMe();
    00051
    00052         protected:
    00053
    00054         // Pointer to mainwindow.
    00055                 GDSMainWindow*  _parent;
    00056
    00057       // wxWindows class.
    00058       wxStaticText*  _m_start;
    00059
    00060       // wxWindows class.
    00061       wxStaticText*  _m_lb;
    00062
    00063       // wxWindows class.
    00064                 wxPanel*                        _panel;
    00065
    00066       // wxWindows class.
    00067                 wxButton*               _clearButton;
    00068
    00069       // wxWindows class.
    00070                 wxButton*               _hideButton;
    00071
    00072       // wxWindows class.
    00073       wxTextCtrl*          _editField;
    00074
    00075       // wxWindows class.
    00076                 wxListBox*              _lb;
    00077
    00078       //
    00079                 char                            _temp_char[60];
    00080
    00081       //
    00082         char                            _start_point[30];
    00083
    00084       // double which contains startpoint x.
    00085       double                    _start_x;
    00086
    00087       // double which contains startpoint y.
    00088       double                    _start_y;
    00089
    00090       // Declare used events.
    00091       DECLARE_EVENT_TABLE()
    00092
    00093 };
    00094
    00095 #endif

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