Browse Source

修改UI

master v1.0.3
tianzhendong 2 years ago
parent
commit
ee306315e9
  1. 2
      CMakeLists.txt
  2. 17
      README.md
  3. BIN
      assets/img.png
  4. BIN
      assets/img_1.png
  5. BIN
      assets/img_2.png
  6. BIN
      resources/close.png
  7. BIN
      resources/fullscreen3.png
  8. BIN
      resources/fullscreen4.png
  9. 11
      resources/img.qrc
  10. BIN
      resources/min.png
  11. BIN
      screenshoot/img_3.png
  12. BIN
      screenshoot/img_4.png
  13. BIN
      screenshoot/img_5.png
  14. 4
      src/main.cpp
  15. 94
      src/mainwindow.cpp
  16. 31
      src/mainwindow.h
  17. 261
      src/mainwindow.ui
  18. 549
      src/widget.ui

2
CMakeLists.txt

@ -19,7 +19,7 @@ find_package(Qt5 COMPONENTS
REQUIRED) REQUIRED)
# qrc # qrc
qt5_add_resources(QRC_FILES resources/img.qrc) #qt5_add_resources(QRC_FILES resources/img.qrc)
#include_directories(resources #include_directories(resources
# src) # src)

17
README.md

@ -1,5 +1,5 @@
# 文件重命名工具 # 文件重命名工具
![](./assets/img.png) ![](screenshoot/img_3.png)
## 环境 ## 环境
- Clion 2022.1.2 - Clion 2022.1.2
- qt 5.14.2 - qt 5.14.2
@ -31,25 +31,32 @@
## 重复文件处理 ## 重复文件处理
当前文件夹有重复文件时,在新名后加“-旧名”字符串 当前文件夹有重复文件时,在新名后加“-旧名”字符串
## 使用 ## Release
[v1.0.2 windows release](https://github.com/tianzhendong/FileRename/releases/download/v1.0.2/FileRename.zip ### windows
[windowsRelease-v1.0.2](https://github.com/tianzhendong/FileRename/releases/download/v1.0.2/FileRename.zip
)
[windowsRelease-v1.0.3](https://github.com/tianzhendong/FileRename/releases/download/v1.0.3/windowsRelease-v1.0.3.zip
) )
### 替换模式 ### 替换模式
- 输入新旧字符串,选择替换模式,点击确认 - 输入新旧字符串,选择替换模式,点击确认
- 选择文件或者文件夹 - 选择文件或者文件夹
![](./assets/img_2.png) ![](screenshoot/img_4.png)
### 时间戳模式 ### 时间戳模式
- 选择时间戳模式,点击确认 - 选择时间戳模式,点击确认
- 选择文件或者文件夹 - 选择文件或者文件夹
![](./assets/img_1.png) ![](screenshoot/img_5.png)
## 更改日志 ## 更改日志
### 20220620 v1.0.2 ### 20220620 v1.0.2
- [x] 新增打开文件目录功能(右下角listwidget支持) - [x] 新增打开文件目录功能(右下角listwidget支持)
- [x] 新增删除文件功能(右下角listwidget支持) - [x] 新增删除文件功能(右下角listwidget支持)
### 20220620 v1.0.3
- [x] 修改UI

BIN
assets/img.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
assets/img_1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
assets/img_2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

BIN
resources/close.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 342 B

BIN
resources/fullscreen3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 352 B

BIN
resources/fullscreen4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

11
resources/img.qrc

@ -1,11 +0,0 @@
<RCC>
<qresource prefix="img">
<file>favicon.ico</file>
</qresource>
<qresource prefix="png">
<file>close.png</file>
<file>fullscreen3.png</file>
<file>fullscreen4.png</file>
<file>min.png</file>
</qresource>
</RCC>

BIN
resources/min.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

BIN
screenshoot/img_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
screenshoot/img_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
screenshoot/img_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

4
src/main.cpp

@ -1,10 +1,10 @@
#include <QApplication> #include <QApplication>
#include "widget.h" #include "mainwindow.h"
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
QApplication a(argc, argv); QApplication a(argc, argv);
qRegisterMetaType<QHash<QByteArray,QStringList>>("QHash<QByteArray,QStringList>"); qRegisterMetaType<QHash<QByteArray,QStringList>>("QHash<QByteArray,QStringList>");
Widget w; MainWindow w;
w.show(); w.show();
return QApplication::exec(); return QApplication::exec();
} }

94
src/widget.cpp → src/mainwindow.cpp

