qmca  0.0.20
bm12controlpanel.h
Go to the documentation of this file.
1 #ifndef BM12CONTROLPANEL_H
2 #define BM12CONTROLPANEL_H
3 
4 #include <QObject>
5 #include <QFrame>
6 #include <QGridLayout>
7 #include <QStackedWidget>
8 
9 #include "bm12controller.h"
10 
11 class QwtPlot;
12 class MCAController;
13 
14 class BM12ControlPanel : public QFrame
15 {
16  Q_OBJECT;
17 
18  public:
19  BM12ControlPanel(MCAController *ctrl, QwtPlot *graph, QWidget *parent);
20  virtual ~BM12ControlPanel();
21 
22  public slots:
23  void previousChannel();
24  void nextChannel();
25  void countTotal();
26  void clearTotal();
27  void countSCA1();
28  void countSCA2();
29  void countSCA3();
30  void save1();
31  void save2();
32  void save3();
33  void clear1();
34  void clear2();
35  void clear3();
36  void saveData();
37  void saveEnergyWindows();
38  void loadEnergyWindows();
39 
40  private:
41  int channel();
42  void setChannel(int chan);
43  void selectSCA(int ch, int win);
44  void countMCA(int ch, int win);
45 
46  private:
47  QGridLayout *m_GridLayout;
49  QStackedWidget *m_Channels;
50  QwtPlot *m_Graph;
51 };
52 
53 #endif
BM12ControlPanel(MCAController *ctrl, QwtPlot *graph, QWidget *parent)
QGridLayout * m_GridLayout
QStackedWidget * m_Channels
void countMCA(int ch, int win)
BM12Controller m_Controller
void setChannel(int chan)
void selectSCA(int ch, int win)