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 _NoUndoDXWindowCommand_h
16 #define _NoUndoDXWindowCommand_h
17 
18 
19 #include "NoUndoCommand.h"
20 
21 typedef long DXWindowCommandType;
22 
23 //
24 // Class name definition:
25 //
26 #define ClassNoUndoDXWindowCommand	"NoUndoDXWindowCommand"
27 
28 class   DXWindow;
29 
30 //
31 // NoUndoDXWindowCommand class definition:
32 //
33 class NoUndoDXWindowCommand : public NoUndoCommand
34 {
35 
36   protected:
37     //
38     // Protected member data:
39     //
40     DXWindow *dxWindow;
41     DXWindowCommandType commandType;
42 
43     virtual boolean doIt(CommandInterface *ci);
44 
45   public:
46     //
47     // Constructor:
48     //
49     NoUndoDXWindowCommand(const char*   name,
50                    CommandScope  *scope,
51                    boolean       active,
52 		   DXWindow  *cp,
53 		   DXWindowCommandType comType);
54 
55     //
56     // Destructor:
57     //
~NoUndoDXWindowCommand()58     ~NoUndoDXWindowCommand(){}
59 
60     //
61     // These are the various operations that the NoUndoDXWindowCommand can
62     // implement on behalf of a DXWindow.
63     //
64     enum {
65 	ToggleWindowStartup	= 1	// Flip startup state of window on/off
66     };
67     //
68     // Returns a pointer to the class name.
69     //
getClassName()70     const char* getClassName()
71     {
72 	return ClassNoUndoDXWindowCommand;
73     }
74 };
75 
76 
77 #endif // _NoUndoDXWindowCommand_h
78