mirror of
https://github.com/YACReader/yacreader
synced 2026-02-23 15:33:01 -05:00
added shortcuts management support
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...)
This commit is contained in:
32
shortcuts_management/shortcuts_dialog.h
Normal file
32
shortcuts_management/shortcuts_dialog.h
Normal file
@ -0,0 +1,32 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user