Skip to content

Commit 0825804

Browse files
author
isayan
committed
bigfix
1 parent ec3d355 commit 0825804

File tree

6 files changed

+79
-55
lines changed

6 files changed

+79
-55
lines changed

help/help.adoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ Encodeing::
529529
[Output => Input]ボタン::
530530
Outputの内容をInputに送ります。
531531

532+
[Output Copy]ボタン::
533+
Outputの内容をクリップボードに送ります。
534+
532535
[Smart Decode]ボタン::
533536
文字列の形式を自動判定しデコードします。
534537

@@ -573,17 +576,23 @@ HTML(<,>,",')::
573576
&#xhh;::
574577
16進数形式の実体参照形式のエンコード、デコードを行います。
575578

576-
\xhh;::
577-
16進数形式によるエンコード、デコードを行います。
579+
\xhh;(unicode)::
580+
unicodeコード単位で16進数形式によるエンコード、デコードを行います。
581+
582+
\xhh;(byte)::
583+
byteコード単位で16進数形式によるエンコード、デコードを行います。
578584

579585
\ooo;::
580586
8進数形式によるエンコード、デコードを行います。
581587

582588
\uhhhh;::
583589
Unicode形式によるエンコード、デコードを行います。
584590

591+
Gzip::
592+
Gzipによる圧縮、解凍を行います。
593+
585594
ZLIB::
586-
ZLIBによるdeflate、inflateを行います
595+
ZLIBによる圧縮、解凍を行います
587596

588597
UTF-7::
589598
UTF-7のエンコード、デコードを行います。

help/help.html

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,10 @@ <h4 id="_translator">3.8.1. Translator</h4>
13351335
<dd>
13361336
<p>Outputの内容をInputに送ります。</p>
13371337
</dd>
1338+
<dt class="hdlist1">[Output Copy]ボタン</dt>
1339+
<dd>
1340+
<p>Outputの内容をクリップボードに送ります。</p>
1341+
</dd>
13381342
<dt class="hdlist1">[Smart Decode]ボタン</dt>
13391343
<dd>
13401344
<p>文字列の形式を自動判定しデコードします。</p>
@@ -1397,9 +1401,13 @@ <h5 id="_encode_decode">Encode/Decode</h5>
13971401
<dd>
13981402
<p>16進数形式の実体参照形式のエンコード、デコードを行います。</p>
13991403
</dd>
1400-
<dt class="hdlist1">\xhh;</dt>
1404+
<dt class="hdlist1">\xhh;(unicode)</dt>
1405+
<dd>
1406+
<p>unicodeコード単位で16進数形式によるエンコード、デコードを行います。</p>
1407+
</dd>
1408+
<dt class="hdlist1">\xhh;(byte)</dt>
14011409
<dd>
1402-
<p>16進数形式によるエンコード、デコードを行います。</p>
1410+
<p>byteコード単位で16進数形式によるエンコード、デコードを行います。</p>
14031411
</dd>
14041412
<dt class="hdlist1">\ooo;</dt>
14051413
<dd>
@@ -1409,9 +1417,13 @@ <h5 id="_encode_decode">Encode/Decode</h5>
14091417
<dd>
14101418
<p>Unicode形式によるエンコード、デコードを行います。</p>
14111419
</dd>
1420+
<dt class="hdlist1">Gzip</dt>
1421+
<dd>
1422+
<p>Gzipによる圧縮、解凍を行います。</p>
1423+
</dd>
14121424
<dt class="hdlist1">ZLIB</dt>
14131425
<dd>
1414-
<p>ZLIBによるdeflate、inflateを行います</p>
1426+
<p>ZLIBによる圧縮、解凍を行います</p>
14151427
</dd>
14161428
<dt class="hdlist1">UTF-7</dt>
14171429
<dd>
@@ -1718,7 +1730,7 @@ <h3 id="_version">3.10. Version</h3>
17181730
</div>
17191731
<div id="footer">
17201732
<div id="footer-text">
1721-
Last updated 2019-03-03 20:21:34 JST
1733+
Last updated 2019-03-07 18:46:09 JST
17221734
</div>
17231735
</div>
17241736
</body>

help/images/custom_jtranscoder.png

16.7 KB
Loading

release/YaguraExtender.jar

38 Bytes
Binary file not shown.

src/yagura/view/JTransCoderTab.form

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridLayout">
7878
<Property name="columns" type="int" value="0"/>
79-
<Property name="rows" type="int" value="13"/>
79+
<Property name="rows" type="int" value="12"/>
8080
</Layout>
8181
<SubComponents>
8282
<Component class="javax.swing.JButton" name="btnSmartDecode">
@@ -314,14 +314,6 @@
314314
</Component>
315315
</SubComponents>
316316
</Container>
317-
<Component class="javax.swing.JRadioButton" name="rdoUTF7">
318-
<Properties>
319-
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
320-
<ComponentRef name="rdoEncodeDecodeGrp"/>
321-
</Property>
322-
<Property name="text" type="java.lang.String" value="UTF-7"/>
323-
</Properties>
324-
</Component>
325317
<Container class="javax.swing.JPanel" name="pnlCompress">
326318

327319
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridLayout">
@@ -350,10 +342,18 @@
350342
<Container class="javax.swing.JPanel" name="pnlILLUTF8">
351343

352344
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridLayout">
353-
<Property name="columns" type="int" value="2"/>
345+
<Property name="columns" type="int" value="3"/>
354346
<Property name="rows" type="int" value="1"/>
355347
</Layout>
356348
<SubComponents>
349+
<Component class="javax.swing.JRadioButton" name="rdoUTF7">
350+
<Properties>
351+
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
352+
<ComponentRef name="rdoEncodeDecodeGrp"/>
353+
</Property>
354+
<Property name="text" type="java.lang.String" value="UTF-7"/>
355+
</Properties>
356+
</Component>
357357
<Component class="javax.swing.JRadioButton" name="rdoILLUTF8">
358358
<Properties>
359359
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
@@ -871,26 +871,27 @@
871871
<Group type="102" attributes="0">
872872
<EmptySpace max="-2" attributes="0"/>
873873
<Group type="103" groupAlignment="0" attributes="0">
874-
<Component id="chkGuess" alignment="0" min="-2" max="-2" attributes="0"/>
875-
<Component id="chkRawMode" alignment="0" min="-2" max="-2" attributes="0"/>
874+
<Group type="102" attributes="0">
875+
<Component id="chkRawMode" min="-2" max="-2" attributes="0"/>
876+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
877+
<Component id="chkGuess" min="-2" max="-2" attributes="0"/>
878+
</Group>
879+
<Component id="cmbEncoding" alignment="1" min="-2" pref="170" max="-2" attributes="0"/>
876880
</Group>
877-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
878-
<Component id="cmbEncoding" pref="113" max="32767" attributes="0"/>
879-
<EmptySpace min="-2" pref="7" max="-2" attributes="0"/>
881+
<EmptySpace max="-2" attributes="0"/>
880882
</Group>
881883
</Group>
882884
</DimensionLayout>
883885
<DimensionLayout dim="1">
884886
<Group type="103" groupAlignment="0" attributes="0">
885887
<Group type="102" attributes="0">
886-
<Component id="chkRawMode" min="-2" max="-2" attributes="0"/>
888+
<Group type="103" groupAlignment="3" attributes="0">
889+
<Component id="chkRawMode" alignment="3" min="-2" max="-2" attributes="0"/>
890+
<Component id="chkGuess" alignment="3" min="-2" max="-2" attributes="0"/>
891+
</Group>
887892
<EmptySpace max="32767" attributes="0"/>
888-
<Component id="chkGuess" min="-2" max="-2" attributes="0"/>
889-
</Group>
890-
<Group type="102" alignment="0" attributes="0">
891-
<EmptySpace max="-2" attributes="0"/>
892893
<Component id="cmbEncoding" min="-2" max="-2" attributes="0"/>
893-
<EmptySpace max="32767" attributes="0"/>
894+
<EmptySpace max="-2" attributes="0"/>
894895
</Group>
895896
</Group>
896897
</DimensionLayout>
@@ -941,12 +942,12 @@
941942
<Group type="103" groupAlignment="0" attributes="0">
942943
<Group type="102" attributes="0">
943944
<EmptySpace max="-2" attributes="0"/>
944-
<Group type="103" groupAlignment="0" attributes="0">
945-
<Component id="btnClear" min="-2" pref="213" max="-2" attributes="0"/>
946-
<Component id="btnOutputToInput" alignment="0" min="-2" pref="213" max="-2" attributes="0"/>
947-
<Component id="btnOutputCopy" alignment="0" min="-2" pref="213" max="-2" attributes="0"/>
945+
<Group type="103" groupAlignment="1" max="-2" attributes="0">
946+
<Component id="btnOutputToInput" alignment="0" pref="176" max="32767" attributes="0"/>
947+
<Component id="btnClear" alignment="0" max="32767" attributes="0"/>
948+
<Component id="btnOutputCopy" max="32767" attributes="0"/>
948949
</Group>
949-
<EmptySpace pref="24" max="32767" attributes="0"/>
950+
<EmptySpace max="32767" attributes="0"/>
950951
</Group>
951952
</Group>
952953
</DimensionLayout>

src/yagura/view/JTransCoderTab.java

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ private void initComponents() {
173173
rdoByteHex = new javax.swing.JRadioButton();
174174
rdoByteOct = new javax.swing.JRadioButton();
175175
rdoUnicodeHex = new javax.swing.JRadioButton();
176-
rdoUTF7 = new javax.swing.JRadioButton();
177176
pnlCompress = new javax.swing.JPanel();
178177
rdoGzip = new javax.swing.JRadioButton();
179178
rdoZLIB = new javax.swing.JRadioButton();
180179
pnlILLUTF8 = new javax.swing.JPanel();
180+
rdoUTF7 = new javax.swing.JRadioButton();
181181
rdoILLUTF8 = new javax.swing.JRadioButton();
182182
cmbIILUTF8 = new javax.swing.JComboBox();
183183
pnlLang = new javax.swing.JPanel();
@@ -329,7 +329,7 @@ private void initComponents() {
329329
pnlTransButton.setLayout(new javax.swing.BoxLayout(pnlTransButton, javax.swing.BoxLayout.PAGE_AXIS));
330330

331331
pnlEncodeDecode.setBorder(javax.swing.BorderFactory.createTitledBorder("Encode/Decode"));
332-
pnlEncodeDecode.setLayout(new java.awt.GridLayout(13, 0));
332+
pnlEncodeDecode.setLayout(new java.awt.GridLayout(12, 0));
333333

334334
btnSmartDecode.setText("Smart Decode");
335335
btnSmartDecode.addActionListener(new java.awt.event.ActionListener() {
@@ -485,10 +485,6 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
485485

486486
pnlEncodeDecode.add(pnlJSHexEnc);
487487

488-
rdoEncodeDecodeGrp.add(rdoUTF7);
489-
rdoUTF7.setText("UTF-7");
490-
pnlEncodeDecode.add(rdoUTF7);
491-
492488
pnlCompress.setLayout(new java.awt.GridLayout(1, 2));
493489

494490
rdoEncodeDecodeGrp.add(rdoGzip);
@@ -501,7 +497,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
501497

502498
pnlEncodeDecode.add(pnlCompress);
503499

504-
pnlILLUTF8.setLayout(new java.awt.GridLayout(1, 2));
500+
pnlILLUTF8.setLayout(new java.awt.GridLayout(1, 3));
501+
502+
rdoEncodeDecodeGrp.add(rdoUTF7);
503+
rdoUTF7.setText("UTF-7");
504+
pnlILLUTF8.add(rdoUTF7);
505505

506506
rdoEncodeDecodeGrp.add(rdoILLUTF8);
507507
rdoILLUTF8.setText("UTF-8(URL)");
@@ -819,22 +819,22 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
819819
.addGroup(pnlEncodingLayout.createSequentialGroup()
820820
.addContainerGap()
821821
.addGroup(pnlEncodingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
822-
.addComponent(chkGuess)
823-
.addComponent(chkRawMode))
824-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
825-
.addComponent(cmbEncoding, 0, 113, Short.MAX_VALUE)
826-
.addGap(7, 7, 7))
822+
.addGroup(pnlEncodingLayout.createSequentialGroup()
823+
.addComponent(chkRawMode)
824+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
825+
.addComponent(chkGuess))
826+
.addComponent(cmbEncoding, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
827+
.addContainerGap())
827828
);
828829
pnlEncodingLayout.setVerticalGroup(
829830
pnlEncodingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
830831
.addGroup(pnlEncodingLayout.createSequentialGroup()
831-
.addComponent(chkRawMode)
832+
.addGroup(pnlEncodingLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
833+
.addComponent(chkRawMode)
834+
.addComponent(chkGuess))
832835
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
833-
.addComponent(chkGuess))
834-
.addGroup(pnlEncodingLayout.createSequentialGroup()
835-
.addContainerGap()
836836
.addComponent(cmbEncoding, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
837-
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
837+
.addContainerGap())
838838
);
839839

840840
pnlInputOutput.add(pnlEncoding, java.awt.BorderLayout.CENTER);
@@ -866,11 +866,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
866866
pnlOutputToInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
867867
.addGroup(pnlOutputToInputLayout.createSequentialGroup()
868868
.addContainerGap()
869-
.addGroup(pnlOutputToInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
870-
.addComponent(btnClear, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
871-
.addComponent(btnOutputToInput, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
872-
.addComponent(btnOutputCopy, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
873-
.addContainerGap(24, Short.MAX_VALUE))
869+
.addGroup(pnlOutputToInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
870+
.addComponent(btnOutputToInput, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
871+
.addComponent(btnClear, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
872+
.addComponent(btnOutputCopy, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
873+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
874874
);
875875
pnlOutputToInputLayout.setVerticalGroup(
876876
pnlOutputToInputLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -1687,6 +1687,8 @@ private void btnDecodeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
16871687
encodePattern = TransUtil.EncodePattern.BYTE_HTML;
16881688
} else if (this.rdoHtmlHex.isSelected()) {
16891689
encodePattern = TransUtil.EncodePattern.HTML;
1690+
} else if (this.rdoGzip.isSelected()) {
1691+
encodePattern = TransUtil.EncodePattern.GZIP;
16901692
} else if (this.rdoZLIB.isSelected()) {
16911693
encodePattern = TransUtil.EncodePattern.ZLIB;
16921694
} else if (this.rdoUTF7.isSelected()) {

0 commit comments

Comments
 (0)