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 _BATCHQUEUEPANEL_
20 #define _BATCHQUEUEPANEL_
23 #include <batchqueue.h>
24 #include <saveformatpanel.h>
27 class BatchQueuePanel
: public Gtk::VBox
,
28 public BatchQueueListener
,
29 public FormatChangeListener
{
31 Gtk::Button
* zoomInButton
;
32 Gtk::Button
* zoomOutButton
;
33 Gtk::ToggleButton
* start
;
34 Gtk::ToggleButton
* stop
;
35 Gtk::CheckButton
* autoStart
;
36 sigc::connection startConnection
;
37 sigc::connection stopConnection
;
39 Gtk::Entry
* outdirTemplate
;
40 Gtk::FileChooserButton
* outdirFolder
;
41 Gtk::RadioButton
* useTemplate
;
42 Gtk::RadioButton
* useFolder
;
43 SaveFormatPanel
* saveFormatPanel
;
44 Gtk::Frame
*fdir
, *fformat
;
46 Gtk::Image
* hAlignIcon
;
47 Gtk::Image
* vAlignIcon
;
51 BatchQueue
* batchQueue
;
59 void setParent (RTWindow
* p
) { parent
= p
; }
60 void arrangementButtonPressed ();
62 void addBatchQueueJob (BatchQueueEntry
* bqe
, bool head
=false);
64 // batchqueuelistener interface
65 void queueSizeChanged (int qsize
);
66 void imageProcessingReady (Glib::ustring fname
);
70 void startBatchProc ();
71 void stopBatchProc ();
74 void formatChanged ();