00001 #ifndef __vtkSlicerLoadSaveButton_h 00002 #define __vtkSlicerLoadSaveButton_h 00003 00004 #include "vtkKWPushButton.h" 00005 #include "vtkSlicerBaseGUIWin32Header.h" 00006 00007 class vtkSlicerLoadSaveDialog; 00008 00009 class VTK_SLICER_BASE_GUI_EXPORT vtkSlicerLoadSaveButton : public vtkKWPushButton 00010 { 00011 public: 00012 static vtkSlicerLoadSaveButton* New(); 00013 vtkTypeRevisionMacro(vtkSlicerLoadSaveButton, vtkKWPushButton); 00014 void PrintSelf(ostream& os, vtkIndent indent); 00015 00018 vtkGetObjectMacro(LoadSaveDialog, vtkSlicerLoadSaveDialog); 00019 00023 virtual const char* GetFileName(); 00024 00028 virtual void SetMaximumFileNameLength(int); 00029 vtkGetMacro(MaximumFileNameLength, int); 00030 00034 virtual void SetTrimPathFromFileName(int); 00035 vtkBooleanMacro(TrimPathFromFileName, int); 00036 vtkGetMacro(TrimPathFromFileName, int); 00037 00045 virtual void UpdateEnableState(); 00046 00052 virtual void AddCallbackCommandObservers(); 00053 virtual void RemoveCallbackCommandObservers(); 00054 00055 protected: 00056 vtkSlicerLoadSaveButton(); 00057 ~vtkSlicerLoadSaveButton(); 00058 00061 virtual void CreateWidget(); 00062 00063 vtkSlicerLoadSaveDialog *LoadSaveDialog; 00064 00065 int TrimPathFromFileName; 00066 int MaximumFileNameLength; 00067 virtual void UpdateTextFromFileName(); 00068 00069 virtual void InvokeCommand(); 00070 00075 virtual void ProcessCallbackCommandEvents( 00076 vtkObject *caller, unsigned long event, void *calldata); 00077 00078 private: 00079 vtkSlicerLoadSaveButton(const vtkSlicerLoadSaveButton&); 00080 void operator=(const vtkSlicerLoadSaveButton&); 00081 }; 00082 00083 #endif 00084
1.6.1