mirror of
https://github.com/YACReader/yacreader
synced 2026-02-16 03:53:00 -05:00
TODO: integrate it in YACReader TODO: add icons for groups TODO: add conflicts detection TODO: fix any shortcut used in keyPressEvent TODO: choose new default shortcuts (F5 update, F11 fullscreen, etc...)
33 lines
751 B
C++
33 lines
751 B
C++
#ifndef SHORTCUTS_DIALOG_H
|
|
#define SHORTCUTS_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
|
|
class QListView;
|
|
class QTableView;
|
|
|
|
class ActionsGroupsModel;
|
|
class ActionsShortcutsModel;
|
|
|
|
class ShortcutsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ShortcutsDialog(QWidget * parent = 0);
|
|
void addActionsGroup(const QString & name, const QIcon & ico, QList<QAction *> & group);
|
|
signals:
|
|
|
|
public slots:
|
|
void resetToDefaults();
|
|
void loadShortcuts(const QModelIndex & mi,const QModelIndex &mi2);
|
|
|
|
protected:
|
|
QListView * actionsGroupsListView;
|
|
QTableView * actionsTableView;
|
|
ActionsGroupsModel * groupsModel;
|
|
ActionsShortcutsModel * actionsModel;
|
|
};
|
|
|
|
#endif // SHORTCUTS_DIALOG_H
|