652 lines
20 KiB
XML
652 lines
20 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ZkEdit</class>
|
|
<widget class="QWidget" name="ZkEdit">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::StrongFocus</enum>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton#closeBtn, QPushButton#checkBtn{
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
font-size: 24px;
|
|
color: #228B22;
|
|
}
|
|
QPushButton#closeBtn:hover,QPushButton#checkBtn:hover{
|
|
background-color: #D1E9FF;
|
|
}
|
|
|
|
QPushButton#closeBtn:pressed,QPushButton#checkBtn:pressed{
|
|
background-color: #BAE7FF;
|
|
}
|
|
|
|
QPushButton {
|
|
background-color: #5396C1;
|
|
color: #ffffff;
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
font-size: 18px;
|
|
font-weight:500;
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #5396C1;
|
|
}
|
|
|
|
QPushButton:disabled {
|
|
background-color: #7C828E;
|
|
color: #606060;
|
|
border-color: #808080;
|
|
}
|
|
|
|
QComboBox {
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
font-size: 14px;
|
|
width: 180px;
|
|
height: 90px;
|
|
padding-left: 10px; /* 文字左边距,避免紧贴边缘 */
|
|
}
|
|
|
|
/* 下拉箭头区域 */
|
|
QComboBox::drop-down {
|
|
border: 1px solid #333333;
|
|
border-radius: 3px;
|
|
width: 30px; /* 箭头区域宽度 */
|
|
background-color: #5396C1;
|
|
}
|
|
|
|
/* 下拉箭头图标 */
|
|
QComboBox::down-arrow {
|
|
image: url(image/down_white.png);
|
|
width: 16px; /* 图标显示宽度 */
|
|
height: 16px; /* 图标显示高度 */
|
|
}
|
|
|
|
/* 悬停状态 */
|
|
QComboBox:hover {
|
|
background-color: #efefef;
|
|
}
|
|
|
|
// 下拉框
|
|
QComboBox QAbstractItemView {
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
font-size: 14px;
|
|
selection-background-color: #5396C1; /* 选中项背景色(稍深) */
|
|
selection-color: #ffffff;
|
|
}
|
|
|
|
QSpinBox::up-button {
|
|
width: 16px; /* 图标显示宽度 */
|
|
height: 16px; /* 图标显示高度 */
|
|
border: 1px solid #333333;
|
|
border-radius: 3px;
|
|
background-color: #5396C1;
|
|
}
|
|
|
|
QSpinBox::up-arrow {
|
|
image: url(image/up_white.png);
|
|
}
|
|
|
|
QSpinBox::down-button {
|
|
width: 16px; /* 图标显示宽度 */
|
|
height: 16px; /* 图标显示高度 */
|
|
border: 1px solid #333333;
|
|
border-radius: 3px;
|
|
background-color: #5396C1;
|
|
}
|
|
|
|
QSpinBox::down-arrow {
|
|
image: url(image/down_white.png);
|
|
}
|
|
</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<item row="2" column="0">
|
|
<layout class="QGridLayout" name="gridLayout_4" columnstretch="2,1">
|
|
<item row="0" column="0">
|
|
<widget class="QScrollArea" name="scrollArea">
|
|
<property name="widgetResizable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
<widget class="zkWidget" name="widgetPic">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>57</x>
|
|
<y>43</y>
|
|
<width>400</width>
|
|
<height>400</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<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="QWidget" name="joystickWidget" native="true">
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<property name="spacing">
|
|
<number>20</number>
|
|
</property>
|
|
<item alignment="Qt::AlignHCenter|Qt::AlignVCenter">
|
|
<widget class="QWidget" name="dirPanel" native="true">
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<property name="spacing">
|
|
<number>10</number>
|
|
</property>
|
|
<item row="2" column="2">
|
|
<widget class="QPushButton" name="pushButtonRight">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/arrowright.png</normaloff>:/icon/arrowright.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QPushButton" name="pushButtonLeft">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/arrowleft.png</normaloff>:/icon/arrowleft.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QPushButton" name="pushButtonEnsure">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/sure.png</normaloff>:/icon/sure.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>24</width>
|
|
<height>24</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QPushButton" name="pushButtonUp">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/arrowup.png</normaloff>:/icon/arrowup.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPushButton" name="pushButtonDown">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>50</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/arrowdown.png</normaloff>:/icon/arrowdown.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="horizontalWidget" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_5">
|
|
<item row="3" column="0">
|
|
<widget class="QSpinBox" name="spinBoxWidthPoint">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>37</height>
|
|
</size>
|
|
</property>
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::NoButtons</enum>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>256</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>12</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QSpinBox" name="spinBoxHeightPoint">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::NoButtons</enum>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>32</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>12</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>高度</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>宽度</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QCheckBox" name="checkBoxTrimPic">
|
|
<property name="text">
|
|
<string>图像裁剪</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QPushButton" name="pushButtonReduce">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>缩小</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/zoomout.png</normaloff>:/icon/zoomout.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="pushButtonEnlarge">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>放大</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/zoomin.png</normaloff>:/icon/zoomin.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QCheckBox" name="checkBoxPicExpand">
|
|
<property name="text">
|
|
<string>图像扩张</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item alignment="Qt::AlignVCenter">
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="1,1">
|
|
<property name="spacing">
|
|
<number>5</number>
|
|
</property>
|
|
<item row="3" column="0">
|
|
<widget class="QPushButton" name="pushButtonOpen">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>打开</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/fileopen.png</normaloff>:/icon/fileopen.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QPushButton" name="pushButtonSave">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>保存</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/filesave.png</normaloff>:/icon/filesave.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QPushButton" name="pushButtonNew">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>新建</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/filenew.png</normaloff>:/icon/filenew.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPushButton" name="pushButtonSaveAs">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>30</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>保存为</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="image.qrc">
|
|
<normaloff>:/icon/filesaveas.png</normaloff>:/icon/filesaveas.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="labelFileName">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>35</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QWidget" name="bottomPanel" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="labelScaleLeval">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>编辑图案</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="closeBtn">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>120</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>✕</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>zkWidget</class>
|
|
<extends>QWidget</extends>
|
|
<header location="global">zkWidget.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="image.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|