• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Révision14699e265671af2e1f58de2c78d4242592538793 (tree)
l'heure2007-03-04 21:33:58
Auteurh677 <h677>
Commiterh677

Message de Log

同IDポップアップの関数の修正

Change Summary

Modification

--- a/Giko.pas
+++ b/Giko.pas
@@ -6509,14 +6509,16 @@ end;
65096509 //! ‚¨‹C‚É“ü‚èƒcƒŠ[‚̃}ƒEƒXƒAƒbƒvƒCƒxƒ“ƒg
65106510 // *************************************************************************
65116511 function TGikoForm.WebBrowserClick(Sender: TObject): WordBool;
6512+const
6513+ LIMIT = 20;
65126514 var
65136515 p : TPoint;
65146516 e: IHTMLElement;
65156517 AID: string;
65166518 stlist : TStringList;
6517- i, count, rc : Integer;
6519+ i, count: Integer;
65186520 body : String;
6519- limited : boolean;
6521+ limited : Integer;
65206522 begin
65216523 result := true;
65226524 try
@@ -6552,13 +6554,14 @@ begin
65526554 end;
65536555 end;
65546556 count := GikoSys.GetSameIDResCount(AID, FActiveContent.Thread);
6555- limited := false;
6556- if count > 20 then begin
6557- rc := GikoUtil.MsgBox(Handle,
6558- '20ŒÂˆÈã‚ ‚è‚Ü‚·‚ªA‚·‚ׂĕ\Ž¦‚µ‚Ü‚·‚©H',
6557+ limited := LIMIT;
6558+ if count > LIMIT then begin
6559+ if (GikoUtil.MsgBox(Handle,
6560+ IntToStr(LIMIT) + 'ŒÂˆÈã‚ ‚è‚Ü‚·‚ªA‚·‚ׂĕ\Ž¦‚µ‚Ü‚·‚©H',
65596561 'IDƒ|ƒbƒvƒAƒbƒvŒx',
6560- MB_YESNO or MB_ICONQUESTION);
6561- limited := rc <> ID_YES;
6562+ MB_YESNO or MB_ICONQUESTION) = ID_YES) then begin
6563+ limited := -1;
6564+ end
65626565 end;
65636566 body := GikoSys.GetSameIDResAnchor(AID, FActiveContent.Thread, limited);
65646567 FActiveContent.IDAnchorPopup(body);
--- a/GikoDataModule.pas
+++ b/GikoDataModule.pas
@@ -2385,24 +2385,27 @@ end;
23852385 //! ‘I‘ð‚µ‚½ƒŒƒX‚ðƒRƒs[‚·‚é
23862386 // *************************************************************************
23872387 procedure TGikoDM.SameIDResAnchorActionExecute(Sender: TObject);
2388+const
2389+ LIMIT = 20;
23882390 var
23892391 ThreadItem : TThreadItem;
2390- No, count, rc : Integer;
2392+ No, count: Integer;
23912393 body : string;
2392- limited: boolean;
2394+ limited: Integer;
23932395 begin
23942396 No := GikoForm.KokoPopupMenu.Tag;
23952397 if No = 0 then Exit;
23962398 ThreadItem := GikoForm.GetActiveContent;
23972399 if ThreadItem = nil then Exit;
23982400 count := GikoSys.GetSameIDResCount(No, GikoForm.ActiveContent.Thread);
2399- limited := false;
2400- if count > 20 then begin
2401- rc := GikoUtil.MsgBox(GikoForm.Handle,
2402- '20ŒÂˆÈã‚ ‚è‚Ü‚·‚ªA‚·‚ׂĕ\Ž¦‚µ‚Ü‚·‚©H',
2401+ limited := LIMIT;
2402+ if count > LIMIT then begin
2403+ if ( GikoUtil.MsgBox(GikoForm.Handle,
2404+ IntToStr(LIMIT) + 'ŒÂˆÈã‚ ‚è‚Ü‚·‚ªA‚·‚ׂĕ\Ž¦‚µ‚Ü‚·‚©H',
24032405 'IDƒ|ƒbƒvƒAƒbƒvŒx',
2404- MB_YESNO or MB_ICONQUESTION);
2405- limited := rc <> ID_YES;
2406+ MB_YESNO or MB_ICONQUESTION) = ID_YES ) then begin
2407+ limited := -1;
2408+ end;
24062409 end;
24072410 body := GikoSys.GetSameIDResAnchor(No, ThreadItem, limited);
24082411 GikoForm.ActiveContent.IDAnchorPopup(body);
--- a/GikoSystem.pas
+++ b/GikoSystem.pas
@@ -216,8 +216,8 @@ type
216216 procedure GetPopupResNumber(URL : string; var stRes, endRes : Int64);
217217
218218 property Bayesian : TGikoBayesian read FBayesian write FBayesian;
219- function GetSameIDResAnchor(const AID : string; ThreadItem: TThreadItem; limited: boolean):string; overload;
220- function GetSameIDResAnchor(AIDNum : Integer; ThreadItem: TThreadItem; limited: boolean):string; overload;
219+ function GetSameIDResAnchor(const AID : string; ThreadItem: TThreadItem; limited: Integer):string; overload;
220+ function GetSameIDResAnchor(AIDNum : Integer; ThreadItem: TThreadItem; limited: Integer):string; overload;
221221 procedure GetSameIDRes(const AID : string; ThreadItem: TThreadItem;var body: TStringList); overload;
222222 procedure GetSameIDRes(AIDNum : Integer; ThreadItem: TThreadItem;var body: TStringList); overload;
223223 function GetSameIDResCount(const AID : string; ThreadItem: TThreadItem):Integer; overload;
@@ -2699,11 +2699,12 @@ end;
26992699 \brief “¯‚¶“Še ID ‚ðŽ‚ÂƒŒƒX‚ðƒAƒ“ƒJ[‚É‚µ‚Ä—ñ‹“
27002700 \param AID ŒÂl‚ð“Á’è‚·‚é“Še ID
27012701 \param ThreadItem —ñ‹“‚·‚éƒXƒŒƒbƒh
2702-\param limited —ñ‹“‚·‚鐔‚𐧌À‚·‚é‚È‚ç True
2702+\param limited —ñ‹“‚·‚鐔‚𐧌À‚·‚é‚È‚ç1ˆÈã
27032703 \return —ñ‹“‚³‚ꂽƒŒƒXƒAƒ“ƒJ[
2704-\todo limited ‚ð Integer ‚É‚·‚é‚©A20 ‚ðŠO‚ɏo‚·
27052704 }
2706-function TGikoSys.GetSameIDResAnchor(const AID : string; ThreadItem: TThreadItem; limited: boolean):string;
2705+function TGikoSys.GetSameIDResAnchor(
2706+ const AID : string; ThreadItem: TThreadItem;
2707+ limited: Integer):string;
27072708 var
27082709 i: integer;
27092710 body: TStringList;
@@ -2720,8 +2721,8 @@ begin
27202721 body := TStringList.Create;
27212722 try
27222723 GetSameIDRes(AID, ThreadItem, body);
2723- if (limited) and (body.Count > 20) then begin
2724- for i := body.Count - 20 to body.Count - 1 do begin
2724+ if (limited > 0) and (body.Count > limited) then begin
2725+ for i := body.Count - limited to body.Count - 1 do begin
27252726 Res.FBody := Res.FBody + '&gt;' + body[i] + ' ';
27262727 end;
27272728 end else begin
@@ -2788,11 +2789,12 @@ end;
27882789 \brief “¯‚¶“Še ID ‚ðŽ‚ÂƒŒƒX‚ð—ñ‹“
27892790 \param AIDNum ŒÂl‚ð“Á’è‚·‚é“Še ID
27902791 \param ThreadItem —ñ‹“‚·‚éƒXƒŒƒbƒh
2791-\param limited —ñ‹“‚·‚鐔‚𐧌À‚·‚é‚È‚ç True
2792+\param limited —ñ‹“‚·‚鐔‚𐧌À‚·‚é‚È‚ç1ˆÈã
27922793 \return
2793-\todo limited ‚ð Integer ‚É‚·‚é‚©A20 ‚ðŠO‚ɏo‚·
27942794 }
2795-function TGikoSys.GetSameIDResAnchor(AIDNum : Integer; ThreadItem: TThreadItem; limited: boolean):string;
2795+function TGikoSys.GetSameIDResAnchor(AIDNum : Integer;
2796+ ThreadItem: TThreadItem;
2797+ limited: Integer):string;
27962798 var
27972799 i: integer;
27982800 body: TStringList;
@@ -2808,10 +2810,10 @@ begin
28082810 body := TStringList.Create;
28092811 try
28102812 GetSameIDRes(AIDNum, ThreadItem, body);
2811- if (limited) and (body.Count > 20) then begin
2812- for i := body.Count - 20 to body.Count - 1 do begin
2813- Res.FBody := Res.FBody + '&gt;' + body[i] + ' ';
2814- end;
2813+ if (limited > 0) and ( body.Count > limited) then begin
2814+ for i := body.Count - 20 to body.Count - 1 do begin
2815+ Res.FBody := Res.FBody + '&gt;' + body[i] + ' ';
2816+ end;
28152817 end else begin
28162818 for i := 0 to body.Count - 1 do begin
28172819 Res.FBody := Res.FBody + '&gt;' + body[i] + ' ';