00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FXDIRDIALOG_H
00022 #define FXDIRDIALOG_H
00023
00024 #ifndef FXDIALOGBOX_H
00025 #include "FXDialogBox.h"
00026 #endif
00027
00028 namespace FX {
00029
00030
00031 class FXFileDict;
00032 class FXDirSelector;
00033
00034
00041 class FXAPI FXDirDialog : public FXDialogBox {
00042 FXDECLARE(FXDirDialog)
00043 protected:
00044 FXDirSelector *dirbox;
00045 protected:
00046 FXDirDialog(){}
00047 void initdialog();
00048 private:
00049 FXDirDialog(const FXDirDialog&);
00050 FXDirDialog &operator=(const FXDirDialog&);
00051 public:
00052
00054 FXDirDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=400,FXint h=300);
00055
00057 FXDirDialog(FXApp* a,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=400,FXint h=300);
00058
00060 virtual void hide();
00061
00063 void setDirectory(const FXString& path);
00064
00066 FXString getDirectory() const;
00067
00069 FXbool showFiles() const;
00070
00072 void showFiles(FXbool showing);
00073
00075 FXbool showHiddenFiles() const;
00076
00078 void showHiddenFiles(FXbool showing);
00079
00081 FXuint getMatchMode() const;
00082
00084 void setMatchMode(FXuint mode);
00085
00087 void setDirBoxStyle(FXuint style);
00088
00090 FXuint getDirBoxStyle() const;
00091
00093 void setAssociations(FXFileDict* assoc,FXbool owned=false);
00094
00096 FXFileDict* getAssociations() const;
00097
00099 static FXString getOpenDirectory(FXWindow* owner,const FXString& caption,const FXString& path);
00100
00102 virtual void save(FXStream& store) const;
00103
00105 virtual void load(FXStream& store);
00106
00108 virtual ~FXDirDialog();
00109 };
00110
00111 }
00112
00113 #endif