Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIGEL_MasterGUI::SIG_ExperimentListView Class Reference

The class that lets the user view the experiments. More...

#include <SIG_ExperimentListView.h>

Inheritance diagram for SIGEL_MasterGUI::SIG_ExperimentListView:

List of all members.

Public Methods

 SIG_ExperimentListView ( QWidget * parent, const char * name, QWidgetStack *theWidgetStack )
 The constructor of the experiment list view. More...

 ~SIG_ExperimentListView ()
 The destructor of the SIG_ExperimentListView. More...

SIG_ExperimentgetByExperimentName ( QString name )
 Returns the experiment object of the experiment called name. More...

bool experimentExists ( QString name)
 Checks whether an experiment exists under name. More...

QString getAlternativeName ( QString existingName )
 This function is called when there is already an experiment named existingName. More...

SIG_ExperimentcurrentlySelectedExperiment ()
 This method return a pointer to the currently seleted SIGEL_MasterGUI::SIG_Experiment. More...

QString currentlySelectedExperimentName ()
 This function returns the experiment name of the currently selected experiment. More...

void selectItem ( QString label )
 This function sets the selected item in the list view to the item labelled label. More...


Public Attributes

QPopupMenu* experimentListViewMenu
 The popup-menu that is shown whenever the user right clicks into the list view where all experiments are shown. More...


Public Slots

void slotNewExperiment ()
 Slot that is called when "New Experiment" was selected. More...

void slotRenameExperiment ()
 Slot that is called whenever an experiment shall be renamed. More...

void slotDeleteExperiment ()
 Slot that is called when an experiment should be deleted. More...

void slotLoadExperiment ()
 Slot that is called when an experiment should be loaded. More...

void slotSaveExperiment ()
 Slot that is called when an experiment should be saved. More...

void slotShowGPParameters ()
 This slot is needed so one can select the GP parameters via the main menu. More...

void slotShowSimulationParameters ()
 This slot is needed so one can select the simulation parameters via the main menu. More...

void slotShowLanguageParameters ()
 This slot is needed so one can select the simulation parameters via the main menu. More...

void slotShowRobot ()
 This slot is needed so one can select the robot view via the main menu. More...

void slotShowEnvironment ()
 This slot is needed so one can select the environment view via the main menu. More...

void slotShowIndividuals ()
 This slot is needed so one can select the individual view via the main menu. More...

void slotSelectionChanged ( QListViewItem * theItem )
 The slot that is called whenever the selection changes in the list view. More...

void slotGPParametersImport ()
void slotSimulationParametersImport ()
void slotRobotImport ()
void slotLanguageParametersImport ()
void slotPopulationImport ()
void slotEnvironmentImport ()
void slotGPParametersExport ()
void slotSimulationParametersExport ()
void slotLanguageParametersExport ()
void slotPopulationExport ()
void slotEnvironmentExport ()
void slotGNUPlotExport ()
void slotAddIndividuals ()
void slotDeleteIndividuals ()
void slotResetIndividuals ()
void slotVisualizeIndividuals ()
void slotProgramExport ()
void slotIndividualExport ()
void slotProgramImport ()
void slotIndividualImport ()

Signals

void isNotEmpty ( bool isNotEmpty )
 This signal is emitted to signal whether the list view is empty or not. More...

void evolutionNotRunning ( bool evolutionNotRunnning )
 This signal is emitted to tell the main window whether the evolution is running. More...


Protected Attributes

QWidgetStack* widgetStack
 The pointer to the widget stack in the main window. More...

QDict<SIG_ExperimentexperimentDict
 The dictionary in which all administered experiments are stored. More...

int numberOfExperiments
 The number a new experiment gets. More...


Protected Slots

void slotRightButtonClicked ( QListViewItem *theItem, const QPoint & thePoint, int inside)
 This slot is connected to the rightButtonClicked()-signal of the experiment list view. More...


Detailed Description

The class that lets the user view the experiments.

Definition at line 18 of file SIG_ExperimentListView.h.


Constructor & Destructor Documentation

