mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +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();
|
||||
}
|
||||
|
||||
void CDbLoadOverviewComponent::setVisibleDbRefreshButtons(bool visible)
|
||||
void CDbLoadOverviewComponent::showVisibleDbRefreshButtons(bool visible)
|
||||
{
|
||||
ui->lbl_DbRefresh->setVisible(visible);
|
||||
ui->tb_DbReloadAircraft->setVisible(visible);
|
||||
@@ -83,7 +83,7 @@ namespace BlackGui
|
||||
ui->tb_DbReloadDistributors->setVisible(visible);
|
||||
}
|
||||
|
||||
void CDbLoadOverviewComponent::setVisibleSharedRefreshButtons(bool visible)
|
||||
void CDbLoadOverviewComponent::showVisibleSharedRefreshButtons(bool visible)
|
||||
{
|
||||
ui->lbl_SharedRefresh->setVisible(visible);
|
||||
ui->tb_SharedReloadAircraft->setVisible(visible);
|
||||
@@ -115,7 +115,7 @@ namespace BlackGui
|
||||
return m_loadInProgress;
|
||||
}
|
||||
|
||||
void CDbLoadOverviewComponent::showLoadAllButtons(bool shared, bool db)
|
||||
void CDbLoadOverviewComponent::showVisibleLoadAllButtons(bool shared, bool db)
|
||||
{
|
||||
const bool widget = shared || db;
|
||||
ui->wi_LoadAllButtons->setVisible(widget);
|
||||
|
||||
@@ -42,10 +42,13 @@ namespace BlackGui
|
||||
void display();
|
||||
|
||||
//! Visible DB refresh buttons
|
||||
void setVisibleDbRefreshButtons(bool visible);
|
||||
void showVisibleDbRefreshButtons(bool visible);
|
||||
|
||||
//! 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?
|
||||
bool isShowingLoadIndicator() const;
|
||||
@@ -53,9 +56,6 @@ namespace BlackGui
|
||||
//! Loading in progress?
|
||||
bool isLoadInProgress() const;
|
||||
|
||||
//! Show load all buttons
|
||||
void showLoadAllButtons(bool shared, bool db);
|
||||
|
||||
//! Load all from DB
|
||||
void loadAllFromDb();
|
||||
|
||||
|
||||
@@ -392,6 +392,12 @@
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QLabel" name="lbl_DbCount">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>DB count</string>
|
||||
</property>
|
||||
@@ -605,6 +611,12 @@
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QLabel" name="lbl_CacheCount">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Cache count</string>
|
||||
</property>
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace BlackGui
|
||||
ui(new Ui::CInitialDataLoadComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->comp_DataUpdates->showLoadAllButtons(true, false);
|
||||
ui->comp_DataUpdates->showVisibleLoadAllButtons(true, false);
|
||||
}
|
||||
|
||||
CInitialDataLoadComponent::~CInitialDataLoadComponent()
|
||||
|
||||
@@ -46,7 +46,8 @@ namespace BlackGui
|
||||
this->tabBar()->setExpanding(false);
|
||||
this->tabBar()->setUsesScrollButtons(true);
|
||||
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->pb_Advanced, &QPushButton::released, this, &CSettingsComponent::ps_overviewButtonClicked);
|
||||
|
||||
Reference in New Issue
Block a user