SpikeStream Application Library  0.2
NetworkViewerProperties.h
Go to the documentation of this file.
00001 #ifndef NETWORKVIEWERPROPERTIES
00002 #define NETWORKVIEWERPROPERTIES
00003 
00004 //SpikeStream includes
00005 #include "TruthTableDialog.h"
00006 using namespace spikestream;
00007 
00008 //Qt includes
00009 #include <QCheckBox>
00010 #include <QComboBox>
00011 #include <QLabel>
00012 #include <QSlider>
00013 #include <QWidget>
00014 #include <QRadioButton>
00015 #include <QPushButton>
00016 #include <QProgressBar>
00017 
00018 namespace spikestream {
00019 
00021         class NetworkViewerProperties : public QWidget {
00022                 Q_OBJECT
00023 
00024                 public:
00025                         NetworkViewerProperties(QWidget* parent=0);
00026                         ~NetworkViewerProperties();
00027 
00028                 private slots:
00029                         void fromToSelectionChanged(int index);
00030                         void networkDisplayChanged();
00031                         void neuronTransparencyChanged(int newTransparency);
00032                         void posNegSelectionChanged(int index);
00033                         void setRenderMode();
00034                         void showTruthTable();
00035                         void updateConnectionCount();
00036                         void weightDisplayChanged(int buttonID);
00037 
00038                 private:
00039                         //=======================  VARIABLES  =======================
00041                         QRadioButton* allConsButt;
00042 
00044                         QRadioButton* conSingleNeurButt;
00045 
00047                         QRadioButton* conBetweenNeurButt;
00048 
00050                         QLabel* singleNeuronIDLabel;
00051 
00053                         QComboBox* fromToCombo;
00054 
00056                         QLabel* fromNeuronIDLabel;
00057 
00059                         QLabel* toNeuronIDLabel;
00060 
00062                         QComboBox* posNegCombo;
00063 
00065                         QLabel* fromLabel;
00066 
00068                         QLabel* toLabel;
00069 
00071                         QLabel* numberOfConnectionsLabel;
00072 
00074                         QPushButton* truthTableButton;
00075 
00077                         TruthTableDialog* truthTableDialog;
00078 
00080                         QCheckBox* renderCheckBox;
00081 
00083                         QWidget* fullRenderControlsWidget;
00084 
00085 
00086                         //=======================  METHODS  =========================
00087                         void hideTruthTableDialog();
00088                         void showAllConnections();
00089                         void showBetweenConnections();
00090                         void showSingleConnections();
00091                         void showTruthTableDialog(unsigned int neuronID);
00092         };
00093 
00094 }
00095 
00096 #endif// NETWORKVIEWERPROPERTIES
00097 
 All Classes Files Functions Variables Typedefs Friends Defines