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 CLEXICONKEYCHOOSER_H
13
#define CLEXICONKEYCHOOSER_H
16
#include "ckeychooser.h"
17
#include "backend/cswordldkey.h"
18
#include "backend/cswordmoduleinfo.h"
19
#include "backend/cswordlexiconmoduleinfo.h"
21
class CKeyChooserWidget;
25
* This class implements the KeyChooser for lexicons
27
* it inhertits @ref CKeyChooser
28
* it uses 1 @ref CKeyChooserWidget to represent the lexicon keys
30
* @author The BibleTime team
32
class CLexiconKeyChooser : public CKeyChooser {
38
* you should not need to use this, use @ref CKeyChooser::createInstance instead
40
CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key=0, QWidget *parent=0, const char *name=0);
44
* see @ref CKeyChooser::getKey
45
* @return Return the key object we use.
47
virtual CSwordKey* const key();
49
* see @ref CKeyChooser::setKey
51
virtual void setKey(CSwordKey* key);
53
* used to react to changes in the @ref CKeyChooserWidget
55
* @param index not used
57
virtual void activated(int index);
61
virtual void refreshContent();
63
* Sets the module and refreshes the combo boxes of this keychooser.
65
virtual void setModules( const ListCSwordModuleInfo& modules, const bool refresh = true );
68
CKeyChooserWidget *m_widget;
70
QPtrList<CSwordLexiconModuleInfo> m_modules;
71
QHBoxLayout *m_layout;
73
virtual void adjustFont();
75
public slots: // Public slots
76
virtual void updateKey(CSwordKey* key);