1 /***********************************************************************/
2 /* Open Visualization Data Explorer                                    */
3 /* (C) Copyright IBM Corp. 1989,1999                                   */
4 /* ALL RIGHTS RESERVED                                                 */
5 /* This code licensed under the                                        */
6 /*    "IBM PUBLIC LICENSE - Open Visualization Data Explorer"          */
7 /***********************************************************************/
8 
9 #include <dxconfig.h>
10 #include "../base/defines.h"
11 
12 
13 
14 #ifndef _ExecCommandDialog_h
15 #define _ExecCommandDialog_h
16 
17 
18 #include "SetNameDialog.h"
19 
20 
21 //
22 // Class name definition:
23 //
24 #define ClassExecCommandDialog	"ExecCommandDialog"
25 
26 //
27 // ExecCommandDialog class definition:
28 //
29 class ExecCommandDialog : public SetNameDialog
30 {
31   private:
32     //
33     // Private member data:
34     //
35     static boolean 	ClassInitialized;
36 
37   protected:
38     //
39     // Protected member data:
40     //
41     char * lastCommand;
42 
43     static String DefaultResources[];
44 
45     void saveLastCommand(const char*);
46     virtual const char *getText();
47     virtual boolean saveText(const char *s);
48 
49     //
50     // Install the default resources for this class and then call the
51     // same super class method to get the default resources from the
52     // super classes.
53     //
54     virtual void installDefaultResources(Widget baseWidget);
55 
56   public:
57     //
58     // Constructor:
59     //
60     ExecCommandDialog(Widget parent);
61 
62     //
63     // Destructor:
64     //
65     ~ExecCommandDialog();
66 
67     //
68     // Returns a pointer to the class name.
69     //
getClassName()70     const char* getClassName()
71     {
72 	return ClassExecCommandDialog;
73     }
74 };
75 
76 
77 #endif // _ExecCommandDialog_h
78