3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
5
* Copyright 1999-2008 by the BibleTime developers.
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
10
#ifndef CMODULECHOOSERBAR_H
11
#define CMODULECHOOSERBAR_H
16
#include "backend/drivers/cswordmoduleinfo.h"
17
#include "util/cpointers.h"
20
class CModuleChooserButton;
24
* @author The BibleTime team
26
class CModuleChooserBar : public QToolBar {
32
CModuleChooserBar(QList<CSwordModuleInfo*> useModules, CSwordModuleInfo::ModuleType type, QWidget *parent = 0);
34
* Returns a list of selected modules.
36
QList<CSwordModuleInfo*> getModuleList();
38
* Sets the number of the maximum count of buttons.
40
void setButtonLimit( const int limit);
42
* Sets the modules which are chosen in this module chooser bar.
44
void setModules( QList<CSwordModuleInfo*> modules );
51
* Adds a button to the toolbar
53
CModuleChooserButton* addButton( CSwordModuleInfo* const module );
55
protected slots: // Protected slots
57
* This slot calls the addButton function above to add a button.
61
* Removes a button from the toolbar
63
void removeButton( const int ID );
65
void updateMenuItems();
68
CSwordModuleInfo::ModuleType m_moduleType;
71
QList<CModuleChooserButton*> m_buttonList;