ギコナビ
修訂 | 5066ed427345003de51b0f7d77a4ba03ade499d9 (tree) |
---|---|
時間 | 2007-07-25 04:12:36 |
作者 | cvs2git <cvs2git> |
Commiter | cvs2git |
This commit was manufactured by cvs2svn to create tag 'v1_56_0_715'.
@@ -64,8 +64,7 @@ type | ||
64 | 64 | FSortColumn : Integer; |
65 | 65 | FInsertText : String; |
66 | 66 | procedure AddListViewItem(ResWord : TResistWord); |
67 | - procedure SetCategory(combo: TComboBox; selected: String); | |
68 | - function ValidateKey(key, category: String): boolean; | |
67 | + procedure SetCategory(combo: TComboBox); | |
69 | 68 | public |
70 | 69 | { Public é¾ } |
71 | 70 | procedure SetUpFromEditor(); |
@@ -144,35 +143,22 @@ procedure TInputAssistForm.AddButtonClick(Sender: TObject); | ||
144 | 143 | var |
145 | 144 | resWord : TResistWord; |
146 | 145 | begin |
147 | - if (ValidateKey(KeyNameEdit.Text, CategoryNameComboBox.Text)) then begin | |
146 | + if (Length(KeyNameEdit.Text) = 0) then begin | |
147 | + ShowMessage('L[¼ðÝèµÄ¾³¢B'); | |
148 | + end else begin | |
148 | 149 | if (not InputAssistDM.IsDupulicate( |
149 | 150 | KeyNameEdit.Text, CategoryNameComboBox.Text) ) then begin |
150 | 151 | resWord := InputAssistDM.Add(KeyNameEdit.Text); |
151 | 152 | resWord.SetCategory(CategoryNameComboBox.Text); |
152 | 153 | resWord.SetText(TextMemo.Text); |
153 | 154 | AddListViewItem(resWord); |
154 | - SetCategory(CategoryNameComboBox, resWord.GetCategory); | |
155 | + SetCategory(CategoryNameComboBox); | |
155 | 156 | GikoListView1.AlphaSort; |
156 | 157 | end else begin |
157 | 158 | ShowMessage('¯êÌL[¼EJeS¼ÅùÉo^ÏÝÅ·B'); |
158 | 159 | end; |
159 | 160 | end; |
160 | 161 | end; |
161 | -//! L[¼EJeSLø`FbN | |
162 | -function TInputAssistForm.ValidateKey(key, category: String): boolean; | |
163 | -begin | |
164 | - Result := True; | |
165 | - if (Length(key) = 0) then begin | |
166 | - ShowMessage('L[¼ðÝèµÄ¾³¢B'); | |
167 | - Result := False; | |
168 | - end else begin | |
169 | - if (Length(category) = 0) then begin | |
170 | - ShowMessage('JeSðÝèµÄ¾³¢B'); | |
171 | - Result := False; | |
172 | - end; | |
173 | - end; | |
174 | -end; | |
175 | - | |
176 | 162 | //! í{^ºÌCxg |
177 | 163 | procedure TInputAssistForm.DeleteButtonClick(Sender: TObject); |
178 | 164 | begin |
@@ -188,7 +174,9 @@ var | ||
188 | 174 | resWord : TResistWord; |
189 | 175 | begin |
190 | 176 | if GikoListView1.Selected <> nil then begin |
191 | - if (ValidateKey(KeyNameEdit.Text, CategoryNameComboBox.Text)) then begin | |
177 | + if (Length(KeyNameEdit.Text) = 0) then begin | |
178 | + ShowMessage('L[¼ð³µÉÍūܹñB'); | |
179 | + end else begin | |
192 | 180 | if (not InputAssistDM.IsDupulicate( |
193 | 181 | KeyNameEdit.Text, CategoryNameComboBox.Text) ) then begin |
194 | 182 | resWord := TResistWord(GikoListView1.Selected.Data); |
@@ -198,7 +186,7 @@ begin | ||
198 | 186 | // êÌXV |
199 | 187 | GikoListView1.Selected.Caption := resWord.GetKey; |
200 | 188 | GikoListView1.Selected.SubItems[0] := resWord.GetCategory; |
201 | - SetCategory(CategoryNameComboBox, resWord.GetCategory); | |
189 | + SetCategory(CategoryNameComboBox); | |
202 | 190 | GikoListView1.AlphaSort; |
203 | 191 | end else begin |
204 | 192 | ShowMessage('¯êÌL[¼EJeS¼ÅùÉo^ÏÝÅ·B'); |
@@ -309,10 +297,9 @@ begin | ||
309 | 297 | LockWindowUpdate(0); |
310 | 298 | end; |
311 | 299 | //! JeSR{{bNXÝè |
312 | -procedure TInputAssistForm.SetCategory(combo: TComboBox; selected: String); | |
300 | +procedure TInputAssistForm.SetCategory(combo: TComboBox); | |
313 | 301 | var |
314 | 302 | cat : TStringList; |
315 | - i : Integer; | |
316 | 303 | begin |
317 | 304 | // õp |
318 | 305 | cat := TStringList.Create; |
@@ -324,11 +311,6 @@ begin | ||
324 | 311 | combo.Items.AddStrings(cat); |
325 | 312 | combo.ItemIndex := 0; |
326 | 313 | combo.Items.EndUpdate; |
327 | - // IðÏÝÌJeSÉCfbNXðÏX | |
328 | - i := combo.Items.IndexOf(selected); | |
329 | - if (i <> -1) then begin | |
330 | - combo.ItemIndex := i; | |
331 | - end; | |
332 | 314 | finally |
333 | 315 | cat.Free; |
334 | 316 | end; |
@@ -344,9 +326,11 @@ begin | ||
344 | 326 | FInsertText := ''; |
345 | 327 | CloseAction.ShortCut := TShortCut(0); |
346 | 328 | // ÇÁpL[üÍOK |
347 | - SetCategory(CategoryNameComboBox, ''); | |
329 | + SetCategory(CategoryNameComboBox); | |
348 | 330 | end; |
349 | 331 | procedure TInputAssistForm.SetUpFromEditor(); |
332 | +var | |
333 | + cat : TStringList; | |
350 | 334 | begin |
351 | 335 | Self.Caption := 'üÍAVXg'; |
352 | 336 | Panel3.Visible := False; |
@@ -356,7 +340,7 @@ begin | ||
356 | 340 | FInsertText := ''; |
357 | 341 | CloseAction.ShortCut := ShortCut(VK_ESCAPE, []); |
358 | 342 | // õp |
359 | - SetCategory(CategoryComboBox, ''); | |
343 | + SetCategory(CategoryComboBox); | |
360 | 344 | end; |
361 | 345 | function TInputAssistForm.GetInsertText(): String; |
362 | 346 | begin |
@@ -108,17 +108,9 @@ LICENSE | ||
108 | 108 | ------------------------------ |
109 | 109 | ð |
110 | 110 | ------------------------------ |
111 | -2007/08/05 | |
111 | +2007/XX/YY | |
112 | 112 | Version ÊÞÀ56 |
113 | -@X|bvAbv̽iΠ| |
114 | -@\¦µÄ¢éXbhÌNÌURLÌæ¾ANVðÇÁ | |
115 | -@ðXgɵÄEnterÅXbhð\¦·éÆG[ª\¦³êésïÌC³ | |
116 | -@Tab©®Û¶E³ðLøɵĢéÆ«ÉAN®Ì³Å\¦µÄ¢½^uðJæ¤ÉC³ | |
117 | -@üÍAVXgÌJeSÌÚðComboBox» | |
118 | -@Ú×ÝèÅ100X\¦Ìæª\¦Xªñ1Æ\¦³êésïÌC³ | |
119 | -@XNvgë½Îô@\ÌftHgt@C(replace.default)ÌXV | |
120 | - (Abvf[gÌêAè®ÅXV·éKvª èÜ·) | |
121 | -@CXg[ðInno Setup(http://www.jrsoftware.org/)Åìè¼µ½ | |
113 | + X|bvAbv̽iΠ| |
122 | 114 | |
123 | 115 | 2007/04/01 |
124 | 116 | Version ÊÞÀ55 |
@@ -4,5 +4,4 @@ body onload=window\(\) | ||
4 | 4 | GetSpecialFolder\( |
5 | 5 | CodeModule\.Lines |
6 | 6 | ms-its:mhtml: |
7 | -!exec*:*: | |
8 | -$mircexe mircexe | |
\ No newline at end of file | ||
7 | +!exec*:*: | |
\ No newline at end of file |