mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 09:20:45 +02:00
Implemented #426 (feature request: group techs)
The tech group is a new XML tag "<group>...</group>". This tag is editable in the tech "general" page as "Group". If non-empty, a submenu will be created in the tech selector menu for all techs with the same group.
This commit is contained in:
@@ -135,13 +135,7 @@ NewLayoutPropertiesDialog::exec_dialog (std::string &technology, std::string &ce
|
||||
unsigned int technology_index = 0;
|
||||
for (db::Technologies::const_iterator t = db::Technologies::instance ()->begin (); t != db::Technologies::instance ()->end (); ++t, ++technology_index) {
|
||||
|
||||
std::string d = t->name ();
|
||||
if (! d.empty () && ! t->description ().empty ()) {
|
||||
d += " - ";
|
||||
}
|
||||
d += t->description ();
|
||||
|
||||
mp_ui->tech_cbx->addItem (tl::to_qstring (d));
|
||||
mp_ui->tech_cbx->addItem (tl::to_qstring (t->get_display_string ()));
|
||||
if (t->name () == technology) {
|
||||
mp_ui->tech_cbx->setCurrentIndex (technology_index);
|
||||
}
|
||||
|
||||
@@ -192,13 +192,7 @@ BEGIN_PROTECTED
|
||||
unsigned int technology_index = 0;
|
||||
for (db::Technologies::const_iterator t = db::Technologies::instance ()->begin (); t != db::Technologies::instance ()->end (); ++t, ++technology_index) {
|
||||
|
||||
std::string d = t->name ();
|
||||
if (! d.empty () && ! t->description ().empty ()) {
|
||||
d += " - ";
|
||||
}
|
||||
d += t->description ();
|
||||
|
||||
tech_cbx->addItem (tl::to_qstring (d));
|
||||
tech_cbx->addItem (tl::to_qstring (t->get_display_string ()));
|
||||
if (t->name () == m_handles [index]->tech_name ()) {
|
||||
tech_cbx->setCurrentIndex (technology_index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user