OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aAction.h
Go to the documentation of this file.
1/*
2 * File: aAction.h
3 * Package: akGui
4 *
5 * Created on: March 19, 2020
6 * Author: Alexander Kuester
7 * Copyright (c) 2022 Alexander Kuester
8 * This file is part of the uiCore component.
9 * This file is subject to the terms and conditions defined in
10 * file 'LICENSE', which is part of this source code package.
11 */
12
13#pragma once
14
15// Qt header
16#include <qaction.h> // base class
17#include <qstring.h> // QString
18#include <qicon.h> // QIcon
19#include <qtoolbutton.h> // ToolButtonPopupMode
20
21// AK header
23#include <akCore/aObject.h>
24
25namespace ak {
26
28 class UICORE_API_EXPORT aAction : public QAction, public aObject
29 {
30 Q_OBJECT
31 public:
32
36 aAction(
37 QToolButton::ToolButtonPopupMode _popupMode = QToolButton::ToolButtonPopupMode::InstantPopup,
38 QObject * _parent = (QObject *) nullptr
39 );
40
45 aAction(
46 const QString & _text,
47 QToolButton::ToolButtonPopupMode _popupMode = QToolButton::ToolButtonPopupMode::InstantPopup,
48 QObject * _parent = (QObject *) nullptr
49 );
50
56 aAction(
57 const QIcon & _icon,
58 const QString & _text,
59 QToolButton::ToolButtonPopupMode _popupMode = QToolButton::ToolButtonPopupMode::InstantPopup,
60 QObject * _parent = (QObject *) nullptr
61 );
62
64 virtual ~aAction();
65
66 // #######################################################################################################
67
69 QToolButton::ToolButtonPopupMode popupMode(void) { return m_popupMode; }
70
71 private:
72 QToolButton::ToolButtonPopupMode m_popupMode;
73 };
74} // namespace ak
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
This class combines the functionallity of a QAction and a ak::ui::core::aPaintable.
Definition aAction.h:29
QToolButton::ToolButtonPopupMode popupMode(void)
Retuns the popup mode this Action is using.
Definition aAction.h:69
This class is used to store the main information of any object used Information contained is the UID ...
Definition aObject.h:34
Definition uiAPI.h:45