#include <vtkSlicerLoadSaveButton.h>
| vtkSlicerLoadSaveButton::vtkSlicerLoadSaveButton | ( | ) | [protected] |
References AddCallbackCommandObservers(), LoadSaveDialog, MaximumFileNameLength, New(), and TrimPathFromFileName.
| vtkSlicerLoadSaveButton::~vtkSlicerLoadSaveButton | ( | ) | [protected] |
References LoadSaveDialog.
| vtkSlicerLoadSaveButton::vtkSlicerLoadSaveButton | ( | const vtkSlicerLoadSaveButton & | ) | [private] |
| 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 | |||
| ) |
References LoadSaveDialog, MaximumFileNameLength, and TrimPathFromFileName.
| 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] |
References GetFileName(), MaximumFileNameLength, and TrimPathFromFileName.
Referenced by ProcessCallbackCommandEvents(), SetMaximumFileNameLength(), and SetTrimPathFromFileName().
| vtkSlicerLoadSaveButton::vtkBooleanMacro | ( | TrimPathFromFileName | , | |
| int | ||||
| ) |
| vtkSlicerLoadSaveButton::vtkGetMacro | ( | TrimPathFromFileName | , | |
| int | ||||
| ) |
| vtkSlicerLoadSaveButton::vtkGetMacro | ( | MaximumFileNameLength | , | |
| int | ||||
| ) |
| vtkSlicerLoadSaveButton::vtkGetObjectMacro | ( | LoadSaveDialog | , | |
| vtkSlicerLoadSaveDialog | ||||
| ) |
Access to sub-widgets.
| vtkSlicerLoadSaveButton::vtkTypeRevisionMacro | ( | vtkSlicerLoadSaveButton | , | |
| vtkKWPushButton | ||||
| ) |
int vtkSlicerLoadSaveButton::MaximumFileNameLength [protected] |
Referenced by PrintSelf(), SetMaximumFileNameLength(), UpdateTextFromFileName(), and vtkSlicerLoadSaveButton().
int vtkSlicerLoadSaveButton::TrimPathFromFileName [protected] |
Referenced by PrintSelf(), SetTrimPathFromFileName(), UpdateTextFromFileName(), and vtkSlicerLoadSaveButton().
1.6.1