src/clusterproperties.h

00001 /***************************************************************************
00002                           clusterproperties.h  -  description
00003                              -------------------
00004     begin                : Thu Jul 22 2004
00005     copyright            : (C) 2004 by Lynn Hazan
00006     email                : lynn.hazan.myrealbox.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef CLUSTERPROPERTIES_H
00019 #define CLUSTERPROPERTIES_H
00020 
00021 // include files for QT
00022 #include <qwidget.h>
00023 #include <qlineedit.h>
00024 #include <qvalidator.h>
00025 #include <qlabel.h>
00026 #include <qgroupbox.h>
00027 
00028 //include files for the application
00029 #include <clusterpropertieslayout.h>
00030 
00035 class ClusterProperties : public ClusterPropertiesLayout  {
00036    Q_OBJECT
00037 public: 
00038    ClusterProperties(QWidget *parent=0, const char *name=0);
00039    ~ClusterProperties();
00040 
00041 
00043   inline void setNbSamples(int nb){nbSamplesLineEdit->setText(QString("%1").arg(nb));};
00044 
00046   inline void setPeakIndex(int index){peakIndexLineEdit->setText(QString("%1").arg(index));};
00047 
00049   inline int getNbSamples()const{return nbSamplesLineEdit->text().toInt();};
00050 
00052   inline int getPeakIndex()const{return peakIndexLineEdit->text().toInt();};
00053   
00054  public slots:
00058   inline void setEnabled (bool state){
00059     groupBox->setEnabled(state);
00060     nbSamplesLineEdit->setEnabled(state);
00061     waveformLabel->setEnabled(state);
00062     peakIndexLineEdit->setEnabled(state);
00063     peakLabel->setEnabled(state);
00064   };
00065 
00066  private:
00067   QIntValidator intValidator;
00068 };
00069 
00070 #endif

Generated on Mon Sep 17 20:47:30 2007 for NeuroScope by  doxygen 1.5.1