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 16 #ifndef _LoadMacroDialog_h 17 #define _LoadMacroDialog_h 18 19 20 21 #include "OpenNetworkDialog.h" 22 #include "Application.h" 23 24 25 // 26 // Class name definition: 27 // 28 #define ClassLoadMacroDialog "LoadMacroDialog" 29 30 // 31 // XtCallbackProc (*CB), XtEventHandler (*EH) and XtActionProc (*AP) 32 // DialogCallback (*DCB), XtInputCallbackProc (*ICP), XtWorkProc (*WP) 33 // functions for this and derived classes 34 // 35 extern "C" void LoadMacroDialog_LoadDirectoryCB(Widget, XtPointer, XtPointer); 36 37 class Dialog; 38 39 // 40 // LoadMacroDialog class definition: 41 // 42 class LoadMacroDialog : public OpenNetworkDialog 43 { 44 static boolean ClassInitialized; 45 46 friend void LoadMacroDialog_LoadDirectoryCB(Widget widget, 47 XtPointer clientData, 48 XtPointer callData); 49 boolean doingOk; 50 51 protected: 52 53 static String DefaultResources[]; 54 virtual boolean okCallback(Dialog *d); 55 virtual void okFileWork(const char *string); 56 virtual Widget createDialog(Widget p); 57 58 // 59 // For sub-classes of this dialog 60 // 61 LoadMacroDialog(const char* name, Widget parent); 62 63 // 64 // Install the default resources for this class and then call the 65 // same super class method to get the default resources from the 66 // super classes. 67 // 68 virtual void installDefaultResources(Widget baseWidget); 69 70 public: 71 // 72 // Constructor: 73 // 74 LoadMacroDialog(Widget parent); 75 76 // 77 // Destructor: 78 // ~LoadMacroDialog()79 ~LoadMacroDialog(){} 80 81 virtual void unmanage(); 82 83 // 84 // Returns a pointer to the class name. 85 // getClassName()86 const char* getClassName() 87 { 88 return ClassLoadMacroDialog; 89 } 90 }; 91 92 93 #endif // _LoadMacroDialog_h 94