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 _MBCommand_h
15 #define _MBCommand_h
16 
17 
18 #include "NoUndoCommand.h"
19 #include <Xm/Xm.h>
20 
21 class  MBMainWindow;
22 
23 //
24 // MBCommand class definition:
25 //
26 
27 #define ClassMBCommand  "MBCommand"
28 
29 class MBCommand : public NoUndoCommand
30 {
31   private:
32 
33     static  String	DefaultResources[];
34     MBMainWindow* 	mdmw;
35     int			option;
36 
37   protected:
38     virtual boolean doIt(CommandInterface *ci);
39 
40   public:
41     //
42     // Constructor:
43     //
44     MBCommand(const char*,
45 		CommandScope*,
46 		boolean active,
47                 MBMainWindow*,
48 		int option);
49 
50     //
51     // Destructor:
52     //
~MBCommand()53     ~MBCommand(){}
54 
55     //
56     // Returns a pointer to the class name.
57     //
getClassName()58     const char* getClassName()
59     {
60 	return ClassMBCommand;
61     }
62 };
63 
64 
65 #endif // _MBCommand_h
66