10
10
#ifndef CACCELERATORSETTINGS_H
11
11
#define CACCELERATORSETTINGS_H
13
#include "btshortcutseditor.h"
13
#include "frontend/bookshelfmanager/btconfigdialog.h"
15
14
#include "util/cpointers.h"
16
//#include "backend/config/cbtconfig.h"
17
#include "frontend/bookshelfmanager/btconfigdialog.h"
18
#include "frontend/settingsdialogs/btshortcutseditor.h"
21
class BtActionCollection;
22
class BtShortcutsEditor;
23
24
class QStackedWidget;
24
class BtActionCollection;
25
class BtShortcutsEditor;
28
@author The BibleTime team <info@bibletime.info>
27
@author The BibleTime team <info@bibletime.info>
30
class CAcceleratorSettingsPage : public BtConfigPage, CPointers
35
CAcceleratorSettingsPage(QWidget *parent);
36
~CAcceleratorSettingsPage();
44
void slotKeyChooserTypeChanged(const QString& title);
46
// complete the keyChangeRequest
47
void completeKeyChangeRequest(BtShortcutsEditor* shortcutsEditor, const QString& keys);
51
QPointer<BtShortcutsEditor> keyChooser;
52
BtActionCollection* actionCollection;
59
WindowType(const QString& newTitle) {
66
void clearConflictsWithKeys(const QString& keys, const QList<BtShortcutsEditor*> list);
67
QString findConflictsWithKeys(const QString& keys, const QList<BtShortcutsEditor*> list);
68
QList<BtShortcutsEditor*> getShortcutsEditorListForGroup(BtShortcutsEditor* currentEditor);
69
QString getTitleForEditor(BtShortcutsEditor* editor);
71
WindowType m_application;
74
WindowType m_commentary;
78
QComboBox* m_typeChooser;
79
QStackedWidget* m_keyChooserStack;
29
class CAcceleratorSettingsPage : public BtConfigPage, CPointers {
32
CAcceleratorSettingsPage(QWidget *parent);
33
~CAcceleratorSettingsPage();
41
void slotKeyChooserTypeChanged(const QString& title);
43
// complete the keyChangeRequest
44
void completeKeyChangeRequest(BtShortcutsEditor* shortcutsEditor, const QString& keys);
48
QPointer<BtShortcutsEditor> keyChooser;
49
BtActionCollection* actionCollection;
56
WindowType(const QString& newTitle) {
63
void clearConflictsWithKeys(const QString& keys, const QList<BtShortcutsEditor*> list);
64
QString findConflictsWithKeys(const QString& keys, const QList<BtShortcutsEditor*> list);
65
QList<BtShortcutsEditor*> getShortcutsEditorListForGroup(BtShortcutsEditor* currentEditor);
66
QString getTitleForEditor(BtShortcutsEditor* editor);
68
WindowType m_application;
71
WindowType m_commentary;
75
QComboBox* m_typeChooser;
76
QStackedWidget* m_keyChooserStack;