forked from avartak/TkCommissioner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmsource.h
42 lines (33 loc) · 1.03 KB
/
frmsource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef FRMSOURCE_H
#define FRMSOURCE_H
#include "ui_frmsource.h"
#include <QStandardItemModel>
#include <QVector>
#include <QPair>
#include <QString>
#include <TFile.h>
class SourceDisplay : public QConnectedTabWidget, private Ui::SourceDisplay {
Q_OBJECT
public:
SourceDisplay(QWidget *parent, QString, QString, const QVector<QPair<QString, QString> >&, const QVector<QPair<unsigned, unsigned> >&);
~SourceDisplay();
public Q_SLOTS:
void deviceChanged(QModelIndex, QModelIndex);
void updatePlot(QStandardItem*);
void on_source_currentIndexChanged(int);
void on_btnPrint_clicked();
private:
QStandardItemModel* selModel;
QString currun;
QString refrun;
QVector<QPair<QString, QString> > devices;
QVector<QPair<unsigned, unsigned> > keys;
TFile* curclient;
TFile* refclient;
bool refexists;
bool iscurrent;
bool updatehistitem;
QString histitem;
TFile* getClientFile(QString);
};
#endif