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 
15 #ifndef _MBNewCommand_h
16 #define _MBNewCommand_h
17 
18 
19 #include "../base/OptionalPreActionCommand.h"
20 
21 //
22 // Class name definition:
23 //
24 #define ClassMBNewCommand	"MBNewCommand"
25 
26 class  MBMainWindow;
27 
28 //
29 // MBNewCommand class definition:
30 //
31 class MBNewCommand : public OptionalPreActionCommand
32 {
33   private:
34     //
35     // Private member data:
36     //
37     MBMainWindow *mbmw;
38 
39   protected:
40     //
41     // Protected member data:
42     //
43     virtual boolean needsConfirmation();
44     virtual void    doPreAction();
45 
46     virtual boolean doIt(CommandInterface *ci);
47 
48   public:
49     //
50     // Constructor:
51     //
52     MBNewCommand(const char      *name,
53 	       CommandScope    *scope,
54 	       boolean		active,
55 	       MBMainWindow   *mbmw,
56 		Widget		dialogParent);
57 
58 
59     //
60     // Destructor:
61     //
~MBNewCommand()62     ~MBNewCommand(){}
63 
64     //
65     // Returns a pointer to the class name.
66     //
getClassName()67     const char* getClassName()
68     {
69 	return ClassMBNewCommand;
70     }
71 };
72 
73 
74 #endif // _MBNewCommand_h
75