1 Star 1 Fork 0

xiongqiumin/LockServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainWindow.h 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
xiongqiumin 提交于 2021-01-25 23:23 . init
#pragma once
#include <QThread>
#include <QSystemTrayIcon>
#include <QWidget>
#include "ui_mainWindow.h"
#include "HttpListener.h"
#include "LockWidget_ICDLL.h"
#include "LockWidget_V9RFDLL.h"
#include "LockWidget_TPDLL.h"
#include "LockWidget_RFV42.h"
#include "CardWidget_CVR100UD.h"
#include "LockWidget_proUsb.h"
#include "Setting.h"
class QMainWindow: public QWidget
{
Q_OBJECT
public:
QMainWindow();
~QMainWindow();
void startServer();
protected slots:
void paintEvent(QPaintEvent *event);
void trayiconActivated(QSystemTrayIcon::ActivationReason reason);
void onDealCommand(int type,QString cmd,Json::Value *param,Json::Value *ret);
void onLabelSetting();
void onCompanyChanged();
void onLockTypeChanged(int type);
void onBtnBack();
void onBtnMin();
void onBtnClose();
protected:
virtual void closeEvent(QCloseEvent *event);
private:
bool winEvent ( MSG * message, long * result );
void initTrayIcon();
void hideWindow();
void setBackImage(QWidget *widget,QString backImage);
void setButtonImage(QWidget *widget,QString backImage);
void gotoView(int index);
void createDllWidget();
void createCardWidget();
int m_stackBase;
QStringList m_lockCompany;
QStringList m_cardCompany;
QString m_widgetQss;
/* http */
stefanfrings::HttpListener *mHttpListener;
/* */
QAction *minimizeAction;
QAction *restoreAction;
QAction *quitAction;
QMenu *trayIconMenu;
QSystemTrayIcon *trayIcon;
Ui::Form ui;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiongqiumin/lock-server.git
[email protected]:xiongqiumin/lock-server.git
xiongqiumin
lock-server
LockServer
master

搜索帮助