AnalysisPlugins 2.0(r200)
For the analysis of event energy and time

PacWaveformTrivial.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Matthias Nagl   *
00003  *   mnagl@uni-goettingen.de   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef PACWAVEFORMTRIVIAL_H
00021 #define PACWAVEFORMTRIVIAL_H
00022 
00023 #include "../PacWaveformBase.h"
00024 #include <QPointer>
00025 #include <QHBoxLayout>
00026 #include <QLabel>
00027 
00032 class PacWaveformDataTrivial;
00033 
00038 class PacWaveformTrivial : public PacWaveformBase
00039 {
00040   public:
00041     PacWaveformTrivial(QObject *parent = 0);
00042     virtual ~PacWaveformTrivial();
00043 
00044     virtual QObject * emptyClone();
00045     virtual void setParentBranch(PropertyBranchInterface *p = 0);
00046     virtual WaveformDataInterface ** createWaveformDataObjects(quint32 num) const;
00047     virtual QWidget * getWidget();
00048 //    virtual void deleteControlWidget();
00049     friend class PacWaveformDataTrivial;
00050 
00051   private:
00052     QPointer<QHBoxLayout> controlLayout;
00053     QPointer<QLabel> infoLabel;
00054 };
00055 
00060 class PacWaveformDataTrivial : public PacWaveformDataBase
00061 {
00062   public:
00063     PacWaveformDataTrivial(const PacWaveformTrivial *creator = 0);
00064     PacWaveformDataTrivial(const PacWaveformTrivial *creator, const QByteArray &serialized);
00065     virtual ~PacWaveformDataTrivial();
00066 
00067   private:
00068     void analyze() const;
00069     const PacWaveformTrivial *creator;
00070 };
00071 
00072 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Friends