1 /*
2  * * Copyright (C) 2006-2011 Anders Brander <anders@brander.dk>,
3  * * Anders Kvist <akv@lnxbx.dk> and Klaus Post <klauspost@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  */
19 
20 #ifndef RS_TOOLBOX_H
21 #define RS_TOOLBOX_H
22 
23 #include <rawstudio.h>
24 #include <glib-object.h>
25 #include <gtk/gtk.h>
26 #include "rs-settings.h"
27 #include "rs-image.h"
28 #include "rs-photo.h"
29 
30 G_BEGIN_DECLS
31 
32 #define RS_TYPE_TOOLBOX rs_toolbox_get_type()
33 #define RS_TOOLBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RS_TYPE_TOOLBOX, RSToolbox))
34 #define RS_TOOLBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RS_TYPE_TOOLBOX, RSToolboxClass))
35 #define RS_IS_TOOLBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RS_TYPE_TOOLBOX))
36 #define RS_IS_TOOLBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RS_TYPE_TOOLBOX))
37 #define RS_TOOLBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RS_TYPE_TOOLBOX, RSToolboxClass))
38 
39 typedef struct _RSToolbox RSToolbox;
40 
41 typedef struct {
42 	GtkScrolledWindowClass parent_class;
43 } RSToolboxClass;
44 
45 GType rs_toolbox_get_type (void);
46 
47 extern GtkWidget *
48 rs_toolbox_new (void);
49 
50 extern GtkWidget *
51 rs_toolbox_add_widget(RSToolbox *toolbox, GtkWidget *widget, const gchar *title);
52 
53 extern void
54 rs_toolbox_set_photo(RSToolbox *toolbox, RS_PHOTO *photo);
55 
56 extern gint
57 rs_toolbox_get_selected_snapshot(RSToolbox *toolbox);
58 
59 extern void
60 rs_toolbox_set_selected_snapshot(RSToolbox *toolbox, const gint snapshot);
61 
62 extern void
63 rs_toolbox_set_histogram_input(RSToolbox *toolbox, RSFilter *input, RSColorSpace *display_color_space);
64 
65 extern void
66 rs_toolbox_register_actions(RSToolbox *toolbox);
67 
68 extern void
69 rs_toolbox_hover_value_updated(RSToolbox *toolbox, const guchar *rgb_value);
70 
71 
72 G_END_DECLS
73 
74 #endif /* RS_TOOLBOX_H */
75