00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FX_DISABLEFILEDIRDIALOGS
00025
00026 #ifndef FXDIRDIALOG_H
00027 #define FXDIRDIALOG_H
00028
00029 #ifndef FXDIALOGBOX_H
00030 #include "FXDialogBox.h"
00031 #endif
00032
00033 namespace FX {
00034
00035
00036 class FXDirSelector;
00037
00038
00045 class FXAPI FXDirDialog : public FXDialogBox {
00046 FXDECLARE(FXDirDialog)
00047 protected:
00048 FXDirSelector *dirbox;
00049 protected:
00050 FXDirDialog(){}
00051 void initdialog();
00052 private:
00053 FXDirDialog(const FXDirDialog&);
00054 FXDirDialog &operator=(const FXDirDialog&);
00055 public:
00056
00058 FXDirDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=400,FXint h=300);
00059
00061 FXDirDialog(FXApp* a,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=400,FXint h=300);
00062
00064 virtual void hide();
00065
00067 void setDirectory(const FXString& path);
00068
00070 FXString getDirectory() const;
00071
00073 FXbool showFiles() const;
00074
00076 void showFiles(FXbool showing);
00077
00079 FXbool showHiddenFiles() const;
00080
00082 void showHiddenFiles(FXbool showing);
00083
00085 FXuint getMatchMode() const;
00086
00088 void setMatchMode(FXuint mode);
00089
00091 void setDirBoxStyle(FXuint style);
00092
00094 FXuint getDirBoxStyle() const;
00095
00097 static FXString getOpenDirectory(FXWindow* owner,const FXString& caption,const FXString& path);
00098
00100 virtual void save(FXStream& store) const;
00101
00103 virtual void load(FXStream& store);
00104
00106 virtual ~FXDirDialog();
00107 };
00108
00109 }
00110
00111 #endif
00112 #endif