JKQTPlotter
trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Main Page
Related Pages
Topics
Namespaces
Classes
Loading...
Searching...
No Matches
jkvanishqtoolbar.h
1
/*
2
Copyright (c) 2008-2024 Jan W. Krieger (<jan@jkrieger.de>)
3
4
5
6
This software is free software: you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License (LGPL) as published by
8
the Free Software Foundation, either version 2.1 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License (LGPL) for more details.
15
16
You should have received a copy of the GNU Lesser General Public License (LGPL)
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
21
22
#ifndef jkvanishqtoolbar_H
23
#define jkvanishqtoolbar_H
24
#include "jkqtplotter/jkqtplotter_imexport.h"
25
#include "jkqtplotter/jkqtptools.h"
26
#include <QToolBar>
27
28
/** \brief a modified <a href="http://doc.qt.io/qt-5/qtoolbar.html">QToolBar</a> which vanishes when the mouse leaves the toolbar.
29
* \ingroup jkqtptools_qtwidgets
30
*
31
* \image html jkqtplotter_toolbar_hidden.png "Hidden Toolbar"
32
*
33
* \image html jkqtplotter_toolbar_shown.png "Shown Toolbar"
34
*
35
* \image html jkqtvanishtoolbar.gif
36
*
37
*/
38
class
JKQTPLOTTER_LIB_EXPORT
JKVanishQToolBar
:
public
QToolBar {
39
Q_OBJECT
40
public
:
41
/** \brief class constructor */
42
JKVanishQToolBar
(
const
QString& title, QWidget* parent=
nullptr
);
43
/** \brief class constructor */
44
JKVanishQToolBar
(QWidget* parent=
nullptr
);
45
/** \brief is the auto-vanishing feature of this toolbar activated? */
46
bool
doesToolbarVanish
()
const
;
47
public
Q_SLOTS:
48
/** \brief enable or disable the auto-vanishing feature of this toolbar */
49
void
setToolbarVanishesEnabled
(
bool
__value);
50
protected
:
51
/** \brief is the auto-vanishing feature of this toolbar activated? */
52
bool
toolbarVanishes
;
53
/** \brief this event triggers the vanishing of the toolbar */
54
void
leaveEvent
( QEvent *
/*event*/
);
55
};
56
#endif
// jkvanishqtoolbar_H
JKVanishQToolBar
a modified QToolBar which vanishes when the mouse leaves the toolbar.
Definition
jkvanishqtoolbar.h:38
JKVanishQToolBar::JKVanishQToolBar
JKVanishQToolBar(const QString &title, QWidget *parent=nullptr)
class constructor
JKVanishQToolBar::setToolbarVanishesEnabled
void setToolbarVanishesEnabled(bool __value)
enable or disable the auto-vanishing feature of this toolbar
JKVanishQToolBar::toolbarVanishes
bool toolbarVanishes
is the auto-vanishing feature of this toolbar activated?
Definition
jkvanishqtoolbar.h:52
JKVanishQToolBar::doesToolbarVanish
bool doesToolbarVanish() const
is the auto-vanishing feature of this toolbar activated?
JKVanishQToolBar::JKVanishQToolBar
JKVanishQToolBar(QWidget *parent=nullptr)
class constructor
JKVanishQToolBar::leaveEvent
void leaveEvent(QEvent *)
this event triggers the vanishing of the toolbar
JKQTPLOTTER_LIB_EXPORT
#define JKQTPLOTTER_LIB_EXPORT
Definition
jkqtplotter_imexport.h:89
lib
jkqtplotter
gui
jkvanishqtoolbar.h
Generated on Wed Oct 30 2024 21:02:31 for JKQTPlotter by
doxygen
1.9.8