Messagelib

templatesinsertcommandaction.h
1/*
2 SPDX-FileCopyrightText: 2018-2025 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{
22public:
23 explicit TemplatesInsertCommandAction(QObject *parent = nullptr);
24 ~TemplatesInsertCommandAction() override;
25
26 [[nodiscard]] TemplatesCommandMenu::MenuTypes type() const;
27 void setType(TemplatesCommandMenu::MenuTypes type);
28
30 void insertCommand(const QString &cmd, int adjustCursor);
31
32private:
33 TemplatesCommandMenu *const mMenuCommand;
34};
35}
The TemplatesCommandMenu class.
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QWidgetAction(QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:05:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.