Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
FrmFullScreenToolBar.h
1// Author: Kang Lin <kl222@126.com>
2
3#ifndef FRMFULLSCREENTOOLBAR_H
4#define FRMFULLSCREENTOOLBAR_H
5
6#include <QAction>
7#include <QWidget>
8#include <QMouseEvent>
9#include <QPointF>
10#include <QToolBar>
11#include <QTimer>
12#include "mainwindow.h"
13
14namespace Ui {
16}
17
18class CFrmFullScreenToolBar : public QWidget
19{
20 Q_OBJECT
21
22public:
23 explicit CFrmFullScreenToolBar(MainWindow* pMain, QWidget *parent = nullptr);
24 virtual ~CFrmFullScreenToolBar() override;
25
26Q_SIGNALS:
27 void sigExitFullScreen();
28 void sigExit();
29 void sigDisconnect();
30 void sigShowTabBar(bool check);
31
32private Q_SLOTS:
33 void slotTimeOut();
34 void slotNail();
35 void slotShowTabBar();
36 void slotConnecterMenuChanged(QAction* pAction);
37
38protected:
39 virtual void mouseMoveEvent(QMouseEvent *event) override;
40 virtual void mousePressEvent(QMouseEvent *event) override;
41#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
42 virtual void enterEvent(QEnterEvent *event) override;
43#else
44 virtual void enterEvent(QEvent *event) override;
45#endif
46 virtual void leaveEvent(QEvent *event) override;
47
48private:
49 int ReToolBarSize();
50
51private:
52 Ui::CFrmFullScreenToolBar *ui;
53
54 QPointF m_Pos;
55 QToolBar m_ToolBar;
56 QAction* m_pConnecterMenu;
57 QAction* m_pNail;
58 MainWindow* m_pMain;
59 QTimer m_Timer;
60 int m_TimeOut;
61 bool m_isHide;
62
63 QAction* m_pShowTabBar;
64};
65
66#endif // FRMFULLSCREENTOOLBAR_H
The MainWindow class.
Definition mainwindow.h:32