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 _SetPanelCommentDialog_h 15 #define _SetPanelCommentDialog_h 16 17 18 #include "TextEditDialog.h" 19 20 // 21 // Class name definition: 22 // 23 #define ClassSetPanelCommentDialog "SetPanelCommentDialog" 24 25 class ControlPanel; 26 27 // 28 // SetPanelCommentDialog class definition: 29 // 30 31 class SetPanelCommentDialog : public TextEditDialog 32 { 33 private: 34 // 35 // Private member data: 36 // 37 static boolean ClassInitialized; 38 39 protected: 40 // 41 // Protected member data: 42 // 43 static String DefaultResources[]; 44 45 ControlPanel *controlPanel; 46 // 47 // Get the the text that is to be installed in the text window. 48 // 49 virtual const char *getText(); 50 51 // 52 // Save the text in the text window 53 // 54 virtual boolean saveText(const char *); 55 56 // 57 // The title to be applied the newly managed dialog. 58 // The returned string is freed by the caller (TextEditDialog::manage()). 59 // 60 virtual char *getDialogTitle(); 61 62 // 63 // Constructor (for derived classes) 64 // 65 SetPanelCommentDialog(const char *name, 66 Widget parent, boolean readonly, ControlPanel *cp); 67 68 // 69 // Install the default resources for this class and then call the 70 // same super class method to get the default resources from the 71 // super classes. 72 // 73 virtual void installDefaultResources(Widget baseWidget); 74 75 public: 76 77 // 78 // Constructor (for instances of THIS class): 79 // 80 SetPanelCommentDialog(Widget parent, boolean readonly, ControlPanel *cp); 81 82 // 83 // Destructor: 84 // 85 ~SetPanelCommentDialog(); 86 87 88 // 89 // Returns a pointer to the class name. 90 // getClassName()91 const char* getClassName() 92 { 93 return ClassSetPanelCommentDialog; 94 } 95 }; 96 97 98 #endif // _SetPanelCommentDialog_h 99