mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
refs #886, unified function names in CDbLoadOverviewComponent
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cd19031ec9
commit
d495424041
@@ -71,7 +71,7 @@ namespace BlackGui
|
|||||||
this->ps_setValues();
|
this->ps_setValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDbLoadOverviewComponent::setVisibleDbRefreshButtons(bool visible)
|
void CDbLoadOverviewComponent::showVisibleDbRefreshButtons(bool visible)
|
||||||
{
|
{
|
||||||
ui->lbl_DbRefresh->setVisible(visible);
|
ui->lbl_DbRefresh->setVisible(visible);
|
||||||
ui->tb_DbReloadAircraft->setVisible(visible);
|
ui->tb_DbReloadAircraft->setVisible(visible);
|
||||||
@@ -83,7 +83,7 @@ namespace BlackGui
|
|||||||
ui->tb_DbReloadDistributors->setVisible(visible);
|
ui->tb_DbReloadDistributors->setVisible(visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDbLoadOverviewComponent::setVisibleSharedRefreshButtons(bool visible)
|
void CDbLoadOverviewComponent::showVisibleSharedRefreshButtons(bool visible)
|
||||||
{
|
{
|
||||||
ui->lbl_SharedRefresh->setVisible(visible);
|
ui->lbl_SharedRefresh->setVisible(visible);
|
||||||
ui->tb_SharedReloadAircraft->setVisible(visible);
|
ui->tb_SharedReloadAircraft->setVisible(visible);
|
||||||
@@ -115,7 +115,7 @@ namespace BlackGui
|
|||||||
return m_loadInProgress;
|
return m_loadInProgress;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDbLoadOverviewComponent::showLoadAllButtons(bool shared, bool db)
|
void CDbLoadOverviewComponent::showVisibleLoadAllButtons(bool shared, bool db)
|
||||||
{
|
{
|
||||||
const bool widget = shared || db;
|
const bool widget = shared || db;
|
||||||
ui->wi_LoadAllButtons->setVisible(widget);
|
ui->wi_LoadAllButtons->setVisible(widget);
|
||||||
|
|||||||
@@ -42,10 +42,13 @@ namespace BlackGui
|
|||||||
void display();
|
void display();
|
||||||
|
|
||||||
//! Visible DB refresh buttons
|
//! Visible DB refresh buttons
|
||||||
void setVisibleDbRefreshButtons(bool visible);
|
void showVisibleDbRefreshButtons(bool visible);
|
||||||
|
|
||||||
//! Visible shared refresh buttons
|
//! Visible shared refresh buttons
|
||||||
void setVisibleSharedRefreshButtons(bool visible);
|
void showVisibleSharedRefreshButtons(bool visible);
|
||||||
|
|
||||||
|
//! Show load all buttons
|
||||||
|
void showVisibleLoadAllButtons(bool shared, bool db);
|
||||||
|
|
||||||
//! Showing load indicator?
|
//! Showing load indicator?
|
||||||
bool isShowingLoadIndicator() const;
|
bool isShowingLoadIndicator() const;
|
||||||
@@ -53,9 +56,6 @@ namespace BlackGui
|
|||||||
//! Loading in progress?
|
//! Loading in progress?
|
||||||
bool isLoadInProgress() const;
|
bool isLoadInProgress() const;
|
||||||
|
|
||||||
//! Show load all buttons
|
|
||||||
void showLoadAllButtons(bool shared, bool db);
|
|
||||||
|
|
||||||
//! Load all from DB
|
//! Load all from DB
|
||||||
void loadAllFromDb();
|
void loadAllFromDb();
|
||||||
|
|
||||||
|
|||||||
@@ -392,6 +392,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="6">
|
<item row="0" column="6">
|
||||||
<widget class="QLabel" name="lbl_DbCount">
|
<widget class="QLabel" name="lbl_DbCount">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>60</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>DB count</string>
|
<string>DB count</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -605,6 +611,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="0" column="5">
|
<item row="0" column="5">
|
||||||
<widget class="QLabel" name="lbl_CacheCount">
|
<widget class="QLabel" name="lbl_CacheCount">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>60</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Cache count</string>
|
<string>Cache count</string>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CInitialDataLoadComponent)
|
ui(new Ui::CInitialDataLoadComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->comp_DataUpdates->showLoadAllButtons(true, false);
|
ui->comp_DataUpdates->showVisibleLoadAllButtons(true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
CInitialDataLoadComponent::~CInitialDataLoadComponent()
|
CInitialDataLoadComponent::~CInitialDataLoadComponent()
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ namespace BlackGui
|
|||||||
this->tabBar()->setExpanding(false);
|
this->tabBar()->setExpanding(false);
|
||||||
this->tabBar()->setUsesScrollButtons(true);
|
this->tabBar()->setUsesScrollButtons(true);
|
||||||
this->setCurrentIndex(0); // 1st tab
|
this->setCurrentIndex(0); // 1st tab
|
||||||
ui->comp_DataLoadOverview->setVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || CBuildConfig::isBetaTest());
|
ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() || CBuildConfig::isBetaTest());
|
||||||
|
ui->comp_DataLoadOverview->showVisibleLoadAllButtons(false, false);
|
||||||
|
|
||||||
connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
connect(ui->comp_SettingsGuiGeneral, &CSettingsGuiComponent::changedWindowsOpacity, this, &CSettingsComponent::changedWindowsOpacity);
|
||||||
connect(ui->pb_Advanced, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
connect(ui->pb_Advanced, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||||
|
|||||||
Reference in New Issue
Block a user