SpectraPac 2.0(r200)
Evaluates PAC Measurements
|
00001 /*************************************************************************** 00002 * Copyright (C) 2008-2010 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 00021 #ifndef SPECTRAPAC_H 00022 #define SPECTRAPAC_H 00023 00024 #define SPECTRAPACABOUT "\ 00025 <p><b>SpectraPac</b></p><p>evaluates .pacevents and .zs files from PacMaster or older analog setups. \ 00026 It shows energy spectra, allows for energy calibration, advanced coincidence search as well as R(t) computation and Fourier transformation.</p>" 00027 00028 #include <QtGui> 00029 #include "ui_SpectraPacMainWindow.h" 00030 00031 class PacMsg; 00032 class PacDataHandler; 00033 class PacEnergyThread; 00034 class PacCoincidenceFitThread; 00035 class QPlainTextEdit; 00036 class QDockWidget; 00037 00043 class SpectraPac : public QMainWindow, private Ui::SpectraPacMainWindow 00044 { 00045 Q_OBJECT 00046 public: 00047 SpectraPac(QWidget *parent = 0); 00048 ~SpectraPac(); 00049 static PacCoincidenceFitThread *fitthread; 00050 00051 signals: 00052 00053 public slots: 00054 void statusProgressStart(bool, bool busyindicator, const QString &text); 00055 void statusProgressFinished(); 00056 void statusProgressSetValue(int percent, const QString &text = QString()); 00057 void setAssociatedSpectrapacFilename(const QString &filename); 00058 00059 private slots: 00060 void about(); 00061 00063 00064 void openFile(const QModelIndex &index); 00066 00067 private: 00068 00069 PacDataHandler *f; 00070 PacMsg *pacmsg; 00071 00072 00073 //QList< QList<bool> > spectrumenabled; 00074 QPointer<QWidget> metainfowidget; 00075 QPointer<QWidget> energytab, calibratedenergytab; 00076 QPointer<QWidget> coincidencewidget, rtwidget, fourierwidget; 00077 QProgressBar *statusProgressBar; 00078 QLabel *statusLabel; 00079 QPlainTextEdit *textout; 00080 QDockWidget *dockWidget; 00081 QFileSystemModel *fsmodel; 00082 }; 00083 00084 #endif