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-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>
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 
30 
31  Q_OBJECT
32 
33 public: // types:
34 
35  struct Result {
37  CSwordKey const * key1;
38  CSwordKey const * key2;
39  int index1;
40  int index2;
41  };
42 
43 public: // 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 
52 private: // Methods:
53 
54  void retranslateUi();
55  void resetThreshold();
56 
57 private: // 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
BtCopyByReferencesDialog(BtModuleTextModel const *model, std::optional< BtQmlInterface::Selection > const &selection, CDisplayWindow *parent)
QDialogButtonBox *const m_buttonBox
Model that represents the entire text of a given module.
The base class for all display windows of BibleTime.