52 lines
751 B
C++
52 lines
751 B
C++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QTabWidget>
|
|
#include "LogViewWidget.hpp"
|
|
#include "logger.h"
|
|
|
|
|
|
namespace N_LogView
|
|
{
|
|
class LogViewTelegramDialog;
|
|
class LogViewSpinBox;
|
|
|
|
|
|
|
|
class LogViewTabWidget : public QTabWidget, public LogViewWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
LogViewTabWidget(LogViewField* a_field, LogViewTelegramDialog* a_parent, LogViewSpinBox* a_spinBox, NGL::INGLLogger& logger);
|
|
|
|
bool saveContent(LogViewTelegram* a_telegram) override;
|
|
void addTab(LogViewField* a_field, const bool a_isEmpty, int arrayIdx);
|
|
|
|
public slots:
|
|
|
|
|
|
void changeSize(const int a_newSize);
|
|
|
|
protected:
|
|
|
|
LogViewTelegramDialog* m_TelegramDialog;
|
|
LogViewSpinBox* m_SpinBox;
|
|
NGL::INGLLogger& m_logger;
|
|
|
|
};
|
|
|
|
}
|