Messagelib

templatesinsertcommandpushbutton.h
1/*
2 * SPDX-FileCopyrightText: 2006 Dmitry Morozhnikov <dmiceman@mail.ru>
3 * SPDX-FileCopyrightText: 2018-2025 Laurent Montel <montel@kde.org>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#pragma once
9
10#include "templateparser_export.h"
11#include <QPushButton>
12#include <TemplateParser/TemplatesCommandMenu>
13
14namespace TemplateParser
15{
16/**
17 * @brief The TemplatesInsertCommandPushButton class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class TEMPLATEPARSER_EXPORT TemplatesInsertCommandPushButton : public QPushButton
21{
23public:
24 explicit TemplatesInsertCommandPushButton(QWidget *parent, const QString &name = QString());
25 ~TemplatesInsertCommandPushButton() override;
26
27 [[nodiscard]] TemplatesCommandMenu::MenuTypes type() const;
28 void setType(TemplatesCommandMenu::MenuTypes type);
29
31 void insertCommand(const QString &cmd, int adjustCursor = 0);
32
33private:
34 TemplatesCommandMenu *const mMenuCommand;
35};
36}
The TemplatesCommandMenu class.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QPushButton(QWidget *parent)
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:40 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.