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 ...@@ -34,7 +34,7 @@ namespace sdr
{ {
namespace contact namespace contact
{ {
class ObjectContactOfPageView : public ObjectContact, public Timer class ObjectContactOfPageView : public ObjectContact, public Idle
{ {
protected: protected:
// the owner of this ObjectContactOfPageView. Set from constructor and not // the owner of this ObjectContactOfPageView. Set from constructor and not
......
...@@ -92,10 +92,10 @@ namespace sdr ...@@ -92,10 +92,10 @@ namespace sdr
{ {
namespace event namespace event
{ {
class TimerEventHandler : public EventHandler, public Timer class TimerEventHandler : public EventHandler, public Idle
{ {
public: public:
TimerEventHandler(sal_uInt32 nTimeout = 1L); TimerEventHandler(IdlePriority ePriority = VCL_IDLE_PRIORITY_HIGH);
virtual ~TimerEventHandler(); virtual ~TimerEventHandler();
......
...@@ -59,7 +59,7 @@ namespace sdr ...@@ -59,7 +59,7 @@ namespace sdr
setPreviewRenderer(((SdrPaintView&)rPageWindow.GetPageView().GetView()).IsPreviewRenderer()); setPreviewRenderer(((SdrPaintView&)rPageWindow.GetPageView().GetView()).IsPreviewRenderer());
// init timer // init timer
SetTimeout(1); SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop(); Stop();
} }
......
...@@ -36,7 +36,7 @@ using namespace com::sun::star; ...@@ -36,7 +36,7 @@ using namespace com::sun::star;
namespace sdr { namespace contact { namespace sdr { namespace contact {
class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Timer class PagePrimitiveExtractor : public ObjectContactOfPagePainter, public Idle
{ {
private: private:
// the ViewObjectContactOfPageObj using this painter // the ViewObjectContactOfPageObj using this painter
...@@ -83,7 +83,7 @@ PagePrimitiveExtractor::PagePrimitiveExtractor( ...@@ -83,7 +83,7 @@ PagePrimitiveExtractor::PagePrimitiveExtractor(
setPreviewRenderer(true); setPreviewRenderer(true);
// init timer // init timer
SetTimeout(1); SetPriority(VCL_IDLE_PRIORITY_HIGH);
Stop(); Stop();
} }
......
...@@ -121,9 +121,9 @@ namespace sdr ...@@ -121,9 +121,9 @@ namespace sdr
{ {
namespace event namespace event
{ {
TimerEventHandler::TimerEventHandler(sal_uInt32 nTimeout) TimerEventHandler::TimerEventHandler(IdlePriority ePriority)
{ {
SetTimeout(nTimeout); SetPriority(ePriority);
Stop(); 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