1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/***************************************************************************
* Copyright (C) 2004-2012 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.4.9. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef C2BSHORTCUTWIDGET_H
#define C2BSHORTCUTWIDGET_H
#include "ui_c2bShortcutWidget.h"
#include <QHash>
#include <QWidget>
class c2bSettings;
class c2bShortcutWidget : public QWidget
{
Q_OBJECT
public:
c2bShortcutWidget(QWidget* parentw = 0);
inline ~c2bShortcutWidget() {}
void setShortcutNames(const QString& path, const QStringList& fullnames);
inline const QHash<QString, QKeySequence>& modifiedKeysequences() const
{
return _modified_keysequences;
}
signals:
void statusMessage(const QString& ms);
private slots:
void currentIndexChanged(const QString& name);
void shortcutChanged(const QKeySequence& oldks, const QKeySequence& newks);
private:
QHash<QString, QKeySequence> _modified_keysequences;
QList<QKeySequence> _standard_keysequences;
QString _shortcut_path;
QStringList _fullnames;
Ui::c2bShortcutWidget ui;
c2bSettings* _settingsP;
};
#endif
|