78 lines
1.4 KiB
C++
78 lines
1.4 KiB
C++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include "logger.h"
|
|
|
|
class QGridLayout;
|
|
class QTabWidget;
|
|
class QFrame;
|
|
class QScrollArea;
|
|
class QLineEdit;
|
|
|
|
|
|
namespace N_LogView
|
|
{
|
|
class LogViewWidget;
|
|
class LogViewTelegram;
|
|
class LogViewField;
|
|
|
|
|
|
|
|
class LogViewTelegramDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit LogViewTelegramDialog(QWidget *a_parent = nullptr, const bool a_readonly = true);
|
|
|
|
void showDialog(const QSharedPointer<LogViewTelegram> &a_telegram);
|
|
void showDataDump(const QSharedPointer<LogViewTelegram> &a_telegram, bool showErrorMessage);
|
|
void makePretty();
|
|
void showTree(LogViewField *a_fieldTree, QGridLayout *a_box);
|
|
|
|
|
|
|
|
bool removeItemsFromEditInfoList(const QStringList &jsonPath);
|
|
|
|
Q_SIGNALS:
|
|
void sendTelegram(const QSharedPointer<LogViewTelegram> &telegramToSend);
|
|
protected slots:
|
|
void saveTelegram();
|
|
|
|
void sendCurrentTelegram();
|
|
|
|
protected:
|
|
|
|
void fillTelegram(LogViewTelegram *a_telegram);
|
|
void showButtons(QLayout *a_layout);
|
|
void showEditField(LogViewField *a_logViewField, QGridLayout *a_box);
|
|
void showTab(LogViewField *a_logViewField, QGridLayout *a_box);
|
|
|
|
private:
|
|
QSharedPointer<LogViewTelegram> m_Telegram;
|
|
QVector<LogViewWidget *> m_EditInfoList;
|
|
QScopedPointer<LogViewField> m_fieldTree;
|
|
QWidget *m_contentsWidget = nullptr;
|
|
QScrollArea *m_ScrollArea = nullptr;
|
|
QLineEdit *m_NameEdit = nullptr;
|
|
QLineEdit *m_WaitTimeEdit = nullptr;
|
|
bool m_ReadOnly = false;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
};
|
|
|
|
}
|