#ifndef CMESSAGEBOX_H
#define CMESSAGEBOX_H

#include <QWidget>
#include <QDialog>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDialogButtonBox>
#include <QPushButton>

#include <ukuistylehelper/ukuistylehelper.h>

class CMessageBox : public QDialog
{
    Q_OBJECT

public:
    explicit CMessageBox(QWidget *parent = nullptr);
    ~CMessageBox();

    void setText(QString dialogText);

private:
    void init();

private:
    QWidget *m_widget = nullptr;
    QVBoxLayout *m_vLayout = nullptr;
    QPushButton *m_btnClose = nullptr;
    QLabel *m_iconLabel = nullptr;
    QLabel *m_textLabel = nullptr;
    QHBoxLayout *m_labelLayout = nullptr;
    QDialogButtonBox *m_buttonBox = nullptr;
    QHBoxLayout *m_btnLayout = nullptr;

};

#endif // CMESSAGEBOX_H
