mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
UI stash text improved and stash shortcuts
This commit is contained in:
@@ -469,19 +469,19 @@ namespace BlackGui
|
|||||||
const CAuthenticatedUser user(this->getSwiftDbUser());
|
const CAuthenticatedUser user(this->getSwiftDbUser());
|
||||||
if (!user.isAuthenticated())
|
if (!user.isAuthenticated())
|
||||||
{
|
{
|
||||||
ui->pb_Publish->setText("Publish (login)");
|
ui->pb_Publish->setText(" Publish (login) ");
|
||||||
ui->pb_Publish->setToolTip("Login first");
|
ui->pb_Publish->setToolTip("Login first");
|
||||||
ui->pb_Publish->setEnabled(false);
|
ui->pb_Publish->setEnabled(false);
|
||||||
}
|
}
|
||||||
else if (user.canDirectlyWriteModels())
|
else if (user.canDirectlyWriteModels())
|
||||||
{
|
{
|
||||||
ui->pb_Publish->setText("Publish (dir.)");
|
ui->pb_Publish->setText(" Publish (dir.) ");
|
||||||
ui->pb_Publish->setToolTip("Models directly released");
|
ui->pb_Publish->setToolTip("Models directly released");
|
||||||
ui->pb_Publish->setEnabled(true);
|
ui->pb_Publish->setEnabled(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->pb_Publish->setText("Publish (CR)");
|
ui->pb_Publish->setText(" Publish (CR) ");
|
||||||
ui->pb_Publish->setToolTip("Models published as change request");
|
ui->pb_Publish->setToolTip("Models published as change request");
|
||||||
ui->pb_Publish->setEnabled(true);
|
ui->pb_Publish->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,22 +6,13 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>859</width>
|
<width>860</width>
|
||||||
<height>221</height>
|
<height>222</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Frame</string>
|
<string>Frame</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::NoFrame</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Plain</enum>
|
|
||||||
</property>
|
|
||||||
<property name="lineWidth">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<layout class="QVBoxLayout" name="vl_DbStashComponent">
|
<layout class="QVBoxLayout" name="vl_DbStashComponent">
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@@ -127,35 +118,35 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_Model">
|
<widget class="QPushButton" name="pb_Model">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Model</string>
|
<string>&1: Model</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_Distributor">
|
<widget class="QPushButton" name="pb_Distributor">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Distributor</string>
|
<string> &2: Distributor</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_AircraftIcao">
|
<widget class="QPushButton" name="pb_AircraftIcao">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Aircraft ICAO</string>
|
<string> &3: Aircraft ICAO</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_Livery">
|
<widget class="QPushButton" name="pb_Livery">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Livery</string>
|
<string> &4: Livery</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="pb_AirlineIcao">
|
<widget class="QPushButton" name="pb_AirlineIcao">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Airline ICAO</string>
|
<string> &5: Airline ICAO</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CDownloadAndInstallDialog)
|
ui(new Ui::CDownloadAndInstallDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->bb_DownloadInstallDialog->button(QDialogButtonBox::Ok)->setText("Download and install");
|
ui->bb_DownloadInstallDialog->button(QDialogButtonBox::Ok)->setText(" Download and install ");
|
||||||
this->selectionChanged();
|
this->selectionChanged();
|
||||||
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::selectionChanged, this, &CDownloadAndInstallDialog::selectionChanged);
|
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::selectionChanged, this, &CDownloadAndInstallDialog::selectionChanged);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user