YULTek/Otarcik_CAN/Sources/Gui/GeneralStatusPage.h
2023-01-27 13:33:03 -05:00

47 lines
831 B
C++

#ifndef GENERALSTATUSPAGE_H
#define GENERALSTATUSPAGE_H
#include <QWidget>
#include "defines.h"
namespace Ui {
class CGeneralStatusPage;
}
class CGeneralStatusPage : public QWidget
{
Q_OBJECT
public:
enum eGeneralStatusPgTxtErrorValue
{
GEN_STATUS_PG_NO_ERROR_TEXT_VALUE = 0,
GEN_STATUS_PG_WARNING_TEXT_VALUE,
GEN_STATUS_PG_ERROR_TEXT_VALUE,
GEN_STATUS_PG_MAX_TEXT_VALUE
};
explicit CGeneralStatusPage(QWidget *parent = 0);
~CGeneralStatusPage();
int SetGeneralMsgText(QStringList Txt);
int AddGeneralMsgBoxLineEntry(QString LineTxt);
private:
Ui::CGeneralStatusPage *ui;
QStringList mGenMsgListBoxTextLines;
int AddColoredLineToGenMsgBox(QString Line);
public slots:
void ClearGenMsgAreaBtnPressed();
};
#endif // GENERALSTATUSPAGE_H