diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-16 16:04:00 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-16 16:04:00 +1000 |
commit | 3d327e0ca0eca55b0dc88cb923b7706b7594f38c (patch) | |
tree | 72d1732501753bc44e5646e788b17df37e01c897 /cocoa/ScintillaCocoa.h | |
parent | 2d10600700ebff2919c3e7c19f832fed3eea84bb (diff) | |
download | scintilla-mirror-3d327e0ca0eca55b0dc88cb923b7706b7594f38c.tar.gz |
Implemented find indicator with animation for OS X.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
-rw-r--r-- | cocoa/ScintillaCocoa.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 5ee1f149f..e4179b1bb 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -57,6 +57,8 @@ extern "C" NSString* ScintillaRecPboardType; @class ScintillaView; +@class FindHighlightLayer; + /** * Helper class to be used as timer target (NSTimer). */ @@ -119,6 +121,8 @@ private: NSTimer* tickTimer; NSTimer* idleTimer; + FindHighlightLayer *layerFindIndicator; + protected: PRectangle GetClientRectangle(); Point ConvertPoint(NSPoint point); @@ -127,6 +131,7 @@ protected: virtual void Finalise(); virtual CaseFolder *CaseFolderForEncoding(); virtual std::string CaseMapString(const std::string &s, int caseMapping); + virtual void CancelModes(); public: NSView* ContentView(); @@ -209,6 +214,11 @@ public: void HandleCommand(NSInteger command); virtual void ActiveStateChanged(bool isActive); + + // Find indicator + void ShowFindIndicatorForRange(NSRange charRange, BOOL retaining); + void MoveFindIndicatorWithBounce(BOOL bounce); + void HideFindIndicator(); }; |