FXDirDialog.h

Go to the documentation of this file.
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,2006 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or                 *
00009 * modify it under the terms of the GNU Lesser General Public                    *
00010 * License as published by the Free Software Foundation; either                  *
00011 * version 2.1 of the License, or (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 GNU             *
00016 * Lesser General Public License for more details.                               *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public              *
00019 * License along with this library; if not, write to the Free Software           *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.    *
00021 *********************************************************************************
00022 * $Id: FXDirDialog.h,v 1.17 2006/01/22 17:58:00 fox Exp $                       *
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;          // Directory selection widget
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

(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:20 2009 for TnFOX by doxygen v1.4.7