#include </build/buildd/ball-1.3.2/source/APPLICATIONS/BALLVIEW/demoTutorialDialog.h>
Public Slots | |
void | show () |
Show and raise the dialog. | |
void | showDemo () |
void | showTutorial () |
void | nextStepClicked () |
Next Step. | |
virtual void | checkMenu (MainControl &main_control) |
Public Member Functions | |
DemoTutorialDialog (QWidget *parent=NULL, const char *name=NULL) | |
Default Constructor. | |
virtual | ~DemoTutorialDialog () |
Destructor. | |
virtual void | onNotify (Message *message) |
Message handling method. | |
virtual void | initializeWidget (MainControl &main_control) |
void | setDemoMode (bool state) |
Protected Member Functions | |
void | nextStepDemo_ () |
void | nextStepTutorial_ () |
void | initDemo_ () |
void | initTutorial_ () |
void | enableNextStep_ () |
virtual void | onNotifyTutorial_ (Message *message) |
virtual void | onNotifyDemo_ (Message *message) |
String | getBaseDir_ () |
Private Attributes | |
List< Composite * > | composites_ |
RegularData3D * | grid_ |
System * | system_ |
String | prefix_ |
bool | demo_mode_ |
Position | current_step_ |
Mesh * | surface_ |
QAction * | demo_action_ |
QAction * | tutorial_action_ |
Dialog for showing a demo and tutorial.
BALL::VIEW::DemoTutorialDialog::DemoTutorialDialog | ( | QWidget * | parent = NULL , |
|
const char * | name = NULL | |||
) |
Default Constructor.
References BALL::VIEW::TUTORIAL_PEPTIDE.
BALL::VIEW::DemoTutorialDialog::~DemoTutorialDialog | ( | ) | [virtual] |
Destructor.
void BALL::VIEW::DemoTutorialDialog::checkMenu | ( | MainControl & | main_control | ) | [virtual, slot] |
Menu checking method. This method is called MainControl::checkMenus before a popup menu is shown. It should be used to update the state of menu entries (e.g. disable or enable entries).
main_control | the MainControl object whose menus should be checked |
Reimplemented from BALL::VIEW::ModularWidget.
void BALL::VIEW::DemoTutorialDialog::enableNextStep_ | ( | ) | [protected] |
References BALLVIEW_DEBUG.
String BALL::VIEW::DemoTutorialDialog::getBaseDir_ | ( | ) | [protected] |
Referenced by initTutorial_().
void BALL::VIEW::DemoTutorialDialog::initDemo_ | ( | ) | [protected] |
void BALL::VIEW::DemoTutorialDialog::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Initialize the widget. This method is called automatically immediately before the main application is started. It should add the widget's menu entries and connections (if required). This method will be called by MainControl::show.
main_control | the MainControl object to be initialized with this ModularWidget |
Reimplemented from BALL::VIEW::ModularWidget.
References BALL::VIEW::MODEL_SE_SURFACE, and BALL::VIEW::RepresentationMessage::UPDATE.
void BALL::VIEW::DemoTutorialDialog::initTutorial_ | ( | ) | [protected] |
References getBaseDir_(), prefix_, and show().
Referenced by onNotifyDemo_().
void BALL::VIEW::DemoTutorialDialog::nextStepClicked | ( | ) | [slot] |
Next Step.
Referenced by initDemo_().
void BALL::VIEW::DemoTutorialDialog::nextStepDemo_ | ( | ) | [protected] |
References current_step_, and showTutorial().
void BALL::VIEW::DemoTutorialDialog::nextStepTutorial_ | ( | ) | [protected] |
void BALL::VIEW::DemoTutorialDialog::onNotify | ( | Message * | message | ) | [virtual] |
Message handling method.
Reimplemented from BALL::VIEW::ConnectionObject.
void BALL::VIEW::DemoTutorialDialog::onNotifyDemo_ | ( | Message * | message | ) | [protected, virtual] |
References initTutorial_().
void BALL::VIEW::DemoTutorialDialog::onNotifyTutorial_ | ( | Message * | message | ) | [protected, virtual] |
References BALL::VIEW::COLORING_ELEMENT, composites_, BALL::VIEW::RegularData3DController::computeIsoContourSurface(), BALL::VIEW::DatasetController::getDatasets(), BALL::VIEW::ModularWidget::getMainControl(), BALL::VIEW::MODEL_STICK, BALL::VIEW::ConnectionObject::notify_(), BALL::VIEW::MainControl::setMultithreading(), and BALL::VIEW::RegularData3DController::type.
void BALL::VIEW::DemoTutorialDialog::setDemoMode | ( | bool | state | ) | [inline] |
References demo_mode_.
void BALL::VIEW::DemoTutorialDialog::show | ( | ) | [slot] |
Show and raise the dialog.
Referenced by initTutorial_().
void BALL::VIEW::DemoTutorialDialog::showDemo | ( | ) | [slot] |
void BALL::VIEW::DemoTutorialDialog::showTutorial | ( | ) | [slot] |
Referenced by nextStepDemo_().
List<Composite*> BALL::VIEW::DemoTutorialDialog::composites_ [private] |
Referenced by onNotifyTutorial_().
Referenced by nextStepDemo_().
QAction* BALL::VIEW::DemoTutorialDialog::demo_action_ [private] |
Referenced by setDemoMode().
Referenced by initTutorial_().
Mesh* BALL::VIEW::DemoTutorialDialog::surface_ [private] |
System* BALL::VIEW::DemoTutorialDialog::system_ [private] |
QAction * BALL::VIEW::DemoTutorialDialog::tutorial_action_ [private] |