OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
aWidget.h
Go to the documentation of this file.
1/*
2 * File: aWidget.h
3 * Package: akWidgets
4 *
5 * Created on: July 26, 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/akCore.h>
18#include <akCore/aObject.h>
19
20// Forward declaration
21class QWidget;
22
23namespace ak {
24
28 public:
32 aWidget(
33 objectType _type = otNone,
34 UID _UID = invalidUID
35 );
36
38 virtual ~aWidget();
39
41 virtual QWidget * widget(void) = 0;
42
44 virtual bool isWidgetType(void) const override;
45
46 private:
47 // Block copy constructor
48 aWidget(const aWidget & _other) = delete;
49
50 // Block assignment operator
51 aWidget & operator = (const aWidget & _other) = delete;
52 };
53} // namespace ak
#define UICORE_API_EXPORT
Definition globalDataTypes.h:20
This class is used to store the main information of any object used Information contained is the UID ...
Definition aObject.h:34
This class provides a interface that represents a widget. Every class derived from this class must be...
Definition aWidget.h:27
virtual QWidget * widget(void)=0
Will return the widgets widget to display it.
Definition uiAPI.h:45
const UID invalidUID
Represents the invalid UID for an object.
Definition globalDataTypes.h:71
unsigned long long UID
The UID datatype used for objects.
Definition globalDataTypes.h:65
objectType
Describes the type of an object.
Definition akCore.h:167
@ otNone
Definition akCore.h:168