Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXDirDialog.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                D i r e c t o r y   S e l e c t i o n   D i a l o g            *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2000,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
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;          // Directory selection widget
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

Copyright © 1997-2011 Jeroen van der Zijp