evonetui.h
1 /********************************************************************************
2  * FARSA Experiments Library *
3  * Copyright (C) 2007-2013 *
4  * Stefano Nolfi <stefano.nolfi@istc.cnr.it> *
5  * Onofrio Gigliotta <onofrio.gigliotta@istc.cnr.it> *
6  * Gianluca Massera <emmegian@yahoo.it> *
7  * Tomassino Ferrauto <tomassino.ferrauto@istc.cnr.it> *
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  * This program is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17  * GNU General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU General Public License *
20  * along with this program; if not, write to the Free Software *
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
22  ********************************************************************************/
23 
24 #ifndef EVONETUI_H
25 #define EVONETUI_H
26 
27 #include "evonet.h"
28 #include "parametersettableui.h"
29 
30 #include <QWidget>
31 #include <QMenu>
32 #include <QAction>
33 #include <QMenuBar>
34 #include <QFileDialog>
35 #include <QLabel>
36 #include <QList>
37 #include <QString>
38 #include <QWidget>
39 #include <QMenuBar>
40 #include <QVBoxLayout>
41 #include <QObject>
42 
43 namespace farsa {
44 
45 class EvoDataViewer;
46 class NetworkDialog;
47 class HolisticViewer;
48 
49 class FARSA_EXPERIMENTS_API EvonetUI : public QObject, public ParameterSettableUI {
50  Q_OBJECT
51 public:
55  EvonetUI( Evonet* evonet );
57  ~EvonetUI();
58 // /*! fill the menu "Actions" of Total99 with following actions:
59 // * \param actionsMenu is the actionsMenu display in the menu bar of Total99
60 // */
61 // void fillActionsMenu( QMenu* actionsMenu );
67  QList<ParameterSettableUIViewer> getViewers( QWidget* parent, Qt::WindowFlags flags );
68 // /*! add the "Tests" menu to the menu bar of Total99
69 // * \param menuBar is the menu bar of the Total99 application
70 // */
71 // void addAdditionalMenus( QMenuBar* menuBar );
72 
73 private:
74  ParameterSettableUIViewer networkView( QWidget* parent, Qt::WindowFlags flags );
75  ParameterSettableUIViewer neuroMonitorView( QWidget* parent, Qt::WindowFlags flags );
76  ParameterSettableUIViewer holisticView( QWidget* parent, Qt::WindowFlags flags );
77 
79  EvoDataViewer* edv;
81  HolisticViewer* hlv;
82  // The widget for display/manipulate the neural network
83  NetworkDialog *networkDialog;
85  Evonet* evonet;
86 
87 private slots:
90  void onEvonetUpdated();
91 };
92 
93 } //end namespace farsa
94 
95 #endif
96