Kaydet (Commit) 9fe256e5 authored tarafından Tobias Madl's avatar Tobias Madl

changed inherited timer to idle

Change-Id: I9da6d08964c32e4aafbc9cebc7840eb517f9c33a
üst 51b02592
......@@ -34,7 +34,7 @@ namespace sdr
{
namespace contact
{
class ObjectContactOfPageView : public ObjectContact, public Timer
class ObjectContactOfPageView : public ObjectContact, public Idle
{
protected:
// the owner of this ObjectContactOfPageView. Set from constructor and not
......
......@@ -92,10 +92,10 @@ namespace sdr
{
namespace event
{
class TimerEventHandler : public EventHandler, public Timer
class TimerEventHandler : public EventHandler, public Idle
{
public:
TimerEventHandler(sal_uInt32 nTimeout = 1L);
TimerEventHandler(IdlePriority ePriority = VCL_IDLE_PRIORITY_HIGH);
virtual ~TimerEventHandler();
......
......@@ -59,7 +59,7 @@ namespace sdr
setPreviewRenderer(((SdrPaintView&)rPageWindow.GetPageView().GetView()).IsPreviewRenderer());
// init timer
SetTimeout(1);
SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop();
}
......
......@@ -36,7 +36,7 @@ using namespace com::sun::star;
namespace sdr { namespace contact {
class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Timer
class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Idle
{
private:
// the ViewObjectContactOfPageObj using this painter
......@@ -83,7 +83,7 @@ PagePrimitiveExtractor::PagePrimitiveExtractor(
setPreviewRenderer(true);
// init timer
SetTimeout(1);
SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop();
}
......
......@@ -121,9 +121,9 @@ namespace sdr
{
namespace event
{
TimerEventHandler::TimerEventHandler(sal_uInt32 nTimeout)
TimerEventHandler::TimerEventHandler(IdlePriority ePriority)
{
SetTimeout(nTimeout);
SetPriority(ePriority);
Stop();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment