Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GFileSelect.h

00001 #ifndef __GFILE_SELECT_H
00002 #define __GFILE_SELECT_H
00003 
00005 // File select dialog
00006 class LgiClass GFileType : public GObject
00007 {
00008     char *Ext;
00009     int _Data;
00010 
00011 public:
00012     GFileType()
00013     {
00014         Ext = 0;
00015         _Data = 0;
00016     }
00017 
00018     ~GFileType()
00019     {
00020         DeleteArray(Ext);
00021     }
00022 
00023     char *Extension() { return Ext; }
00024     bool Extension(char *e) { return (Ext = NewStr(e)) != 0; }
00025     char *Description() { return Name(); }
00026     bool Description(char *d) { return Name(d); }
00027     int Data() { return _Data; }
00028     void Data(int i) { _Data = i; }
00029 
00030     char *DefaultExtension();
00031 };
00032 
00048 class LgiClass GFileSelect :
00049     public GObject
00050 {
00051     class GFileSelectPrivate *d;
00052 
00053 public:
00054     GFileSelect();
00055     ~GFileSelect();
00056 
00057     // Properties
00058     
00060     char *Name();
00062     bool Name(char *n);
00064     char *operator [](int i);
00066     int Length();
00068     GView *Parent();
00070     void Parent(GView *Window);
00072     bool MultiSelect();
00074     void MultiSelect(bool Multi);
00076     char *InitialDir();
00078     void InitialDir(char *InitDir);
00080     char *Title();
00082     void Title(char *Title);
00084     char *DefaultExtension();
00086     void DefaultExtension(char *DefExt);
00087 
00088     // File types
00089     
00091     int Types();
00093     int SelectedType();
00095     GFileType *TypeAt(int n);
00097     bool Type
00098     (
00100         char *Description,
00102         char *Extension,
00104         int Data = 0
00105     );
00107     void ClearTypes();
00108 
00109     // Methods
00110     
00113     bool Open();
00116     bool Save();
00119     bool OpenFolder();
00120 };
00121 
00122 #endif

Generated on Wed Oct 26 14:46:48 2005 for Lgi by  doxygen 1.4.1