Messagelib

templatesinsertcommandaction.h
1 /*
2  SPDX-FileCopyrightText: 2018-2021 Laurent Montel <[email protected]>
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"
13 namespace TemplateParser
14 {
15 /**
16  * @brief The TemplatesInsertCommandAction class
17  * @author Laurent Montel <[email protected]>
18  */
19 class TEMPLATEPARSER_EXPORT TemplatesInsertCommandAction : public QWidgetAction
20 {
21  Q_OBJECT
22 public:
23  explicit TemplatesInsertCommandAction(QObject *parent = nullptr);
24  ~TemplatesInsertCommandAction() override;
25 
26  Q_REQUIRED_RESULT TemplatesCommandMenu::MenuTypes type() const;
27  void setType(TemplatesCommandMenu::MenuTypes type);
28 
29 Q_SIGNALS:
30  void insertCommand(const QString &cmd, int adjustCursor);
31 
32 private:
33  TemplatesCommandMenu *const mMenuCommand;
34 };
35 }
PartitionTable::TableType type
The TemplatesCommandMenu class.
The TemplatesInsertCommandAction class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.