BibleTime
src
frontend
btcopybyreferencesdialog.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-2021 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 <optional>
16
#include <QDialog>
17
#include "
display/modelview/btqmlinterface.h
"
18
19
20
class
BtModuleTextModel
;
21
class
CDisplayWindow
;
22
class
CKeyChooser
;
23
class
CSwordKey
;
24
class
CSwordModuleInfo
;
25
class
QComboBox
;
26
class
QDialogButtonBox;
27
class
QLabel;
28
29
class
BtCopyByReferencesDialog
:
public
QDialog
{
30
31
Q_OBJECT
32
33
public
:
// types:
34
35
struct
Result
{
36
CSwordModuleInfo
const
*
module
;
37
CSwordKey
const
*
key1
;
38
CSwordKey
const
*
key2
;
39
int
index1
;
40
int
index2
;
41
};
42
43
public
:
// methods:
44
45
BtCopyByReferencesDialog
(
46
BtModuleTextModel
const
* model,
47
std::optional<BtQmlInterface::Selection>
const
& selection,
48
CDisplayWindow
* parent);
49
50
Result
const
&
result
() const noexcept {
return
m_result
; }
51
52
private
:
// Methods:
53
54
void
retranslateUi
();
55
void
resetThreshold
();
56
57
private
:
// fields:
58
59
QLabel *
const
m_workLabel
;
60
QComboBox
*
const
m_workCombo
;
61
QLabel *
const
m_firstKeyLabel
;
62
CKeyChooser
*
m_firstKeyChooser
;
63
QLabel *
const
m_lastKeyLabel
;
64
CKeyChooser
*
m_lastKeyChooser
;
65
QLabel *
const
m_sizeTooLargeLabel
;
66
QDialogButtonBox *
const
m_buttonBox
;
67
68
Result
m_result
;
69
70
};
/* class BtCopyByReferencesDialog */
btqmlinterface.h
BtCopyByReferencesDialog
Definition:
btcopybyreferencesdialog.h:29
BtCopyByReferencesDialog::result
Result const & result() const noexcept
Definition:
btcopybyreferencesdialog.h:50
BtCopyByReferencesDialog::m_firstKeyChooser
CKeyChooser * m_firstKeyChooser
Definition:
btcopybyreferencesdialog.h:62
BtCopyByReferencesDialog::m_lastKeyLabel
QLabel *const m_lastKeyLabel
Definition:
btcopybyreferencesdialog.h:63
BtCopyByReferencesDialog::BtCopyByReferencesDialog
BtCopyByReferencesDialog(BtModuleTextModel const *model, std::optional< BtQmlInterface::Selection > const &selection, CDisplayWindow *parent)
Definition:
btcopybyreferencesdialog.cpp:34
BtCopyByReferencesDialog::m_workLabel
QLabel *const m_workLabel
Definition:
btcopybyreferencesdialog.h:59
BtCopyByReferencesDialog::m_workCombo
QComboBox *const m_workCombo
Definition:
btcopybyreferencesdialog.h:60
BtCopyByReferencesDialog::m_lastKeyChooser
CKeyChooser * m_lastKeyChooser
Definition:
btcopybyreferencesdialog.h:64
BtCopyByReferencesDialog::resetThreshold
void resetThreshold()
Definition:
btcopybyreferencesdialog.cpp:138
BtCopyByReferencesDialog::m_result
Result m_result
Definition:
btcopybyreferencesdialog.h:68
BtCopyByReferencesDialog::m_firstKeyLabel
QLabel *const m_firstKeyLabel
Definition:
btcopybyreferencesdialog.h:61
BtCopyByReferencesDialog::m_sizeTooLargeLabel
QLabel *const m_sizeTooLargeLabel
Definition:
btcopybyreferencesdialog.h:65
BtCopyByReferencesDialog::retranslateUi
void retranslateUi()
Definition:
btcopybyreferencesdialog.cpp:130
BtCopyByReferencesDialog::m_buttonBox
QDialogButtonBox *const m_buttonBox
Definition:
btcopybyreferencesdialog.h:66
BtModuleTextModel
Model that represents the entire text of a given module.
Definition:
btmoduletextmodel.h:101
CDisplayWindow
The base class for all display windows of BibleTime.
Definition:
cdisplaywindow.h:44
CKeyChooser
Definition:
ckeychooser.h:29
CSwordKey
Definition:
cswordkey.h:22
CSwordModuleInfo
Definition:
cswordmoduleinfo.h:49
QComboBox
QDialog
BtCopyByReferencesDialog::Result
Definition:
btcopybyreferencesdialog.h:35
BtCopyByReferencesDialog::Result::index2
int index2
Definition:
btcopybyreferencesdialog.h:40
BtCopyByReferencesDialog::Result::module
CSwordModuleInfo const * module
Definition:
btcopybyreferencesdialog.h:36
BtCopyByReferencesDialog::Result::index1
int index1
Definition:
btcopybyreferencesdialog.h:39
BtCopyByReferencesDialog::Result::key1
CSwordKey const * key1
Definition:
btcopybyreferencesdialog.h:37
BtCopyByReferencesDialog::Result::key2
CSwordKey const * key2
Definition:
btcopybyreferencesdialog.h:38
Generated by
1.9.1