SIGEL_MasterGUI::SIG_ExperimentListView::SIG_ExperimentListView ( QWidget * parent,
const char * name,
QWidgetStack * theWidgetStack )
 

The constructor of the experiment list view.

Parameters:
parent   The parent widget. If 0 the widget gets its own window.
name   The internal name of the widget.
theWidgetStack   The widget stack in the main window.

Definition at line 17 of file SIG_ExperimentListView.cpp.

SIGEL_MasterGUI::SIG_ExperimentListView::~SIG_ExperimentListView ( )
 

The destructor of the SIG_ExperimentListView.

Will be erased if not needed.

Definition at line 34 of file SIG_ExperimentListView.cpp.


Member Function Documentation

SIG_Experiment * SIGEL_MasterGUI::SIG_ExperimentListView::currentlySelectedExperiment ( )
 

This method return a pointer to the currently seleted SIGEL_MasterGUI::SIG_Experiment.

If there is no experiment selected 0 is returned.

Definition at line 316 of file SIG_ExperimentListView.cpp.

QString SIGEL_MasterGUI::SIG_ExperimentListView::currentlySelectedExperimentName ( )
 

This function returns the experiment name of the currently selected experiment.

If there is no experiment selected a null-string ( QString::null) is returned.

Returns:
An alternative unique name for the experiment.

Definition at line 325 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::evolutionNotRunning ( bool evolutionNotRunnning ) [signal]
 

This signal is emitted to tell the main window whether the evolution is running.

evolutionNotRunning is true if the evolution is not running.

bool SIGEL_MasterGUI::SIG_ExperimentListView::experimentExists ( QString name )
 

Checks whether an experiment exists under name.

If this is the case, something has to be done because no two experiments shall have the same name.

Parameters:
name   The experiment name that shall be checked.
Returns:
A boolean indicating whether the experiment name exists.

Definition at line 297 of file SIG_ExperimentListView.cpp.

QString SIGEL_MasterGUI::SIG_ExperimentListView::getAlternativeName ( QString existingName )
 

This function is called when there is already an experiment named existingName.

The function returns an alternative name for the experiment.

This function is called whenever an experiment already exists under existingName.

Precondition:
An experiment exists under existingName.
Postcondition:
A new and unique name is returned.

Definition at line 305 of file SIG_ExperimentListView.cpp.

SIG_Experiment * SIGEL_MasterGUI::SIG_ExperimentListView::getByExperimentName ( QString name )
 

Returns the experiment object of the experiment called name.

Parameters:
name   The name of the experiment.
Returns:
The experiment called name.

Definition at line 291 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::isNotEmpty ( bool isNotEmpty ) [signal]
 

This signal is emitted to signal whether the list view is empty or not.

isNotEmpty is true if the list view is not empty and false if if is.

void SIGEL_MasterGUI::SIG_ExperimentListView::selectItem ( QString label )
 

This function sets the selected item in the list view to the item labelled label.

Parameters:
label   The label of the item that should be selected.

Definition at line 340 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotAddIndividuals ( ) [slot]
 

Definition at line 548 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotDeleteExperiment ( ) [slot]
 

Slot that is called when an experiment should be deleted.

Definition at line 97 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotDeleteIndividuals ( ) [slot]
 

Definition at line 560 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotEnvironmentExport ( ) [slot]
 

Definition at line 525 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotEnvironmentImport ( ) [slot]
 

Definition at line 465 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotGNUPlotExport ( ) [slot]
 

Definition at line 537 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotGPParametersExport ( ) [slot]
 

Definition at line 477 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotGPParametersImport ( ) [slot]
 

Definition at line 405 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotIndividualExport ( ) [slot]
 

Definition at line 608 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotIndividualImport ( ) [slot]
 

Definition at line 632 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotLanguageParametersExport ( ) [slot]
 

Definition at line 501 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotLanguageParametersImport ( ) [slot]
 

Definition at line 441 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotLoadExperiment ( ) [slot]
 

Slot that is called when an experiment should be loaded.

