47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "APP/APP_GlassCard.h"
|
||
|
|
|
||
|
|
class QLabel;
|
||
|
|
class QLineEdit;
|
||
|
|
class QPlainTextEdit;
|
||
|
|
class QPushButton;
|
||
|
|
|
||
|
|
namespace DEBUG {
|
||
|
|
|
||
|
|
class Debug_Panel : public APP::APP_GlassCard
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
explicit Debug_Panel(QWidget* parent = nullptr);
|
||
|
|
|
||
|
|
QPushButton* Debug_Func_GetRefreshButton() const;
|
||
|
|
QPushButton* Debug_Func_GetClearButton() const;
|
||
|
|
QPushButton* Debug_Func_GetApplyConfigButton() const;
|
||
|
|
QPushButton* Debug_Func_GetSyncTimeButton() const;
|
||
|
|
QPushButton* Debug_Func_GetModeSwitchButton() const;
|
||
|
|
|
||
|
|
void Debug_Func_SetDeviceConfigText(
|
||
|
|
quint16 VendorId,
|
||
|
|
quint16 ProductId);
|
||
|
|
bool Debug_Func_TryGetDeviceConfig(
|
||
|
|
quint16* p_VendorId,
|
||
|
|
quint16* p_ProductId) const;
|
||
|
|
void Debug_Func_SetConfigStatusText(const QString& Text, bool IsOk);
|
||
|
|
void Debug_Func_SetConnectionText(const QString& Text, bool IsConnected);
|
||
|
|
void Debug_Func_SetLogText(const QString& Text);
|
||
|
|
|
||
|
|
private:
|
||
|
|
QLabel* debugLabelConnection = nullptr;
|
||
|
|
QLabel* debugLabelConfigStatus = nullptr;
|
||
|
|
QLineEdit* debugEditVendorId = nullptr;
|
||
|
|
QLineEdit* debugEditProductId = nullptr;
|
||
|
|
QPlainTextEdit* debugEditLog = nullptr;
|
||
|
|
QPushButton* debugButtonApplyConfig = nullptr;
|
||
|
|
QPushButton* debugButtonRefresh = nullptr;
|
||
|
|
QPushButton* debugButtonClear = nullptr;
|
||
|
|
QPushButton* debugButtonSyncTime = nullptr;
|
||
|
|
QPushButton* debugButtonModeSwitch = nullptr;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace DEBUG
|