mirror of https://github.com/KLayout/klayout.git
WIP: netlist browser: context menu.
This commit is contained in:
parent
97fb852579
commit
c613ddb633
|
|
@ -291,6 +291,16 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
<action name="actionCollapseAll">
|
||||||
|
<property name="text">
|
||||||
|
<string>Collapse All</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionExpandAll">
|
||||||
|
<property name="text">
|
||||||
|
<string>Expand All</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>directory_tree</tabstop>
|
<tabstop>directory_tree</tabstop>
|
||||||
|
|
@ -298,5 +308,38 @@
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../lay/lay/layResources.qrc"/>
|
<include location="../../lay/lay/layResources.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>actionCollapseAll</sender>
|
||||||
|
<signal>triggered()</signal>
|
||||||
|
<receiver>directory_tree</receiver>
|
||||||
|
<slot>collapseAll()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>-1</x>
|
||||||
|
<y>-1</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>324</x>
|
||||||
|
<y>281</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>actionExpandAll</sender>
|
||||||
|
<signal>triggered()</signal>
|
||||||
|
<receiver>directory_tree</receiver>
|
||||||
|
<slot>expandAll()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>-1</x>
|
||||||
|
<y>-1</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>324</x>
|
||||||
|
<y>281</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
|
||||||
|
|
@ -1285,6 +1285,9 @@ NetlistBrowserPage::NetlistBrowserPage (QWidget * /*parent*/)
|
||||||
m_show_all_action->setCheckable (true);
|
m_show_all_action->setCheckable (true);
|
||||||
m_show_all_action->setChecked (m_show_all);
|
m_show_all_action->setChecked (m_show_all);
|
||||||
|
|
||||||
|
directory_tree->addAction (actionCollapseAll);
|
||||||
|
directory_tree->addAction (actionExpandAll);
|
||||||
|
|
||||||
lay::HTMLItemDelegate *delegate;
|
lay::HTMLItemDelegate *delegate;
|
||||||
|
|
||||||
delegate = new lay::HTMLItemDelegate (this);
|
delegate = new lay::HTMLItemDelegate (this);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue