OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aWindow.h
Go to the documentation of this file.
1/*
2 * File: aWindow.h
3 * Package: akWidgets
4 *
5 * Created on: November 09, 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 // AK header
17#include <akCore/aObject.h>
18
19// Qt header
20#include <qmainwindow.h> // Base class
21#include <qwidget.h>
22#include <qsize.h>
23
24// C++ header
25#include <map>
26
27// Forward declaration
28class QCloseEvent;
29class QLabel;
30class QResizeEvent;
31
32namespace ak {
33
34 // Forward declaration
35 class aWindowEventHandler;
36 class aAnimationOverlayWidget;
37
38 class UICORE_API_EXPORT aWindow : public QMainWindow, public aObject {
39 Q_OBJECT
40 public:
41 aWindow();
42 virtual ~aWindow();
43
44 // #######################################################################################################
45
46 // Base class functions
47
48 virtual void closeEvent(QCloseEvent * _event) override;
49
50 // #######################################################################################################
51
52 // Event handling
53
56 void addEventHandler(
57 aWindowEventHandler * _eventHandler
58 );
59
62 void removeEventHandler(
63 aWindowEventHandler * _eventHandler
64 );
65
66 void SetCentralWidget(
67 QWidget * _widget
68 );
69
70 void setWaitingAnimationVisible(
71 bool _visible
72 );
73
74 void setWaitingAnimation(
75 QMovie * _movie
76 );
77
78 void showEvent(QShowEvent* event);
79
80 private:
81
82 aAnimationOverlayWidget * m_centralWidget;
83 QLabel * m_waitingWidget;
84
85 std::map<aWindowEventHandler *, bool> m_eventHandler;
86
87 };
88
89}
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
Definition aAnimationOverlayWidget.h:30
This class is used to store the main information of any object used Information contained is the UID ...
Definition aObject.h:34
Definition aWindowEventHandler.h:19
Definition aWindow.h:38
Definition uiAPI.h:45