Messagelib

templatesinsertcommandpushbutton.h
1 /*
2  * SPDX-FileCopyrightText: 2006 Dmitry Morozhnikov <[email protected]>
3  * SPDX-FileCopyrightText: 2018-2023 Laurent Montel <[email protected]>
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
19 #include "templateparser_export.h"
20 #include <QPushButton>
21 #include <TemplateParser/TemplatesCommandMenu>
22 
23 namespace TemplateParser
24 {
25 /**
26  * @brief The TemplatesInsertCommandPushButton class
27  * @author Laurent Montel <[email protected]>
28  */
29 class TEMPLATEPARSER_EXPORT TemplatesInsertCommandPushButton : public QPushButton
30 {
31  Q_OBJECT
32 public:
33  explicit TemplatesInsertCommandPushButton(QWidget *parent, const QString &name = QString());
35 
36  Q_REQUIRED_RESULT TemplatesCommandMenu::MenuTypes type() const;
37  void setType(TemplatesCommandMenu::MenuTypes type);
38 
39 Q_SIGNALS:
40  void insertCommand(const QString &cmd, int adjustCursor = 0);
41 
42 private:
43  TemplatesCommandMenu *const mMenuCommand;
44 };
45 }
The TemplatesCommandMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Mar 24 2023 04:08:32 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.