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 _ImageFormatCommand_h 16 #define _ImageFormatCommand_h 17 18 19 #include "NoUndoCommand.h" 20 21 22 // 23 // Class name definition: 24 // 25 #define ClassImageFormatCommand "ImageFormatCommand" 26 27 // 28 // Referenced classes. 29 // 30 class ImageFormatDialog; 31 32 // 33 // ImageFormatCommand class definition: 34 // 35 class ImageFormatCommand : public NoUndoCommand 36 { 37 private: 38 // 39 // Private member data: 40 // 41 ImageFormatDialog *dialog; 42 int commandType; 43 44 protected: 45 // 46 // Protected member data: 47 // 48 49 virtual boolean doIt(CommandInterface *ci); 50 51 52 public: 53 // 54 // Constructor: 55 // 56 ImageFormatCommand(const char *name, 57 CommandScope *scope, 58 boolean active, 59 ImageFormatDialog *dialog, 60 int commandType); 61 62 enum { 63 AllowRerender = 1, 64 SaveCurrent = 2, 65 SaveContinuous = 3, 66 DelayedColors = 4, 67 SelectFile = 99 68 }; 69 70 // 71 // Destructor: 72 // ~ImageFormatCommand()73 ~ImageFormatCommand(){} 74 75 // 76 // Returns a pointer to the class name. 77 // getClassName()78 const char* getClassName() 79 { 80 return ClassImageFormatCommand; 81 } 82 }; 83 84 85 #endif // _ImageFormatCommand_h 86