Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

GUI/Widgets/vtkKWLoadSaveDialog.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWLoadSaveDialog.h,v $
00004 
00005   Copyright (c) Kitware, Inc.
00006   All rights reserved.
00007   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00021 #ifndef __vtkKWLoadSaveDialog_h
00022 #define __vtkKWLoadSaveDialog_h
00023 
00024 #include "vtkKWDialog.h"
00025 
00026 class vtkKWApplication;
00027 
00028 class KWWIDGETS_EXPORT vtkKWLoadSaveDialog : public vtkKWDialog
00029 {
00030 public:
00031   static vtkKWLoadSaveDialog* New();
00032   vtkTypeRevisionMacro(vtkKWLoadSaveDialog,vtkKWDialog);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00036   virtual void Create(vtkKWApplication *app);
00037 
00047   virtual int Invoke();
00048 
00050 
00052   vtkSetStringMacro(FileTypes);
00053   vtkGetStringMacro(FileTypes);
00055 
00057 
00058   vtkGetStringMacro(FileName);
00059   vtkSetStringMacro(FileName);
00061 
00063 
00064   vtkSetStringMacro(DefaultExtension);
00065   vtkGetStringMacro(DefaultExtension);
00067   
00069 
00070   vtkSetStringMacro(InitialFileName);
00071   vtkGetStringMacro(InitialFileName);
00073 
00075 
00077   vtkSetClampMacro(SaveDialog, int, 0, 1);
00078   vtkBooleanMacro(SaveDialog, int);
00079   vtkGetMacro(SaveDialog, int);
00081 
00083 
00086   vtkSetClampMacro(ChooseDirectory, int, 0, 1);
00087   vtkBooleanMacro(ChooseDirectory, int);
00088   vtkGetMacro(ChooseDirectory, int);
00090 
00092 
00093   vtkGetStringMacro(LastPath);
00094   vtkSetStringMacro(LastPath);
00096 
00098   const char* GenerateLastPath(const char* path);
00099 
00100 protected:
00101   vtkKWLoadSaveDialog();
00102   ~vtkKWLoadSaveDialog();
00103 
00104   char *FileTypes;
00105   char *InitialFileName;
00106   char *FileName;
00107   char *DefaultExtension;
00108   char *LastPath;
00109   int SaveDialog;
00110   int ChooseDirectory;
00111   int Done;
00112 
00113 private:
00114   vtkKWLoadSaveDialog(const vtkKWLoadSaveDialog&); // Not implemented
00115   void operator=(const vtkKWLoadSaveDialog&); // Not implemented
00116 };
00117 
00118 
00119 #endif
00120 
00121 
00122 

Generated on Tue May 30 12:31:43 2006 for ParaView by doxygen 1.3.5