#include <SIG_ExperimentListView.h>
Inheritance diagram for SIGEL_MasterGUI::SIG_ExperimentListView:
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_Experiment* | getByExperimentName ( 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_Experiment* | currentlySelectedExperiment () |
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_Experiment> | experimentDict |
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... |
Definition at line 18 of file SIG_ExperimentListView.h.
|
The constructor of the experiment list view.
Definition at line 17 of file SIG_ExperimentListView.cpp. |
|
The destructor of the SIG_ExperimentListView. Will be erased if not needed. Definition at line 34 of file SIG_ExperimentListView.cpp. |
|
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. |
|
This function returns the experiment name of the currently selected experiment. If there is no experiment selected a null-string ( QString::null) is returned.
Definition at line 325 of file SIG_ExperimentListView.cpp. |
|
This signal is emitted to tell the main window whether the evolution is running. evolutionNotRunning is true if the evolution is not running. |
|
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.
Definition at line 297 of file SIG_ExperimentListView.cpp. |
|
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.
Definition at line 305 of file SIG_ExperimentListView.cpp. |
|
Returns the experiment object of the experiment called name.
Definition at line 291 of file SIG_ExperimentListView.cpp. |
|
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. |
|
This function sets the selected item in the list view to the item labelled label.
Definition at line 340 of file SIG_ExperimentListView.cpp. |
|
Definition at line 548 of file SIG_ExperimentListView.cpp. |
|
Slot that is called when an experiment should be deleted.
Definition at line 97 of file SIG_ExperimentListView.cpp. |
|
Definition at line 560 of file SIG_ExperimentListView.cpp. |
|
Definition at line 525 of file SIG_ExperimentListView.cpp. |
|
Definition at line 465 of file SIG_ExperimentListView.cpp. |
|
Definition at line 537 of file SIG_ExperimentListView.cpp. |
|
Definition at line 477 of file SIG_ExperimentListView.cpp. |
|
Definition at line 405 of file SIG_ExperimentListView.cpp. |
|
Definition at line 608 of file SIG_ExperimentListView.cpp. |
|
Definition at line 632 of file SIG_ExperimentListView.cpp. |
|
Definition at line 501 of file SIG_ExperimentListView.cpp. |
|
Definition at line 441 of file SIG_ExperimentListView.cpp. |
|
Slot that is called when an experiment should be loaded.
Definition at line 135 of file SIG_ExperimentListView.cpp. |
|
Slot that is called when "New Experiment" was selected.
Definition at line 36 of file SIG_ExperimentListView.cpp. |
|
Definition at line 513 of file SIG_ExperimentListView.cpp. |
|
Definition at line 453 of file SIG_ExperimentListView.cpp. |
|
Definition at line 596 of file SIG_ExperimentListView.cpp. |
|
Definition at line 620 of file SIG_ExperimentListView.cpp. |
|
Slot that is called whenever an experiment shall be renamed.
Definition at line 55 of file SIG_ExperimentListView.cpp. |
|
Definition at line 572 of file SIG_ExperimentListView.cpp. |
|
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. |
|
Definition at line 429 of file SIG_ExperimentListView.cpp. |
|
Slot that is called when an experiment should be saved.
Definition at line 182 of file SIG_ExperimentListView.cpp. |
|
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.
Definition at line 265 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the environment view via the main menu.
Definition at line 395 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the GP parameters via the main menu.
Definition at line 375 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the individual view via the main menu.
Definition at line 400 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the simulation parameters via the main menu.
Definition at line 385 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the robot view via the main menu.
Definition at line 390 of file SIG_ExperimentListView.cpp. |
|
This slot is needed so one can select the simulation parameters via the main menu.
Definition at line 380 of file SIG_ExperimentListView.cpp. |
|
Definition at line 489 of file SIG_ExperimentListView.cpp. |
|
Definition at line 417 of file SIG_ExperimentListView.cpp. |
|
Definition at line 584 of file SIG_ExperimentListView.cpp. |
|
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. |
|
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. |
|
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. |
|
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. |