BALL::VIEW::DemoTutorialDialog Class Reference

#include </Users/andreas/BALL-cmake/source/APPLICATIONS/BALLVIEW/demoTutorialDialog.h>

Inheritance diagram for BALL::VIEW::DemoTutorialDialog:
QDialog Ui_DemoTutorialDialogData BALL::VIEW::ModularWidget BALL::Embeddable BALL::VIEW::ConnectionObject

List of all members.


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_
RegularData3Dgrid_
Systemsystem_
String prefix_
bool demo_mode_
Position current_step_
Meshsurface_
QAction * demo_action_
QAction * tutorial_action_

Detailed Description

Dialog for showing a demo and tutorial.


Constructor & Destructor Documentation

BALL::VIEW::DemoTutorialDialog::DemoTutorialDialog ( QWidget parent = NULL,
const char *  name = NULL 
)
BALL::VIEW::DemoTutorialDialog::~DemoTutorialDialog (  )  [virtual]

Destructor.

References BALL::LogStream::error(), BALL::Log, and surface_.


Member Function Documentation

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).

Parameters:
main_control the MainControl object whose menus should be checked

Reimplemented from BALL::VIEW::ModularWidget.

References demo_action_, BALL::VIEW::MainControl::isBusy(), and tutorial_action_.

void BALL::VIEW::DemoTutorialDialog::enableNextStep_ (  )  [protected]

Referenced by onNotifyDemo_(), and onNotifyTutorial_().

String BALL::VIEW::DemoTutorialDialog::getBaseDir_ (  )  [protected]
void BALL::VIEW::DemoTutorialDialog::initDemo_ (  )  [protected]

References getBaseDir_(), prefix_, and show().

Referenced by show().

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.

Parameters:
main_control the MainControl object to be initialized with this ModularWidget
See also:
finalizeWidget()

Reimplemented from BALL::VIEW::ModularWidget.

References demo_action_, BALL::VIEW::ModularWidget::getMainControl(), BALL::VIEW::MainControl::HELP, BALL::VIEW::ModularWidget::insertMenuEntry(), BALL::VIEW::MainControl::insertPopupMenuSeparator(), BALL::VIEW::ModularWidget::setMenuHint(), showDemo(), showTutorial(), and tutorial_action_.

void BALL::VIEW::DemoTutorialDialog::initTutorial_ (  )  [protected]
void BALL::VIEW::DemoTutorialDialog::nextStepClicked (  )  [slot]
void BALL::VIEW::DemoTutorialDialog::nextStepDemo_ (  )  [protected]

References BALL::Composite::apply(), BALL::VIEW::ModifyRepresentationDialog::applyPressed(), BALLVIEW_DEBUG, BALL::VIEW::MolecularStructure::calculateFDPB(), BALL::VIEW::MolecularStructure::calculateHBonds(), BALL::VIEW::MolecularStructure::chooseAmberFF(), BALL::VIEW::COLORING_ELEMENT, BALL::VIEW::COLORING_RESIDUE_INDEX, BALL::VIEW::COLORING_SECONDARY_STRUCTURE, BALL::VIEW::COLORING_TEMPERATURE_FACTOR, composites_, BALL::VIEW::RegularData3DController::computeIsoContourSurface(), BALL::VIEW::RepresentationManager::createRepresentation(), current_step_, BALL::VIEW::DRAWING_PRECISION_HIGH, BALL::VIEW::DisplayProperties::enableCreationForNewMolecules(), BALL::LogStream::error(), BALL::Path::find(), BALL::VIEW::MolecularStructure::getAmberConfigurationDialog(), BALL::VIEW::DatasetController::getDatasets(), BALL::Exception::FileNotFound::getFilename(), BALL::VIEW::ModularWidget::getFragmentDB(), BALL::VIEW::ModularWidget::getMainControl(), BALL::VIEW::MolecularStructure::getMDSimulationDialog(), BALL::VIEW::MolecularStructure::getMinimizationDialog(), BALL::VIEW::MainControl::getMolecularControlSelection(), BALL::VIEW::RepresentationManager::getNumberOfRepresentations(), BALL::VIEW::MainControl::getRepresentationManager(), BALL::VIEW::RepresentationManager::getRepresentations(), grid_, BALL::VIEW::MainControl::insert(), BALL::VIEW::Representation::insert(), BALL::Log, BALL::VIEW::MolecularStructure::MDSimulation(), BALL::VIEW::MODEL_CARTOON, BALL::VIEW::MODEL_HBONDS, BALL::VIEW::MODEL_SA_SURFACE, BALL::VIEW::MODEL_SE_SURFACE, BALL::VIEW::MODEL_STICK, BALL::VIEW::MODEL_VDW, BALL::VIEW::ConnectionObject::notify_(), BALL::VIEW::MolecularFileDialog::openMolecularFile(), BALL::VIEW::MainControl::remove(), BALL::VIEW::AmberConfigurationDialog::resetOptions(), BALL::VIEW::MolecularStructure::runMinimization(), BALL::VIEW::DisplayProperties::setDrawingPrecision(), BALL::VIEW::ModifyRepresentationDialog::setGrid(), BALL::VIEW::MinimizationDialog::setMaxGradient(), BALL::VIEW::MinimizationDialog::setMaxIterations(), BALL::VIEW::ModifyRepresentationDialog::setMaxValue(), BALL::VIEW::ModifyRepresentationDialog::setMinValue(), BALL::VIEW::ModifyRepresentationDialog::setMode(), BALL::VIEW::Representation::setModelType(), BALL::VIEW::MainControl::setMultithreading(), BALL::VIEW::MolecularDynamicsDialog::setNumberOfSteps(), BALL::VIEW::MinimizationDialog::setRefresh(), BALL::VIEW::ModifyRepresentationDialog::setRepresentation(), BALL::VIEW::MolecularDynamicsDialog::setTimeStep(), surface_, system_, BALL::VIEW::RegularData3DController::type, and BALL::VIEW::MainControl::update().

Referenced by nextStepClicked().

void BALL::VIEW::DemoTutorialDialog::nextStepTutorial_ (  )  [protected]
void BALL::VIEW::DemoTutorialDialog::onNotify ( Message message  )  [virtual]

Message handling method.

Reimplemented from BALL::VIEW::ConnectionObject.

References demo_mode_, onNotifyDemo_(), and onNotifyTutorial_().

void BALL::VIEW::DemoTutorialDialog::setDemoMode ( bool  state  )  [inline]

References demo_mode_.

void BALL::VIEW::DemoTutorialDialog::show (  )  [slot]

Show and raise the dialog.

References current_step_, demo_mode_, initDemo_(), initTutorial_(), and prefix_.

Referenced by initDemo_(), showDemo(), and showTutorial().

void BALL::VIEW::DemoTutorialDialog::showDemo (  )  [slot]

References demo_mode_, and show().

Referenced by initializeWidget().

void BALL::VIEW::DemoTutorialDialog::showTutorial (  )  [slot]

References demo_mode_, and show().

Referenced by initializeWidget(), and nextStepClicked().


Member Data Documentation