• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

ギコナビ


Commit MetaInfo

Revision721d5e04fa25c8b3e8a5e62a0def9586ecf39398 (tree)
Zeit2007-01-06 22:55:29
Autorh677 <h677>
Commiterh677

Log Message

マウスジェスチャーで、アクションを呼び出すとき前に、
ジェスチャーをクリアするように変更

Ändern Zusammenfassung

Diff

--- a/Gesture.pas
+++ b/Gesture.pas
@@ -25,7 +25,6 @@ type
2525 function CheckAction(Message: Integer; x, y: Integer): Boolean;
2626 procedure AddAction(sx, sy: Integer);
2727 function AddGesture(Item: string): Integer;
28- procedure ClearGesture;
2928 function Get(Index: integer): string;
3029 procedure Put(Index: integer; Item: string);
3130 public
@@ -37,6 +36,7 @@ type
3736 property GestureCount: Integer read GetGestureCount;
3837 property Margin: Integer read FMargin write FMargin;
3938 function GetGestureStr: string;
39+ procedure ClearGesture;
4040 property OnGestureStart: TNotifyEvent read FOnGestureStart write FOnGestureStart;
4141 property OnGestureMove: TNotifyEvent read FOnGestureMove write FOnGestureMove;
4242 property OnGestureEnd: TNotifyEvent read FOnGestureEnd write FOnGestureEnd;
@@ -161,9 +161,11 @@ begin
161161 FBeginGesture := False;
162162 ReleaseCapture;
163163 if FGestureItemList.Count <> 0 then begin
164- if Assigned(FOnGestureEnd) then
164+ if Assigned(FOnGestureEnd) then begin
165165 FOnGestureEnd(Self);
166- ClearGesture;
166+ end else begin
167+ ClearGesture;
168+ end;
167169 end else begin
168170 FCancelMode := True;
169171 //ƒWƒFƒXƒ`ƒƒ[‚¶‚á‚È‚©‚Á‚½ê‡Aƒ}ƒEƒXDOWN,UP‚ðƒGƒ~ƒ…ƒŒ[ƒg
--- a/Giko.pas
+++ b/Giko.pas
@@ -6782,6 +6782,7 @@ var
67826782 Action: TAction;
67836783 begin
67846784 s := MouseGesture.GetGestureStr;
6785+ MouseGesture.ClearGesture;
67856786 Action := GikoSys.Setting.Gestures.GetGestureAction(s);
67866787 if Action <> nil then
67876788 Action.Execute;
Binary files a/gikoNavi.res and b/gikoNavi.res differ