git-svn-id: svn://db.shs.com.ru/libs@650 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-04 12:42:06 +00:00
parent 81c7de74f9
commit d7797e2278
6 changed files with 303 additions and 445 deletions

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>345</width>
<height>494</height>
<width>442</width>
<height>606</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
@@ -24,350 +24,65 @@
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QGroupBox" name="groupSelection">
<property name="title">
<string>Selection</string>
<widget class="QLabel" name="label">
<property name="text">
<string>Filter:</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QToolButton" name="buttonFocus">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Focus on selected</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-camera.png</normaloff>:/icons/type-camera.png</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>1</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="buttonRemove">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Delete selected</string>
</property>
<property name="icon">
<iconset resource="../../qad/utils/qad_utils.qrc">
<normaloff>:/icons/edit-delete.png</normaloff>:/icons/edit-delete.png</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="buttonClone">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Clone selected</string>
</property>
<property name="icon">
<iconset resource="../../qad/utils/qad_utils.qrc">
<normaloff>:/icons/edit-copy.png</normaloff>:/icons/edit-copy.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonGroup">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Group selected</string>
</property>
<property name="text">
<string>G</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonSelectParent">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Select parent</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/go-top.png</normaloff>:/icons/go-top.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonSelectByMesh">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Select by mesh</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-geo.png</normaloff>:/icons/type-geo.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonSelectByMaterial">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Select by material</string>
</property>
<property name="icon">
<iconset resource="../../qad/blockview/qad_blockview.qrc">
<normaloff>:/icons/format-fill-color.png</normaloff>:/icons/format-fill-color.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupAdd">
<property name="title">
<string>Add</string>
<widget class="CLineEdit" name="lineFilter"/>
</item>
<item>
<widget class="QToolButton" name="buttonFilter">
<property name="icon">
<iconset resource="../../qad/widgets/qad_widgets.qrc">
<normaloff>:/icons/configure.png</normaloff>:/icons/configure.png</iconset>
</property>
<property name="popupMode">
<enum>QToolButton::InstantPopup</enum>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonExpand">
<property name="toolTip">
<string>Expand tree</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/expand.png</normaloff>:/icons/expand.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonCollapse">
<property name="toolTip">
<string>Collapse tree</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/collapse.png</normaloff>:/icons/collapse.png</iconset>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QToolButton" name="buttonAddNode">
<property name="toolTip">
<string>Add empty object</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-empty.png</normaloff>:/icons/add-type-empty.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonAddLight">
<property name="toolTip">
<string>Add light</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-light.png</normaloff>:/icons/add-type-light.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonAddCamera">
<property name="toolTip">
<string>Add camera</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-camera.png</normaloff>:/icons/add-type-camera.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QGroupBox" name="groupFilter">
<property name="title">
<string>Filter</string>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<property name="labelAlignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Name:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="CLineEdit" name="lineFilter"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Types:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="widgetFilter" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QToolButton" name="buttonFilterNode">
<property name="toolTip">
<string>Nodes</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-empty.png</normaloff>:/icons/type-empty.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonFilterMesh">
<property name="toolTip">
<string>Meshes</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-geo.png</normaloff>:/icons/type-geo.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonFilterLight">
<property name="toolTip">
<string>Lights</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-light.png</normaloff>:/icons/type-light.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonFilterCamera">
<property name="toolTip">
<string>Cameras</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-camera.png</normaloff>:/icons/type-camera.png</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>1</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupTree">
<property name="title">
<string>Tree</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QToolButton" name="buttonExpand">
<property name="toolTip">
<string>Expand tree</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/expand.png</normaloff>:/icons/expand.png</iconset>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QToolButton" name="buttonUpdate">
<property name="toolTip">
<string>Force update</string>
</property>
<property name="icon">
<iconset resource="../../qcd_utils/pult/cdpult.qrc">
<normaloff>:/icons/view-refresh.png</normaloff>:/icons/view-refresh.png</iconset>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QToolButton" name="buttonCollapse">
<property name="toolTip">
<string>Collapse tree</string>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/collapse.png</normaloff>:/icons/collapse.png</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
<widget class="QLabel" name="labelCounts">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="InternalMoveTreeWidget" name="treeObjects">
@@ -407,6 +122,144 @@
</widget>
</item>
</layout>
<action name="actionFocus">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-camera.png</normaloff>:/icons/type-camera.png</iconset>
</property>
<property name="text">
<string>Focus</string>
</property>
</action>
<action name="actionRemove">
<property name="icon">
<iconset resource="../../qad/utils/qad_utils.qrc">
<normaloff>:/icons/edit-delete.png</normaloff>:/icons/edit-delete.png</iconset>
</property>
<property name="text">
<string>Remove</string>
</property>
</action>
<action name="actionClone">
<property name="icon">
<iconset resource="../../qad/utils/qad_utils.qrc">
<normaloff>:/icons/edit-copy.png</normaloff>:/icons/edit-copy.png</iconset>
</property>
<property name="text">
<string>Clone</string>
</property>
</action>
<action name="actionGroup">
<property name="icon">
<iconset resource="widgets.qrc">
<normaloff>:/icons/group.png</normaloff>:/icons/group.png</iconset>
</property>
<property name="text">
<string>Group</string>
</property>
</action>
<action name="actionSelect_parent">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/go-top.png</normaloff>:/icons/go-top.png</iconset>
</property>
<property name="text">
<string>Select parent</string>
</property>
</action>
<action name="actionSelect_by_mesh">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-geo.png</normaloff>:/icons/type-geo.png</iconset>
</property>
<property name="text">
<string>Select by mesh</string>
</property>
</action>
<action name="actionSelect_by_material">
<property name="icon">
<iconset resource="../../qad/blockview/qad_blockview.qrc">
<normaloff>:/icons/format-fill-color.png</normaloff>:/icons/format-fill-color.png</iconset>
</property>
<property name="text">
<string>Select by material</string>
</property>
</action>
<action name="actionAdd_node">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-empty.png</normaloff>:/icons/add-type-empty.png</iconset>
</property>
<property name="text">
<string>Add node</string>
</property>
</action>
<action name="actionAdd_light">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-light.png</normaloff>:/icons/add-type-light.png</iconset>
</property>
<property name="text">
<string>Add light</string>
</property>
</action>
<action name="actionAdd_camera">
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/add-type-camera.png</normaloff>:/icons/add-type-camera.png</iconset>
</property>
<property name="text">
<string>Add camera</string>
</property>
</action>
<action name="actionFilter_node">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-empty.png</normaloff>:/icons/type-empty.png</iconset>
</property>
<property name="text">
<string>Nodes</string>
</property>
</action>
<action name="actionFilter_mesh">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-geo.png</normaloff>:/icons/type-geo.png</iconset>
</property>
<property name="text">
<string>Meshes</string>
</property>
</action>
<action name="actionFilter_light">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-light.png</normaloff>:/icons/type-light.png</iconset>
</property>
<property name="text">
<string>Lights</string>
</property>
</action>
<action name="actionFilter_camera">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="../qglview.qrc">
<normaloff>:/icons/type-camera.png</normaloff>:/icons/type-camera.png</iconset>
</property>
<property name="text">
<string>Cameras</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>
@@ -422,8 +275,9 @@
</customwidgets>
<resources>
<include location="../../qad/utils/qad_utils.qrc"/>
<include location="../../qad/widgets/qad_widgets.qrc"/>
<include location="../../qad/blockview/qad_blockview.qrc"/>
<include location="../../qcd_utils/pult/cdpult.qrc"/>
<include location="widgets.qrc"/>
<include location="../qglview.qrc"/>
</resources>
<connections>
@@ -434,12 +288,12 @@
<slot>expandAll()</slot>
<hints>
<hint type="sourcelabel">
<x>288</x>
<y>143</y>
<x>395</x>
<y>164</y>
</hint>
<hint type="destinationlabel">
<x>299</x>
<y>174</y>
<y>359</y>
</hint>
</hints>
</connection>
@@ -450,44 +304,12 @@
<slot>collapseAll()</slot>
<hints>
<hint type="sourcelabel">
<x>319</x>
<y>137</y>
<x>427</x>
<y>164</y>
</hint>
<hint type="destinationlabel">
<x>332</x>
<y>184</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonFocus</sender>
<signal>clicked()</signal>
<receiver>SceneTree</receiver>
<slot>focusObjects()</slot>
<hints>
<hint type="sourcelabel">
<x>26</x>
<y>37</y>
</hint>
<hint type="destinationlabel">
<x>17</x>
<y>27</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonRemove</sender>
<signal>clicked()</signal>
<receiver>SceneTree</receiver>
<slot>removeObjects()</slot>
<hints>
<hint type="sourcelabel">
<x>122</x>
<y>39</y>
</hint>
<hint type="destinationlabel">
<x>114</x>
<y>26</y>
<y>369</y>
</hint>
</hints>
</connection>
@@ -498,8 +320,8 @@
<slot>filter()</slot>
<hints>
<hint type="sourcelabel">
<x>239</x>
<y>100</y>
<x>273</x>
<y>130</y>
</hint>
<hint type="destinationlabel">
<x>355</x>
@@ -508,66 +330,66 @@
</hints>
</connection>
<connection>
<sender>buttonFilterNode</sender>
<sender>actionFilter_camera</sender>
<signal>toggled(bool)</signal>
<receiver>SceneTree</receiver>
<slot>filter()</slot>
<hints>
<hint type="sourcelabel">
<x>61</x>
<y>137</y>
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>353</x>
<y>109</y>
<x>414</x>
<y>302</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonFilterMesh</sender>
<sender>actionFilter_mesh</sender>
<signal>toggled(bool)</signal>
<receiver>SceneTree</receiver>
<slot>filter()</slot>
<hints>
<hint type="sourcelabel">
<x>95</x>
<y>140</y>
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>357</x>
<y>146</y>
<x>414</x>
<y>302</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonFilterLight</sender>
<sender>actionFilter_light</sender>
<signal>toggled(bool)</signal>
<receiver>SceneTree</receiver>
<slot>filter()</slot>
<hints>
<hint type="sourcelabel">
<x>135</x>
<y>135</y>
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>353</x>
<y>173</y>
<x>414</x>
<y>302</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonFilterCamera</sender>
<sender>actionFilter_node</sender>
<signal>toggled(bool)</signal>
<receiver>SceneTree</receiver>
<slot>filter()</slot>
<hints>
<hint type="sourcelabel">
<x>161</x>
<y>135</y>
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>351</x>
<y>226</y>
<x>414</x>
<y>302</y>
</hint>
</hints>
</connection>