1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _KwBiblePlugin_h_
21 #define _KwBiblePlugin_h_
24 * @file KwBiblePlugin.h
25 * @brief Bibles plugin.
26 * @author James Hogan <james@albanarts.com>
43 class KwBiblePlugin
: public KwPlugin
50 * Constructors + destructor
53 /// Default constructor.
57 virtual ~KwBiblePlugin();
65 /// Fired when the connect to bible button is pressed.
68 /// Fired when the bible is changed.
69 void slotBibleChanged();
71 /// Fired when the bible book is changed.
72 void slotBookChanged();
74 /// Fired when the bible text needs to be retrieved.
75 void slotVerseRange();
77 /// Fired by the insert into playlist action.
78 void slotInsertIntoPlaylist();
80 /// Fired by the show now action.
86 * Loading and unloading virtual interface
93 virtual void _unload();
103 KwBibleManager
* manager
;
104 QComboBox
* comboBibles
;
112 /// Fill up the bibles list for a manager.
113 void fillBiblesList(BibleManager
* mgr
);
119 /// The list of bible managers.
120 QList
<BibleManager
> m_managers
;
126 /// Action for inserting the current passage into the playlist.
127 KAction
* m_insertIntoPlaylistAction
;
129 /// Action for showing the current passage on the screen.
130 KAction
* m_showNowAction
;
137 QDockWidget
* m_docker
;
139 /// Tabs for each bible manager.
140 QTabWidget
* m_managerTabs
;
142 /// Book of bible selector.
143 QComboBox
* m_comboBook
;
145 /// Chapter of bible book selector.
146 QComboBox
* m_comboChapter
;
149 QLineEdit
* m_editRange
;
151 /// Main bible text display.
152 QTextEdit
* m_textPassage
;
155 #endif // _KwBiblePlugin_h_