mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef EDIT_SHORTCUTS_DIALOG_H
|
|
#define EDIT_SHORTCUTS_DIALOG_H
|
|
|
|
#include "themable.h"
|
|
|
|
#include <QDialog>
|
|
#include <QModelIndex>
|
|
|
|
class QListView;
|
|
class QTableView;
|
|
|
|
class ActionsGroupsModel;
|
|
class ActionsShortcutsModel;
|
|
|
|
class EditShortcutsDialog : public QDialog, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit EditShortcutsDialog(QWidget *parent = 0);
|
|
void addActionsGroup(const QString &name, const QIcon &ico, QList<QAction *> &group);
|
|
void setGroupIconMapping(const QMap<QString, std::function<QIcon(const Theme &)>> &mapping);
|
|
signals:
|
|
|
|
public slots:
|
|
void resetToDefaults();
|
|
void loadShortcuts(const QModelIndex &mi, const QModelIndex &mi2);
|
|
void processConflict(const QString &shortcutInConflict);
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
void updateGroupIcons(const Theme &theme);
|
|
|
|
QListView *actionsGroupsListView;
|
|
QTableView *actionsTableView;
|
|
ActionsGroupsModel *groupsModel;
|
|
|
|
QMap<QString, std::function<QIcon(const Theme &)>> groupIconMapping;
|
|
ActionsShortcutsModel *actionsModel;
|
|
};
|
|
|
|
#endif // EDIT_SHORTCUTS_DIALOG_H
|