1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainscreen.h 5.42 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef MAINSCREEN_H
#define MAINSCREEN_H
#include <QPainter>
#include <QWidget>
#include <QtMath>
#include <QTimer>
#include <qlabel.h>
#include <QStackedLayout>
#include <QPushButton>
#include <QStackedWidget>
#include <QListWidget>
#include <QProgressBar>
//#include "toolbar.h"
//#include "bottomtoolbar.h"
//#include "toweranimation.h"
//#include "toolbutton.h"
//#include "vandtbutton.h"
//#include "laser.h"
//#include "volumecontrol.h"
//#include "alignscreen.h"
#include "networkcamerachannel1.h"
#include "toweranalog.h"
//#include "networkcamerachannel2.h"
//#include "networkcamerachannel3.h"
//#include "fullscreenbutton.h"
#include "splitscreenbutton.h"
//#include "datadictionary.h"
//#include "faceidtimeout.h"
//#include "shieldclick.h"
//#include "tcmainscreeninfo.h"
//#include <QProgressBar>
typedef struct {
quint32 auiDevId;
double afArmLength;
double afRelativeDistance;
quint32 auiRelativeAngle;
quint32 auiCurrentAngle;
// double afRelativeHeight;
quint32 auiTowerId;
double afShowArmLength;
quint32 auiShowX;
quint32 auiShowY;
}MultiCraneInfo_t;
typedef struct {
quint32 auStartAngle;
quint32 auEndAngle;
double afStartScope;
double afEndScope;
double afShowStartScope;
double afShowEndScope;
}SigCraneInfo_t;
namespace Ui {
class MainScreen;
}
class MainScreen : public QWidget
{
Q_OBJECT
public:
explicit MainScreen(QWidget *parent = nullptr);
~MainScreen();
typedef enum {
BAR_ALARM = 0,
BAR_WARNING,
BAR_NORMAL,
}Sta_t;
void addAlarmLabel();
void InitHomePage1();
void InitHomePage2();
void InitHomePage3();
void initNetworkcamera();
void initTowerAnalog();
protected:
void showEvent(QShowEvent *event) override;
// void hideEvent(QHideEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void dragMoveEvent(QDragMoveEvent *event) override;
private:
QStackedLayout* m_stackedLayout;
// QStackedWidget* m_stackedLayout;
QListWidget* Home_Page_1;
QListWidget* Home_Page_2;
QListWidget* Home_Page_3;
int m_startPosX;
int m_curPosX;
QLabel* button1=nullptr;
QLabel* button2;
QLabel* button3;
void Display();
// void GetMultipCraneInfo();
void testGetMultipCraneInfo();
void GetSigCraneInfo();
void DisplayOverLook();
void SetMomentForce();
void SetScopeForce();
void SetHeightForce();
void SetWeightForce();
void SetWindForce();
void SetAngleForce();
void SetRotationForce();
// void SetCableTorsionForce();
void videoFullScreen();
void videoExitFullScreen();
// void SetWindLevel(QString V);
void CheckAlarm(uint32_t Sta);
// void CheckSensorSta(uint32_t Sta);
void BarSet(QWidget* widget,QProgressBar *Bar,Sta_t s);
// void SetAlarmShow();
private slots:
void mainShowNetworkCamera_1();
void mainShowNetworkCamera_2();
void mainShowNetworkCamera_3();
void mainShowNetworkCamera_4();
void onFullScreenNetworkCamera_1();
void onFullScreenNetworkCamera_2();
void onFullScreenNetworkCamera_3();
void onFullScreenNetworkCamera_4();
void onExitFullScreenNetworkCamera_1();
void onExitFullScreenNetworkCamera_2();
void onExitFullScreenNetworkCamera_3();
void onExitFullScreenNetworkCamera_4();
// void VoideSplitScreen();
// void TowerScreen();
void MonitorRtDataChange(MonitorRtDataIndex_t);
void DevParamDataChange(DevParamDataIndex_t Index);
// void MultipleParamDataChangeProcess(MultipleParamDataIndex_t Index);
void SignalParamDataChangeProcess(SignalParamDataIndex_t Index);
// void MisDataChange(MisDataIndex_t);
// void VolumeControlShow();
// void VandTClicked();
// void IpRefresh();
// void LockScreen(bool S);
// void AlarmShow();
void on_pushButton_3_clicked();
void on_m_pBtnSet_clicked();
signals:
void showLimitSettingPag();
private:
Ui::MainScreen *ui;
QLabel* m_tip;
// TowerAnimation *m_TowerAnimation;
TowerAnalog *m_TowerAnalog[9];
MultiCraneInfo_t m_CraneInfo[9];
SigCraneInfo_t m_SigCraneInfo[8];
// ToolButton *m_ToolButton;
// VandTButton *m_VandTButton;
// Laser *m_Laser;
// VolumeControl *m_VolumeControl;
// AlignScreen *m_AlignScreen;
DataDictionary *m_DataDictionary;
NetWorkCameraChannel1 *m_networkCameraChannel1=nullptr;
NetWorkCameraChannel1 *m_networkCameraChannel2=nullptr;
NetWorkCameraChannel1 *m_networkCameraChannel3=nullptr;
NetWorkCameraChannel1 *m_networkCameraChannel4=nullptr;
// FullScreenButton *m_FullScreenButton1;
// FullScreenButton *m_FullScreenButton2;
// FullScreenButton *m_FullScreenButton3;
// SplitScreenButton *m_SplitScreenButton;
uint32_t m_videoMainIndexCurrent=1;
uint32_t m_videoFullIndex;
NetWorkCameraChannel1* m_videoMainQWidget;
QObject* m_beforeFullScreenArea;
//// FaceIdTimeout *m_FaceIdTimeout;
//// DataDictionary *m_DataDictionary;
//// QStringList m_AlarmSoundList;
//// ShieldClick *m_ShieldClick;
//// TcMainScreenInfo *m_TcMainScreenInfo;
// QTimer *m_Timer;
// QTimer *m_AlarmTimer;
// enum ScreenIndex {
// FULL_SCREEN = 0,
// SPLIT_SCREEN,
// TOWER_SCREEN,
// };
// enum ScreenIndex m_ScreenIndex;
};
#endif // MAINSCREEN_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助