mirror of https://github.com/KLayout/klayout.git
Small enhancements of netlist browser: multiple items can be selected in log view (for manyfold geometries), highlights are cleared on tab change
This commit is contained in:
parent
b10cda574c
commit
8984531a8c
|
|
@ -134,7 +134,7 @@
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset>
|
<iconset resource="../../icons/icons.qrc">
|
||||||
<normaloff>:/run_16px.png</normaloff>:/run_16px.png</iconset>
|
<normaloff>:/run_16px.png</normaloff>:/run_16px.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="shortcut">
|
<property name="shortcut">
|
||||||
|
|
@ -576,6 +576,9 @@
|
||||||
<property name="contextMenuPolicy">
|
<property name="contextMenuPolicy">
|
||||||
<enum>Qt::ActionsContextMenu</enum>
|
<enum>Qt::ActionsContextMenu</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
||||||
|
</property>
|
||||||
<property name="headerHidden">
|
<property name="headerHidden">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,8 @@ NetlistBrowserPage::NetlistBrowserPage (QWidget * /*parent*/)
|
||||||
connect (actionExportAll, SIGNAL (triggered ()), this, SLOT (export_all ()));
|
connect (actionExportAll, SIGNAL (triggered ()), this, SLOT (export_all ()));
|
||||||
connect (actionExportSelected, SIGNAL (triggered ()), this, SLOT (export_selected ()));
|
connect (actionExportSelected, SIGNAL (triggered ()), this, SLOT (export_selected ()));
|
||||||
|
|
||||||
|
connect (mode_tab, SIGNAL (currentChanged (int)), this, SLOT (mode_tab_changed (int)));
|
||||||
|
|
||||||
forward->setEnabled (false);
|
forward->setEnabled (false);
|
||||||
backward->setEnabled (false);
|
backward->setEnabled (false);
|
||||||
}
|
}
|
||||||
|
|
@ -330,6 +332,13 @@ NetlistBrowserPage::eventFilter (QObject *watched, QEvent *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
NetlistBrowserPage::mode_tab_changed (int)
|
||||||
|
{
|
||||||
|
clear_highlights ();
|
||||||
|
dm_update_highlights ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
NetlistBrowserPage::layer_list_changed (int)
|
NetlistBrowserPage::layer_list_changed (int)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -214,6 +214,7 @@ private slots:
|
||||||
void log_selection_changed ();
|
void log_selection_changed ();
|
||||||
void browse_color_for_net ();
|
void browse_color_for_net ();
|
||||||
void select_color_for_net ();
|
void select_color_for_net ();
|
||||||
|
void mode_tab_changed (int);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter (QObject *watched, QEvent *event);
|
bool eventFilter (QObject *watched, QEvent *event);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue