mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Add new fild and titleblock "Function group"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5622 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -47,6 +47,7 @@ TitleBlockProperties ReplaceFolioWidget::titleBlockProperties() const
|
||||
prop.author = ui->m_author_le->text();
|
||||
prop.filename = ui->m_file_le ->text();
|
||||
prop.machine = ui->m_mach ->text();
|
||||
prop.funcgroup= ui->m_group_f ->text();
|
||||
prop.locmach = ui->m_loc ->text();
|
||||
prop.indexrev = ui->m_indice ->text();
|
||||
prop.folio = ui->m_folio_le ->text();
|
||||
@@ -79,6 +80,7 @@ void ReplaceFolioWidget::setTitleBlockProperties(const TitleBlockProperties &pro
|
||||
ui->m_author_le->setText (properties.author);
|
||||
ui->m_file_le ->setText (properties.filename);
|
||||
ui->m_mach ->setText (properties.machine);
|
||||
ui->m_group_f ->setText (properties.funcgroup);
|
||||
ui->m_loc ->setText (properties.locmach);
|
||||
ui->m_indice ->setText (properties.indexrev);
|
||||
ui->m_folio_le ->setText (properties.folio);
|
||||
@@ -167,6 +169,11 @@ void ReplaceFolioWidget::on_m_mach_cb_clicked() {
|
||||
ui->m_mach->setDisabled(ui->m_mach_cb->isChecked());
|
||||
}
|
||||
|
||||
void ReplaceFolioWidget::on_m_group_f_cb_clicked() {
|
||||
ui->m_group_f->setText(ui->m_group_f_cb->isChecked() ? SearchAndReplaceWorker::eraseText() : QString());
|
||||
ui->m_group_f->setDisabled(ui->m_group_f_cb->isChecked());
|
||||
}
|
||||
|
||||
void ReplaceFolioWidget::on_m_loc_cb_clicked() {
|
||||
ui->m_loc->setText(ui->m_loc_cb->isChecked() ? SearchAndReplaceWorker::eraseText() : QString());
|
||||
ui->m_loc->setDisabled(ui->m_loc_cb->isChecked());
|
||||
@@ -176,3 +183,5 @@ void ReplaceFolioWidget::on_m_indice_cb_clicked() {
|
||||
ui->m_indice->setText(ui->m_indice_cb->isChecked() ? SearchAndReplaceWorker::eraseText() : QString());
|
||||
ui->m_indice->setDisabled(ui->m_indice_cb->isChecked());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -48,10 +48,15 @@ class ReplaceFolioWidget : public QWidget
|
||||
void on_m_file_cb_clicked();
|
||||
void on_m_folio_cb_clicked();
|
||||
void on_m_mach_cb_clicked();
|
||||
void on_m_group_f_cb_clicked();
|
||||
void on_m_loc_cb_clicked();
|
||||
void on_m_indice_cb_clicked();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
Ui::ReplaceFolioWidget *ui;
|
||||
DiagramContextWidget *m_diagram_context_widget = nullptr;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>449</width>
|
||||
<height>389</height>
|
||||
<height>431</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -305,6 +305,23 @@ Les variables suivantes sont utilisables :
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="2" colspan="2">
|
||||
<widget class="QLineEdit" name="m_group_f"/>
|
||||
</item>
|
||||
<item row="7" column="1">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Groupe fonctionnel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="4">
|
||||
<widget class="QCheckBox" name="m_group_f_cb">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user