forked from AlloyTeam/Rythem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ryconnectiontableview.h
48 lines (36 loc) · 1.02 KB
/
ryconnectiontableview.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
#ifndef RYCONNECTIONTABLEVIEW_H
#define RYCONNECTIONTABLEVIEW_H
#include <QTableView>
#include <QtCore>
#include <QtGui>
class RyConnectionTableView : public QTableView
{
Q_OBJECT
public:
explicit RyConnectionTableView(QWidget *parent = 0);
signals:
public slots:
protected:
virtual void contextMenuEvent (QContextMenuEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
private slots:
void onAction(QAction*);
private:
QMenu *_contextMenu;
QMenu *_saveMenu;
QMenu *_removeMenu;
QAction *_saveSelectedSessionAct;
QAction *_saveAllSessionAct;
QAction *_saveSessionsRevertAct;
QAction *_removeSelectedSessionAct;
QAction *_removeAllSessionAct;
QAction *_removeSessionsRevertAct;
QAction *_saveSessionRespnoseBodyAct;
QAction *_saveSessionRequestAct;
QAction *_autoScrollAct;
bool _isMouseDown;
void createMenu();
};
#endif // RYCONNECTIONTABLEVIEW_H