#pragma once #include #include #include "spkdialog.h" class SpkMsgBox : public SpkDialog { Q_OBJECT public: SpkMsgBox(QWidget *parent = nullptr); static int StaticExec(QString msg, QString title, QMessageBox::Icon = QMessageBox::NoIcon, QMessageBox::StandardButtons = QMessageBox::Ok, QString extra = "", bool expanded = false); private: static void AddButtons(SpkMsgBox *me, QMessageBox::StandardButtons b); QList mButtonList; static constexpr QSize IconSize {48, 48}; static constexpr int Margin = 10; };