Main Page   Class Hierarchy   Compound List   File List   Compound Members  

execdlg.h

00001 
00002 
00003 /*
00004  * Definition of class for dialog to run/create a processfile, in which commands can be executed seperately.
00005 */
00006 #ifndef EXECDLG_H
00007 #define EXECDLG_H
00008 
00009 #ifdef __GNUG__
00010 #pragma interface
00011 #endif
00012 
00015 
00016 //: defenition
00020 
00021 class ExecDlg: public wxDialog
00022 {
00023         public:
00024 
00025                 // Constructor.
00026                 ExecDlg(GDSMainWindow*,char*,long style = (wxTHICK_FRAME | wxCAPTION),char *name="frame");
00027 
00028       // Destructor.
00029                 ~ExecDlg();
00030 
00031       // Don't show window if HIDE-button is pressed.
00032       void                              hide();
00033 
00034       // Close window if EXIT-button is pressed.
00035       void                              OnCloseWindow(wxCloseEvent& event);
00036 
00037       void           SetCommand(char* BaseCommand);
00038 
00039       // Add command to history.
00040       void                              addCommand(const wxString& command);
00041 
00042       // Copy command selected from history to commandline.
00043                 void                            Copy();
00044 
00045       // Execute command which is given in the commandline.
00046       void                              Execute();
00047 
00048         protected:
00049                 void                            OnChar(wxKeyEvent& event);
00050 
00051                 void                            OnCharHook(wxKeyEvent& event);
00052 
00053 
00054       // Pointer to mainwindow.
00055                 GDSMainWindow*  _parent;
00056 
00057       // wxWindows class.
00058       wxStaticText*  _m_history;
00059 
00060       // wxWindows class.
00061       wxStaticText*  _m_comline;
00062 
00063       // wxWindows class.
00064                 wxPanel*                        _panel;
00065 
00066       // wxWindows class.
00067                 wxButton*               _execButton;
00068 
00069       // wxWindows class.
00070       wxButton*         _copyButton;
00071 
00072       // wxWindows class.
00073                 wxButton*               _hideButton;
00074 
00075       // wxWindows class.
00076       wxTextCtrl*               _editField;
00077 
00078       // wxWindows class.
00079                 wxListBox*              _lb;
00080 
00081       // Declare used events.
00082       DECLARE_EVENT_TABLE()
00083 
00084 };
00085 
00086 #endif
execdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page