BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
BALL::VIEW::DemoTutorialDialog Class Reference

#include </Users/hudson/workspace/Build_BALL_Stable_on_MacOS_10_7/source/APPLICATIONS/BALLVIEW/demoTutorialDialog.h>

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

Public Slots

void show ()
 Show and raise the dialog. More...
 
void showDemo ()
 
void showTutorial ()
 
void nextStepClicked ()
 Next Step. More...
 
virtual void checkMenu (MainControl &main_control)
 

Public Member Functions

 DemoTutorialDialog (QWidget *parent=NULL, const char *name=NULL)
 Default Constructor. More...
 
virtual ~DemoTutorialDialog ()
 Destructor. More...
 
virtual void onNotify (Message *message)
 Message handling method. More...
 
virtual void initializeWidget (MainControl &main_control)
 
void setDemoMode (bool state)
 
- Public Member Functions inherited from BALL::VIEW::ModularWidget
void setWorkingDirFromFilename_ (String filename)
 
virtual void showHelp (const String &url)
 
 ModularWidget (const char *name="<ModularWidget>")
 
 ModularWidget (const ModularWidget &widget)
 
virtual ~ModularWidget ()
 
virtual void destroy ()
 
virtual void clear ()
 
virtual void checkMenu (MainControl &main_control)
 
QAction * insertMenuEntry (Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence())
 
void setMenuHint (const String &hint)
 
void setMenuHelp (const String &url)
 
virtual void registerForHelpSystem (const QObject *object, const String &url)
 
virtual void addToolBarEntries (QToolBar *main_tb)
 
void setIcon (const String &filename, bool add_to_main_toolbar=true)
 
virtual void initializePreferencesTab (Preferences &preferences)
 
virtual void finalizePreferencesTab (Preferences &preferences)
 
virtual void applyPreferences ()
 
virtual void fetchPreferences (INIFile &inifile)
 
virtual void writePreferences (INIFile &inifile)
 
bool lockComposites ()
 
bool unlockComposites ()
 Unlock the Composites. More...
 
MainControlgetMainControl () const
 
virtual void setStatusbarText (const String &text, bool important=false)
 
virtual void setStatusbarText (const QString &text, bool important=false)
  More...
 
String getWorkingDir ()
 Implemented for convenience. More...
 
void setWorkingDir (const String &dir)
 Implemented for convenience. More...
 
FragmentDBgetFragmentDB () const
 
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
virtual void finalizeWidget (MainControl &main_control)
 
virtual bool canHandle (const String &) const
 
virtual bool openFile (const String &)
 
- Public Member Functions inherited from BALL::Embeddable
 Embeddable (const String &identifier="<Embeddable>")
 
 Embeddable (const Embeddable &embeddable)
 
virtual ~Embeddable ()
 
void setIdentifier (const String &identifier)
 
const StringgetIdentifier () const
 
void unregisterThis ()
 
virtual void registerThis ()
 
- Public Member Functions inherited from BALL::VIEW::ConnectionObject
 ConnectionObject ()
 
virtual ~ConnectionObject ()
 
void registerConnectionObject (ConnectionObject &object)
 
void unregisterConnectionObject (ConnectionObject &object)
 
bool isConnectionObjectRegistered (const ConnectionObject &object)
 
ConnectionObjectgetParent () const
 
ConnectionObjectgetRoot ()
 
virtual bool isValid () const
 

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

std::list< Composite * > composites_
 
RegularData3Dgrid_
 
Systemsystem_
 
String prefix_
 
bool demo_mode_
 
Position current_step_
 
Meshsurface_
 
QAction * demo_action_
 
QAction * tutorial_action_
 

Additional Inherited Members

- Public Types inherited from BALL::Embeddable
typedef std::vector< Embeddable * > EmbeddableVector
 
- Static Public Member Functions inherited from BALL::VIEW::ModularWidget
static void registerWidget (ModularWidget *mwidget) throw (Exception::NullPointer)
 
