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