SpikeStream Application Library
0.2
|
00001 #ifndef EVENTROUTER_H 00002 #define EVENTROUTER_H 00003 00004 //Qt includes 00005 #include <QObject> 00006 00007 namespace spikestream { 00008 00011 class EventRouter : public QObject { 00012 Q_OBJECT 00013 00014 public: 00015 00016 public slots: 00017 //Archive slots 00018 void archiveListChangedSlot() { emit archiveListChangedSignal(); } 00019 void archiveChangedSlot() { emit archiveChangedSignal(); } 00020 00021 //Analysis slots 00022 void analysisStarted() { emit analysisStartedSignal(); emit analysisNotRunningSignal(false); } 00023 void analysisStopped() { emit analysisStoppedSignal(); emit analysisNotRunningSignal(true); } 00024 00025 //Network slots 00026 void networkChangedSlot() { emit networkChangedSignal(); } 00027 void networkListChangedSlot() { emit networkListChangedSignal(); } 00028 void networkDisplayChangedSlot() { emit networkDisplayChangedSignal(); } 00029 void neuronGroupDisplayChangedSlot() { emit neuronGroupDisplayChangedSignal(); } 00030 void visibleConnectionsChangedSlot() { emit visibleConnectionsChangedSignal(); } 00031 void weightsChangedSlot() { emit weightsChangedSignal(); } 00032 00033 //Other slots 00034 void reloadSlot() { emit reloadSignal(); } 00035 00036 00037 signals: 00038 //Analysis signals 00039 void analysisNotRunningSignal(bool isNotRunning);//FIXME HORRIBLE 00040 void analysisStartedSignal(); 00041 void analysisStoppedSignal(); 00042 00043 //Archive signals 00044 void archiveChangedSignal(); 00045 void archiveListChangedSignal(); 00046 00047 //Simulation signals 00048 void startSimulationSignal(); 00049 void stopSimulationSignal(); 00050 void startStopSimulationSignal(); 00051 void stepSimulationSignal(); 00052 00053 //OpenGL signals 00054 void moveBackwardSignal(); 00055 void moveForwardSignal(); 00056 void moveUpSignal(); 00057 void moveDownSignal(); 00058 void moveLeftSignal(); 00059 void moveRightSignal(); 00060 void resetViewSignal(); 00061 void rotateUpSignal(); 00062 void rotateDownSignal(); 00063 void rotateLeftSignal(); 00064 void rotateRightSignal(); 00065 00066 //Network signals 00067 void networkChangedSignal(); 00068 void networkDisplayChangedSignal(); 00069 void networkListChangedSignal(); 00070 void networkViewChangedSignal(); 00071 void neuronGroupDisplayChangedSignal(); 00072 void visibleConnectionsChangedSignal(); 00073 void weightsChangedSignal(); 00074 00075 //Other signals 00076 void reloadSignal(); 00077 void showAllOrNoneConnectionsSignal(); 00078 00079 00080 private slots: 00081 //Simulation slots 00082 void startSimulationSlot() { emit startSimulationSignal(); } 00083 void stopSimulationSlot() { emit stopSimulationSignal(); } 00084 void startStopSimulationSlot() { emit startStopSimulationSignal(); } 00085 void stepSimulationSlot() { emit stepSimulationSignal(); } 00086 00087 //OpenGL slots 00088 void moveBackwardSlot() { emit moveBackwardSignal(); emit networkViewChangedSignal(); } 00089 void moveForwardSlot() { emit moveForwardSignal(); emit networkViewChangedSignal(); } 00090 void moveUpSlot() { emit moveUpSignal(); emit networkViewChangedSignal(); } 00091 void moveDownSlot() { emit moveDownSignal(); emit networkViewChangedSignal(); } 00092 void moveLeftSlot() { emit moveLeftSignal(); emit networkViewChangedSignal(); } 00093 void moveRightSlot() { emit moveRightSignal(); emit networkViewChangedSignal(); } 00094 void resetViewSlot() { emit resetViewSignal(); emit networkViewChangedSignal(); } 00095 void rotateUpSlot() { emit rotateUpSignal(); emit networkViewChangedSignal(); } 00096 void rotateDownSlot() { emit rotateDownSignal(); emit networkViewChangedSignal(); } 00097 void rotateLeftSlot() { emit rotateLeftSignal(); emit networkViewChangedSignal(); } 00098 void rotateRightSlot() { emit rotateRightSignal(); emit networkViewChangedSignal(); } 00099 00100 void showAllOrNoneConnectionsSlot() { emit showAllOrNoneConnectionsSignal(); } 00101 }; 00102 00103 } 00104 00105 #endif//EVENTROUTER_H 00106