diff --git a/src/blackgui/components/dbloadoverviewcomponent.cpp b/src/blackgui/components/dbloadoverviewcomponent.cpp
index 312425bb3..03e83da16 100644
--- a/src/blackgui/components/dbloadoverviewcomponent.cpp
+++ b/src/blackgui/components/dbloadoverviewcomponent.cpp
@@ -35,12 +35,13 @@ namespace BlackGui
ui->lbl_DatabaseUrl->setTextInteractionFlags(Qt::TextBrowserInteraction);
ui->lbl_DatabaseUrl->setOpenExternalLinks(true);
- connect(ui->pb_ReloadAircraft, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
- connect(ui->pb_ReloadAirlines, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
- connect(ui->pb_ReloadCountries, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
- connect(ui->pb_ReloadLiveries, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
- connect(ui->pb_ReloadModels, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
- connect(ui->pb_ReloadDistributors, &QPushButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadAircraft, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadAirlines, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadAirports, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadCountries, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadLiveries, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadModels, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
+ connect(ui->tb_ReloadDistributors, &QToolButton::pressed, this, &CDbLoadOverviewComponent::ps_reloadPressed);
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CDbLoadOverviewComponent::ps_dataLoaded);
// QTimer::singleShot(2000, this, &CDbLoadOverviewComponent::ps_setValues);
@@ -65,38 +66,42 @@ namespace BlackGui
void CDbLoadOverviewComponent::ps_setValues()
{
if (!sGui) { return; }
- if (!sGui->getWebDataServices()) { return; }
- CDbLoadOverviewComponent::syncronizeCaches();
+ if (!sGui->hasWebDataServices()) { return; }
+ CDbLoadOverviewComponent::synchronizeCaches();
ui->le_AircraftIcaoCacheTs->setText(cacheTimestampForEntity(CEntityFlags::AircraftIcaoEntity));
- ui->le_AirlineIcaoCacheTs->setText(cacheTimestampForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirlinesIcaoCacheTs->setText(cacheTimestampForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirportsCacheTs->setText(cacheTimestampForEntity(CEntityFlags::AirportEntity));
ui->le_LiveriesCacheTs->setText(cacheTimestampForEntity(CEntityFlags::LiveryEntity));
ui->le_ModelsCacheTs->setText(cacheTimestampForEntity(CEntityFlags::ModelEntity));
ui->le_CountriesCacheTs->setText(cacheTimestampForEntity(CEntityFlags::CountryEntity));
ui->le_DistributorsCacheTs->setText(cacheTimestampForEntity(CEntityFlags::DistributorEntity));
ui->le_AircraftIcaoDbTs->setText(dbTimestampForEntity(CEntityFlags::AircraftIcaoEntity));
- ui->le_AirlineIcaoDbTs->setText(dbTimestampForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirlinesIcaoDbTs->setText(dbTimestampForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirportsDbTs->setText(dbTimestampForEntity(CEntityFlags::AirportEntity));
ui->le_LiveriesDbTs->setText(dbTimestampForEntity(CEntityFlags::LiveryEntity));
ui->le_ModelsDbTs->setText(dbTimestampForEntity(CEntityFlags::ModelEntity));
ui->le_CountriesDbTs->setText(dbTimestampForEntity(CEntityFlags::CountryEntity));
ui->le_DistributorsDbTs->setText(dbTimestampForEntity(CEntityFlags::DistributorEntity));
ui->le_AircraftIcaoCacheCount->setText(cacheCountForEntity(CEntityFlags::AircraftIcaoEntity));
- ui->le_AirlineIcaoCacheCount->setText(cacheCountForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirlinesIcaoCacheCount->setText(cacheCountForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirportsCacheCount->setText(cacheCountForEntity(CEntityFlags::AirportEntity));
ui->le_LiveriesCacheCount->setText(cacheCountForEntity(CEntityFlags::LiveryEntity));
ui->le_ModelsCacheCount->setText(cacheCountForEntity(CEntityFlags::ModelEntity));
ui->le_CountriesCacheCount->setText(cacheCountForEntity(CEntityFlags::CountryEntity));
ui->le_DistributorsCacheCount->setText(cacheCountForEntity(CEntityFlags::DistributorEntity));
ui->le_AircraftIcaoDbCount->setText(dbCountForEntity(CEntityFlags::AircraftIcaoEntity));
- ui->le_AirlineIcaoDbCount->setText(dbCountForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirlinesIcaoDbCount->setText(dbCountForEntity(CEntityFlags::AirlineIcaoEntity));
+ ui->le_AirportsDbCount->setText(dbCountForEntity(CEntityFlags::AirportEntity));
ui->le_LiveriesDbCount->setText(dbCountForEntity(CEntityFlags::LiveryEntity));
ui->le_ModelsDbCount->setText(dbCountForEntity(CEntityFlags::ModelEntity));
ui->le_CountriesDbCount->setText(dbCountForEntity(CEntityFlags::CountryEntity));
- ui->le_DistributorsDbCount->setText(cacheCountForEntity(CEntityFlags::DistributorEntity));
+ ui->le_DistributorsDbCount->setText(dbCountForEntity(CEntityFlags::DistributorEntity));
- const QString urlHtml("Open");
+ const QString urlHtml("Open DB");
const QString url = sGui->getGlobalSetup().getDbHomePageUrl().getFullUrl();
ui->lbl_DatabaseUrl->setText(urlHtml.arg(url));
ui->lbl_DatabaseUrl->setToolTip(url);
@@ -149,7 +154,7 @@ namespace BlackGui
return c < 0 ? "-" : QString::number(c);
}
- void CDbLoadOverviewComponent::syncronizeCaches()
+ void CDbLoadOverviewComponent::synchronizeCaches()
{
sGui->getWebDataServices()->syncronizeDbCaches(CEntityFlags::AllDbEntities);
}
diff --git a/src/blackgui/components/dbloadoverviewcomponent.h b/src/blackgui/components/dbloadoverviewcomponent.h
index 9649b00fc..7a9d32e38 100644
--- a/src/blackgui/components/dbloadoverviewcomponent.h
+++ b/src/blackgui/components/dbloadoverviewcomponent.h
@@ -67,7 +67,7 @@ namespace BlackGui
static QString dbCountForEntity(BlackMisc::Network::CEntityFlags::Entity entity);
//! Syncronize caches
- static void syncronizeCaches();
+ static void synchronizeCaches();
private slots:
//! Reload
diff --git a/src/blackgui/components/dbloadoverviewcomponent.ui b/src/blackgui/components/dbloadoverviewcomponent.ui
index ac2713bb4..556531b51 100644
--- a/src/blackgui/components/dbloadoverviewcomponent.ui
+++ b/src/blackgui/components/dbloadoverviewcomponent.ui
@@ -13,12 +13,6 @@
Frame
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
2
@@ -35,8 +29,38 @@
4
- -
-
+
-
+
+
+ true
+
+
+ count
+
+
+
+ -
+
+
+ true
+
+
+ count
+
+
+
+ -
+
+
+ true
+
+
+ cache ts
+
+
+
+ -
+
true
@@ -45,8 +69,21 @@
- -
-
+
-
+
+
+ Airports:
+
+
+
+ -
+
+
+
+ 48
+ 16777215
+
+
@@ -56,17 +93,106 @@
- -
-
-
- true
+
-
+
+
+
+ 48
+ 16777215
+
-
- count
+
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
- -
+
-
+
+
+
+ 48
+ 16777215
+
+
+
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+
+
+ -
+
+
+
+ 48
+ 16777215
+
+
+
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+
+
+ -
+
+
+
+ 48
+ 16777215
+
+
+
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+
+
+ -
+
+
+
+ 48
+ 16777215
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+
+
+ -
+
+
+
+ 48
+ 16777215
+
+
+
+
+
+
+
+ :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+
+
+ -
true
@@ -76,7 +202,27 @@
- -
+
-
+
+
+ true
+
+
+ DB ts
+
+
+
+ -
+
+
+ true
+
+
+ count
+
+
+
+ -
true
@@ -86,26 +232,14 @@
- -
-
-
-
- :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
-
-
-
- -
-
+
-
+
-
-
-
-
- :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+ Liveries:
- -
+
-
true
@@ -115,13 +249,6 @@
- -
-
-
- Liveries:
-
-
-
-
@@ -132,15 +259,8 @@
- -
-
-
- Aircraft:
-
-
-
-
-
+
true
@@ -169,7 +289,14 @@
- -
+
-
+
+
+ Aircraft:
+
+
+
+ -
true
@@ -179,14 +306,21 @@
- -
+
-
Countries:
- -
+
-
+
+
+ Models:
+
+
+
+ -
true
@@ -197,7 +331,7 @@
-
-
+
true
@@ -206,13 +340,6 @@
- -
-
-
- Models:
-
-
-
-
@@ -220,27 +347,7 @@
- -
-
-
- true
-
-
- count
-
-
-
- -
-
-
- true
-
-
- cache ts
-
-
-
- -
+
-
true
@@ -250,7 +357,7 @@
- -
+
-
true
@@ -260,7 +367,37 @@
- -
+
-
+
+
+ true
+
+
+ cache ts
+
+
+
+ -
+
+
+ true
+
+
+ count
+
+
+
+ -
+
+
+ true
+
+
+ count
+
+
+
+ -
true
@@ -273,17 +410,7 @@
-
- Airline:
-
-
-
- -
-
-
- true
-
-
- DB ts
+ Airlines:
@@ -294,8 +421,18 @@
- -
-
+
-
+
+
+ true
+
+
+ DB ts
+
+
+
+ -
+
true
@@ -304,20 +441,6 @@
- -
-
-
- Cache ts:
-
-
-
- -
-
-
- DB #:
-
-
-
-
@@ -328,17 +451,7 @@
- -
-
-
- true
-
-
- count
-
-
-
- -
+
-
true
@@ -348,39 +461,21 @@
- -
-
-
- true
-
-
- count
-
-
-
- -
-
+
-
+
-
-
-
-
- :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+ DB #:
- -
-
+
-
+
-
-
-
-
- :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+ Cache ts:
- -
+
-
true
@@ -390,38 +485,24 @@
- -
-
-
-
+
-
+
+
+ true
-
-
- :/pastel/icons/pastel/16/arrow-refresh.png:/pastel/icons/pastel/16/arrow-refresh.png
+
+ count
- -
+
-
Distributors:
- -
-
-
-
- 0
- 24
-
-
-
- Database:
-
-
-
- -
+
-
URL will go here .....