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 
14 namespace TemplateParser
15 {
16 /**
17  * @brief The TemplatesInsertCommandPushButton class
18  * @author Laurent Montel <montel@kde.org>
19  */
20 class TEMPLATEPARSER_EXPORT TemplatesInsertCommandPushButton : public QPushButton
21 {
22  Q_OBJECT
23 public:
24  explicit TemplatesInsertCommandPushButton(QWidget *parent, const QString &name = QString());
26 
27  [[nodiscard]] TemplatesCommandMenu::MenuTypes type() const;
28  void setType(TemplatesCommandMenu::MenuTypes type);
29 
30 Q_SIGNALS:
31  void insertCommand(const QString &cmd, int adjustCursor = 0);
32 
33 private:
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 Thu Feb 15 2024 03:55:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.