Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

ParameterTable.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   SpikeStream Application                                               *
00003  *   Copyright (C) 2007 by David Gamez                                     *
00004  *   david@davidgamez.eu                                                   *
00005  *   Version 0.1                                                           *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 
00023 #ifndef PARAMETERTABLE_H
00024 #define PARAMETERTABLE_H
00025 
00026 //Qt includes
00027 #include <qpoint.h>
00028 #include <qtable.h>
00029 
00030 //Other includes
00031 #include <string>
00032 using namespace std;
00033 
00034 
00035 //-------------------------- Parameter Table -------------------------------
00036 /*! Needed so that can find appropriate table in neuron parameters dialog
00037         and synapse parameters dialog by emiting a signal containing the typeID.*/
00038 //--------------------------------------------------------------------------
00039 
00040 class ParameterTable : public QTable {
00041         Q_OBJECT
00042 
00043         public:
00044                 ParameterTable(QWidget* parent, unsigned short typeID, string paramTableName);
00045                 ~ParameterTable();
00046                 string getParameterTableName();
00047 
00048 
00049         signals:
00050                 void parameterTableClicked(int row, int col, unsigned short typeID);
00051                 void parameterTableValueChanged(int row, int col, unsigned short typeID);
00052 
00053 
00054         private slots:
00055                 void tableClicked(int row, int col, int button, const QPoint& mousePos);
00056                 void tableValueChanged(int row, int col);
00057 
00058 
00059         private:
00060                 //========================== VARIABLES ==========================
00061                 /*! The ID of the neuron type that this table is displaying.*/
00062                 unsigned short typeID;
00063 
00064                 /*! The name of the parameter table associated with this neuron 
00065                         type.*/
00066                 string parameterTableName;
00067 
00068 
00069                 //========================== METHODS ============================
00070                 /*! Declare copy constructor private so it cannot be used inadvertently.*/
00071                 ParameterTable (const ParameterTable&);
00072 
00073                 /*! Declare assignment private so it cannot be used inadvertently.*/
00074                 ParameterTable operator = (const ParameterTable&);
00075 
00076 };
00077 
00078 
00079 #endif//PARAMETERTABLE_H
00080 

Generated on Mon Sep 3 22:29:04 2007 for SpikeStream Application by  doxygen 1.4.4