00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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&);
00115 void operator=(const vtkKWLoadSaveDialog&);
00116 };
00117
00118
00119 #endif
00120
00121
00122