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

vtkKWLoadSaveButton Class Reference

a button that triggers a load/save dialog More...

#include <vtkKWLoadSaveButton.h>

Inheritance diagram for vtkKWLoadSaveButton:

Inheritance graph
[legend]
Collaboration diagram for vtkKWLoadSaveButton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWLoadSaveButton, vtkKWPushButton)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
virtual char * GetFileName ()
virtual void SetCommand (vtkObject *object, const char *method)
virtual void InvokeLoadSaveDialogCallback ()
virtual void UpdateEnableState ()
virtual vtkKWLoadSaveDialogGetLoadSaveDialog ()
virtual void SetMaximumFileNameLength (int)
virtual int GetMaximumFileNameLength ()
virtual void SetTrimPathFromFileName (int)
virtual void TrimPathFromFileNameOn ()
virtual void TrimPathFromFileNameOff ()
virtual int GetTrimPathFromFileName ()

Static Public Member Functions

vtkKWLoadSaveButtonNew ()

Protected Member Functions

 vtkKWLoadSaveButton ()
 ~vtkKWLoadSaveButton ()
virtual void UpdateFileName ()
virtual void SetUserCommand (const char *)
virtual char * GetUserCommand ()

Protected Attributes

vtkKWLoadSaveDialogLoadSaveDialog
int TrimPathFromFileName
int MaximumFileNameLength
char * UserCommand

Detailed Description

a button that triggers a load/save dialog

The vtkKWLoadSaveButton class creates a push button that will popup a vtkKWLoadSaveDialog and display the chosen filename as the button label.

See also:
vtkKWLoadSaveButtonWithLabel

Definition at line 31 of file vtkKWLoadSaveButton.h.


Constructor & Destructor Documentation

vtkKWLoadSaveButton::vtkKWLoadSaveButton  )  [protected]
 

vtkKWLoadSaveButton::~vtkKWLoadSaveButton  )  [protected]
 


Member Function Documentation

vtkKWLoadSaveButton* vtkKWLoadSaveButton::New  )  [static]
 

Reimplemented from vtkKWPushButton.

vtkKWLoadSaveButton::vtkTypeRevisionMacro vtkKWLoadSaveButton  ,
vtkKWPushButton 
 

void vtkKWLoadSaveButton::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWPushButton.

virtual void vtkKWLoadSaveButton::Create vtkKWApplication app  )  [virtual]
 

Create the widget.

Reimplemented from vtkKWPushButton.

virtual vtkKWLoadSaveDialog* vtkKWLoadSaveButton::GetLoadSaveDialog  )  [virtual]
 

Access to sub-widgets.

virtual char* vtkKWLoadSaveButton::GetFileName  )  [virtual]
 

Convenience method to retrieve the filename.

virtual void vtkKWLoadSaveButton::SetMaximumFileNameLength int   )  [virtual]
 

Set/Get the length of the filename when displayed in the button. If set to 0, do not shorten the filename.

virtual int vtkKWLoadSaveButton::GetMaximumFileNameLength  )  [virtual]
 

Set/Get the length of the filename when displayed in the button. If set to 0, do not shorten the filename.

virtual void vtkKWLoadSaveButton::SetTrimPathFromFileName int   )  [virtual]
 

Set/Get if the path of the filename should be trimmed when displayed in the button.

virtual void vtkKWLoadSaveButton::TrimPathFromFileNameOn  )  [virtual]
 

Set/Get if the path of the filename should be trimmed when displayed in the button.

virtual void vtkKWLoadSaveButton::TrimPathFromFileNameOff  )  [virtual]
 

Set/Get if the path of the filename should be trimmed when displayed in the button.

virtual int vtkKWLoadSaveButton::GetTrimPathFromFileName  )  [virtual]
 

Set/Get if the path of the filename should be trimmed when displayed in the button.

virtual void vtkKWLoadSaveButton::SetCommand vtkObject *  object,
const char *  method
[virtual]
 

Override vtkKWWidget's SetCommand so that the button command callback will invoke the load/save dialog, then invoke a user-defined command.

Reimplemented from vtkKWPushButton.

virtual void vtkKWLoadSaveButton::InvokeLoadSaveDialogCallback  )  [virtual]
 

Callbacks.

virtual void vtkKWLoadSaveButton::UpdateEnableState  )  [virtual]
 

Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc.

Reimplemented from vtkKWPushButton.

virtual void vtkKWLoadSaveButton::UpdateFileName  )  [protected, virtual]
 

virtual void vtkKWLoadSaveButton::SetUserCommand const char *   )  [protected, virtual]
 

virtual char* vtkKWLoadSaveButton::GetUserCommand  )  [protected, virtual]
 


Member Data Documentation

vtkKWLoadSaveDialog* vtkKWLoadSaveButton::LoadSaveDialog [protected]
 

Definition at line 83 of file vtkKWLoadSaveButton.h.

int vtkKWLoadSaveButton::TrimPathFromFileName [protected]
 

Definition at line 85 of file vtkKWLoadSaveButton.h.

int vtkKWLoadSaveButton::MaximumFileNameLength [protected]
 

Definition at line 86 of file vtkKWLoadSaveButton.h.

char* vtkKWLoadSaveButton::UserCommand [protected]
 

Definition at line 89 of file vtkKWLoadSaveButton.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:39:55 2006 for ParaView by doxygen 1.3.5