00001 /* 00002 Dagger - A Bible study program utilizing the Sword library. 00003 Copyright (c) 2004 Dan Williams <drw@handhelds.org> 00004 00005 This file is free software; you can redistribute it and/or modify it under 00006 the terms of the GNU General Public License as published by the Free Software 00007 Foundation; either version 2 of the License, or (at your option) any later version. 00008 00009 This file is distributed in the hope that it will be useful, but WITHOUT ANY 00010 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 00011 PARTICULAR PURPOSE. See the GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License along with this 00014 file; see the file COPYING. If not, write to the Free Software Foundation, Inc., 00015 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00016 */ 00017 00018 #ifndef OPENTEXTDLG_H 00019 #define OPENTEXTDLG_H 00020 00021 #include <qdialog.h> 00022 #include <qlistview.h> 00023 00024 #include <swmgr.h> 00025 00026 class QPixmap; 00027 00028 class OpenTextDlg : public QDialog 00029 { 00030 Q_OBJECT 00031 00032 public: 00033 OpenTextDlg( QWidget *parent = 0x0, sword::SWMgr *swordMgr = 0x0, QPixmap *bibleIcon = 0x0, 00034 QPixmap *commentaryIcon = 0x0, QPixmap *lexiconIcon = 0x0 ); 00035 00036 QString selectedText() { return m_textList.currentItem()->text( 1 ); }; 00037 00038 private: 00039 QListView m_textList; // List of available texts/modules 00040 00041 QListViewItem *m_bibles; // Pointer to bible section header 00042 QListViewItem *m_lexicons; // Pointer to lexicon/dictionary section header 00043 QListViewItem *m_commentaries; // Pointer to commentary section header 00044 00045 private slots: 00046 void slotItemClicked( QListViewItem *item ); 00047 }; 00048 00049 #endif
1.4.2