554 lines
14 KiB
XML
554 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>FileManageWidget</class>
|
|
<widget class="QWidget" name="FileManageWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>786</width>
|
|
<height>498</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</size>
|
|
</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>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="styleSheet">
|
|
<string notr="true">QLabel {
|
|
font-size: 30px;
|
|
color: #efefef;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>管理器</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widget" native="true">
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0" colspan="3">
|
|
<widget class="QWidget" name="widget_4" native="true">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<property name="leftMargin">
|
|
<number>50</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QPushButton" name="exportBtn">
|
|
<property name="text">
|
|
<string>导出到U盘</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="importBtn">
|
|
<property name="text">
|
|
<string>从U盘导入</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="selectAllBtn">
|
|
<property name="text">
|
|
<string>全选</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="cancelAllBtn">
|
|
<property name="text">
|
|
<string>取消全选</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="delSelectedBtn">
|
|
<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>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="3">
|
|
<widget class="QWidget" name="widget_5" native="true">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<spacer name="horizontalSpacer_3">
|
|
<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="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>过滤器</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QComboBox" name="filterCBox">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>200</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>文件</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>图标</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>字体</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>全部</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_4">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="3">
|
|
<widget class="QWidget" name="widget_6" native="true">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
<item>
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>硬盘</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer_2">
|
|
<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>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>设备</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="UDiskComboBox" name="udiskSelectBox">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>220</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QWidget" name="systemFileListPanel" native="true">
|
|
<property name="autoFillBackground">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<property name="leftMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>6</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QListWidget" name="systemFileListView">
|
|
<property name="styleSheet">
|
|
<string notr="true">QListWidget {
|
|
border: 1px;
|
|
padding: 5px;
|
|
}
|
|
|
|
QListWidget::item {
|
|
padding: 3px;
|
|
}</string>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::MultiSelection</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QWidget" name="udiskFileListPanel" native="true">
|
|
<property name="autoFillBackground">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="leftMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>2</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QListWidget" name="udiskFileListView">
|
|
<property name="styleSheet">
|
|
<string notr="true">QListWidget {
|
|
border: 1px;
|
|
padding: 5px;
|
|
}
|
|
|
|
QListWidget::item {
|
|
padding: 3px;
|
|
}</string>
|
|
</property>
|
|
<property name="selectionMode">
|
|
<enum>QAbstractItemView::MultiSelection</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0" colspan="2">
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
|
<item>
|
|
<spacer name="horizontalSpacer_5">
|
|
<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>100</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"> QPushButton#closeBtn {
|
|
background-color: #E6F7FF;
|
|
border: 1px solid #87CEEB;
|
|
border-radius: 4px;
|
|
font-size: 24px;
|
|
color: #228B22;
|
|
}
|
|
|
|
QPushButton#closeBtn:hover {
|
|
background-color: #D1E9FF;
|
|
}
|
|
|
|
QPushButton#closeBtn:pressed {
|
|
background-color: #BAE7FF;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>✕</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>UDiskComboBox</class>
|
|
<extends>QComboBox</extends>
|
|
<header>fileManage/UDiskComboBox.h</header>
|
|
<slots>
|
|
<signal>popupShowed()</signal>
|
|
<slot>onUDiskCBoxPopupShowed()</slot>
|
|
</slots>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>closeBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>hide()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>743</x>
|
|
<y>569</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>866</x>
|
|
<y>565</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>exportBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onExportBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>97</x>
|
|
<y>74</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-61</x>
|
|
<y>86</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>importBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onImportBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>194</x>
|
|
<y>74</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-32</x>
|
|
<y>107</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>selectAllBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onSelectAllBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>285</x>
|
|
<y>77</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-49</x>
|
|
<y>137</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>cancelAllBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onCancelAllBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>358</x>
|
|
<y>78</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-35</x>
|
|
<y>159</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>delSelectedBtn</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onDelSelectedBtnClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>443</x>
|
|
<y>85</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>-22</x>
|
|
<y>181</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>udiskSelectBox</sender>
|
|
<signal>popupShowed()</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>updateUDiskDevList()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>620</x>
|
|
<y>167</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>877</x>
|
|
<y>205</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>filterCBox</sender>
|
|
<signal>currentIndexChanged(int)</signal>
|
|
<receiver>FileManageWidget</receiver>
|
|
<slot>onFilterCBoxSelectChanged(int)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>410</x>
|
|
<y>120</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>850</x>
|
|
<y>219</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>onFilterCBoxSelectChanged(int)</slot>
|
|
<slot>onExportBtnClicked()</slot>
|
|
<slot>onImportBtnClicked()</slot>
|
|
<slot>onSelectAllBtnClicked()</slot>
|
|
<slot>onCancelAllBtnClicked()</slot>
|
|
<slot>onDelSelectedBtnClicked()</slot>
|
|
<slot>updateUDiskDevList()</slot>
|
|
</slots>
|
|
</ui>
|