OpenWalnut
1.3.1
|
This class prescribes the interface to the GUI. More...
#include <WGUI.h>
Public Member Functions | |
WGUI (int argc, char **argv) | |
Constructor. More... | |
virtual | ~WGUI () |
Destructor. More... | |
virtual const WFlag< bool > & | isInitialized () const |
Returns the init flag. More... | |
virtual int | run ()=0 |
Runs the GUI. More... | |
virtual WCustomWidget::SPtr | openCustomWidget (std::string title, WGECamera::ProjectionMode projectionMode, boost::shared_ptr< WCondition > shutdownCondition)=0 |
Instruct to open a new custom widget. More... | |
virtual void | closeCustomWidget (std::string title)=0 |
Instruct to close a custom widget. More... | |
virtual void | closeCustomWidget (WCustomWidget::SPtr widget)=0 |
Instruct to close the custom widget. More... | |
Protected Attributes | |
WFlag< bool > | m_isInitialized |
Flag determining whether the GUI is properly initialized. More... | |
int | m_argc |
Number of command line arguments given. More... | |
char ** | m_argv |
Command line arguments given. More... | |
This class prescribes the interface to the GUI.
It basically is an abstract class defining the interface common to all possible GUI implementations.
WGUI::WGUI | ( | int | argc, |
char ** | argv | ||
) |
|
pure virtual |
Instruct to close a custom widget.
title | The title of the widget |
|
pure virtual |
Instruct to close the custom widget.
widget | the widget to close again. |
|
virtual |
Returns the init flag.
Definition at line 41 of file WGUI.cpp.
References m_isInitialized.
|
pure virtual |
Instruct to open a new custom widget.
The specified condition should be the shutdown condition of the module, as the function returns only if the widget was created. To ensure that the creation is aborted properly if the module shuts down in the meantime, this condition is used.
title | the title of the widget |
projectionMode | the kind of projection which should be used |
shutdownCondition | a condition enforcing abort of widget creation. |
|
pure virtual |
Runs the GUI.
All initialization should be done here.
|
protected |
|
protected |
Flag determining whether the GUI is properly initialized.
Definition at line 119 of file WGUI.h.
Referenced by isInitialized().