Mercurial > hg > orthanc-stone
comparison Applications/Generic/BasicNativeApplicationContext.h @ 277:a38465cc909f am-2
Qt: refresh ok + mouse interaction ok
author | am@osimis.io |
---|---|
date | Mon, 27 Aug 2018 14:41:49 +0200 |
parents | dc1beee33134 |
children | 8c8da145fefa |
comparison
equal
deleted
inserted
replaced
276:5de5699ad570 | 277:a38465cc909f |
---|---|
39 | 39 |
40 boost::mutex globalMutex_; | 40 boost::mutex globalMutex_; |
41 std::unique_ptr<WidgetViewport> centralViewport_; | 41 std::unique_ptr<WidgetViewport> centralViewport_; |
42 boost::thread updateThread_; | 42 boost::thread updateThread_; |
43 bool stopped_; | 43 bool stopped_; |
44 unsigned int updateDelay_; | 44 unsigned int updateDelayInMs_; |
45 | 45 |
46 public: | 46 public: |
47 class GlobalMutexLocker: public boost::noncopyable | 47 class GlobalMutexLocker: public boost::noncopyable |
48 { | 48 { |
49 boost::mutex::scoped_lock lock_; | 49 boost::mutex::scoped_lock lock_; |
62 | 62 |
63 void Start(); | 63 void Start(); |
64 | 64 |
65 void Stop(); | 65 void Stop(); |
66 | 66 |
67 void SetUpdateDelay(unsigned int delay) // In milliseconds | 67 void SetUpdateDelay(unsigned int delayInMs) |
68 { | 68 { |
69 updateDelay_ = delay; | 69 updateDelayInMs_ = delayInMs; |
70 } | 70 } |
71 | |
71 }; | 72 }; |
72 } | 73 } |