-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIROOTFittingObjects.h
47 lines (38 loc) · 1.08 KB
/
IROOTFittingObjects.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
#ifndef IROOTFITTINGOBJECTS_H
#define IROOTFITTINGOBJECTS_H
#include <QWidget>
#include <TPad.h>
#include <IROOTPad.h>
#include <QString>
#include <QTreeWidgetItem>
#include <QMouseEvent>
namespace Ui {
class IROOTFittingObjects;
}
class IROOTFittingObjects : public QWidget
{
Q_OBJECT
public:
explicit IROOTFittingObjects(QWidget *parent = 0);
void Update();
QString GetObjectId(QString s);
QStringList GetListofSelectedObjects();
~IROOTFittingObjects();
signals:
void itemsSelected(QStringList);
void highLight(QString);
private slots:
void on_close_clicked();
void on_fittableObjects_itemClicked(QTreeWidgetItem *item, int column);
private:
Ui::IROOTFittingObjects *ui;
QPoint mousePressOrigin;
void mousePressEvent(QMouseEvent *e){ mousePressOrigin = e->globalPos();}
void mouseMoveEvent(QMouseEvent *e){
if(e->buttons() & Qt::LeftButton ){
move(pos()-(mousePressOrigin-e->globalPos()));
mousePressOrigin = e->globalPos();
}
}
};
#endif // IROOTFITTINGOBJECTS_H