Skip to content

Commit 8465202

Browse files
author
Federico Fissore
committed
FindReplace dialog re-done from scratch using Netbeans. This ensure proper display on every OS. Fixes #2211
1 parent 9ab0ea6 commit 8465202

File tree

5 files changed

+660
-467
lines changed

5 files changed

+660
-467
lines changed
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.8" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="2"/>
6+
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
7+
<Connection code="_(&quot;Find&quot;)" type="code"/>
8+
</Property>
9+
</Properties>
10+
<SyntheticProperties>
11+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
12+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
13+
</SyntheticProperties>
14+
<AuxValues>
15+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
16+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
18+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
19+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
20+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
21+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
22+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
23+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
24+
</AuxValues>
25+
26+
<Layout>
27+
<DimensionLayout dim="0">
28+
<Group type="103" groupAlignment="0" attributes="0">
29+
<Group type="102" attributes="0">
30+
<EmptySpace max="-2" attributes="0"/>
31+
<Group type="103" groupAlignment="0" attributes="0">
32+
<Group type="102" attributes="0">
33+
<Group type="103" groupAlignment="1" attributes="0">
34+
<Component id="replaceLabel" min="-2" max="-2" attributes="0"/>
35+
<Component id="findLabel" min="-2" max="-2" attributes="0"/>
36+
</Group>
37+
<EmptySpace max="-2" attributes="0"/>
38+
<Group type="103" groupAlignment="0" attributes="0">
39+
<Component id="findField" max="32767" attributes="0"/>
40+
<Component id="replaceField" max="32767" attributes="0"/>
41+
<Group type="102" attributes="0">
42+
<Group type="103" groupAlignment="0" attributes="0">
43+
<Component id="searchAllFilesBox" min="-2" max="-2" attributes="0"/>
44+
<Component id="wrapAroundBox" min="-2" max="-2" attributes="0"/>
45+
<Component id="ignoreCaseBox" min="-2" max="-2" attributes="0"/>
46+
</Group>
47+
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
48+
</Group>
49+
</Group>
50+
</Group>
51+
<Component id="buttonsContainer" alignment="0" max="32767" attributes="0"/>
52+
</Group>
53+
<EmptySpace max="-2" attributes="0"/>
54+
</Group>
55+
</Group>
56+
</DimensionLayout>
57+
<DimensionLayout dim="1">
58+
<Group type="103" groupAlignment="0" attributes="0">
59+
<Group type="102" alignment="0" attributes="0">
60+
<EmptySpace max="-2" attributes="0"/>
61+
<Group type="103" groupAlignment="3" attributes="0">
62+
<Component id="findLabel" alignment="3" min="-2" max="-2" attributes="0"/>
63+
<Component id="findField" alignment="3" min="-2" max="-2" attributes="0"/>
64+
</Group>
65+
<EmptySpace max="-2" attributes="0"/>
66+
<Group type="103" groupAlignment="3" attributes="0">
67+
<Component id="replaceLabel" alignment="3" min="-2" max="-2" attributes="0"/>
68+
<Component id="replaceField" alignment="3" min="-2" max="-2" attributes="0"/>
69+
</Group>
70+
<EmptySpace max="-2" attributes="0"/>
71+
<Component id="ignoreCaseBox" min="-2" max="-2" attributes="0"/>
72+
<EmptySpace max="-2" attributes="0"/>
73+
<Component id="wrapAroundBox" min="-2" max="-2" attributes="0"/>
74+
<EmptySpace max="-2" attributes="0"/>
75+
<Component id="searchAllFilesBox" min="-2" max="-2" attributes="0"/>
76+
<EmptySpace max="-2" attributes="0"/>
77+
<Component id="buttonsContainer" min="-2" max="-2" attributes="0"/>
78+
<EmptySpace max="32767" attributes="0"/>
79+
</Group>
80+
</Group>
81+
</DimensionLayout>
82+
</Layout>
83+
<SubComponents>
84+
<Component class="javax.swing.JLabel" name="findLabel">
85+
<Properties>
86+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
87+
<Connection code="_(&quot;Find:&quot;)" type="code"/>
88+
</Property>
89+
</Properties>
90+
<AuxValues>
91+
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
92+
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
93+
</AuxValues>
94+
</Component>
95+
<Component class="javax.swing.JTextField" name="findField">
96+
<Properties>
97+
<Property name="columns" type="int" value="20"/>
98+
</Properties>
99+
</Component>
100+
<Component class="javax.swing.JLabel" name="replaceLabel">
101+
<Properties>
102+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
103+
<Connection code="_(&quot;Replace with:&quot;)" type="code"/>
104+
</Property>
105+
</Properties>
106+
<AuxValues>
107+
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
108+
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
109+
</AuxValues>
110+
</Component>
111+
<Component class="javax.swing.JTextField" name="replaceField">
112+
<Properties>
113+
<Property name="columns" type="int" value="20"/>
114+
</Properties>
115+
</Component>
116+
<Component class="javax.swing.JCheckBox" name="ignoreCaseBox">
117+
<Properties>
118+
<Property name="selected" type="boolean" value="true"/>
119+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
120+
<Connection code="_(&quot;Ignore Case&quot;)" type="code"/>
121+
</Property>
122+
</Properties>
123+
</Component>
124+
<Component class="javax.swing.JCheckBox" name="wrapAroundBox">
125+
<Properties>
126+
<Property name="selected" type="boolean" value="true"/>
127+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
128+
<Connection code="_(&quot;Wrap Around&quot;)" type="code"/>
129+
</Property>
130+
</Properties>
131+
</Component>
132+
<Component class="javax.swing.JCheckBox" name="searchAllFilesBox">
133+
<Properties>
134+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
135+
<Connection code="_(&quot;Search all Sketch Tabs&quot;)" type="code"/>
136+
</Property>
137+
</Properties>
138+
</Component>
139+
<Container class="javax.swing.JPanel" name="buttonsContainer">
140+
141+
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/>
142+
<SubComponents>
143+
<Component class="javax.swing.JButton" name="findButton">
144+
<Properties>
145+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
146+
<Connection code="_(&quot;Find&quot;)" type="code"/>
147+
</Property>
148+
</Properties>
149+
<Events>
150+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="findButtonActionPerformed"/>
151+
</Events>
152+
</Component>
153+
<Component class="javax.swing.JButton" name="previousButton">
154+
<Properties>
155+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
156+
<Connection code="_(&quot;Previous&quot;)" type="code"/>
157+
</Property>
158+
</Properties>
159+
<Events>
160+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="previousButtonActionPerformed"/>
161+
</Events>
162+
</Component>
163+
<Component class="javax.swing.JButton" name="replaceFindButton">
164+
<Properties>
165+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
166+
<Connection code="_(&quot;Replace &amp; Find&quot;)" type="code"/>
167+
</Property>
168+
</Properties>
169+
<Events>
170+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="replaceFindButtonActionPerformed"/>
171+
</Events>
172+
</Component>
173+
<Component class="javax.swing.JButton" name="replaceButton">
174+
<Properties>
175+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
176+
<Connection code="_(&quot;Replace&quot;)" type="code"/>
177+
</Property>
178+
</Properties>
179+
<Events>
180+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="replaceButtonActionPerformed"/>
181+
</Events>
182+
</Component>
183+
<Component class="javax.swing.JButton" name="replaceAllButton">
184+
<Properties>
185+
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
186+
<Connection code="_(&quot;Replace All&quot;)" type="code"/>
187+
</Property>
188+
</Properties>
189+
<Events>
190+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="replaceAllButtonActionPerformed"/>
191+
</Events>
192+
</Component>
193+
</SubComponents>
194+
</Container>
195+
</SubComponents>
196+
</Form>

0 commit comments

Comments
 (0)