*
* \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"
using std::endl;
using std::list;
-
-namespace grfx {
+namespace lyx {
+namespace graphics {
int LoaderQueue::s_numimages_ = 5;
int LoaderQueue::s_millisecs_ = 500;
void LoaderQueue::loadNext()
{
- lyxerr[Debug::GRAPHICS] << "LoaderQueue: "
+ LYXERR(Debug::GRAPHICS) << "LoaderQueue: "
<< cache_queue_.size()
<< " items in the queue" << endl;
int counter = s_numimages_;
{
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;
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();
{
timer.stop();
running_ = false ;
- lyxerr[Debug::GRAPHICS] << "LoaderQueue: I'm going to sleep" << endl;
+ LYXERR(Debug::GRAPHICS) << "LoaderQueue: I'm going to sleep" << endl;
}
}
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx