Messagelib

templatesinsertcommandpushbutton.h
1/*
2 * SPDX-FileCopyrightText: 2006 Dmitry Morozhnikov <dmiceman@mail.ru>
3 * SPDX-FileCopyrightText: 2018-2024 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{
22 Q_OBJECT
23public:
24 explicit TemplatesInsertCommandPushButton(QWidget *parent, const QString &name = QString());
26
27 [[nodiscard]] TemplatesCommandMenu::MenuTypes type() const;
28 void setType(TemplatesCommandMenu::MenuTypes type);
29
30Q_SIGNALS:
31 void insertCommand(const QString &cmd, int adjustCursor = 0);
32
33private:
34 TemplatesCommandMenu *const mMenuCommand;
35};
36}
The TemplatesCommandMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.