- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "lts_frameless_dialog.h"
|
|
#include "lts_message_dialog.h"
|
|
|
|
#include <QHash>
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
class QPushButton;
|
|
class QHBoxLayout;
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LtsMessageDialogHelper : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LtsMessageDialogHelper(QObject* parent = nullptr);
|
|
~LtsMessageDialogHelper() = default;
|
|
|
|
Button showMessage(QWidget* parent, const QString& message, const QString& title, Behaviour behaviour,
|
|
LtsWidgets::Buttons buttons, const QHash<Button, QString>& buttonTexts);
|
|
|
|
private:
|
|
QPushButton* addButton(const QString& text, QHBoxLayout* thatLayout, LtsFramelessDialog* dialog,
|
|
const Button& button, QWidget* parent);
|
|
|
|
Button m_result;
|
|
LtsFramelessDialog* m_dialog;
|
|
|
|
private slots:
|
|
void slotOkay();
|
|
void slotYes();
|
|
void slotNo();
|
|
void slotCancel();
|
|
void slotApply();
|
|
void slotDiscard();
|
|
|
|
signals:
|
|
void signalQuitEventLoop();
|
|
};
|
|
} // namespace LtsWidgets
|