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