262 lines
7.5 KiB
XML
262 lines
7.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>IconEditorDialog</class>
|
||
<widget class="QDialog" name="IconEditorDialog">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>850</width>
|
||
<height>600</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>Icon Editor</string>
|
||
</property>
|
||
<layout class="QVBoxLayout" name="dialogLayout">
|
||
<item>
|
||
<layout class="QHBoxLayout" name="shapeToolbarLayout">
|
||
<item>
|
||
<widget class="QToolButton" name="pointerButton">
|
||
<property name="text">
|
||
<string>Pointer</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/edit-select.png</normaloff>:/icons/icons/edit-select.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="addShapeLabel">
|
||
<property name="text">
|
||
<string>Add:</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addRectangleButton">
|
||
<property name="text">
|
||
<string>Rectangle</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-rectangle.png</normaloff>:/icons/icons/draw-rectangle.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addCircleButton">
|
||
<property name="text">
|
||
<string>Circle</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-circle.png</normaloff>:/icons/icons/draw-circle.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addEllipseButton">
|
||
<property name="text">
|
||
<string>Ellipse</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-ellipse.png</normaloff>:/icons/icons/draw-ellipse.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addLineButton">
|
||
<property name="text">
|
||
<string>Line</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-bezier-curves.png</normaloff>:/icons/icons/draw-bezier-curves.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addTriangleButton">
|
||
<property name="text">
|
||
<string>Triangle</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-triangle.png</normaloff>:/icons/icons/draw-triangle.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="addTextButton">
|
||
<property name="text">
|
||
<string>Text</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/draw-text.png</normaloff>:/icons/icons/draw-text.png</iconset>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="toolbarSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Orientation::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="zoomInButton">
|
||
<property name="toolTip">
|
||
<string>Zoom in</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>+</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/zoom-in.png</normaloff>:/icons/icons/zoom-in.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="zoomOutButton">
|
||
<property name="toolTip">
|
||
<string>Zoom out</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>−</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/zoom-out.png</normaloff>:/icons/icons/zoom-out.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QToolButton" name="centerButton">
|
||
<property name="toolTip">
|
||
<string>Fit and center the icon canvas</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Fit</string>
|
||
</property>
|
||
<property name="icon">
|
||
<iconset resource="../resources/resources.qrc">
|
||
<normaloff>:/icons/icons/zoom-original.png</normaloff>:/icons/icons/zoom-original.png</iconset>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="deleteSelectedButton">
|
||
<property name="text">
|
||
<string>Delete selected</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<widget class="IconCanvasView" name="iconView">
|
||
<property name="dragMode">
|
||
<enum>QGraphicsView::DragMode::RubberBandDrag</enum>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="portHintLabel">
|
||
<property name="text">
|
||
<string>Green points are inputs; red points are outputs. Drag them to place connection anchors.</string>
|
||
</property>
|
||
<property name="wordWrap">
|
||
<bool>true</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QDialogButtonBox" name="buttonBox">
|
||
<property name="standardButtons">
|
||
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
<customwidgets>
|
||
<customwidget>
|
||
<class>IconCanvasView</class>
|
||
<extends>QGraphicsView</extends>
|
||
<header>bedit.gui.graphics.icon_canvas</header>
|
||
</customwidget>
|
||
</customwidgets>
|
||
<resources>
|
||
<include location="../resources/resources.qrc"/>
|
||
</resources>
|
||
<connections>
|
||
<connection>
|
||
<sender>buttonBox</sender>
|
||
<signal>accepted()</signal>
|
||
<receiver>IconEditorDialog</receiver>
|
||
<slot>accept()</slot>
|
||
<hints>
|
||
<hint type="sourcelabel">
|
||
<x>20</x>
|
||
<y>20</y>
|
||
</hint>
|
||
<hint type="destinationlabel">
|
||
<x>20</x>
|
||
<y>20</y>
|
||
</hint>
|
||
</hints>
|
||
</connection>
|
||
<connection>
|
||
<sender>buttonBox</sender>
|
||
<signal>rejected()</signal>
|
||
<receiver>IconEditorDialog</receiver>
|
||
<slot>reject()</slot>
|
||
<hints>
|
||
<hint type="sourcelabel">
|
||
<x>20</x>
|
||
<y>20</y>
|
||
</hint>
|
||
<hint type="destinationlabel">
|
||
<x>20</x>
|
||
<y>20</y>
|
||
</hint>
|
||
</hints>
|
||
</connection>
|
||
</connections>
|
||
</ui>
|