00001 #ifndef SIGEL_MASTERGUI_SIG_ALLINDIVIDUALSVIEW_H
00002 #define SIGEL_MASTERGUI_SIG_ALLINDIVIDUALSVIEW_H
00003
00004 #include <qsplitter.h>
00005 #include <qcombobox.h>
00006 #include <qpushbutton.h>
00007 #include <qlayout.h>
00008 #include <qtimer.h>
00009
00010 #include "SIGEL_MasterGUI/SIG_IndividualList.h"
00011 #include "SIGEL_MasterGUI/SIG_IndividualView.h"
00012 #include "SIGEL_MasterGUI/SIG_AddIndividualsDialog.h"
00013
00014 #include "SIGEL_GP/SIG_GPExperiment.h"
00015
00016
00017 #include "SIGEL_Tools/SIG_Randomizer.h"
00018 #include "SIGEL_GP/SIG_GPPopulation.h"
00019
00020 namespace SIGEL_MasterGUI
00021 {
00026 class SIG_AllIndividualsView : public QSplitter
00027 {
00028 Q_OBJECT
00029
00030 public:
00039 SIG_AllIndividualsView( QWidget * parent, const char * name, SIGEL_GP::SIG_GPExperiment &theExperiment );
00040
00046 ~SIG_AllIndividualsView();
00047
00051 int numberOfSelectedItems();
00052
00058 SIG_IndividualList *individualList;
00059
00063 SIG_IndividualView *individualView;
00064
00071 QPopupMenu *individualMenu;
00072
00077 QPopupMenu *listviewMenu;
00078
00079 signals:
00080 void signalDataRefreshNeeded();
00081
00082 public slots:
00083
00088 void slotCompleteRefreshList();
00089
00093 void slotAddIndividuals();
00094
00098 void slotDeleteIndividuals();
00099
00103 void slotResetPool();
00104
00108 void slotStatsClicked();
00109
00114 void slotRightButtonClicked( QListViewItem *theItem, const QPoint &thePoint, int inside );
00115
00120 void slotDoubleClicked( QListViewItem * theItem );
00121
00126 void slotVisualize();
00127
00131 void slotSelectionChanged();
00132
00133 void slotEvolutionNotRunning( bool isNotRunning );
00134
00135 void slotImportProgram();
00136
00137 void slotExportProgram();
00138
00139 void slotImportIndividual();
00140
00141 void slotExportIndividual();
00142
00143 private:
00144
00148 SIGEL_GP::SIG_GPExperiment &theExperiment;
00149 };
00150 }
00151
00152 #endif // SIGEL_MASTERGUI_SIG_ALLINDIVIDUALSVIEW_H