author | drw <drw> | 2004-04-06 16:00:07 (UTC) |
---|---|---|
committer | drw <drw> | 2004-04-06 16:00:07 (UTC) |
commit | 76406c20db58f6007539db80e0f7b27e7cc3e83f (patch) (unidiff) | |
tree | 0f19911a7ec644bb40e0e4650b312ddccffb5ad3 /noncore/apps/dagger/configuredlg.h | |
parent | 31a82304d62ab4943c0926c35cce552e2164eaf4 (diff) | |
download | opie-76406c20db58f6007539db80e0f7b27e7cc3e83f.zip opie-76406c20db58f6007539db80e0f7b27e7cc3e83f.tar.gz opie-76406c20db58f6007539db80e0f7b27e7cc3e83f.tar.bz2 |
New Bible reader app
Diffstat (limited to 'noncore/apps/dagger/configuredlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/dagger/configuredlg.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/noncore/apps/dagger/configuredlg.h b/noncore/apps/dagger/configuredlg.h new file mode 100644 index 0000000..a91da12 --- a/dev/null +++ b/noncore/apps/dagger/configuredlg.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* | ||
2 | Dagger - A Bible study program utilizing the Sword library. | ||
3 | Copyright (c) 2004 Dan Williams <drw@handhelds.org> | ||
4 | |||
5 | This file is free software; you can redistribute it and/or modify it under | ||
6 | the terms of the GNU General Public License as published by the Free Software | ||
7 | Foundation; either version 2 of the License, or (at your option) any later version. | ||
8 | |||
9 | This file is distributed in the hope that it will be useful, but WITHOUT ANY | ||
10 | WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
12 | |||
13 | You should have received a copy of the GNU General Public License along with this | ||
14 | file; see the file COPYING. If not, write to the Free Software Foundation, Inc., | ||
15 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIGUREDLG_H | ||
19 | #define CONFIGUREDLG_H | ||
20 | |||
21 | #include <opie2/ofontselector.h> | ||
22 | #include <opie2/otabwidget.h> | ||
23 | |||
24 | #include <qcheckbox.h> | ||
25 | #include <qdialog.h> | ||
26 | #include <qlineedit.h> | ||
27 | #include <qradiobutton.h> | ||
28 | #include <qspinbox.h> | ||
29 | |||
30 | class QLabel; | ||
31 | |||
32 | class ConfigureDlg : public QDialog | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | |||
36 | public: | ||
37 | ConfigureDlg( QWidget *parent = 0x0, const QString &swordPath = 0x0, bool alwaysOpenNew = true, | ||
38 | int numVerses = 5, bool disableBlanking = false, int copyFormat = 0, const QFont *font = 0x0 ); | ||
39 | |||
40 | QString swordPath() { return m_swordPath->text(); } | ||
41 | bool alwaysOpenNew() { return m_alwaysOpenNew->isChecked(); } | ||
42 | int numVerses() { return m_numVerses->value(); } | ||
43 | bool screenBlank() { return m_disableScreenBlank->isChecked(); } | ||
44 | int copyFormat() { if ( m_copyFull->isChecked() ) | ||
45 | return 1; | ||
46 | else if ( m_copyVerse->isChecked() ) | ||
47 | return 2; | ||
48 | else if ( m_copyKey->isChecked() ) | ||
49 | return 3; | ||
50 | else | ||
51 | return 0; } | ||
52 | QFont selectedFont() { return m_font->selectedFont(); } | ||
53 | |||
54 | private: | ||
55 | Opie::Ui::OTabWidget m_tabs; // Main widget | ||
56 | Opie::Ui::OFontSelector *m_font; // Font selection widget | ||
57 | |||
58 | // General tab's UI controls | ||
59 | QLineEdit *m_swordPath; // Contains path to Sword modules | ||
60 | QCheckBox *m_alwaysOpenNew; // Indicates whether to always open modules in a new tab | ||
61 | QSpinBox *m_numVerses; // Contains number of verses to display for Bible modules | ||
62 | QCheckBox *m_disableScreenBlank; // Indicates whether to disable automatic screen blanking | ||
63 | |||
64 | // Copy tab's UI controls | ||
65 | QRadioButton *m_copyTextFull; // Verse (Text, Book cc:vv) | ||
66 | QRadioButton *m_copyFull; // Verse (Book cc:vv) | ||
67 | QRadioButton *m_copyVerse; // Verse | ||
68 | QRadioButton *m_copyKey; // Book cc:vv | ||
69 | QLabel *m_copyExample; // Text of copy format example | ||
70 | |||
71 | private slots: | ||
72 | void slotCopyFormatSelected(); | ||
73 | }; | ||
74 | |||
75 | #endif | ||