-
Notifications
You must be signed in to change notification settings - Fork 1
/
ToolBar.h
52 lines (40 loc) · 1.08 KB
/
ToolBar.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
/*
* 工具栏类,鼠标进入悬浮窗区域则显示工具栏,用于放置一些常用功能.
*/
#ifndef TOOLBAR_H
#define TOOLBAR_H
#include <QWidget>
namespace Ui {
class ToolBar;
}
class ToolBar : public QWidget
{
Q_OBJECT
public:
explicit ToolBar(QWidget *parent = 0);
~ToolBar();
signals:
///< \note 为了不让本程序出现在截图中,截图时先隐藏所有窗体,之后在显示.
void hideRequested();
void showRequested();
///< ToolButton功能信号,实现在主窗口中实现.
void updateRequested();
void queryScoreRequested();
void openCommandRequested();
void openProjectDirRequested();
void screenShotRequested();
void shutdownRequested();
private slots:
void on_toolButton_clicked();
void on_pQueryScoreBtn_clicked();
void on_pOpenBtn_clicked();
///< \note 打开Command.
void on_pCommandBtn_clicked();
///< \note 屏幕截图.
void on_pScreenshotBtn_clicked();
///< \note 定时关机.
void on_pShutdownBtn_clicked();
private:
Ui::ToolBar *ui;
};
#endif // TOOLBAR_H