]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/LoaderQueue.C
Rename insets/insetxxx to insets/InsetXxx, part 1
[lyx.git] / src / graphics / LoaderQueue.C
index 1647e472c60ecdb75b5e9b61b1f83ea23b7ba7e2..aca489598b4375237c75094a18d7361101f9a3e4 100644 (file)
@@ -5,12 +5,13 @@
  *
  * \author Alfredo Braunstein
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "LoaderQueue.h"
+#include "GraphicsCacheItem.h"
 
 #include "debug.h"
 
@@ -19,8 +20,8 @@
 using std::endl;
 using std::list;
 
-
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 int LoaderQueue::s_numimages_ = 5;
 int LoaderQueue::s_millisecs_ = 500;
@@ -35,7 +36,7 @@ LoaderQueue & LoaderQueue::get()
 
 void LoaderQueue::loadNext()
 {
-       lyxerr[Debug::GRAPHICS] << "LoaderQueue: "
+       LYXERR(Debug::GRAPHICS) << "LoaderQueue: "
                                << cache_queue_.size()
                                << " items in the queue" << endl;
        int counter = s_numimages_;
@@ -58,7 +59,7 @@ void LoaderQueue::setPriority(int numimages , int millisecs)
 {
        s_numimages_ = numimages;
        s_millisecs_ = millisecs;
-       lyxerr[Debug::GRAPHICS] << "LoaderQueue:  priority set to "
+       LYXERR(Debug::GRAPHICS) << "LoaderQueue:  priority set to "
                                << s_numimages_ << " images at a time, "
                                << s_millisecs_ << " milliseconds between calls"
                                << endl;
@@ -74,7 +75,7 @@ LoaderQueue::LoaderQueue() : timer(s_millisecs_, Timeout::ONETIME),
 
 void LoaderQueue::startLoader()
 {
-       lyxerr[Debug::GRAPHICS] << "LoaderQueue: waking up" << endl;
+       LYXERR(Debug::GRAPHICS) << "LoaderQueue: waking up" << endl;
        running_ = true ;
        timer.setTimeout(s_millisecs_);
        timer.start();
@@ -85,7 +86,7 @@ void LoaderQueue::stopLoader()
 {
        timer.stop();
        running_ = false ;
-       lyxerr[Debug::GRAPHICS] << "LoaderQueue: I'm going to sleep" << endl;
+       LYXERR(Debug::GRAPHICS) << "LoaderQueue: I'm going to sleep" << endl;
 }
 
 
@@ -113,4 +114,5 @@ void LoaderQueue::touch(Cache::ItemPtr const & item)
 }
 
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx