301 lines
7.8 KiB
XML
301 lines
7.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ImageLoader</class>
|
|
<widget class="QWidget" name="ImageLoader">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<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="titlePanel" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">background-color:#4E679F;</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
<layout class="QGridLayout" name="gridLayout_2" columnstretch="2,1">
|
|
<item row="0" column="0" colspan="2">
|
|
<widget class="QWidget" name="widget_3" native="true">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>80</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="2,1">
|
|
<property name="horizontalSpacing">
|
|
<number>50</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>文件名</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>在...寻找</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QComboBox" name="filenameCBox">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>31</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="rootPathCBox">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>31</height>
|
|
</size>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>系统</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>U盘</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="2">
|
|
<widget class="QWidget" name="widget_4" native="true">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="topMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>3</number>
|
|
</property>
|
|
<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="okBtn">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<family>Ubuntu</family>
|
|
<pointsize>-1</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
font-size: 24px;
|
|
font-family: "Ubuntu";
|
|
color: #228B22;
|
|
}
|
|
QPushButton:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
QPushButton:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✓</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="cancelBtn">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"> QPushButton {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
font-size: 24px;
|
|
color: #228B22;
|
|
}
|
|
|
|
QPushButton:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
|
|
QPushButton:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✕</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="2">
|
|
<widget class="ImagePreviewer" name="imgPreviewWidget" native="true"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>ImagePreviewer</class>
|
|
<extends>QWidget</extends>
|
|
<header>imagepreviewer.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>cancelBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ImageLoader</receiver>
|
|
<slot>hide()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>741</x>
|
|
<y>567</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>399</x>
|
|
<y>299</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>filenameCBox</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>ImageLoader</receiver>
|
|
<slot>onFilenameCBoxIndexChanged(int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>144</x>
|
|
<y>102</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-95</x>
|
|
<y>227</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>rootPathCBox</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>ImageLoader</receiver>
|
|
<slot>onRootPathCBoxIndexChanged(int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>602</x>
|
|
<y>109</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>920</x>
|
|
<y>252</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>okBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>ImageLoader</receiver>
|
|
<slot>onOkBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>654</x>
|
|
<y>577</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>825</x>
|
|
<y>464</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>onFilenameCBoxIndexChanged(int)</slot>
|
|
<slot>onRootPathCBoxIndexChanged(int)</slot>
|
|
<slot>onOkBtnClicked()</slot>
|
|
</slots>
|
|
</ui>
|