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

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,2002 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.8 2002/01/18 22:42:52 jeroen Exp $                     *
00023 ********************************************************************************/
00024 #ifndef FXDIRDIALOG_H
00025 #define FXDIRDIALOG_H
00026 
00027 #ifndef FXDIALOGBOX_H
00028 #include "FXDialogBox.h"
00029 #endif
00030 
00031 
00032 
00033 class FXDirSelector;
00034 
00035 
00036 /// Directory selection dialog
00037 class FXAPI FXDirDialog : public FXDialogBox {
00038   FXDECLARE(FXDirDialog)
00039 protected:
00040   FXDirSelector *dirbox;          // Directory selection widget
00041 protected:
00042   FXDirDialog(){}
00043 private:
00044   FXDirDialog(const FXDirDialog&);
00045   FXDirDialog &operator=(const FXDirDialog&);
00046 public:
00047 
00048   /// Construct Directory Dialog Box
00049   FXDirDialog(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=500,FXint h=300);
00050 
00051   /// Change directory
00052   void setDirectory(const FXString& path);
00053 
00054   /// Return directory
00055   FXString getDirectory() const;
00056 
00057   /// Change Directory List style
00058   void setDirBoxStyle(FXuint style);
00059 
00060   /// Return Directory List style
00061   FXuint getDirBoxStyle() const;
00062 
00063   /// Save to stream
00064   virtual void save(FXStream& store) const;
00065 
00066   /// Load from stream
00067   virtual void load(FXStream& store);
00068 
00069   /// Destructor
00070   virtual ~FXDirDialog();
00071   };
00072 
00073 
00074 #endif