From 83748c890188df4a6dc0ba1ce69c6f5467c2f8be Mon Sep 17 00:00:00 2001 From: hagantsa Date: Tue, 2 Jul 2024 15:30:20 +0300 Subject: [PATCH] [CORRECTIVE] Fix draft bus interface mode combobox items to match IP-XACT revision in use. --- .../InterfaceEditor/interfaceeditor.cpp | 20 ++++++++++++++++--- version.h | 16 +++++++-------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/editors/common/InterfaceEditor/interfaceeditor.cpp b/editors/common/InterfaceEditor/interfaceeditor.cpp index d2f698133..dcaaa44da 100644 --- a/editors/common/InterfaceEditor/interfaceeditor.cpp +++ b/editors/common/InterfaceEditor/interfaceeditor.cpp @@ -124,6 +124,23 @@ void InterfaceEditor::setInterface(ConnectionEndpoint* interface, QSharedPointer // Fill the rest of the editors based on the interface type. if (interface_->isBus()) { + disconnect(&modeSelector_, SIGNAL(currentTextChanged(QString const&)), + this, SLOT(onInterfaceModeChanged(QString const&))); + modeSelector_.clear(); + + // set the possible modes to the mode editor + if (containingDesign->getRevision() == Document::Revision::Std22) + { + modeSelector_.addItems(General::INTERFACE_MODES_2022.values()); + } + else + { + modeSelector_.addItems(General::INTERFACE_MODES.values()); + } + + connect(&modeSelector_, SIGNAL(currentTextChanged(QString const&)), + this, SLOT(onInterfaceModeChanged(QString const&)), Qt::UniqueConnection); + setBusInterface(); } else if (interface_->isApi()) @@ -546,9 +563,6 @@ void InterfaceEditor::setupBusEditor() absType_.setTitle(tr("Abstraction type VLNV")); absType_.setFlat(true); - // set the possible modes to the mode editor - modeSelector_.addItems(General::INTERFACE_MODES.values()); - portMapsView_.setSortingEnabled(true); portMapsView_.setSelectionMode(QAbstractItemView::SingleSelection); portMapsView_.verticalHeader()->hide(); diff --git a/version.h b/version.h index d56e10e0a..9ca8faf2a 100644 --- a/version.h +++ b/version.h @@ -10,20 +10,20 @@ #ifndef VERSIONNO__H #define VERSIONNO__H -#define VERSION_FULL 3.13.435.0 +#define VERSION_FULL 3.13.443.0 #define VERSION_BASEYEAR 0 -#define VERSION_DATE "2024-07-01" -#define VERSION_TIME "13:29:28" +#define VERSION_DATE "2024-07-02" +#define VERSION_TIME "15:16:26" #define VERSION_MAJOR 3 #define VERSION_MINOR 13 -#define VERSION_BUILDNO 435 +#define VERSION_BUILDNO 443 #define VERSION_EXTEND 0 -#define VERSION_FILE 3,13,435,0 -#define VERSION_PRODUCT 3,13,435,0 -#define VERSION_FILESTR "3,13,435,0" -#define VERSION_PRODUCTSTR "3,13,435,0" +#define VERSION_FILE 3,13,443,0 +#define VERSION_PRODUCT 3,13,443,0 +#define VERSION_FILESTR "3,13,443,0" +#define VERSION_PRODUCTSTR "3,13,443,0" #endif