From cb702341840340cde5c46cf70bf0c2d3e379ea3f Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Fri, 26 Apr 2019 01:19:27 +0200 Subject: [PATCH] UI texts/minor fixes --- .../components/dbmappingcomponent.cpp | 34 +++++++++---------- src/blackgui/components/dbmappingcomponent.ui | 6 ++++ .../components/flightplancomponent.ui | 4 +-- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/src/blackgui/components/dbmappingcomponent.cpp b/src/blackgui/components/dbmappingcomponent.cpp index 562261ee1..1fbf96d90 100644 --- a/src/blackgui/components/dbmappingcomponent.cpp +++ b/src/blackgui/components/dbmappingcomponent.cpp @@ -648,22 +648,6 @@ namespace BlackGui ui->comp_ModelWorkbench->view()->setTabWidgetViewText(ui->tw_ModelsToBeMapped, ui->tw_ModelsToBeMapped->indexOf(ui->tab_Workbench)); } - void CDbMappingComponent::onOwnModelsChangedDigest(int count, bool withFilter) - { - Q_UNUSED(count); - Q_UNUSED(withFilter); - - // non standard with sim - const int i = ui->tw_ModelsToBeMapped->indexOf(ui->tab_OwnModels); - static const QString ot(ui->tw_ModelsToBeMapped->tabText(i)); - QString o(ot); - const QString sim(ui->comp_OwnAircraftModels->getOwnModelsSimulator().toQString(true)); - if (!sim.isEmpty()) { o = o.append(" ").append(sim); } - const QString f = ui->comp_OwnAircraftModels->view()->hasFilter() ? "F" : ""; - o = CGuiUtility::replaceTabCountValue(o, ui->comp_OwnAircraftModels->view()->rowCount()) + f; - ui->tw_ModelsToBeMapped->setTabText(i, o); - } - void CDbMappingComponent::ps_addToOwnModelSet() { if (!this->canAddToModelSetTab()) { return; } @@ -731,12 +715,28 @@ namespace BlackGui // none standard with simulator int i = ui->tw_ModelsToBeMapped->indexOf(ui->tab_OwnModelSet); - QString o = "Model set " + ui->comp_OwnModelSet->getModelSetSimulator().toQString(true); + QString o = "Active model set " + ui->comp_OwnModelSet->getModelSetSimulator().toQString(true); const QString f = ui->comp_OwnModelSet->view()->hasFilter() ? "F" : ""; o = CGuiUtility::replaceTabCountValue(o, ui->comp_OwnModelSet->view()->rowCount()) + f; ui->tw_ModelsToBeMapped->setTabText(i, o); } + void CDbMappingComponent::onOwnModelsChangedDigest(int count, bool withFilter) + { + Q_UNUSED(count); + Q_UNUSED(withFilter); + + // non standard with sim + const int i = ui->tw_ModelsToBeMapped->indexOf(ui->tab_OwnModels); + static const QString ot("Stored own models"); + QString o(ot); + const QString sim(ui->comp_OwnAircraftModels->getOwnModelsSimulator().toQString(true)); + if (!sim.isEmpty()) { o = o.append(" ").append(sim); } + const QString f = ui->comp_OwnAircraftModels->view()->hasFilter() ? "F" : ""; + o = CGuiUtility::replaceTabCountValue(o, ui->comp_OwnAircraftModels->view()->rowCount()) + f; + ui->tw_ModelsToBeMapped->setTabText(i, o); + } + void CDbMappingComponent::onUserChanged() { this->initVPilotLoading(); diff --git a/src/blackgui/components/dbmappingcomponent.ui b/src/blackgui/components/dbmappingcomponent.ui index 18530691f..be937b4a1 100644 --- a/src/blackgui/components/dbmappingcomponent.ui +++ b/src/blackgui/components/dbmappingcomponent.ui @@ -71,10 +71,16 @@ + + Models installed and found for your simulator + 0 + + This is the model set swift will use for model matching + My model set diff --git a/src/blackgui/components/flightplancomponent.ui b/src/blackgui/components/flightplancomponent.ui index ad23c6445..25fc4b222 100644 --- a/src/blackgui/components/flightplancomponent.ui +++ b/src/blackgui/components/flightplancomponent.ui @@ -318,7 +318,7 @@ Load flight plan from network - Load + Download @@ -773,7 +773,7 @@ 0 - -93 + 0 383 436