[zhyi~subversion:16] Changed file size limitation from 500KB to 1MB.
- From: zhyi@kenai.com
- To: commits@zhyi.kenai.com
- Subject: [zhyi~subversion:16] Changed file size limitation from 500KB to 1MB.
- Date: Tue, 28 Jul 2009 02:29:15 +0000
Project: zhyi
Repository: subversion
Revision: 16
Author: zhyi
Date: 2009-07-28 02:29:13 UTC
Link:
Log Message:
------------
Changed file size limitation from 500KB to 1MB.
Revisions:
----------
16
Modified Paths:
---------------
SrtEditor/src/com/zhyi/srteditor/Bundle_zh_CN.properties
SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.java
SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.form
SrtEditor/src/com/zhyi/srteditor/Bundle.properties
Diffs:
------
Index: SrtEditor/src/com/zhyi/srteditor/Bundle.properties
===================================================================
--- SrtEditor/src/com/zhyi/srteditor/Bundle.properties (revision 15)
+++ SrtEditor/src/com/zhyi/srteditor/Bundle.properties (revision 16)
@@ -29,5 +29,5 @@
Cancel=Cancel
BadBeginTime=In the subtitle of index {0}, the format of begin time doesn't
match "hh:MM:ss,mmm".
BadEndTime=In the subtitle of index {0}, the format of end time doesn't
match "hh:MM:ss,mmm".
-FileTooLarge=Seems the chosen file isn't SRT for the size is too large
(>500KB).\nDo you still want to load it?
+FileTooLarge=Seems the chosen file isn't SRT for the size is too large
(>1MB).\nDo you still want to load it?
Warning=Warning
Index: SrtEditor/src/com/zhyi/srteditor/Bundle_zh_CN.properties
===================================================================
--- SrtEditor/src/com/zhyi/srteditor/Bundle_zh_CN.properties (revision 15)
+++ SrtEditor/src/com/zhyi/srteditor/Bundle_zh_CN.properties (revision 16)
@@ -29,5 +29,5 @@
Cancel=\u53D6\u6D88
BadBeginTime=\u5728\u7D22\u5F15\u4E3A {0}
\u7684\u5B57\u5E55\u4E2D\uFF0C\u5F00\u59CB\u65F6\u95F4\u7684\u683C\u5F0F\u4E0D\u7B26\u5408\u201Chh:MM:ss\u201D\u3002
BadEndTime=\u5728\u7D22\u5F15\u4E3A {0}
\u7684\u5B57\u5E55\u4E2D\uFF0C\u7ED3\u675F\u65F6\u95F4\u7684\u683C\u5F0F\u4E0D\u7B26\u5408\u201Chh:MM:ss\u201D\u3002
-FileTooLarge=\u6240\u9009\u7684\u6587\u4EF6\u4F3C\u4E4E\u4E0D\u662F
SRT\uFF0C\u56E0\u4E3A\u5B83\u592A\u5927\u4E86\uFF08>500KB\uFF09\u3002\n\u4F60\u4ECD\u7136\u60F3\u8F7D\u5165\u5B83\u5417\uFF1F
+FileTooLarge=\u6240\u9009\u7684\u6587\u4EF6\u4F3C\u4E4E\u4E0D\u662F
SRT\uFF0C\u56E0\u4E3A\u5B83\u592A\u5927\u4E86\uFF08>1MB\uFF09\u3002\n\u4F60\u4ECD\u7136\u60F3\u8F7D\u5165\u5B83\u5417\uFF1F
Warning=\u8B66\u544A
Index: SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.java
===================================================================
--- SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.java (revision 15)
+++ SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.java (revision 16)
@@ -56,14 +56,15 @@
public class SrtEditorFrame extends JFrame implements ActionListener {
private final ResourceBundle bundle =
ResourceBundle.getBundle("com/zhyi/srteditor/Bundle");
- private final int maxLength = 500 * 1024 * 8;
+ private final int maxLength = 1024 * 1024;
public SrtEditorFrame() {
initComponents();
enableComponents(false);
}
- /** This method is called from within the constructor to
+ /**
+ * This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
@@ -384,7 +385,7 @@
private void loadButtonActionPerformed(ActionEvent evt)
{//GEN-FIRST:event_loadButtonActionPerformed
if (srtChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
File srt = srtChooser.getSelectedFile();
- // The size of an srt file is unlikely larger than 500KB.
+ // The size of an srt file is unlikely larger than 1MB.
if (srt.length() > maxLength) {
int option = JOptionPane.showConfirmDialog(this,
bundle.getString("FileTooLarge"),
Index: SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.form
===================================================================
--- SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.form (revision 15)
+++ SrtEditor/src/com/zhyi/srteditor/SrtEditorFrame.form (revision 16)
@@ -46,7 +46,7 @@
<Group type="102" alignment="1" attributes="0">
<Component id="loadButton" min="-2" max="-2"
attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="pathTextField" pref="270" max="32767"
attributes="0"/>
+ <Component id="pathTextField" pref="304" max="32767"
attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="saveButton" linkSize="7" min="-2"
max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
@@ -70,7 +70,7 @@
</Group>
<Group type="102" alignment="1" attributes="0">
<Component id="aboutButton" min="-2" max="-2"
attributes="0"/>
- <EmptySpace pref="229" max="32767" attributes="0"/>
+ <EmptySpace pref="263" max="32767" attributes="0"/>
<Component id="jProgressBar1" min="-2" max="-2"
attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="toolBar" min="-2" max="-2"
attributes="0"/>
@@ -176,16 +176,16 @@
<Group type="102" alignment="0" attributes="0">
<Component id="beginTimeLabel" min="-2" max="-2"
attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="beginTimeTextField" pref="114"
max="32767" attributes="0"/>
+ <Component id="beginTimeTextField" pref="124"
max="32767" attributes="0"/>
<EmptySpace type="separate" min="-2" max="-2"
attributes="0"/>
<Component id="endTimeLabel" min="-2" max="-2"
attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="endTimeTextField" pref="115"
max="32767" attributes="0"/>
+ <Component id="endTimeTextField" pref="124"
max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="contentLabel" min="-2" max="-2"
attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="contentScrollPane" pref="317"
max="32767" attributes="0"/>
+ <Component id="contentScrollPane" pref="324"
max="32767" attributes="0"/>
</Group>
<Component id="updateSubtitleButton" alignment="1"
min="-2" max="-2" attributes="0"/>
</Group>
@@ -320,12 +320,12 @@
<Group type="102" alignment="0" attributes="0">
<Component id="directionLabel" linkSize="3"
min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="directionComboBox" pref="70"
max="32767" attributes="0"/>
+ <Component id="directionComboBox" pref="71"
max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="beginIndexLabel" linkSize="3"
min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="beginIndexTextField" pref="70"
max="32767" attributes="0"/>
+ <Component id="beginIndexTextField" pref="71"
max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="0" attributes="0">
<Component id="amountLabel" linkSize="3" min="-2"
max="-2" attributes="0"/>
@@ -337,7 +337,7 @@
<Group type="102" alignment="0" attributes="0">
<Component id="endIndexLabel" linkSize="3"
min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
- <Component id="endIndexTextField" pref="70"
max="32767" attributes="0"/>
+ <Component id="endIndexTextField" pref="71"
max="32767" attributes="0"/>
</Group>
<Component id="updateTimeButton" alignment="1"
min="-2" max="-2" attributes="0"/>
</Group>
@@ -371,7 +371,7 @@
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="updateTimeButton" min="-2" max="-2"
attributes="0"/>
- <EmptySpace max="32767" attributes="0"/>
+ <EmptySpace pref="14" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
|
[zhyi~subversion:16] Changed file size limitation from 500KB to 1MB. |
zhyi | 07/28/2009 |





