feat(cpn): read and write to/from radio profile SD path, menu reorganisation (#5753)

This commit is contained in:
Neil Horne
2025-01-24 11:49:34 +10:00
committed by GitHub
parent d69de504fb
commit 35e8b61b7d
57 changed files with 1403 additions and 732 deletions
+10 -9
View File
@@ -55,14 +55,9 @@ class MdiChild : public QWidget
ACT_GEN_PST,
ACT_GEN_SIM,
ACT_GEN_SRT, // model sort order
ACT_ITM_EDT,
ACT_ITM_DEL,
ACT_LBL_ADD,
ACT_LBL_DEL,
ACT_LBL_MVU, // Move up
ACT_LBL_MVD, // Move down
ACT_LBL_REN, // Move down
ACT_MDL_ADD, // model actions...
ACT_MDL_EDT, // model actions...
ACT_MDL_DEL,
ACT_MDL_ADD,
ACT_MDL_CPY,
ACT_MDL_CUT,
ACT_MDL_PST,
@@ -75,6 +70,11 @@ class MdiChild : public QWidget
ACT_MDL_DFT, // set as DeFaulT
ACT_MDL_PRT, // print
ACT_MDL_SIM,
ACT_LBL_ADD, // label actions..
ACT_LBL_DEL,
ACT_LBL_MVU, // Move up
ACT_LBL_MVD, // Move down
ACT_LBL_REN, // Move down
ACT_ENUM_END
};
@@ -97,7 +97,7 @@ class MdiChild : public QWidget
bool saveAs(bool isNew=false);
bool saveFile(const QString & fileName, bool setCurrent=true);
void closeFile(bool force = false);
void writeSettings(StatusDialog * status);
void writeSettings(StatusDialog * status, bool toRadio = true);
void print(int model=-1, const QString & filename="");
void onFirmwareChanged();
@@ -231,6 +231,7 @@ class MdiChild : public QWidget
AbstractStaticItemModel* modelSortOrderItemModel;
QComboBox* cboModelSortOrder;
void setModelModified(const int modelIndex, bool cascade = true);
QAction * actionsSeparator();
};
// This will draw the drop indicator across all columns of a model View (vs. in just one column), and lets us make the indicator more obvious.