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 _ToggleInstance_h 15 #define _ToggleInstance_h 16 17 18 #include "InteractorInstance.h" 19 #include "ToggleNode.h" 20 21 // 22 // Class name definition: 23 // 24 #define ClassToggleInstance "ToggleInstance" 25 26 // 27 // Describes an instance of an scalar interactor in a control Panel. 28 // 29 class ToggleInstance : public InteractorInstance { 30 31 friend class ToggleNode; 32 33 private: 34 35 protected: 36 37 // 38 // Create the default set attributes dialog box for this class of 39 // Interactor. 40 // 41 virtual SetAttrDialog *newSetAttrDialog(Widget parent); 42 defaultVertical()43 virtual boolean defaultVertical() { return FALSE; } 44 javaName()45 virtual const char* javaName() { return "toggle"; } 46 47 public: 48 ToggleInstance(ToggleNode *n); 49 50 ~ToggleInstance(); 51 52 virtual boolean hasSetAttrDialog(); 53 54 virtual void setVerticalLayout(boolean val = TRUE); 55 56 virtual boolean printAsJava (FILE* ); 57 getClassName()58 const char *getClassName() { return ClassToggleInstance; } 59 60 }; 61 62 #endif // _ToggleInstance_h 63 64