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

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

View File

@@ -25,7 +25,8 @@ namespace BlackGui
ui->le_LastUpdated->setReadOnly(true);
ui->le_Id->setReadOnly(true);
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()

View File

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

View File

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