- Static Protected Member Functions inherited from BALL::Embeddable
static void registerInstance_ (const std::type_info &type, const Embeddable *instance)
 
static void unregisterInstance_ (const Embeddable *instance)
 
static Size countInstances_ (const std::type_info &type)
 
static EmbeddablegetInstance_ (const std::type_info &type, Position index)
 
static EmbeddablegetInstance_ (const std::type_info &type, const String &identifier)
 
- Protected Attributes inherited from BALL::VIEW::ModularWidget
QAction * window_menu_entry_
 
bool show_window_enty_
 
bool default_visible_
 
QAction * last_action_
 
QList< QAction * > main_toolbar_actions_
 

Detailed Description

Dialog for showing a demo and tutorial.

Definition at line 32 of file demoTutorialDialog.h.

Constructor & Destructor Documentation

BALL::VIEW::DemoTutorialDialog::DemoTutorialDialog ( QWidget parent = NULL,
const char *  name = NULL 
)

Default Constructor.

Definition at line 54 of file demoTutorialDialog.C.

BALL::VIEW::DemoTutorialDialog::~DemoTutorialDialog ( )
virtual

Destructor.

Definition at line 76 of file demoTutorialDialog.C.

Member Function Documentation

void BALL::VIEW::DemoTutorialDialog::checkMenu ( MainControl main_control)
virtualslot

Definition at line 599 of file demoTutorialDialog.C.

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

Definition at line 224 of file demoTutorialDialog.C.

String BALL::VIEW::DemoTutorialDialog::getBaseDir_ ( )
protected

Definition at line 104 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::initDemo_ ( )
protected

Definition at line 85 of file demoTutorialDialog.C.

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_controlthe MainControl object to be initialized with this ModularWidget
See Also
finalizeWidget()

Reimplemented from BALL::VIEW::ModularWidget.

Definition at line 585 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::initTutorial_ ( )
protected

Definition at line 117 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::nextStepClicked ( )
slot

Next Step.

Definition at line 230 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::nextStepDemo_ ( )
protected

Definition at line 272 of file demoTutorialDialog.C.

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

Message handling method.

Reimplemented from BALL::VIEW::ConnectionObject.

Definition at line 167 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::onNotifyDemo_ ( Message message)
protectedvirtual

Definition at line 181 of file demoTutorialDialog.C.

void BALL::VIEW::DemoTutorialDialog::onNotifyTutorial_ ( Message message)
protectedvirtual

Definition at line 471 of file demoTutorialDialog.C.

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

Definition at line 54 of file demoTutorialDialog.h.

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

Show and raise the dialog.

Definition at line 141 of file demoTutorialDialog.C.

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

Definition at line 465 of file demoTutorialDialog.C.

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

Definition at line 459 of file demoTutorialDialog.C.

Member Data Documentation

std::list<Composite*> BALL::VIEW::DemoTutorialDialog::composites_
private

Definition at line 89 of file demoTutorialDialog.h.

Position BALL::VIEW::DemoTutorialDialog::current_step_
private

Definition at line 95 of file demoTutorialDialog.h.

QAction* BALL::VIEW::DemoTutorialDialog::demo_action_
private

Definition at line 97 of file demoTutorialDialog.h.

bool BALL::VIEW::DemoTutorialDialog::demo_mode_
private

Definition at line 94 of file demoTutorialDialog.h.

RegularData3D* BALL::VIEW::DemoTutorialDialog::grid_
private

Definition at line 90 of file demoTutorialDialog.h.

String BALL::VIEW::DemoTutorialDialog::prefix_
private

Definition at line 93 of file demoTutorialDialog.h.

Mesh* BALL::VIEW::DemoTutorialDialog::surface_
private

Definition at line 96 of file demoTutorialDialog.h.

System* BALL::VIEW::DemoTutorialDialog::system_
private

Definition at line 91 of file demoTutorialDialog.h.

QAction * BALL::VIEW::DemoTutorialDialog::tutorial_action_
private

Definition at line 97 of file demoTutorialDialog.h.