00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00024 #ifndef __vtkKWLoadSaveButton_h
00025 #define __vtkKWLoadSaveButton_h
00026
00027 #include "vtkKWPushButton.h"
00028
00029 class vtkKWLoadSaveDialog;
00030
00031 class KWWIDGETS_EXPORT vtkKWLoadSaveButton : public vtkKWPushButton
00032 {
00033 public:
00034 static vtkKWLoadSaveButton* New();
00035 vtkTypeRevisionMacro(vtkKWLoadSaveButton, vtkKWPushButton);
00036 void PrintSelf(ostream& os, vtkIndent indent);
00037
00039 virtual void Create(vtkKWApplication *app);
00040
00042
00043 vtkGetObjectMacro(LoadSaveDialog, vtkKWLoadSaveDialog);
00045
00047 virtual char* GetFileName();
00048
00050
00052 virtual void SetMaximumFileNameLength(int);
00053 vtkGetMacro(MaximumFileNameLength, int);
00055
00057
00059 virtual void SetTrimPathFromFileName(int);
00060 vtkBooleanMacro(TrimPathFromFileName, int);
00061 vtkGetMacro(TrimPathFromFileName, int);
00063
00066 virtual void SetCommand(vtkObject *object, const char *method);
00067
00069 virtual void InvokeLoadSaveDialogCallback();
00070
00077 virtual void UpdateEnableState();
00078
00079 protected:
00080 vtkKWLoadSaveButton();
00081 ~vtkKWLoadSaveButton();
00082
00083 vtkKWLoadSaveDialog *LoadSaveDialog;
00084
00085 int TrimPathFromFileName;
00086 int MaximumFileNameLength;
00087 virtual void UpdateFileName();
00088
00089 char *UserCommand;
00090 vtkSetStringMacro(UserCommand);
00091 vtkGetStringMacro(UserCommand);
00092
00093 private:
00094 vtkKWLoadSaveButton(const vtkKWLoadSaveButton&);
00095 void operator=(const vtkKWLoadSaveButton&);
00096 };
00097
00098 #endif
00099