qmca  0.0.20
Public Member Functions | Private Member Functions | List of all members
QMCAControlPanel Class Reference

#include <qmcacontrolpanel.h>

Inheritance diagram for QMCAControlPanel:
Inheritance graph

Public Member Functions

 QMCAControlPanel (QWidget *parent=0, Qt::WindowFlags f=0)
 
MCAControlPanelnewMCAControlPanel (MCAController *ctrl)
 
A2DConverterControlPanelnewA2DConverterControlPanel (MCAController *ctrl)
 
AmplifierControlPanelnewAmplifierControlPanel (MCAController *ctrl)
 
PulseAnalyserControlPanelnewPulseAnalyserControlPanel (MCAController *ctrl)
 
PowerSupplyControlPanelnewPowerSupplyControlPanel (MCAController *ctrl)
 
BM12ControlPanelnewBM12ControlPanel (MCAController *ctrl)
 

Private Member Functions

void newSection (QString title, QWidget *panel)
 

Detailed Description

Definition at line 14 of file qmcacontrolpanel.h.

Constructor & Destructor Documentation

QMCAControlPanel::QMCAControlPanel ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 13 of file qmcacontrolpanel.cpp.

14  : QToolBox(parent,f)
15 {
16 }

Member Function Documentation

A2DConverterControlPanel * QMCAControlPanel::newA2DConverterControlPanel ( MCAController ctrl)

Definition at line 41 of file qmcacontrolpanel.cpp.

References newSection().

42 {
44 
45  newSection("A-D Converter", p);
46 
47  return p;
48 }
void newSection(QString title, QWidget *panel)
AmplifierControlPanel * QMCAControlPanel::newAmplifierControlPanel ( MCAController ctrl)

Definition at line 50 of file qmcacontrolpanel.cpp.

References newSection().

51 {
53 
54  newSection("Amplifier", p);
55 
56  return p;
57 }
void newSection(QString title, QWidget *panel)
BM12ControlPanel * QMCAControlPanel::newBM12ControlPanel ( MCAController ctrl)

Definition at line 77 of file qmcacontrolpanel.cpp.

References MCAController::graph(), and newSection().

78 {
79  BM12ControlPanel *p = new BM12ControlPanel(ctrl, ctrl->graph(), NULL);
80 
81  newSection("BM12", p);
82 
83  return p;
84 }
void newSection(QString title, QWidget *panel)
QwtPlot * graph()
MCAControlPanel * QMCAControlPanel::newMCAControlPanel ( MCAController ctrl)

Definition at line 32 of file qmcacontrolpanel.cpp.

References newSection().

33 {
34  MCAControlPanel *p = new MCAControlPanel(ctrl, NULL);
35 
36  newSection("MCA", p);
37 
38  return p;
39 }
void newSection(QString title, QWidget *panel)
PowerSupplyControlPanel * QMCAControlPanel::newPowerSupplyControlPanel ( MCAController ctrl)

Definition at line 68 of file qmcacontrolpanel.cpp.

References newSection().

69 {
71 
72  newSection("Power Supply", p);
73 
74  return p;
75 }
void newSection(QString title, QWidget *panel)
PulseAnalyserControlPanel * QMCAControlPanel::newPulseAnalyserControlPanel ( MCAController ctrl)

Definition at line 59 of file qmcacontrolpanel.cpp.

References newSection().

60 {
62 
63  newSection("TCA", p);
64 
65  return p;
66 }
void newSection(QString title, QWidget *panel)
void QMCAControlPanel::newSection ( QString  title,
QWidget *  panel 
)
private

Definition at line 18 of file qmcacontrolpanel.cpp.

Referenced by newA2DConverterControlPanel(), newAmplifierControlPanel(), newBM12ControlPanel(), newMCAControlPanel(), newPowerSupplyControlPanel(), and newPulseAnalyserControlPanel().

19 {
20  QWidget *page = new QWidget();
21  QGridLayout *layout = new QGridLayout(page);
22  QSpacerItem *spacer = new QSpacerItem(20,40, QSizePolicy::Minimum, QSizePolicy::Expanding);
23 
24  layout -> addItem(spacer, 1,0,1,1);
25 
26  panel -> setParent(page);
27  layout -> addWidget(panel, 0,0,1,1);
28 
29  addItem(page, title);
30 }

The documentation for this class was generated from the following files: