3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2006 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
12
#ifndef CRANGECHOOSER_H
13
#define CRANGECHOOSER_H
16
#include "backend/cswordmoduleinfo.h"
17
#include "backend/cswordbackend.h"
19
#include "util/cpointers.h"
33
#include <kdialogbase.h>
34
#include <klistview.h>
36
//forward declarations
37
class CSearchAnalysisItem;
38
class CSearchAnalysisLegendItem;
39
class CSearchAnalysis;
40
class CSearchAnalysisView;
47
class CRangeChooserDialog : public KDialogBase {
50
CRangeChooserDialog(QWidget* parentDialog);
51
~CRangeChooserDialog();
53
protected: // Protected methods
54
class RangeItem : public KListViewItem {
56
RangeItem(QListView*, QListViewItem* afterThis = 0, const QString caption = QString::null, const QString range = QString::null);
58
const QString& range();
59
const QString caption();
60
void setRange(QString range);
61
void setCaption(const QString);
67
* Initializes the connections of this widget.
69
void initConnections();
71
* Initializes the view of this object.
75
protected slots: // Protected slots
77
* Adds a new range to the list.
80
void editRange(QListViewItem*);
82
* Parses the entered text and prints out the result in the list box below the edit area.
85
void nameChanged(const QString&);
88
* Deletes the selected range.
90
void deleteCurrentRange();
91
virtual void slotDefault();
92
virtual void slotOk();
95
KListView* m_rangeList;
96
KListView* m_resultList;
97
QLineEdit* m_nameEdit;
98
QTextEdit* m_rangeEdit;
99
QPushButton* m_newRangeButton;
100
QPushButton* m_deleteRangeButton;
103
} //end of namespace Search.Options
104
} //end of namespace Search