BibleTime
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
v
Variables
a
b
c
d
g
h
i
k
l
m
p
r
s
u
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
w
Properties
Related Symbols
Files
File List
File Members
All
a
b
c
e
f
h
i
j
k
l
m
o
p
r
s
t
u
w
Functions
b
c
f
i
j
l
m
o
p
r
t
Variables
Typedefs
Enumerations
Enumerator
Macros
a
b
c
i
l
m
r
s
t
u
w
src
frontend
keychooser
cscrollerwidgetset.h
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 1999-2025 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#pragma once
14
15
#include <QWidget>
16
17
#include <QObject>
18
#include <QString>
19
20
21
class
CScrollButton
;
22
class
QToolButton
;
23
class
QVBoxLayout;
24
class
QWheelEvent;
25
26
/**
27
* This class implements the Scroller Widget-set, which
28
* consists of two normal ref @QToolButton and a enhanced @ref CScrollButton
29
*/
30
class
CScrollerWidgetSet
:
public
QWidget
{
31
32
Q_OBJECT
33
34
public
:
// methods:
35
36
CScrollerWidgetSet
(
QWidget
* parent =
nullptr
);
37
38
/**
39
* Sets the tooltips for the given entries using the parameters as text.
40
*/
41
void
setToolTips
(
const
QString & nextEntry,
42
const
QString & scrollButton,
43
const
QString & previousEntry);
44
45
Q_SIGNALS:
46
47
/**
48
* Is emitted to proceed to some other entry relative to the
49
* current, indicated by the int value.
50
* \param count offset to change to
51
*/
52
void
change
(
int
count);
53
54
void
scroller_pressed
();
55
56
void
scroller_released
();
57
58
protected
:
// methods:
59
60
void
wheelEvent
(QWheelEvent * e)
override
;
61
62
private
:
// fields:
63
64
QVBoxLayout *
m_layout
;
65
QToolButton
*
m_buttonUp
;
66
QToolButton
*
m_buttonDown
;
67
CScrollButton
*
m_scrollButton
;
68
69
};
30
class
CScrollerWidgetSet
:
public
QWidget
{
…
};
CScrollButton
Definition
cscrollbutton.h:28
CScrollerWidgetSet
Definition
cscrollerwidgetset.h:30
CScrollerWidgetSet::m_scrollButton
CScrollButton * m_scrollButton
Definition
cscrollerwidgetset.h:67
CScrollerWidgetSet::m_buttonDown
QToolButton * m_buttonDown
Definition
cscrollerwidgetset.h:66
CScrollerWidgetSet::setToolTips
void setToolTips(const QString &nextEntry, const QString &scrollButton, const QString &previousEntry)
Definition
cscrollerwidgetset.cpp:72
CScrollerWidgetSet::scroller_released
void scroller_released()
CScrollerWidgetSet::change
void change(int count)
CScrollerWidgetSet::scroller_pressed
void scroller_pressed()
CScrollerWidgetSet::m_layout
QVBoxLayout * m_layout
Definition
cscrollerwidgetset.h:64
CScrollerWidgetSet::wheelEvent
void wheelEvent(QWheelEvent *e) override
Definition
cscrollerwidgetset.cpp:82
CScrollerWidgetSet::m_buttonUp
QToolButton * m_buttonUp
Definition
cscrollerwidgetset.h:65
QToolButton
QWidget
Generated by
1.9.8