Fast preview thumbnail is configurable now

This commit is contained in:
Oliver Duis
2010-10-29 19:28:43 +02:00
parent 96adb21c48
commit a78979f971
8 changed files with 22 additions and 70 deletions

View File

@@ -47,47 +47,6 @@ class DirEntry {
}
};
#if 0
class PreviewLoader : public ProcessingThread<DirEntry> {
protected:
PreviewLoaderListener* pl;
public:
PreviewLoader () : pl(NULL) { ProcessingThread<DirEntry>(); }
void setPreviewLoaderListener (PreviewLoaderListener* p) { pl = p; }
void start ();
void process () { ProcessingThread<DirEntry>::process (); }
void process (DirEntry& current);
void remove (Glib::ustring fname);
void end ();
};
// Simple Multithreader: Harnesses two normal loader threads feeded by a round robin
// Same interface as a normal PreviewLoader to minimize effects on code
class PreviewMultiLoader {
protected:
PreviewLoader loadA,loadB;
int next;
public:
PreviewMultiLoader () { next=0; }
void setPreviewLoaderListener (PreviewLoaderListener* p);
void add (DirEntry de);
void start ();
void process ();
void remove (Glib::ustring fname);
void end ();
bool runs ();
void terminate ();
void stop ();
};
#endif
class FileCatalog : public Gtk::VBox,
public DirSelectionListener,
public PreviewLoaderListener,