Skip to content

Commit c5b56c6

Browse files
committed
更新说明文件
1 parent 17341e9 commit c5b56c6

6 files changed

Lines changed: 84 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ xJavaFxTool是使用javaFx开发的实用小工具集,利用业余时间把工
104104
51. Mp3ConvertTool:Mp3转换工具(目前支持网易云音乐.ncm、QQ音乐.qmc转换为mp3格式)(使用[jaudiotagger](http://www.jthink.net/jaudiotagger/)工具)
105105
52. SealBuilderTool:印章生成工具
106106
53. BullsAndCowsGame:猜数字小游戏
107+
54. FileUnicodeTransformationTool:文件编码转换工具
107108

108109
传输工具目前支持功能如下:
109110

README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Support plug-in development, the plug-in jar package can be automatically loaded
104104
51. Mp3ConvertTool: Mp3 conversion tool (currently supports NetEase cloud music.ncm, QQ music.qmc converted to mp3 format) (using [jaudiotagger](http://www.jthink.net/jaudiotagger/) tool)
105105
52. SealBuilderTool: Stamp Generation Tool
106106
53. BullsAndCowsGame: A number guessing game
107+
54. FileUnicodeTransformationTool: File encoding conversion tool
107108

108109
##### The transfer tools currently support the following features:
109110
###### Receiver:
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<?import java.lang.String?>
4+
<?import javafx.collections.FXCollections?>
5+
<?import javafx.geometry.Insets?>
6+
<?import javafx.scene.control.Button?>
7+
<?import javafx.scene.control.CheckBox?>
8+
<?import javafx.scene.control.ChoiceBox?>
9+
<?import javafx.scene.control.ComboBox?>
10+
<?import javafx.scene.control.Label?>
11+
<?import javafx.scene.control.TextArea?>
12+
<?import javafx.scene.control.TextField?>
13+
<?import javafx.scene.layout.AnchorPane?>
14+
<?import javafx.scene.layout.BorderPane?>
15+
<?import javafx.scene.layout.HBox?>
16+
<?import javafx.scene.layout.VBox?>
17+
18+
<AnchorPane prefHeight="475.0" prefWidth="776.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.xwintop.xJavaFxTool.controller.codeTools.FileUnicodeTransformationToolController">
19+
<children>
20+
<BorderPane AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="10.0">
21+
<top>
22+
<VBox alignment="CENTER" spacing="10.0" BorderPane.alignment="CENTER">
23+
<children>
24+
<HBox alignment="CENTER" spacing="10.0">
25+
<children>
26+
<Label text="要转换的文件/文件夹:" />
27+
<TextField fx:id="detectPathTextField" HBox.hgrow="ALWAYS" />
28+
<Button fx:id="detectPathButton" mnemonicParsing="false" onAction="#detectPathAction" text="选择" />
29+
<CheckBox fx:id="includeSubdirectoryCheckBox" mnemonicParsing="false" selected="true" text="包含子目录" />
30+
<Button fx:id="transformationButton" mnemonicParsing="false" onAction="#transformationAction" text="转换" />
31+
</children>
32+
</HBox>
33+
<HBox alignment="CENTER_LEFT" spacing="10.0">
34+
<children>
35+
<Label minWidth="-Infinity" text="文件隐藏状态: " />
36+
<ChoiceBox fx:id="showHideFileChoice" value="所有">
37+
<items>
38+
<FXCollections fx:factory="observableArrayList">
39+
<String fx:value="所有" />
40+
<String fx:value="非隐藏" />
41+
<String fx:value="隐藏文件" />
42+
</FXCollections>
43+
</items>
44+
</ChoiceBox>
45+
<Label minWidth="-Infinity" text="文件名包含字符: " />
46+
<TextField fx:id="fileNameContainsTextField" />
47+
<Label minWidth="-Infinity" text="文件名不包含字符: " />
48+
<TextField fx:id="fileNameNotContainsTextField" />
49+
<CheckBox fx:id="fileNameSupportRegexCheckBox" minWidth="-Infinity" mnemonicParsing="false" selected="true" text="支持正则" />
50+
</children>
51+
</HBox>
52+
<HBox alignment="CENTER_LEFT" spacing="10.0">
53+
<children>
54+
<Label minWidth="-Infinity" text="原编码:" />
55+
<ComboBox fx:id="oldFileUnicodeComboBox" editable="true" promptText="选择原文件编码" />
56+
<Label minWidth="-Infinity" text="转换后编码: " />
57+
<ComboBox fx:id="newFileUnicodeComboBox" editable="true" promptText="想要转换的编码" />
58+
<Label minWidth="-Infinity" text="转换后目录 :" />
59+
<TextField fx:id="newFilePathTextField" promptText="留空为替换原文件" HBox.hgrow="ALWAYS" />
60+
</children>
61+
</HBox>
62+
</children>
63+
<BorderPane.margin>
64+
<Insets bottom="10.0" />
65+
</BorderPane.margin>
66+
</VBox>
67+
</top>
68+
<center>
69+
<TextArea fx:id="resultTextArea" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER" />
70+
</center>
71+
</BorderPane>
72+
</children>
73+
</AnchorPane>

src/main/resources/config/toolFxmlLoaderConfiguration.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@
304304
<url>/com/xwintop/xJavaFxTool/fxmlView/games/BullsAndCowsGame.fxml</url>
305305
<title>BullsAndCowsGame</title>
306306
<menuParentId>games</menuParentId>
307+
</ToolFxmlLoaderConfiguration>
308+
<ToolFxmlLoaderConfiguration>
309+
<url>/com/xwintop/xJavaFxTool/fxmlView/codeTools/FileUnicodeTransformationTool.fxml</url>
310+
<title>FileUnicodeTransformationTool</title>
311+
<menuParentId>codeTools</menuParentId>
307312
<isDefaultShow></isDefaultShow>
308313
</ToolFxmlLoaderConfiguration>
309314

src/main/resources/locale/Menu.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ ClipboardHistoryTool=\u526A\u8D34\u677F\u5386\u53F2\u5DE5\u5177
9191
FileSearchTool=\u6587\u4EF6\u641C\u7D22\u5DE5\u5177
9292
Mp3ConvertTool=Mp3\u8F6C\u6362\u5DE5\u5177
9393
SealBuilderTool=\u5370\u7AE0\u751F\u6210\u5DE5\u5177
94-
BullsAndCowsGame=\u731C\u6570\u5B57\u6E38\u620F
94+
BullsAndCowsGame=\u731C\u6570\u5B57\u6E38\u620F
95+
FileUnicodeTransformationTool=\u6587\u4EF6\u7F16\u7801\u8F6C\u6362\u5DE5\u5177

src/main/resources/locale/Menu_en_US.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ ClipboardHistoryTool=ClipboardHistoryTool
9191
FileSearchTool=FileSearchTool
9292
Mp3ConvertTool=Mp3ConvertTool
9393
SealBuilderTool=SealBuilderTool
94-
BullsAndCowsGame=BullsAndCowsGame
94+
BullsAndCowsGame=BullsAndCowsGame
95+
FileUnicodeTransformationTool=FileUnicodeTransformationTool

0 commit comments

Comments
 (0)