-
Notifications
You must be signed in to change notification settings - Fork 5
/
frmfedmap.h
53 lines (38 loc) · 1.07 KB
/
frmfedmap.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
43
44
45
46
47
48
49
50
51
52
53
#ifndef FRMFEDMAP_H
#define FRMFEDMAP_H
#include "ui_frmfedmap.h"
#include <QVector>
#include <QPair>
#include <QString>
#include <QtCore>
#include <QtGui>
#include <TTree.h>
#include "FedView.h"
#include "FedGraphicsScene.h"
class FedMap : public QConnectedTabWidget, private Ui::FedMap {
Q_OBJECT
public:
FedMap(QWidget *parent = 0);
FedMap(const QVector<int>& smap, QPair<QString, QString> runid, TTree* tree = 0, QWidget *parent = 0);
~FedMap();
public Q_SLOTS:
void on_btnZoomIn_clicked();
void on_btnZoomOut_clicked();
void on_btnUpload_clicked();
protected:
virtual void wheelEvent(QWheelEvent* event);
private:
QVector<fedview::Rack> racks;
FedGraphicsScene* scene;
QMatrix matrix;
QString run;
QString part;
QString mode;
bool performUpload;
void setViewInfoVisibility(QSlider*);
private Q_SLOTS:
void setupMatrix();
void catchWheelSignal(QWheelEvent*);
void catchZoomSignal(const QPointF&);
};
#endif