fix(cpn): inputs and mixes must have source (#5798)

This commit is contained in:
Neil Horne
2025-02-06 12:05:31 +10:00
committed by GitHub
parent 0325bd776b
commit ec3c5bf188
19 changed files with 481 additions and 21 deletions
+12 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _MDICHILD_H_
#define _MDICHILD_H_
#pragma once
#include "eeprominterface.h"
#include "modelslist.h"
@@ -33,6 +32,7 @@
#include <QWidget>
#include <QStyledItemDelegate>
#include <QListWidget>
#include <QStatusBar>
class QToolBar;
class StatusDialog;
@@ -70,6 +70,7 @@ class MdiChild : public QWidget
ACT_MDL_DFT, // set as DeFaulT
ACT_MDL_PRT, // print
ACT_MDL_SIM,
ACT_MDL_ERR,
ACT_LBL_ADD, // label actions..
ACT_LBL_DEL,
ACT_LBL_MVU, // Move up
@@ -89,6 +90,7 @@ class MdiChild : public QWidget
QList<QAction *> getModelActions();
QList<QAction *> getLabelsActions();
QAction * getAction(const Actions type);
bool invalidModels();
public slots:
void newFile(bool createDefaults = true);
@@ -130,6 +132,7 @@ class MdiChild : public QWidget
void onCurrentItemChanged(const QModelIndex &, const QModelIndex &);
void onDataChanged(const QModelIndex & index);
void onInternalModuleChanged();
void onModelEditClosed(int id);
void generalEdit();
void copyGeneralSettings();
@@ -153,6 +156,7 @@ class MdiChild : public QWidget
void labelsFault(QString msg);
void wizardEdit();
void modelDuplicate();
void modelShowErrors();
void openModelWizard(int row = -1);
void openModelEditWindow(int row = -1);
@@ -201,6 +205,7 @@ class MdiChild : public QWidget
bool convertStorage(Board::Type from, Board::Type to, bool newFile = false);
void showWarning(const QString & msg);
int askQuestion(const QString & msg, QMessageBox::StandardButtons buttons = (QMessageBox::Yes | QMessageBox::No), QMessageBox::StandardButton defaultButton = QMessageBox::No);
QDialog * getChildDialog(QRegularExpression & regexp);
QDialog * getModelEditDialog(int row);
QList<QDialog *> * getChildrenDialogsList(QRegularExpression & regexp);
@@ -219,6 +224,9 @@ class MdiChild : public QWidget
QToolBar * modelsToolbar;
QToolBar * labelsToolbar;
QLabel *lblLabels;
QStatusBar *statusBar;
QLabel *statusBarIcon;
QLabel *statusBarCount;
Firmware * firmware;
RadioData radioData;
@@ -232,6 +240,8 @@ class MdiChild : public QWidget
QComboBox* cboModelSortOrder;
void setModelModified(const int modelIndex, bool cascade = true);
QAction * actionsSeparator();
void setupStatusBar();
void updateStatusBar();
};
// 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.
@@ -262,5 +272,3 @@ class ItemViewProxyStyle: public QProxyStyle
}
}
};
#endif // _MDICHILD_H_