SpikeStream Application Library
0.2
|
00001 //SpikeStream includes 00002 #include "AbstractGraphDialog.h" 00003 #include "Util.h" 00004 using namespace spikestream; 00005 00006 //Qt includes 00007 #include <QCheckBox> 00008 #include <QDebug> 00009 #include <QLayout> 00010 #include <QLabel> 00011 00012 00014 AbstractGraphDialog::AbstractGraphDialog(QWidget* parent, const AnalysisInfo& anaInfo) : QDialog(parent){ 00015 //Store references 00016 this->analysisInfo = anaInfo; 00017 00018 this->setStyleSheet("QWidget { background-color: white; font-family: Arial; font-size: 25px; } "); 00019 } 00020 00021 00023 AbstractGraphDialog::~AbstractGraphDialog(){ 00024 } 00025 00026 00027 /*----------------------------------------------------------*/ 00028 /*------ PROTECTED SLOTS ------*/ 00029 /*----------------------------------------------------------*/ 00030 00032 void AbstractGraphDialog::showNeuronIDS(int state){ 00033 if(state == Qt::Checked) 00034 spectrogramData->setShowNeuronIDs(true); 00035 else 00036 spectrogramData->setShowNeuronIDs(false); 00037 spectrogram->rescale(); 00038 spectrogram->replot(); 00039 } 00040 00041 00043 void AbstractGraphDialog::timeStepChanged(QString timeStepStr){ 00044 if(timeStepStr == "All") 00045 spectrogramData->showAllTimeSteps(true); 00046 else{ 00047 spectrogramData->showAllTimeSteps(false); 00048 spectrogramData->showSelectedTimeStep(Util::getUInt(timeStepStr)); 00049 } 00050 spectrogram->replot(); 00051 } 00052 00053