mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Update Policy now works with conductor autonumberings
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4680 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -598,18 +598,34 @@ void ProjectAutoNumConfigPage::applyManagement() {
|
||||
to = m_amw->ui->m_to_folios_cb->itemData(m_amw->ui->m_to_folios_cb->currentIndex()).toInt();
|
||||
}
|
||||
|
||||
//Conductor Autonumbering Status
|
||||
//Conductor Autonumbering Update Policy
|
||||
//Allow Both Existent and New Conductors
|
||||
if (m_amw->ui->m_both_conductor_rb->isChecked()) {
|
||||
|
||||
//Unfreeze Existent and New Conductors
|
||||
project()->unfreezeExistentConductorLabel(from,to);
|
||||
project()->unfreezeNewConductorLabel(from,to);
|
||||
project()->setFreezeNewConductors(false);
|
||||
}
|
||||
//Allow Only New
|
||||
else if (m_amw->ui->m_new_conductor_rb->isChecked()) {
|
||||
|
||||
//Freeze Existent and Unfreeze New Conductors
|
||||
project()->freezeExistentConductorLabel(from,to);
|
||||
project()->unfreezeNewConductorLabel(from,to);
|
||||
project()->setFreezeNewConductors(false);
|
||||
}
|
||||
//Allow Only Existent
|
||||
else if (m_amw->ui->m_existent_conductor_rb->isChecked()) {
|
||||
|
||||
//Freeze Existent and Unfreeze New Conductors
|
||||
project()->unfreezeExistentConductorLabel(from,to);
|
||||
project()->freezeNewConductorLabel(from,to);
|
||||
project()->setFreezeNewConductors(true);
|
||||
}
|
||||
//Disable
|
||||
else if (m_amw->ui->m_disable_conductor_rb->isChecked()) {
|
||||
|
||||
//Freeze Existent and New Elements, Set Freeze Element Project Wide
|
||||
project()->freezeExistentConductorLabel(from,to);
|
||||
project()->freezeNewConductorLabel(from,to);
|
||||
project()->setFreezeNewConductors(true);
|
||||
}
|
||||
|
||||
//Element Autonumbering Update Policy
|
||||
|
||||
Reference in New Issue
Block a user