OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
DockWatcherAction.h
Go to the documentation of this file.
1
5
// ###########################################################################################################################################################################################################################################################################################################################
6
7
#pragma once
8
9
// OpenTwin header
10
#include "
OTCore/OTClassHelper.h
"
11
#include "
OTWidgets/OTWidgetsAPIExport.h
"
12
13
// Qt header
14
#include <QtWidgets/qaction.h>
15
#include <QtWidgets/qdockwidget.h>
16
17
namespace
ot
{
18
19
class
OT_WIDGETS_API_EXPORT
DockWatcherAction
:
public
QAction {
20
Q_OBJECT
21
OT_DECL_NOCOPY
(
DockWatcherAction
)
22
public
:
23
DockWatcherAction
();
24
virtual
~DockWatcherAction
();
25
26
void
watch(QDockWidget* _dock);
27
void
removeWatch(
void
);
28
29
private
Q_SLOTS:
30
void
slotTriggered(
bool
_checked);
31
void
slotVisibilityChanged(
bool
_vis);
32
33
private
:
34
QDockWidget* m_dock;
35
36
};
37
38
}
OTClassHelper.h
This file contains defines that may be used simplyfy class creation.
OT_DECL_NOCOPY
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition
OTClassHelper.h:14
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
ot::DockWatcherAction
Definition
DockWatcherAction.h:19
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
DockWatcherAction.h
Generated by
1.10.0