vtkSlicerLoadSaveButton Class Reference

#include <vtkSlicerLoadSaveButton.h>

Inheritance diagram for vtkSlicerLoadSaveButton:
vtkKWPushButton

List of all members.

Public Member Functions

virtual void AddCallbackCommandObservers ()
virtual const charGetFileName ()
void PrintSelf (ostream &os, vtkIndent indent)
virtual void RemoveCallbackCommandObservers ()
virtual void SetMaximumFileNameLength (int)
virtual void SetTrimPathFromFileName (int)
virtual void UpdateEnableState ()
 vtkBooleanMacro (TrimPathFromFileName, int)
 vtkGetMacro (TrimPathFromFileName, int)
 vtkGetMacro (MaximumFileNameLength, int)
 vtkGetObjectMacro (LoadSaveDialog, vtkSlicerLoadSaveDialog)
 vtkTypeRevisionMacro (vtkSlicerLoadSaveButton, vtkKWPushButton)

Static Public Member Functions

static vtkSlicerLoadSaveButtonNew ()

Protected Member Functions

virtual void CreateWidget ()
virtual void InvokeCommand ()
virtual void ProcessCallbackCommandEvents (vtkObject *caller, unsigned long event, void *calldata)
virtual void UpdateTextFromFileName ()
 vtkSlicerLoadSaveButton ()
 ~vtkSlicerLoadSaveButton ()

Protected Attributes

vtkSlicerLoadSaveDialogLoadSaveDialog
int MaximumFileNameLength
int TrimPathFromFileName

Private Member Functions

void operator= (const vtkSlicerLoadSaveButton &)
 Not implemented.
 vtkSlicerLoadSaveButton (const vtkSlicerLoadSaveButton &)

Constructor & Destructor Documentation

vtkSlicerLoadSaveButton::vtkSlicerLoadSaveButton (  )  [protected]
vtkSlicerLoadSaveButton::~vtkSlicerLoadSaveButton (  )  [protected]

References LoadSaveDialog.

vtkSlicerLoadSaveButton::vtkSlicerLoadSaveButton ( const vtkSlicerLoadSaveButton  )  [private]

Member Function Documentation

void vtkSlicerLoadSaveButton::AddCallbackCommandObservers (  )  [virtual]

Add all the default observers needed by that object, or remove all the observers that were added through AddCallbackCommandObserver. Subclasses can override these methods to add/remove their own default observers, but should call the superclass too.

References LoadSaveDialog.

Referenced by vtkSlicerLoadSaveButton().

void vtkSlicerLoadSaveButton::CreateWidget ( void   )  [protected, virtual]

Create the widget.

References LoadSaveDialog.

const char * vtkSlicerLoadSaveButton::GetFileName (  )  [virtual]

Retrieve the filename. This method only query the GetFileName method on the LoadSaveDialog member.

References LoadSaveDialog.

Referenced by UpdateTextFromFileName().

void vtkSlicerLoadSaveButton::InvokeCommand (  )  [protected, virtual]

References LoadSaveDialog.

static vtkSlicerLoadSaveButton* vtkSlicerLoadSaveButton::New (  )  [static]

Referenced by vtkSlicerLoadSaveButton().

void vtkSlicerLoadSaveButton::operator= ( const vtkSlicerLoadSaveButton  )  [private]

Not implemented.

void vtkSlicerLoadSaveButton::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void vtkSlicerLoadSaveButton::ProcessCallbackCommandEvents ( vtkObject caller,
unsigned long  event,
void *  calldata 
) [protected, virtual]

Processes the events that are passed through CallbackCommand (or others). Subclasses can oberride this method to process their own events, but should call the superclass too.

References LoadSaveDialog, and UpdateTextFromFileName().

void vtkSlicerLoadSaveButton::RemoveCallbackCommandObservers (  )  [virtual]

References LoadSaveDialog.

void vtkSlicerLoadSaveButton::SetMaximumFileNameLength ( int  arg  )  [virtual]

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

References MaximumFileNameLength, FW::Actions::Modified, and UpdateTextFromFileName().

void vtkSlicerLoadSaveButton::SetTrimPathFromFileName ( int  arg  )  [virtual]

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

References FW::Actions::Modified, TrimPathFromFileName, and UpdateTextFromFileName().

void vtkSlicerLoadSaveButton::UpdateEnableState ( void   )  [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.

References LoadSaveDialog.

void vtkSlicerLoadSaveButton::UpdateTextFromFileName (  )  [protected, virtual]
vtkSlicerLoadSaveButton::vtkBooleanMacro ( TrimPathFromFileName  ,
int   
)
vtkSlicerLoadSaveButton::vtkGetMacro ( TrimPathFromFileName  ,
int   
)
vtkSlicerLoadSaveButton::vtkGetMacro ( MaximumFileNameLength  ,
int   
)
vtkSlicerLoadSaveButton::vtkGetObjectMacro ( LoadSaveDialog  ,
vtkSlicerLoadSaveDialog   
)

Access to sub-widgets.

vtkSlicerLoadSaveButton::vtkTypeRevisionMacro ( vtkSlicerLoadSaveButton  ,
vtkKWPushButton   
)

Member Data Documentation


The documentation for this class was generated from the following files:

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1