BibleTime
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-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 <optional>
16#include <QDialog>
18
19
21class CDisplayWindow;
22class CKeyChooser;
23class CSwordKey;
25class QComboBox;
26class QDialogButtonBox;
27class QLabel;
28
30
31 Q_OBJECT
32
33public: // 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
43public: // methods:
44
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
52private: // Methods:
53
54 void retranslateUi();
55 void resetThreshold();
56
57private: // fields:
58
59 QLabel * const m_workLabel;
61 QLabel * const m_firstKeyLabel;
63 QLabel * const m_lastKeyLabel;
65 QLabel * const m_sizeTooLargeLabel;
66 QDialogButtonBox * const m_buttonBox;
67
69
70}; /* class BtCopyByReferencesDialog */
Result const & result() const noexcept
QDialogButtonBox *const m_buttonBox
Model that represents the entire text of a given module.
The base class for all display windows of BibleTime.
CSwordModuleInfo const *CSwordKey const * key1