SpikeStream Application Library  0.2
ConnectionsModel.h
Go to the documentation of this file.
00001 #ifndef CONNECTIONSMODEL_H
00002 #define CONNECTIONSMODEL_H
00003 
00004 //SpikeStream includes
00005 #include "Connection.h"
00006 using namespace spikestream;
00007 
00008 //Qt includes
00009 #include <QAbstractTableModel>
00010 #include <QList>
00011 
00012 namespace spikestream {
00013 
00017         class ConnectionsModel : public QAbstractTableModel {
00018                 Q_OBJECT
00019 
00020                 public:
00021                         ConnectionsModel();
00022                         ~ConnectionsModel();
00023                         int columnCount(const QModelIndex& parent = QModelIndex()) const;
00024                         QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
00025                         QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
00026                         int rowCount(const QModelIndex& parent = QModelIndex()) const;
00027 
00028                 private slots:
00029                         void visibleConnectionsChanged();
00030 
00031                 private:
00032                         //====================  VARIABLES  ====================
00033                         static const int numCols = 6;
00034                         static const int idCol = 0;
00035                         static const int fromIDCol = 1;
00036                         static const int toIDCol = 2;
00037                         static const int delayCol = 3;
00038                         static const int weightCol = 4;
00039                         static const int tmpWeightCol = 5;
00040 
00041                         //=====================  METHODS  ======================
00042     };
00043 
00044 }
00045 
00046 #endif//CONNECTIONSMODEL_H
00047 
 All Classes Files Functions Variables Typedefs Friends Defines