refs #535, renamed save to publish

* in same step fixed tabstops
* capital letters
This commit is contained in:
Klaus Basan
2015-12-17 20:21:02 +01:00
parent c067c871c9
commit a5fe143821
5 changed files with 31 additions and 18 deletions

View File

@@ -72,7 +72,7 @@
<item> <item>
<widget class="QPushButton" name="pb_Unstash"> <widget class="QPushButton" name="pb_Unstash">
<property name="text"> <property name="text">
<string>unstash</string> <string>Unstash</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -86,14 +86,14 @@
<item> <item>
<widget class="QPushButton" name="pb_Validate"> <widget class="QPushButton" name="pb_Validate">
<property name="text"> <property name="text">
<string>validate</string> <string>Validate</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pb_Save"> <widget class="QPushButton" name="pb_Publish">
<property name="text"> <property name="text">
<string>save</string> <string>Publish</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -107,28 +107,28 @@
<item> <item>
<widget class="QPushButton" name="pb_Distributor"> <widget class="QPushButton" name="pb_Distributor">
<property name="text"> <property name="text">
<string>distributor</string> <string>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>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>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>Airline ICAO</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -147,7 +147,7 @@
<tabstops> <tabstops>
<tabstop>pb_Unstash</tabstop> <tabstop>pb_Unstash</tabstop>
<tabstop>pb_Validate</tabstop> <tabstop>pb_Validate</tabstop>
<tabstop>pb_Save</tabstop> <tabstop>pb_Publish</tabstop>
<tabstop>tvp_StashAircraftModels</tabstop> <tabstop>tvp_StashAircraftModels</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>

View File

@@ -200,6 +200,12 @@
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<tabstops>
<tabstop>le_Description</tabstop>
<tabstop>le_Alias1</tabstop>
<tabstop>le_Alias2</tabstop>
<tabstop>le_Updated</tabstop>
</tabstops>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@@ -25,7 +25,8 @@ namespace BlackGui
ui->le_LastUpdated->setReadOnly(true); ui->le_LastUpdated->setReadOnly(true);
ui->le_Id->setReadOnly(true); ui->le_Id->setReadOnly(true);
ui->lai_Id->set(CIcons::appMappings16(), "Id:"); ui->lai_Id->set(CIcons::appMappings16(), "Id:");
connect(ui->pb_Save, &QPushButton::clicked, this, &CModelMappingForm::requestSave); connect(ui->pb_Publish, &QPushButton::clicked, this, &CModelMappingForm::requestPublish);
connect(ui->pb_Stash, &QPushButton::clicked, this, &CModelMappingForm::requestStash);
} }
CModelMappingForm::~CModelMappingForm() CModelMappingForm::~CModelMappingForm()

View File

@@ -53,8 +53,14 @@ namespace BlackGui
//! Request validation //! Request validation
void requestValidation(); void requestValidation();
//! Save //! Request to publish (DB)
void requestSave(); void requestPublish();
//! Request stashing for model
void requestStash();
private slots:
//!
private: private:
QScopedPointer<Ui::CModelMappingForm> ui; QScopedPointer<Ui::CModelMappingForm> ui;

View File

@@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>592</width> <width>592</width>
<height>87</height> <height>93</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@@ -62,7 +62,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="6"> <item row="0" column="6">
<widget class="QPushButton" name="ph_Stash"> <widget class="QPushButton" name="pb_Stash">
<property name="text"> <property name="text">
<string>Stash</string> <string>Stash</string>
</property> </property>
@@ -79,9 +79,9 @@
</widget> </widget>
</item> </item>
<item row="1" column="6"> <item row="1" column="6">
<widget class="QPushButton" name="pb_Save"> <widget class="QPushButton" name="pb_Publish">
<property name="text"> <property name="text">
<string>Save</string> <string>Publish</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -198,8 +198,8 @@
<tabstop>le_ModelKey</tabstop> <tabstop>le_ModelKey</tabstop>
<tabstop>le_Name</tabstop> <tabstop>le_Name</tabstop>
<tabstop>le_Description</tabstop> <tabstop>le_Description</tabstop>
<tabstop>ph_Stash</tabstop> <tabstop>pb_Stash</tabstop>
<tabstop>pb_Save</tabstop> <tabstop>pb_Publish</tabstop>
<tabstop>le_LastUpdated</tabstop> <tabstop>le_LastUpdated</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>