summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJennifer Liebel <jliebel94@gmail.com>2014-11-13 13:10:55 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:57 +0000
commite5f67b2e943366042bed9995327840c5a71eae2a (patch)
tree26b7fdbbca4ca8151209575c71a5efb53839e6d4 /basctl
parent85e384f32b9f38e1cdcb4801dd6d8c66831f784e (diff)
changed timers to idle
Change-Id: I05ccb8bd73070462edcc911956859aa7967b5901
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.hxx2
-rw-r--r--basctl/source/basicide/baside2b.cxx14
2 files changed, 8 insertions, 8 deletions
diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx
index 0f78eb338a12..1008643e7993 100644
--- a/basctl/source/basicide/baside2.hxx
+++ b/basctl/source/basicide/baside2.hxx
@@ -83,7 +83,7 @@ private:
long nCurTextWidth;
SyntaxHighlighter aHighlighter;
- Timer aSyntaxIdleTimer;
+ Idle aSyntaxIdle;
typedef std::set<sal_uInt16> SyntaxLineSet;
SyntaxLineSet aSyntaxLineTable;
DECL_LINK(SyntaxTimerHdl, void *);
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx
index 8d2708c9a723..bbfe171e3452 100644
--- a/basctl/source/basicide/baside2b.cxx
+++ b/basctl/source/basicide/baside2b.cxx
@@ -259,7 +259,7 @@ EditorWindow::~EditorWindow()
n->removePropertiesChangeListener(listener_.get());
}
- aSyntaxIdleTimer.Stop();
+ aSyntaxIdle.Stop();
if ( pEditEngine )
{
@@ -950,8 +950,8 @@ void EditorWindow::CreateEditEngine()
ImplSetFont();
- aSyntaxIdleTimer.SetTimeout( 200 );
- aSyntaxIdleTimer.SetTimeoutHdl( LINK( this, EditorWindow, SyntaxTimerHdl ) );
+ aSyntaxIdle.SetPriority( VCL_IDLE_PRIORITY_LOWER );
+ aSyntaxIdle.SetIdleHdl( LINK( this, EditorWindow, SyntaxTimerHdl ) );
bool bWasDoSyntaxHighlight = bDoSyntaxHighlight;
bDoSyntaxHighlight = false; // too slow for large texts...
@@ -986,7 +986,7 @@ void EditorWindow::CreateEditEngine()
StartListening( *pEditEngine );
- aSyntaxIdleTimer.Stop();
+ aSyntaxIdle.Stop();
bDoSyntaxHighlight = bWasDoSyntaxHighlight;
@@ -1253,7 +1253,7 @@ void EditorWindow::DoDelayedSyntaxHighlight( sal_uLong nPara )
if ( bDelayHighlight )
{
aSyntaxLineTable.insert( nPara );
- aSyntaxIdleTimer.Start();
+ aSyntaxIdle.Start();
}
else
DoSyntaxHighlight( nPara );
@@ -1333,8 +1333,8 @@ void EditorWindow::DestroyProgress()
void EditorWindow::ForceSyntaxTimeout()
{
- aSyntaxIdleTimer.Stop();
- aSyntaxIdleTimer.GetTimeoutHdl().Call(&aSyntaxIdleTimer);
+ aSyntaxIdle.Stop();
+ aSyntaxIdle.GetTimeoutHdl().Call(&aSyntaxIdle);
}