File indexing completed on 2024-12-08 04:34:23

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "ruqolaglobalconfig.h"
0009 #include <KActionMenu>
0010 class QActionGroup;
0011 class MessageStyleLayoutMenu : public KActionMenu
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit MessageStyleLayoutMenu(QObject *parent = nullptr);
0016     ~MessageStyleLayoutMenu() override;
0017 
0018 Q_SIGNALS:
0019     void styleChanged();
0020 
0021 private:
0022     QActionGroup *const mActionGroup;
0023     void addMessageStyleAction(const QString &name, RuqolaGlobalConfig::EnumMessageStyle::type status);
0024 };