Definition at line 135 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotNewExperiment ( ) [slot]
 

Slot that is called when "New Experiment" was selected.

Definition at line 36 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotPopulationExport ( ) [slot]
 

Definition at line 513 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotPopulationImport ( ) [slot]
 

Definition at line 453 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotProgramExport ( ) [slot]
 

Definition at line 596 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotProgramImport ( ) [slot]
 

Definition at line 620 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotRenameExperiment ( ) [slot]
 

Slot that is called whenever an experiment shall be renamed.

Definition at line 55 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotResetIndividuals ( ) [slot]
 

Definition at line 572 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotRightButtonClicked ( QListViewItem * theItem,
const QPoint & thePoint,
int inside ) [protected, slot]
 

This slot is connected to the rightButtonClicked()-signal of the experiment list view.

First the method checks inside to see whether the click was onto a list view item or outside. If it is outside the experimentListViewMenu is show. Else the SIG_Experiment object belonging to this item is searched. If it is found the method slotRightClick() is called in the experiment object.

Definition at line 247 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotRobotImport ( ) [slot]
 

Definition at line 429 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotSaveExperiment ( ) [slot]
 

Slot that is called when an experiment should be saved.

Definition at line 182 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotSelectionChanged ( QListViewItem * theItem ) [slot]
 

The slot that is called whenever the selection changes in the list view.

The method looks up the experiment name and searches for the experiment in the list. Then it looks up the text at position 0 in the passed item and calles slotSelectionChanged( QString ) in the SIG_Experiment object.

Precondition:
The item is not null.
Postcondition:
The widget belonging to the list view item is shown in the widget stack.
Parameters:
theItem   The actual selected item.

Definition at line 265 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowEnvironment ( ) [slot]
 

This slot is needed so one can select the environment view via the main menu.

Definition at line 395 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowGPParameters ( ) [slot]
 

This slot is needed so one can select the GP parameters via the main menu.

Definition at line 375 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowIndividuals ( ) [slot]
 

This slot is needed so one can select the individual view via the main menu.

Definition at line 400 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowLanguageParameters ( ) [slot]
 

This slot is needed so one can select the simulation parameters via the main menu.

Definition at line 385 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowRobot ( ) [slot]
 

This slot is needed so one can select the robot view via the main menu.

Definition at line 390 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotShowSimulationParameters ( ) [slot]
 

This slot is needed so one can select the simulation parameters via the main menu.

Definition at line 380 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotSimulationParametersExport ( ) [slot]
 

Definition at line 489 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotSimulationParametersImport ( ) [slot]
 

Definition at line 417 of file SIG_ExperimentListView.cpp.

void SIGEL_MasterGUI::SIG_ExperimentListView::slotVisualizeIndividuals ( ) [slot]
 

Definition at line 584 of file SIG_ExperimentListView.cpp.


Member Data Documentation

QDict< SIG_Experiment > SIGEL_MasterGUI::SIG_ExperimentListView::experimentDict [protected]
 

The dictionary in which all administered experiments are stored.

Names have to be unique. Although it is technically possible to store things under the same name in a QDict, for other reason the names are needed to be unique.

Definition at line 255 of file SIG_ExperimentListView.h.

QPopupMenu * SIGEL_MasterGUI::SIG_ExperimentListView::experimentListViewMenu
 

The popup-menu that is shown whenever the user right clicks into the list view where all experiments are shown.

Definition at line 97 of file SIG_ExperimentListView.h.

int SIGEL_MasterGUI::SIG_ExperimentListView::numberOfExperiments [protected]
 

The number a new experiment gets.

This number is incremented each time a new experiment is created. If we create the n-th experiment it gets the name "Experiment-n".

Definition at line 263 of file SIG_ExperimentListView.h.

QWidgetStack * SIGEL_MasterGUI::SIG_ExperimentListView::widgetStack [protected]
 

The pointer to the widget stack in the main window.

This pointer is stored, so that it can be passed to a newly created SIG_Experiment.

Definition at line 246 of file SIG_ExperimentListView.h.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:41 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000