last update 20 Sep 2009 |
#include <cvrViewer2D.h>
Classes | |
class | tk |
Private class of the configuration dialogs which deals with all internal issues of the GTK toolkit. More... | |
Public Member Functions | |
configDialog (viewer2D &parent) | |
configDialog (const configDialog &other, viewerBase &parent) | |
virtual | ~configDialog () |
virtual bool | useInformation (const viewerBase::information *dataInfo) |
const information & | getInformation () const |
virtual bool | setParameters (const parameters &par) |
virtual bool | saveButtonPressed (const std::string &filename) |
configDialog & | copy (const configDialog &other) |
virtual configDialog * | clone (viewerBase &parent) const |
Toolkit dependent functions | |
virtual bool | build () |
virtual bool | show () |
virtual bool | hide () |
virtual bool | destroy () |
Protected Member Functions | |
tk * | getToolkit () |
cvr::viewer2D::viewer2D::configDialog::configDialog | ( | viewer2D & | parent | ) |
Construction.
cvr::viewer2D::viewer2D::configDialog::configDialog | ( | const configDialog & | other, | |
viewerBase & | parent | |||
) |
Sort of copy constructor but with a new parent.
virtual cvr::viewer2D::viewer2D::configDialog::~configDialog | ( | ) | [virtual] |
virtual bool cvr::viewer2D::viewer2D::configDialog::build | ( | ) | [virtual] |
Constructs the main window.
You usually don't need to call this method directly, as it is called by show() if necessary.
This is called just once for the configuration dialog at its construction time.
In inherited classes it is usually employed to build the basic structure of the configuration dialog
Reimplemented from cvr::viewerBase::viewerBase::configDialog.
virtual configDialog* cvr::viewer2D::viewer2D::configDialog::clone | ( | viewerBase & | parent | ) | const [virtual] |
This clone requires the parent window.
Reimplemented from cvr::viewerBase::viewerBase::configDialog.
configDialog& cvr::viewer2D::viewer2D::configDialog::copy | ( | const configDialog & | other | ) |
Copy method.
Copies everything, but the parent main window
virtual bool cvr::viewer2D::viewer2D::configDialog::destroy | ( | ) | [virtual] |
Destroys the widget completely.
Before the widget is destroyed, the window is hidden, and the parent viewer is signalized accordingly in order to destroy the configuration dialog.
Reimplemented from cvr::viewerBase::viewerBase::configDialog.
const information& cvr::viewer2D::viewer2D::configDialog::getInformation | ( | ) | const |
Get a read-only reference to the data block.
Reimplemented from cvr::viewerBase::viewerBase::configDialog.
tk* cvr::viewer2D::viewer2D::configDialog::getToolkit | ( | ) | [protected] |
Get the toolkit with the proper type.
virtual bool cvr::viewer2D::viewer2D::configDialog::hide | ( | ) | [virtual] |
virtual bool cvr::viewer2D::viewer2D::configDialog::saveButtonPressed | ( | const std::string & | filename | ) | [virtual] |
Save button pressed.
Method called when the user pressed the save button. Usually this method just call the viewer2D::saveButtonPressed();
virtual bool cvr::viewer2D::viewer2D::configDialog::setParameters | ( | const parameters & | par | ) | [virtual] |
Set a copy of the given parameters.
This method just calls for the base class one and then indicates the toolkit instance to update its GUI elements.
Reimplemented from cvr::viewerBase::viewerBase::configDialog.
virtual bool cvr::viewer2D::viewer2D::configDialog::show | ( | ) | [virtual] |
virtual bool cvr::viewer2D::viewer2D::configDialog::useInformation | ( | const viewerBase::information * | dataInfo | ) | [virtual] |
Use the given information block.
This method does not copy the information block, it just stores a reference to the given instance.
Inherited methods should call this one and transfer all data in the information block to the GUI elements.
Reimplemented from cvr::viewerBase::viewerBase::configDialog.