managerview.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Lynn Hazan                                      *
00003  *   lynn.hazan@myrealbox.com                                              *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef MANAGERVIEW_H
00021 #define MANAGERVIEW_H
00022 
00023 // include files for Qt
00024 #include <qsplitter.h>
00025 #include <qstring.h>
00026 #include <qcombobox.h>
00027 #include <qspinbox.h> 
00028 
00029 //Include for the application
00030 #include "launcherpage.h"
00031 #include "ndkonsole.h"
00032 
00033 //Include files for KDE
00034 #include <ktoolbar.h> 
00035 #include <kdockwidget.h>
00036 
00040 class ManagerView : public QFrame/*QSplitter*/
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

Generated on Sat Sep 15 16:04:45 2007 for ndmanager.kdevelop by  doxygen 1.5.1