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 _NoUndoDXAppCommand_h
16 #define _NoUndoDXAppCommand_h
17 
18 
19 #include "NoUndoCommand.h"
20 
21 typedef long DXAppCommandType;
22 
23 //
24 // Class name definition:
25 //
26 #define ClassNoUndoDXAppCommand	"NoUndoDXAppCommand"
27 
28 class   DXApplication;
29 
30 //
31 // NoUndoDXAppCommand class definition:
32 //
33 class NoUndoDXAppCommand : public NoUndoCommand
34 {
35 
36   protected:
37     //
38     // Protected member data:
39     //
40     DXApplication     *application;
41     DXAppCommandType commandType;
42 
43     virtual boolean doIt(CommandInterface *ci);
44 
45   public:
46     //
47     // Constructor:
48     //
49     NoUndoDXAppCommand(const char*   name,
50                    CommandScope  *scope,
51                    boolean       active,
52 		   DXApplication *application,
53 		   DXAppCommandType comType);
54 
55     //
56     // Destructor:
57     //
~NoUndoDXAppCommand()58     ~NoUndoDXAppCommand(){}
59 
60     //
61     // These are the various operations that the NoUndoDXAppCommand can
62     // implement on behalf of a DXApplication.
63     //
64     enum {
65 	StartServer		= 1,	// Open a connection to the server
66 	ResetServer 		= 2,	// Reset the server
67         ExecuteOnce		= 3,	// Execute the network once.
68         ExecuteOnChange		= 4,	// Go into Execute on change mode
69         EndExecution		= 5,	// End execute on change mode
70         LoadMacro		= 6,	// Load a macro
71         OpenAllColormaps	= 8,	// Open all the network's colormaps
72         OpenMessageWindow	= 9,	// Open the list of errors
73         OpenNetwork		= 10,	// Open and read a network file
74         OpenSequencer		= 11,	// Open the network's sequencer
75 #if USE_REMAP   // 6/14/93
76 	RemapInteractorOutputs  = 12,	// Toggle interactor output rescaling
77 #endif
78 	ToggleInfoEnable  	= 13,	// Toggle Information Messages
79 	ToggleWarningEnable	= 14,	// Toggle Warning Messages
80 	ToggleErrorEnable	= 15,	// Toggle Error Messages
81 	LoadUserMDF             = 16,	// Load another MDF.
82 	AssignProcessGroup	= 17,   // Open Process Group Assignment dialog
83 	HelpOnManual		= 18,   // Help command
84 	HelpOnHelp		= 19    // Help command
85     };
86 
87 
88     //
89     // Conditionally call the super class method.  Currently, we don't
90     // activate if there is no connection to the server and we are activating
91     // ExecuteOnChange, ExecuteOnce or EndExecution command.
92     //
93     virtual void activate();
94 
95     //
96     // Returns a pointer to the class name.
97     //
getClassName()98     const char* getClassName()
99     {
100 	return ClassNoUndoDXAppCommand;
101     }
102 };
103 
104 
105 #endif // _NoUndoDXAppCommand_h
106