feat(color): key shortcuts and quick menu favorites can be set to run stand alone Lua tools (#7083)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
philmoz
2026-02-20 13:53:36 +10:00
committed by GitHub
co-authored by elecpower
parent bcb154c0e2
commit 044c2a08d8
44 changed files with 1235 additions and 367 deletions
@@ -22,6 +22,7 @@
#pragma once
#include "generaledit.h"
#include "autocombobox.h"
class ExclusiveComboGroup;
class QGridLayout;
@@ -34,17 +35,28 @@ class GeneralKeysPanel : public GeneralPanel
GeneralKeysPanel(QWidget * parent, GeneralSettings & generalSettings, Firmware * firmware);
virtual ~GeneralKeysPanel();
private slots:
void on_shortcutChanged();
void on_shortcutToolChanged();
private:
Board::Type board;
QGridLayout *grid;
QList<QWidget *> *params;
int row;
int col;
bool lock;
ExclusiveComboGroup *cboQMGrp;
QList<AutoComboBox *> *cboShortcuts;
QList<AutoComboBox *> *cboShortcutTools;
QList<QString *> *strKeyShortcutTools;
void addLabel(QString text);
void addLine();
void addParams();
void addSection(QString text);
void initComboQMGroup();
void setToolName(int index);
void update();
void updateRow(const int index);
};