QIGUIGeneralCutDialog.hh

00001 #ifndef _QIGUI_GENERALCUTDIALOG__H_
00002 #define _QIGUI_GENERALCUTDIALOG__H_
00003 
00004 
00005 #include <QDialog>
00006 #include <QString>
00007 #include <vector>
00008 #include "ui_GeneralCutDialog.h"
00009 
00010 class QIGUISession;
00011 class QIGUIGeneralCut;
00012 
00013 
00014 class QIGUIGeneralCutDialog: public QDialog, public Ui::GeneralCutDialog
00015 {
00016   Q_OBJECT
00017 
00018   public:
00019     QIGUIGeneralCutDialog (QString name, QWidget * parent=0);
00020     QIGUIGeneralCutDialog (QString name, QIGUISession * session,  QWidget * parent=0);
00021     virtual ~QIGUIGeneralCutDialog();
00022 
00023     void Init();
00024     void InitWithTitle(QString title);
00025     void CreateSignals();
00026     void SetCut(QIGUIGeneralCut * cut) {fCut = cut;}
00027 
00028   public slots:
00029     void AddVariable();
00030     void DeleteVariable();
00031     void SetTitle(); 
00032     void CopyVarLimits();
00033 
00034 
00035   private slots:
00036 
00037   private:
00038     QString fCutTitle;
00039     QString fName;
00040     int fNChannels;
00041     std::vector<int> fChannels;
00042     QIGUISession * fSession; // to fill combo box and channels
00043     int fNVars;
00044     QIGUIGeneralCut * fCut;
00045 
00046   public: 
00047 
00048     static int kAccept;
00049     static int kReject;
00050 
00051     // Auxiliar
00052     std::string GetVar(int index);
00053 
00054 };
00055 
00056 
00057 #endif

Generated on Fri Mar 6 13:40:40 2009 for CUORE Software by  doxygen 1.5.1