Companion hardware internal module continued (#1342)

* Add ability to undo hardware internal module change

* Add internal module protocol check on model edit

* Event driven check and update of all models

* Fix model edit dialog searches

* Add OFF to list of internal modules

* Fix internal module protocol list issue #1382
This commit is contained in:
Neil Horne
2022-01-10 11:13:21 +10:00
committed by GitHub
parent b41cb2a75a
commit fcf8fbdfff
13 changed files with 145 additions and 14 deletions
+9
View File
@@ -25,6 +25,7 @@
class CompoundItemModelFactory;
class FilteredItemModelFactory;
class QGridLayout;
class AutoComboBox;
class HardwarePanel : public GeneralPanel
{
@@ -34,11 +35,19 @@ class HardwarePanel : public GeneralPanel
HardwarePanel(QWidget * parent, GeneralSettings & generalSettings, Firmware * firmware, CompoundItemModelFactory * editorItemModels);
virtual ~HardwarePanel();
signals:
void internalModuleChanged();
private slots:
void on_internalModuleChanged();
private:
Board::Type board;
CompoundItemModelFactory *editorItemModels;
FilteredItemModelFactory *tabFilteredModels;
QGridLayout *grid;
AutoComboBox *internalModule;
unsigned int m_internalModule = 0;
void addStick(int index, int & row);
void addPot(int index, int & row);