-
Notifications
You must be signed in to change notification settings - Fork 4
/
winmain.h
82 lines (69 loc) · 2.18 KB
/
winmain.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef WINMAIN_H
/*
* Copyright (c) 2020 xmuli
*
* Author: xmuli(偕臧) xmulitech@gmail.com
* GitHub: https://github.com/xmuli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* */
#define WINMAIN_H
#include <DMainWindow>
#include <DTabWidget>
#include <DCheckBox>
#include <DComboBox>
DWIDGET_BEGIN_NAMESPACE
class DLineEdit;
class DSpinBox;
//class DCheckBox; 奇怪, 怎么还不能声明了? 已经知道了
DWIDGET_END_NAMESPACE
class SettingModel;
DWIDGET_USE_NAMESPACE
class WinMain : public DMainWindow
{
Q_OBJECT
public:
WinMain(SettingModel *model, QWidget *parent = 0);
void init();
inline DLineEdit* getUpload(){return m_lineUpload;}
signals:
void sigLabUpload(QString lineUpload);
void sigLabDown(QString lineUpload);
void sigLabCpu(QString lineUpload);
void sigLabMemory(QString lineUpload);
void sigDecimalsNum(const int num);
void sigInterval(const int ms);
void sigSensitive(const int index);
void sigShowUp(int status);
void sigShowDown(int status);
void sigShowCPU(int status);
void sigShowMem(int status);
void sigMousTip(int status);
void sigUpAndDown(int status);
void sigOnlyOne(int status);
private:
DTabWidget *m_tab;
DLineEdit* m_lineUpload;
DLineEdit* m_lineDown;
DLineEdit* m_lineCpu;
DLineEdit* m_lineMemory;
DCheckBox* m_checkUpAndDown;
DCheckBox* m_checkMouseTips;
DCheckBox* m_checkShowUp;
DCheckBox* m_checkShowDown;
DCheckBox* m_checkShowCPU;
DCheckBox* m_checkShowMem;
DSpinBox* m_spinDecimalsNum;
DSpinBox* m_spinInterval;
DComboBox* m_comSensitive;
SettingModel *m_model;
};
#endif // WINMAIN_H