#include "frontends/FontLoader.h"
#include "frontends/FontMetrics.h"
-#include "graphics/LoaderQueue.h"
-
#include "support/ExceptionMessage.h"
#include "support/FileName.h"
#include "support/lstrings.h"
QWidget w;
lyxrc.dpi = (w.logicalDpiX() + w.logicalDpiY()) / 2;
- LoaderQueue::setPriority(10,100);
-
guiApp = this;
// Set the cache to 5120 kilobytes which corresponds to screen size of
namespace lyx {
namespace graphics {
-static int s_numimages_ = 5;
-static int s_millisecs_ = 500;
+//static int s_numimages_ = 5;
+//static int s_millisecs_ = 500;
+static int s_numimages_ = 10;
+static int s_millisecs_ = 500;
LoaderQueue & LoaderQueue::get()
{
}
-void LoaderQueue::setPriority(int numimages , int millisecs)
-{
- s_numimages_ = numimages;
- s_millisecs_ = millisecs;
- LYXERR(Debug::GRAPHICS, "LoaderQueue: priority set to "
- << s_numimages_ << " images at a time, "
- << s_millisecs_ << " milliseconds between calls");
-}
-
-
LoaderQueue::LoaderQueue() : timer(s_millisecs_, Timeout::ONETIME),
running_(false)
{
bool running() const;
///get the and only instance of the class
static LoaderQueue & get();
- /** Adjusts the queue priority:
- * numimages is the number of images loaded in a particular call
- * from the timer.
- * millisecs is the time interval between calls.
- * Higher numimages, lower millisecs means higher priority.
- */
- static void setPriority(int numimages, int millisecs);
private:
/// This class is a singleton class... use LoaderQueue::get() instead
LoaderQueue();