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 _SADialog_h
16 #define _SADialog_h
17 
18 
19 #include "SaveFileDialog.h"
20 //#include "MBMainWindow.h"
21 
22 #include <Xm/Xm.h>
23 
24 //
25 // Class name definition:
26 //
27 #define ClassSADialog	"SADialog"
28 
29 class Dialog;
30 class Command;
31 class MBMainWindow;
32 
33 //
34 // SADialog class definition:
35 //
36 class SADialog : public SaveFileDialog
37 {
38     static boolean ClassInitialized;
39 
40     MBMainWindow *mbmw;
41     Command     *cmd;
42 
43   protected:
44     static String  DefaultResources[];
45 
46     virtual void saveFile(const char *string);
47 
48   public:
49     //
50     // Constructor:
51     //
52     SADialog(MBMainWindow *mbmw);
53 
54     //
55     // Destructor:
56     //
~SADialog()57     ~SADialog(){}
58 
59     void setPostCommand(Command *cmd);
60 
61     //
62     // Returns a pointer to the class name.
63     //
getClassName()64     const char* getClassName()
65     {
66 	return ClassSADialog;
67     }
68 };
69 
70 
71 #endif // _SADialog_h
72