summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/configuredlg.h
Unidiff
Diffstat (limited to 'noncore/apps/dagger/configuredlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/configuredlg.h75
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/*
2Dagger - A Bible study program utilizing the Sword library.
3Copyright (c) 2004 Dan Williams <drw@handhelds.org>
4
5This file is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; either version 2 of the License, or (at your option) any later version.
8
9This file is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with this
14file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
1559 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
30class QLabel;
31
32class ConfigureDlg : public QDialog
33{
34 Q_OBJECT
35
36public:
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
54private:
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
71private slots:
72 void slotCopyFormatSelected();
73};
74
75#endif