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
btopenworkaction.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 "
btmenuview.h
"
16
17
#include <memory>
18
#include <QAction>
19
#include <QObject>
20
#include <QString>
21
#include "../backend/bookshelfmodel/btbookshelftreemodel.h"
22
#include "../backend/config/btconfigcore.h"
23
24
25
class
BtBookshelfGroupingMenu
;
26
class
BtBookshelfFilterModel
;
27
class
CSwordModuleInfo
;
28
class
QAbstractItemModel
;
29
class
QActionGroup;
30
class
QWidget
;
31
32
class
BtOpenWorkActionMenu
:
public
BtMenuView
{
33
Q_OBJECT
34
public
:
35
BtOpenWorkActionMenu
(
BtConfigCore
groupingConfigGroup,
36
QString groupingConfigKey,
37
QWidget
* parent =
nullptr
);
38
39
void
setSourceModel
(std::shared_ptr<QAbstractItemModel>
model
);
40
41
std::shared_ptr<QAbstractItemModel>
sourceModel
()
const
42
{
return
m_treeModel
->
sourceModel
(); }
41
std::shared_ptr<QAbstractItemModel>
sourceModel
()
const
{
…
}
43
44
BtBookshelfTreeModel
*
treeModel
()
const
{
return
m_treeModel
; }
45
46
BtBookshelfFilterModel
*
postFilterModel
()
const
47
{
return
m_postFilterModel
; }
46
BtBookshelfFilterModel
*
postFilterModel
()
const
{
…
}
48
49
Q_SIGNALS:
50
void
triggered
(
CSwordModuleInfo
*module);
51
52
private
:
53
void
retranslateUi
();
54
55
void
postBuildMenu
(QActionGroup * actions)
override
;
56
57
private
:
58
// Models:
59
BtBookshelfTreeModel
*
m_treeModel
;
60
BtBookshelfFilterModel
*
m_postFilterModel
;
61
62
// Grouping menu:
63
BtBookshelfGroupingMenu
*
m_groupingMenu
;
64
BtConfigCore
m_groupingConfigGroup
;
65
QString
const
m_groupingConfigKey
;
66
};
32
class
BtOpenWorkActionMenu
:
public
BtMenuView
{
…
};
67
68
class
BtOpenWorkAction
:
public
QAction
{
69
Q_OBJECT
70
public
:
71
explicit
BtOpenWorkAction
(
BtConfigCore
groupingConfigGroup,
72
QString groupingConfigKey,
73
QObject
* parent =
nullptr
);
74
~BtOpenWorkAction
()
override
;
75
76
Q_SIGNALS:
77
void
triggered
(
CSwordModuleInfo
*module);
78
79
protected
:
80
void
retranslateUi
();
81
82
private
:
83
BtOpenWorkActionMenu
*
m_menu
;
84
};
68
class
BtOpenWorkAction
:
public
QAction
{
…
};
btmenuview.h
BtBookshelfFilterModel
Definition
btbookshelffiltermodel.h:25
BtBookshelfGroupingMenu
Definition
btbookshelfgroupingmenu.h:26
BtBookshelfTreeModel
Definition
btbookshelftreemodel.h:37
BtBookshelfTreeModel::sourceModel
std::shared_ptr< QAbstractItemModel > sourceModel() const noexcept
Definition
btbookshelftreemodel.h:140
BtConfigCore
Definition
btconfigcore.h:29
BtMenuView
Definition
btmenuview.h:47
BtMenuView::model
QAbstractItemModel * model() const
Definition
btmenuview.h:66
BtOpenWorkActionMenu
Definition
btopenworkaction.h:32
BtOpenWorkActionMenu::m_groupingConfigKey
QString const m_groupingConfigKey
Definition
btopenworkaction.h:65
BtOpenWorkActionMenu::setSourceModel
void setSourceModel(std::shared_ptr< QAbstractItemModel > model)
Definition
btopenworkaction.cpp:58
BtOpenWorkActionMenu::sourceModel
std::shared_ptr< QAbstractItemModel > sourceModel() const
Definition
btopenworkaction.h:41
BtOpenWorkActionMenu::triggered
void triggered(CSwordModuleInfo *module)
BtOpenWorkActionMenu::m_groupingMenu
BtBookshelfGroupingMenu * m_groupingMenu
Definition
btopenworkaction.h:63
BtOpenWorkActionMenu::postFilterModel
BtBookshelfFilterModel * postFilterModel() const
Definition
btopenworkaction.h:46
BtOpenWorkActionMenu::m_groupingConfigGroup
BtConfigCore m_groupingConfigGroup
Definition
btopenworkaction.h:64
BtOpenWorkActionMenu::m_postFilterModel
BtBookshelfFilterModel * m_postFilterModel
Definition
btopenworkaction.h:60
BtOpenWorkActionMenu::postBuildMenu
void postBuildMenu(QActionGroup *actions) override
Definition
btopenworkaction.cpp:70
BtOpenWorkActionMenu::retranslateUi
void retranslateUi()
Definition
btopenworkaction.cpp:62
BtOpenWorkActionMenu::m_treeModel
BtBookshelfTreeModel * m_treeModel
Definition
btopenworkaction.h:59
BtOpenWorkActionMenu::treeModel
BtBookshelfTreeModel * treeModel() const
Definition
btopenworkaction.h:44
BtOpenWorkAction
Definition
btopenworkaction.h:68
BtOpenWorkAction::triggered
void triggered(CSwordModuleInfo *module)
BtOpenWorkAction::retranslateUi
void retranslateUi()
Definition
btopenworkaction.cpp:121
BtOpenWorkAction::m_menu
BtOpenWorkActionMenu * m_menu
Definition
btopenworkaction.h:83
BtOpenWorkAction::~BtOpenWorkAction
~BtOpenWorkAction() override
Definition
btopenworkaction.cpp:117
CSwordModuleInfo
Definition
cswordmoduleinfo.h:49
QAbstractItemModel
QAction
QObject
QWidget
Generated by
1.9.8