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

GUI/Widgets/vtkKWLoadSaveButton.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Module:    $RCSfile: vtkKWLoadSaveButton.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 =========================================================================*/
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&); // Not implemented
00095   void operator=(const vtkKWLoadSaveButton&); // Not implemented
00096 };
00097 
00098 #endif
00099 

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