itom
Loading...
Searching...
No Matches
popupWidget_p.h
1
/* ********************************************************************
2
itom software
3
URL: http://www.uni-stuttgart.de/ito
4
Copyright (C) 2020, Institut für Technische Optik (ITO),
5
Universität Stuttgart, Germany
6
7
This file is part of itom and its software development toolkit (SDK).
8
9
itom is free software; you can redistribute it and/or modify it
10
under the terms of the GNU Library General Public Licence as published by
11
the Free Software Foundation; either version 2 of the Licence, or (at
12
your option) any later version.
13
14
In addition, as a special exception, the Institut für Technische
15
Optik (ITO) gives you certain additional rights.
16
These rights are described in the ITO LGPL Exception version 1.0,
17
which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19
itom is distributed in the hope that it will be useful, but
20
WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22
General Public Licence for more details.
23
24
You should have received a copy of the GNU Library General Public License
25
along with itom. If not, see <http://www.gnu.org/licenses/>.
26
27
This file is a port and modified version of the
28
CTK Common Toolkit (http://www.commontk.org)
29
*********************************************************************** */
30
31
#ifndef POPUPWIDGET_P_H
32
#define POPUPWIDGET_P_H
33
34
// CTK includes
35
#include "basePopupWidget_p.h"
36
#include "popupWidget.h"
37
38
// -------------------------------------------------------------------------
40
class
ITOMWIDGETS_EXPORT
PopupWidgetPrivate
41
:
public
BasePopupWidgetPrivate
42
{
43
Q_OBJECT
44
Q_DECLARE_PUBLIC(
PopupWidget
);
45
public
:
46
typedef
BasePopupWidgetPrivate
Superclass
;
47
PopupWidgetPrivate
(
PopupWidget
&
object
);
48
~PopupWidgetPrivate
();
49
50
virtual
void
init();
51
52
// Return the widget if the mouse cursor is above any of the focus widgets or their
53
// children.
54
// If the cursor is above a child widget, install the event filter to listen
55
// when the cursor leaves the widget.
56
virtual
QWidget* mouseOver();
57
58
virtual
bool
eventFilter(QObject* obj, QEvent* event);
59
60
void
temporarilyHiddenOn();
61
void
temporarilyHiddenOff();
62
63
public
Q_SLOTS:
64
void
updateVisibility();
65
void
onApplicationDeactivate();
66
67
protected
:
68
bool
Active;
69
bool
AutoShow;
70
int
ShowDelay;
71
bool
AutoHide;
72
int
HideDelay;
73
};
74
75
#endif
BasePopupWidgetPrivate
Definition
basePopupWidget_p.h:46
PopupWidget
Definition
popupWidget.h:42
PopupWidgetPrivate
Definition
popupWidget_p.h:42
itom
itomWidgets
popupWidget_p.h
Generated on Tue Nov 12 2024 10:43:14 for itom by
1.12.0