Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
AppModuleAction.h
Go to the documentation of this file.
1#pragma once
2#include <QAction>
3#include <QIcon>
4#include <QKeySequence>
5#include <QObject>
6#include <ami/iface/global.h>
7
8namespace sf
9{
10
11// Forward declaration.
12class AppModuleActions;
13
17class _AMI_CLASS AppModuleAction : public QObject
18{
19 Q_OBJECT
20
21 public:
27
32 QAction getAction(QObject* parent) const;
33
37 enum EType
38 {
46 atMultiDocument
47 };
48
49 private:
53 QString _name;
57 QString _description;
61 QIcon _icon;
65 QKeySequence _keySequence;
66};
67
68}// namespace sf
#define _AMI_CLASS
Definition ami/iface/global.h:35
Holds a single application module action.
Definition AppModuleAction.h:18
AppModuleAction(AppModuleActions *parent)
Constructor.
EType
Types of action.
Definition AppModuleAction.h:38
@ atIndependent
Action.
Definition AppModuleAction.h:42
QAction getAction(QObject *parent) const
Gets a new created action entry from this instance.
Definition AppModuleActions.h:11
Definition Application.h:10