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

Copyright © 1997-2004 Jeroen van der Zijp