00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MANAGERVIEW_H
00021 #define MANAGERVIEW_H
00022
00023
00024 #include <qsplitter.h>
00025 #include <qstring.h>
00026 #include <qcombobox.h>
00027 #include <qspinbox.h>
00028
00029
00030 #include "launcherpage.h"
00031 #include "ndkonsole.h"
00032
00033
00034 #include <ktoolbar.h>
00035 #include <kdockwidget.h>
00036
00040 class ManagerView : public QFrame
00041 {
00042 Q_OBJECT
00043 public:
00044 ManagerView(QWidget *parent = 0, const char *name = 0);
00045 ~ManagerView();
00046
00048 enum returnMessage {OK=0,NO_KPART=1,PART_LOADING_ERROR=2};
00049
00057 returnMessage addKonsole(const KURL url,int nbSpikeGroups,QValueList<QString> fileExtensions,
00058 const QValueList<QString>& scriptNames);
00059
00063 void updateSpikeGroupList(int nbGroups);
00064
00068 void updateFileList(QValueList<QString> extensions);
00069
00073 void updateScriptList(const QValueList<QString>& scriptNames);
00074
00078 void updateDocUrl(const KURL url);
00079
00084 void updateDocumentInformation(const KURL url,bool isUptoDate);
00085
00086 signals:
00087 void beingDestroyed();
00088 void checkBeforeLaunchingPrograms();
00089 void checkBeforeLaunchingScripts();
00090
00091 public slots:
00092 inline void konsoleBeingDestroyed(){emit beingDestroyed();};
00093 void neuroscopeFileChange(int index);
00094
00095 private slots:
00098 void launchNeuroscope();
00099
00102 void launchKlusters();
00103
00106 void launchScript();
00107
00110 void stopScript();
00111
00112 private:
00113 NdKonsole* konsole;
00114 LauncherPage* launcherpage;
00115 KToolBar* toolbar;
00116 QVBoxLayout* frameLayout;
00117 QComboBox* neuroscopeComboBox;
00118 QComboBox* klustersComboBox;
00119 QComboBox* scriptsComboBox;
00120 KURL parameterUrl;
00121 bool isUptoDate;
00122 };
00123
00124 #endif