1 Star 0 Fork 3

OPMichael/QTLauncher

forked from murphy/QTLauncher 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mainwindow.h 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
murphy 提交于 2017-06-21 15:45 . add qt5 support & update README.md
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "toolbar.h"
#include "basewidget.h"
#include <QProcess>
class QVBoxLayout;
class QGridLayout;
class QKeyEvent;
class QFocusEvent;
class QWidget;
class QTimer;
namespace ui {
class CameraWidget;
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
class Broswer;
#endif
class NetWidget;
class WifiWidget;
class FileManager;
class KeyWidget;
class PaintingWidget;
class BluetoothWidget;
class MainWindow : public BaseWidget {
Q_OBJECT
public :
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void start();
#if 0
protected :
void focusInEvent(QFocusEvent *);
//void keyPressEvent(QKeyEvent *e);
#endif
protected slots :
void onToolHomeClicked();
void onToolBackClicked();
private slots:
//void onHomeAction();
void onWifiButtonClicked();
void onBlueButtonClicked();
void onNetButtonClicked();
void onInternetButtonClicked();
void onKeyButtonClicked();
void onPaintingButtonClicked();
void onCameraButtonClicked();
void onVideoButtonClicked();
void onGameButtonClicked();
void onTFButtonClicked();
void onOtherButtonClicked();
void processFinished(int, QProcess::ExitStatus);
void onLogoTimeout();
void onSingleTimeout();
void onItemDestroyed();
private :
void initButtons();
bool canExec();
QVBoxLayout *mCentralLayout;
QGridLayout *mItemLayout;
QLabel *mLogo;
QTimer *mLogoTimer;
bool clickable;
int mLogoIndex;
CameraWidget *mCarmera;
NetWidget *mEthernet;
WifiWidget *mWifi;
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
Broswer *mBrowser;
#endif
FileManager *mTFCard;
BluetoothWidget *mBluetooth;
KeyWidget *mKey;
PaintingWidget *mPainting;
};
}
#endif /*MAINWINDOW_H*/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/michaelheaven/qtlauncher.git
git@gitee.com:michaelheaven/qtlauncher.git
michaelheaven
qtlauncher
QTLauncher
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385