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 _FileSelectorInstance_h
16 #define _FileSelectorInstance_h
17 
18 
19 #include "ValueInstance.h"
20 
21 class FileSelectorNode;
22 class FileSelectorDialog;
23 
24 //
25 // Class name definition:
26 //
27 #define ClassFileSelectorInstance	"FileSelectorInstance"
28 
29 
30 //
31 // Describes an instance of an interactor in a control Panel.
32 //
33 class FileSelectorInstance : public ValueInstance {
34 
35       friend class FileSelectorNode;
36       friend class FileSelectorDialog;
37 
38   private:
39     char 	*fileFilter;
40 
41   protected:
42     void	setFileFilter(const char *filter);
43 
44   public:
45     FileSelectorInstance(FileSelectorNode *n);
46 
47     ~FileSelectorInstance();
48     boolean printAsJava (FILE* jf);
49 
getFileFilter()50     const char *getFileFilter() { return this->fileFilter; }
51 
getClassName()52     const char *getClassName()
53 	{ return ClassFileSelectorInstance; }
54 };
55 
56 #endif // _FileSelectorInstance_h
57 
58