Messagelib

templatesinsertcommandaction.h
1/*
2 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QWidgetAction>
10#include <TemplateParser/TemplatesCommandMenu>
11
12#include "templateparser_export.h"
13namespace TemplateParser
14{
15/**
16 * @brief The TemplatesInsertCommandAction class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class TEMPLATEPARSER_EXPORT TemplatesInsertCommandAction : public QWidgetAction
20{
21 Q_OBJECT
22public:
23 explicit TemplatesInsertCommandAction(QObject *parent = nullptr);
25
26 [[nodiscard]] TemplatesCommandMenu::MenuTypes type() const;
27 void setType(TemplatesCommandMenu::MenuTypes type);
28
29Q_SIGNALS:
30 void insertCommand(const QString &cmd, int adjustCursor);
31
32private:
33 TemplatesCommandMenu *const mMenuCommand;
34};
35}
The TemplatesCommandMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.