@ -1,40 +1,17 @@
// //
// Created by 12038 on 2022/6/15. // Created by 12038 on 2022/6/20.
// //
// You may need to build the project (run Qt uic code generator) to get "ui_Widget.h" resolved // You may need to build the project (run Qt uic code generator) to get "ui_MainWindow.h" resolved
#include "widget.h" #include "mainwindow.h"
#include "ui_widget.h" #include "ui_MainWindow.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
//取消菜单栏
this->setWindowFlags(Qt::FramelessWindowHint);
//阴影边框效果
QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect();
shadow->setBlurRadius(10);
shadow->setColor(Qt::black);
shadow->setOffset(0);
ui->shadowWidget->setGraphicsEffect(shadow);
//父窗口透明
this->setAttribute(Qt::WA_TranslucentBackground);
//最大化最小化关闭功能实现
connect(ui->btnMax, SIGNAL(clicked()), this, SLOT(btnMaxClickedSlot()));
connect(ui->btnMin, SIGNAL(clicked()), this, SLOT(btnMinClickedSlot()));
connect(ui->btnClose, SIGNAL(clicked()), this, SLOT(btnCloseClickedSlot()));
ui->btnMin->setStyleSheet("border-image: url(:/png/min.png)");
ui->btnMax->setStyleSheet("border-image: url(:/png/fullscreen3.png)");
ui->btnClose->setStyleSheet("border-image: url(:/png/close.png)");
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
this->setWindowTitle("文件批量重命名工具-byTianZD");
renameFile = new Rename(); renameFile = new Rename();
myThread = new QThread(); myThread = new QThread();
@ -85,10 +62,10 @@ Widget::Widget(QWidget *parent)
renameFile, SLOT(openDirSlot())); renameFile, SLOT(openDirSlot()));
connect(renameFile, SIGNAL(delActionFeedbackSignal(bool)), connect(renameFile, SIGNAL(delActionFeedbackSignal(bool)),
this, SLOT(delActionFeedbackSlot(bool))); this, SLOT(delActionFeedbackSlot(bool)));
} }
Widget::~Widget() MainWindow::~MainWindow() {
{
renameFile->deleteLater(); renameFile->deleteLater();
myThread->exit(); myThread->exit();
myThread->wait(10 * 1000); myThread->wait(10 * 1000);
@ -97,29 +74,7 @@ Widget::~Widget()
delete ui; delete ui;
} }
void Widget::mousePressEvent(QMouseEvent *event) void MainWindow::closeEvent(QCloseEvent *event)
{
// QWidget::mousePressEvent(event);
QPoint mouseStartPoint = event->globalPos();
QPoint windowLeftTopPoint = this->geometry().topLeft();
this->mousePosInWindow = mouseStartPoint - windowLeftTopPoint;
}
void Widget::mouseMoveEvent(QMouseEvent *event)
{
// QWidget::mouseMoveEvent(event);
if(this->mousePosInWindow == QPoint()) return;
QPoint mousePoint = event->globalPos();
QPoint windowLeftTopPoint = mousePoint - this->mousePosInWindow;
this->move(windowLeftTopPoint);
}
void Widget::mouseReleaseEvent(QMouseEvent *)
{
this->mousePosInWindow = QPoint();
}
void Widget::closeEvent(QCloseEvent *event)
{ {
QMessageBox::StandardButton button; QMessageBox::StandardButton button;
button=QMessageBox::question(this,tr("退出程序"),QString(tr("确认退出程序?")),QMessageBox::Yes|QMessageBox::No); button=QMessageBox::question(this,tr("退出程序"),QString(tr("确认退出程序?")),QMessageBox::Yes|QMessageBox::No);
@ -133,32 +88,27 @@ void Widget::closeEvent(QCloseEvent *event)
} }
} }
void Widget::btnMaxClickedSlot() void MainWindow::btnMaxClickedSlot()
{ {
ui->btnMax->setStyleSheet("border-image: url(:/png/fullscreen4.png)");
if(this->isMaximized()){ if(this->isMaximized()){
ui->layoutMain->setMargin(9);
ui->btnMax->setStyleSheet("border-image: url(:/png/fullscreen3.png)");
this->showNormal(); this->showNormal();
} }
else{ else{
ui->layoutMain->setMargin(0);
ui->btnMax->setStyleSheet("border-image: url(:/png/fullscreen4.png)");
this->showMaximized(); this->showMaximized();
} }
} }
void Widget::btnMinClickedSlot() void MainWindow::btnMinClickedSlot()
{ {
this->showMinimized(); this->showMinimized();
} }
void Widget::btnCloseClickedSlot() void MainWindow::btnCloseClickedSlot()
{ {
this->close(); this->close();
} }
void Widget::selectFileClickedSlot() { void MainWindow::selectFileClickedSlot() {
if(!confirmFlag){ if(!confirmFlag){
QMessageBox::information(this, "提示", "请先确认配置信息:模式为"+ui->comboBox->currentText()); QMessageBox::information(this, "提示", "请先确认配置信息:模式为"+ui->comboBox->currentText());
return; return;
@ -177,7 +127,7 @@ void Widget::selectFileClickedSlot() {
emit fileSelectedSignal(path, ui->leMd5Show->text(), ui->lineEdit->text()); emit fileSelectedSignal(path, ui->leMd5Show->text(), ui->lineEdit->text());
} }
void Widget::selectDirClickedSlot() { void MainWindow::selectDirClickedSlot() {
if(!confirmFlag){ if(!confirmFlag){
QMessageBox::information(this, "提示", "请先确认配置信息:模式为"+ui->comboBox->currentText()); QMessageBox::information(this, "提示", "请先确认配置信息:模式为"+ui->comboBox->currentText());
return; return;
@ -192,20 +142,20 @@ void Widget::selectDirClickedSlot() {
emit getFilesSignal(dirPathUrl, ui->leMd5Show->text(), ui->lineEdit->text()); emit getFilesSignal(dirPathUrl, ui->leMd5Show->text(), ui->lineEdit->text());
} }
void Widget::processSlot(const int &now, const int &total) { void MainWindow::processSlot(const int &now, const int &total) {
ui->progressBar->setMaximum(total); ui->progressBar->setMaximum(total);
ui->progressBar->setValue(now); ui->progressBar->setValue(now);
} }
void Widget::oldFileNameSlot(const QString &oldName) { void MainWindow::oldFileNameSlot(const QString &oldName) {
ui->listWidget->addItem(oldName); ui->listWidget->addItem(oldName);
} }
void Widget::newFileNameSlot(const QString &newName) { void MainWindow::newFileNameSlot(const QString &newName) {
ui->listWidget_2->addItem(newName); ui->listWidget_2->addItem(newName);
} }
void Widget::btnConfirmClickedSlot() { void MainWindow::btnConfirmClickedSlot() {
QString s = ui->lineEdit->text(); QString s = ui->lineEdit->text();
if(s.contains('/') || s.contains('\\') || s.contains('<') || s.contains('>') || s.contains('?') || s.contains('*') || s.contains(':') || s.contains('|') || s.contains('"')){ if(s.contains('/') || s.contains('\\') || s.contains('<') || s.contains('>') || s.contains('?') || s.contains('*') || s.contains(':') || s.contains('|') || s.contains('"')){
QMessageBox::critical(this, "错误", "文件名中不能包含/\\|<>:?*等字符"); QMessageBox::critical(this, "错误", "文件名中不能包含/\\|<>:?*等字符");
@ -214,7 +164,7 @@ void Widget::btnConfirmClickedSlot() {
confirmFlag = true; confirmFlag = true;
} }
void Widget::on_listWidget_customContextMenuRequested(const QPoint &pos) void MainWindow::on_listWidget_customContextMenuRequested(const QPoint &pos)
{ {
// ui->listWidget_2->currentTextChanged() // ui->listWidget_2->currentTextChanged()
QMenu *menu = new QMenu(this); QMenu *menu = new QMenu(this);
@ -237,7 +187,7 @@ void Widget::on_listWidget_customContextMenuRequested(const QPoint &pos)
delete menu; delete menu;
} }
void Widget::delActionFeedbackSlot(bool flag) { void MainWindow::delActionFeedbackSlot(bool flag) {
if(flag){ if(flag){
qDebug()<<"remove item"; qDebug()<<"remove item";
QListWidgetItem * item = ui->listWidget_2->currentItem(); QListWidgetItem * item = ui->listWidget_2->currentItem();

31
src/widget.h → src/mainwindow.h

@ -1,39 +1,36 @@
// //
// Created by 12038 on 2022/6/15. // Created by 12038 on 2022/6/20.
// //
#ifndef DUPLICATEFILESCHECK_WIDGET_H #ifndef DUPLICATEFILESCHECK_MAINWINDOW_H
#define DUPLICATEFILESCHECK_WIDGET_H #define DUPLICATEFILESCHECK_MAINWINDOW_H
#include <QMainWindow>
#include <QMouseEvent> #include <QMouseEvent>
#include <QWidget>
#include <QPoint> #include <QPoint>
#include <QGraphicsDropShadowEffect> #include <QGraphicsDropShadowEffect>
#include <QMessageBox> #include <QMessageBox>
#include "Rename.h" #include "rename.h"
#include <QDir> #include <QDir>
#include <QDebug> #include <QDebug>
#include <QThread> #include <QThread>
#include <QFileDialog> #include <QFileDialog>
#include <QMenu> #include <QMenu>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { class Widget; } namespace Ui { class MainWindow; }
QT_END_NAMESPACE QT_END_NAMESPACE
class Widget : public QWidget class MainWindow : public QMainWindow {
{
Q_OBJECT Q_OBJECT
public: public:
Widget(QWidget *parent = nullptr); explicit MainWindow(QWidget *parent = nullptr);
~Widget(); ~MainWindow() override;
protected: protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void closeEvent(QCloseEvent *event); void closeEvent(QCloseEvent *event);
signals: signals:
@ -59,7 +56,7 @@ private slots:
void on_listWidget_customContextMenuRequested(const QPoint &pos); void on_listWidget_customContextMenuRequested(const QPoint &pos);
private: private:
Ui::Widget *ui; Ui::MainWindow *ui;
Rename * renameFile; Rename * renameFile;
QThread *myThread; QThread *myThread;
@ -68,9 +65,7 @@ private:
QAction *delAction; QAction *delAction;
QAction *openAction; QAction *openAction;
}; };
#endif //DUPLICATEFILESCHECK_WIDGET_H #endif //DUPLICATEFILESCHECK_MAINWINDOW_H

261
src/mainwindow.ui

@ -0,0 +1,261 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>777</width>
<height>612</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QGridLayout" name="gridLayout_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 row="0" column="0">
<widget class="QWidget" name="widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="title">
<string>配置</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="4">
<widget class="QComboBox" name="comboBox">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="editable">
<bool>false</bool>
</property>
<property name="duplicatesEnabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>替换</string>
</property>
</item>
<item>
<property name="text">
<string>时间戳</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="leMd5Show">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>新</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLineEdit" name="lineEdit">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>旧</string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QPushButton" name="btnConfirm">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>确认</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>重命名</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="btnSelectFile">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>选择文件</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnSelectDir">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>选择目录</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineDIrShow"/>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QListWidget" name="listWidget">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>0</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>

549
src/widget.ui

@ -1,549 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Widget</class>
<widget class="QWidget" name="Widget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>950</width>
<height>668</height>
</rect>
</property>
<property name="windowTitle">
<string>Widget</string>
</property>
<layout class="QGridLayout" name="layoutMain">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="shadowWidget" native="true">
<property name="styleSheet">
<string notr="true">#shadowWidget{
background-color: rgb(255, 255, 255);
border-radius: 5px;
}
</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<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>
<property name="spacing">
<number>0</number>
</property>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<item>
<widget class="QLabel" name="labelTitle">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>微软雅黑</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string> 文件重命名工具</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnMin">
<property name="minimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:none;
border-image: url(../resources/min.jpeg)
}
QPushButton:hover
{
background-color: rgb(232, 232, 232);
}
QPushButton:pressed
{
background-color: rgb(162, 162, 162);
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnMin_2">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>30</width>
<height>10</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>10</height>
</size>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:none;
}
QPushButton:hover
{
background-color: rgb(232, 232, 232);
}
QPushButton:pressed
{
background-color: rgb(162, 162, 162);
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnMax">
<property name="minimumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:none;
border-image: url(../resources/fullscreen3.jpeg)
}
QPushButton:hover
{
background-color: rgb(232, 232, 232);
}
QPushButton:pressed
{
background-color: rgb(162, 162, 162);
}</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnMin_3">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>30</width>
<height>10</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>10</height>
</size>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:none;
}
QPushButton:hover
{
background-color: rgb(232, 232, 232);
}
QPushButton:pressed
{
background-color: rgb(162, 162, 162);
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnClose">
<property name="minimumSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>30</height>
</size>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton
{
border:none;
border-top-right-radius: 5px;
border-image: url(../resources/close.jpeg)
}
QPushButton:hover
{
background-color: rgb(253, 0, 0);
}
QPushButton:pressed
{
background-color: rgb(211, 0, 0);
}
</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QWidget" name="widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="topMargin">
<number>10</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="title">
<string>配置</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="4">
<widget class="QComboBox" name="comboBox">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="editable">
<bool>false</bool>
</property>
<property name="duplicatesEnabled">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>替换</string>
</property>
</item>
<item>
<property name="text">
<string>时间戳</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="leMd5Show">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>新</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLineEdit" name="lineEdit">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>旧</string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QPushButton" name="btnConfirm">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>确认</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>重命名</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="btnSelectFile">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>选择文件</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="btnSelectDir">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QPushButton:hover
{
background-color: #00aaff;
}
QPushButton:pressed
{
background-color: rgb(0, 124, 186);
}</string>
</property>
<property name="text">
<string>选择目录</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineDIrShow"/>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QListWidget" name="listWidget">
<property name="enabled">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget_2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>0</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Loading…
Cancel
Save