|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.itangcent.idea.plugin.dialog.EasyApiSettingAIGUI"> |
3 | | - <grid id="27dc6" binding="rootPanel" layout-manager="GridLayoutManager" row-count="2" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
| 3 | + <grid id="27dc6" binding="rootPanel" layout-manager="GridLayoutManager" row-count="5" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
4 | 4 | <margin top="0" left="0" bottom="0" right="0"/> |
5 | 5 | <constraints> |
6 | 6 | <xy x="20" y="20" width="500" height="3568"/> |
7 | 7 | </constraints> |
8 | 8 | <properties/> |
9 | 9 | <border type="none"/> |
10 | 10 | <children> |
11 | | - <grid id="e7a0a" layout-manager="GridLayoutManager" row-count="4" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
12 | | - <margin top="0" left="0" bottom="0" right="0"/> |
| 11 | + <!-- Panel 1: General AI Settings --> |
| 12 | + <grid id="e7a0a" layout-manager="GridLayoutManager" row-count="1" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
| 13 | + <margin top="10" left="10" bottom="10" right="10"/> |
13 | 14 | <constraints> |
14 | 15 | <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> |
15 | 16 | </constraints> |
16 | 17 | <properties/> |
17 | | - <border type="none" title="AI Integration Settings"/> |
| 18 | + <border type="etched" title="General AI Settings"/> |
18 | 19 | <children> |
19 | 20 | <component id="c5a5a" class="javax.swing.JCheckBox" binding="aiEnableCheckBox"> |
20 | 21 | <constraints> |
21 | | - <grid row="0" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 22 | + <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
22 | 23 | </constraints> |
23 | 24 | <properties> |
24 | 25 | <text value="Enable AI Integration (beta)"/> |
|
27 | 28 | </component> |
28 | 29 | <component id="f6b7c" class="javax.swing.JCheckBox" binding="aiEnableCacheCheckBox"> |
29 | 30 | <constraints> |
30 | | - <grid row="0" column="2" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 31 | + <grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
31 | 32 | </constraints> |
32 | 33 | <properties> |
33 | 34 | <text value="Enable API Response Caching"/> |
34 | 35 | <toolTipText value="Cache AI API responses to reduce API calls for identical requests"/> |
35 | 36 | </properties> |
36 | 37 | </component> |
| 38 | + </children> |
| 39 | + </grid> |
| 40 | + |
| 41 | + <!-- Panel 2: Provider Settings --> |
| 42 | + <grid id="p2q3r" layout-manager="GridLayoutManager" row-count="2" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
| 43 | + <margin top="10" left="10" bottom="10" right="10"/> |
| 44 | + <constraints> |
| 45 | + <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> |
| 46 | + </constraints> |
| 47 | + <properties/> |
| 48 | + <border type="etched" title="AI Provider Configuration"/> |
| 49 | + <children> |
37 | 50 | <component id="a8c9c" class="javax.swing.JLabel"> |
38 | 51 | <constraints> |
39 | | - <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 52 | + <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
40 | 53 | </constraints> |
41 | 54 | <properties> |
42 | | - <text value="AI Type:"/> |
| 55 | + <text value="AI Provider:"/> |
43 | 56 | </properties> |
44 | 57 | </component> |
45 | 58 | <component id="b7d1c" class="javax.swing.JComboBox" binding="aiProviderComboBox"> |
46 | 59 | <constraints> |
47 | | - <grid row="1" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
| 60 | + <grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
48 | 61 | </constraints> |
49 | 62 | <properties> |
50 | 63 | <model/> |
|
53 | 66 | </component> |
54 | 67 | <component id="d3e4f" class="javax.swing.JLabel"> |
55 | 68 | <constraints> |
56 | | - <grid row="1" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 69 | + <grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
57 | 70 | </constraints> |
58 | 71 | <properties> |
59 | 72 | <text value="Model:"/> |
60 | 73 | </properties> |
61 | 74 | </component> |
62 | 75 | <component id="f5g6h" class="javax.swing.JComboBox" binding="aiModelComboBox"> |
63 | 76 | <constraints> |
64 | | - <grid row="1" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
| 77 | + <grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
65 | 78 | </constraints> |
66 | 79 | <properties> |
67 | 80 | <model/> |
|
70 | 83 | </component> |
71 | 84 | <component id="e7f8g" class="javax.swing.JLabel"> |
72 | 85 | <constraints> |
73 | | - <grid row="2" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 86 | + <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
74 | 87 | </constraints> |
75 | 88 | <properties> |
76 | 89 | <text value="API Key:"/> |
77 | 90 | </properties> |
78 | 91 | </component> |
79 | 92 | <component id="e5a5a" class="javax.swing.JPasswordField" binding="aiApiKeyField"> |
80 | 93 | <constraints> |
81 | | - <grid row="2" column="1" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> |
| 94 | + <grid row="1" column="1" row-span="1" col-span="3" vsize-policy="0" hsize-policy="6" anchor="8" fill="1" indent="0" use-parent-layout="false"> |
82 | 95 | <preferred-size width="150" height="-1"/> |
83 | 96 | </grid> |
84 | 97 | </constraints> |
85 | 98 | <properties> |
86 | 99 | <toolTipText value="Your AI service API key"/> |
87 | 100 | </properties> |
88 | 101 | </component> |
| 102 | + </children> |
| 103 | + </grid> |
| 104 | + |
| 105 | + <!-- Panel 3: Translation Settings --> |
| 106 | + <grid id="s4t5u" layout-manager="GridLayoutManager" row-count="1" column-count="4" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
| 107 | + <margin top="10" left="10" bottom="10" right="10"/> |
| 108 | + <constraints> |
| 109 | + <grid row="2" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> |
| 110 | + </constraints> |
| 111 | + <properties/> |
| 112 | + <border type="etched" title="Translation Settings"/> |
| 113 | + <children> |
89 | 114 | <component id="h8i9j" class="javax.swing.JCheckBox" binding="aiTranslationEnabledCheckBox"> |
90 | 115 | <constraints> |
91 | | - <grid row="3" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 116 | + <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
92 | 117 | </constraints> |
93 | 118 | <properties> |
94 | 119 | <text value="Enable API Translation"/> |
|
97 | 122 | </component> |
98 | 123 | <component id="k1l2m" class="javax.swing.JLabel"> |
99 | 124 | <constraints> |
100 | | - <grid row="3" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 125 | + <grid row="0" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
101 | 126 | </constraints> |
102 | 127 | <properties> |
103 | 128 | <text value="Target Language:"/> |
104 | 129 | </properties> |
105 | 130 | </component> |
106 | 131 | <component id="n3o4p" class="javax.swing.JComboBox" binding="translationTargetLanguageComboBox"> |
107 | 132 | <constraints> |
108 | | - <grid row="3" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
| 133 | + <grid row="0" column="2" row-span="1" col-span="2" vsize-policy="0" hsize-policy="2" anchor="8" fill="1" indent="0" use-parent-layout="false"/> |
109 | 134 | </constraints> |
110 | 135 | <properties> |
111 | 136 | <model/> |
|
114 | 139 | </component> |
115 | 140 | </children> |
116 | 141 | </grid> |
| 142 | + |
| 143 | + <!-- Panel 4: Method Inference Settings --> |
| 144 | + <grid id="t6u7v" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1"> |
| 145 | + <margin top="10" left="10" bottom="10" right="10"/> |
| 146 | + <constraints> |
| 147 | + <grid row="3" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/> |
| 148 | + </constraints> |
| 149 | + <properties/> |
| 150 | + <border type="etched" title="Method Inference Settings"/> |
| 151 | + <children> |
| 152 | + <component id="w9x0y" class="javax.swing.JCheckBox" binding="aiMethodInferEnabledCheckBox"> |
| 153 | + <constraints> |
| 154 | + <grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/> |
| 155 | + </constraints> |
| 156 | + <properties> |
| 157 | + <text value="Enable AI for Method Return Type Inference"/> |
| 158 | + <toolTipText value="Use AI to infer method return types for better API documentation"/> |
| 159 | + </properties> |
| 160 | + </component> |
| 161 | + </children> |
| 162 | + </grid> |
| 163 | + |
117 | 164 | <vspacer id="q5r6s"> |
118 | 165 | <constraints> |
119 | | - <grid row="1" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/> |
| 166 | + <grid row="4" column="0" row-span="1" col-span="1" vsize-policy="6" hsize-policy="1" anchor="0" fill="2" indent="0" use-parent-layout="false"/> |
120 | 167 | </constraints> |
121 | 168 | </vspacer> |
122 | 169 | </children> |
|
0 commit comments