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 BTDISPLAYSETTINGSBUTTON_H
11
#define BTDISPLAYSETTINGSBUTTON_H
13
#include <QToolButton>
15
#include "backend/managers/cswordbackend.h"
18
class CSwordModuleInfo;
21
/** This class manages the display options of the selected modules.
22
* @author The BibleTime team
24
class BtDisplaySettingsButton: public QToolButton {
28
BtDisplaySettingsButton(QWidget *parent = 0);
30
void setDisplayOptions(const CSwordBackend::DisplayOptions &displaySettings,
31
bool repopulate = true);
32
void setFilterOptions(const CSwordBackend::FilterOptions &moduleSettings,
33
bool repopulate = true);
34
void setModules(const QList<CSwordModuleInfo*> &modules);
37
void sigFilterOptionsChanged(CSwordBackend::FilterOptions filterOptions);
38
void sigDisplayOptionsChanged(CSwordBackend::DisplayOptions displayOptions);
39
void sigChanged(void);
42
void slotOptionToggled(QAction *action);
47
void retranslateToolTip();
48
void repopulateMenu();
50
bool isOptionAvailable(const CSwordModuleInfo::FilterTypes option);
51
void addMenuEntry(QAction *action, bool checked);
54
CSwordBackend::FilterOptions m_filterOptions;
55
CSwordBackend::DisplayOptions m_displayOptions;
56
QList<CSwordModuleInfo*> m_modules;
59
QAction *m_lineBreakAction;
60
QAction *m_verseNumbersAction;
61
QAction *m_headingsAction;
62
QAction *m_redWordsAction;
63
QAction *m_hebrewPointsAction;
64
QAction *m_hebrewCantillationAction;
65
QAction *m_greekAccentsAction;
66
QAction *m_variantAction;
67
QAction *m_scriptureReferencesAction;
68
QAction *m_morphSegmentationAction;