00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 #ifndef CLUSTERPROPERTIES_H
00019 #define CLUSTERPROPERTIES_H
00020 
00021 
00022 #include <qwidget.h>
00023 #include <qlineedit.h>
00024 #include <qvalidator.h>
00025 #include <qlabel.h>
00026 #include <qgroupbox.h>
00027 
00028 
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