From 3e459e50bf8c119f7964f5838ce557e287b2c89e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 18 Sep 2003 12:24:16 +0000 Subject: Safe parts of idle time wrapping. --- src/Editor.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index bd4669192..d0dfcccc1 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -31,6 +31,16 @@ public: Timer(); }; +/** + */ +class Idler { +public: + bool state; + IdlerID idlerID; + + Idler(); +}; + /** */ class LineLayout { @@ -208,6 +218,8 @@ protected: // ScintillaBase subclass needs access to much of Editor Timer autoScrollTimer; enum { autoScrollDelay = 200 }; + Idler idler; + Point lastClick; unsigned int lastClickTime; int dwellDelay; @@ -273,6 +285,7 @@ protected: // ScintillaBase subclass needs access to much of Editor enum { eWrapNone, eWrapWord } wrapState; int wrapWidth; int docLineLastWrapped; + int docLastLineToWrap; Document *pdoc; @@ -451,7 +464,9 @@ protected: // ScintillaBase subclass needs access to much of Editor void ButtonUp(Point pt, unsigned int curTime, bool ctrl); void Tick(); + bool Idle(); virtual void SetTicking(bool on) = 0; + virtual void SetIdle(bool on) = 0; virtual void SetMouseCapture(bool on) = 0; virtual bool HaveMouseCapture() = 0; void SetFocusState(bool focusState); -- cgit v1.2.3