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 CMODULECHOOSERBAR_H
13
#define CMODULECHOOSERBAR_H
16
#include "cmodulechooserbutton.h"
18
#include "backend/cswordmoduleinfo.h"
20
#include "util/cpointers.h"
30
* @author The BibleTime team
32
class CModuleChooserBar : public KToolBar {
38
CModuleChooserBar(ListCSwordModuleInfo useModules, CSwordModuleInfo::ModuleType type, QWidget *parent=0, const char *name=0);
40
* Returns a list of selected modules.
42
ListCSwordModuleInfo getModuleList();
44
* Sets the number of the maximum count of buttons.
46
void setButtonLimit( const int limit);
48
* Sets the modules which are chosen in this module chooser bar.
50
void setModules( ListCSwordModuleInfo modules );
54
* Adds a button to the toolbar
56
CModuleChooserButton* const addButton( CSwordModuleInfo* const module );
58
protected slots: // Protected slots
60
* This slot calls the addButton function above to add a button.
64
* Removes a button from the toolbar
66
void removeButton( const int ID );
67
void updateMenuItems();
70
CSwordModuleInfo::ModuleType m_moduleType;
73
QPtrList<CModuleChooserButton> m_buttonList;