10
10
#ifndef CMODULECHOOSERBAR_H
11
11
#define CMODULECHOOSERBAR_H
14
16
#include "backend/drivers/cswordmoduleinfo.h"
16
17
#include "util/cpointers.h"
22
20
class CModuleChooserButton;
26
24
* @author The BibleTime team
28
26
class CModuleChooserBar : public QToolBar {
34
CModuleChooserBar(QList<CSwordModuleInfo*> useModules, CSwordModuleInfo::ModuleType type, QWidget *parent=0);
36
* Returns a list of selected modules.
38
QList<CSwordModuleInfo*> getModuleList();
40
* Sets the number of the maximum count of buttons.
42
void setButtonLimit( const int limit);
44
* Sets the modules which are chosen in this module chooser bar.
46
void setModules( QList<CSwordModuleInfo*> modules );
53
* Adds a button to the toolbar
55
CModuleChooserButton* addButton( CSwordModuleInfo* const module );
57
protected slots: // Protected slots
59
* This slot calls the addButton function above to add a button.
63
* Removes a button from the toolbar
65
void removeButton( const int ID );
67
void updateMenuItems();
70
CSwordModuleInfo::ModuleType m_moduleType;
73
QList<CModuleChooserButton*> m_buttonList;
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;