Proper check for rawzor libraries.
[rawtherapee-fixes.git] / rtgui / batchqueueentry.h
blobd16d96f8f0ed73d4021543e9357f8d134fb83b4a
1 /*
2 * This file is part of RawTherapee.
4 * Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
6 * RawTherapee is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * RawTherapee is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _BATCHQUEUEENTRY_
20 #define _BATCHQUEUEENTRY_
22 #include <gtkmm.h>
23 #include <rtengine.h>
24 #include <thumbbrowserentrybase.h>
25 #include <thumbnail.h>
26 #include <bqentryupdater.h>
28 class BatchQueueEntry;
29 struct BatchQueueEntryIdleHelper {
30 BatchQueueEntry* bqentry;
31 bool destroyed;
32 int pending;
35 class BatchQueueEntry : public ThumbBrowserEntryBase, public BQEntryUpdateListener {
37 guint8* opreview;
38 int origpw, origph;
39 BatchQueueEntryIdleHelper* bqih;
41 public:
42 Thumbnail* thumbnail;
43 rtengine::ProcessingJob* job;
44 rtengine::procparams::ProcParams params;
45 double progress;
46 Glib::ustring outFileName;
47 SaveFormat saveFormat;
49 BatchQueueEntry (rtengine::ProcessingJob* job, const rtengine::procparams::ProcParams& pparams, Glib::ustring fname, guint8* previmg, int prevw, int prevh, Thumbnail* thumbnail=NULL);
50 ~BatchQueueEntry ();
52 void refreshThumbnailImage ();
53 void calcThumbnailSize ();
55 void drawProgressBar (Glib::RefPtr<Gdk::Window> win, Glib::RefPtr<Gdk::GC> gc, const Gdk::Color& foregr, const Gdk::Color& backgr, int x, int w, int y, int h);
57 void removeButtonSet ();
59 // bqentryupdatelistener interface
60 void updateImage (guint8* img, int w, int h);
61 void _updateImage (guint8* img, int w, int h); // inside gtk thread
66 #endif