41 lines
956 B
C++
41 lines
956 B
C++
#ifndef SHORTCUTSDIALOG_H
|
|
#define SHORTCUTSDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QHeaderView>
|
|
#include "Configuration.h"
|
|
|
|
namespace Ui
|
|
{
|
|
class ShortcutsDialog;
|
|
}
|
|
|
|
class ShortcutsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
Configuration::Shortcut currentShortcut;
|
|
int currentRow;
|
|
|
|
public:
|
|
explicit ShortcutsDialog(QWidget* parent = 0);
|
|
~ShortcutsDialog();
|
|
|
|
protected slots:
|
|
void syncTextfield();
|
|
void updateShortcut();
|
|
|
|
private slots:
|
|
void on_btnSave_clicked();
|
|
void on_btnClearShortcut_clicked();
|
|
void rejectedSlot();
|
|
void on_FilterTextChanged(const QString & actionName);
|
|
|
|
private:
|
|
Ui::ShortcutsDialog* ui;
|
|
QMap<QString, Configuration::Shortcut> ShortcutsBackup;
|
|
void filterShortcutsByName(const QString & nameFilter, QMap<QString, Configuration::Shortcut> & mapToFill);
|
|
void showShortcutsFiltered(const QString & actionName);
|
|
};
|
|
|
|
#endif // SHORTCUTSDIALOG_H
|