1 /* Eye Of Gnome - Image Properties Dialog
2  *
3  * Copyright (C) 2006 The Free Software Foundation
4  *
5  * Author: Lucas Rocha <lucasr@gnome.org>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20  */
21 
22 #ifndef __EOG_PROPERTIES_DIALOG_H__
23 #define __EOG_PROPERTIES_DIALOG_H__
24 
25 #include "eog-image.h"
26 #include "eog-thumb-view.h"
27 
28 #include <glib.h>
29 #include <glib-object.h>
30 #include <gtk/gtk.h>
31 
32 G_BEGIN_DECLS
33 
34 typedef struct _EogPropertiesDialog EogPropertiesDialog;
35 typedef struct _EogPropertiesDialogClass EogPropertiesDialogClass;
36 typedef struct _EogPropertiesDialogPrivate EogPropertiesDialogPrivate;
37 
38 #define EOG_TYPE_PROPERTIES_DIALOG            (eog_properties_dialog_get_type ())
39 #define EOG_PROPERTIES_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), EOG_TYPE_PROPERTIES_DIALOG, EogPropertiesDialog))
40 #define EOG_PROPERTIES_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  EOG_TYPE_PROPERTIES_DIALOG, EogPropertiesDialogClass))
41 #define EOG_IS_PROPERTIES_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), EOG_TYPE_PROPERTIES_DIALOG))
42 #define EOG_IS_PROPERTIES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  EOG_TYPE_PROPERTIES_DIALOG))
43 #define EOG_PROPERTIES_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  EOG_TYPE_PROPERTIES_DIALOG, EogPropertiesDialogClass))
44 
45 typedef enum {
46 	EOG_PROPERTIES_DIALOG_PAGE_GENERAL = 0,
47 	EOG_PROPERTIES_DIALOG_PAGE_EXIF,
48 	EOG_PROPERTIES_DIALOG_PAGE_DETAILS,
49 	EOG_PROPERTIES_DIALOG_N_PAGES
50 } EogPropertiesDialogPage;
51 
52 struct _EogPropertiesDialog {
53 	GtkDialog dialog;
54 
55 	EogPropertiesDialogPrivate *priv;
56 };
57 
58 struct _EogPropertiesDialogClass {
59 	GtkDialogClass parent_class;
60 };
61 
62 GType	    eog_properties_dialog_get_type	(void) G_GNUC_CONST;
63 
64 GtkWidget  *eog_properties_dialog_new		(GtkWindow               *parent,
65 						 EogThumbView            *thumbview,
66 						 const gchar             *next_image_action,
67 						 const gchar             *previous_image_action);
68 
69 void	    eog_properties_dialog_update  	(EogPropertiesDialog     *prop,
70 						 EogImage                *image);
71 
72 void	    eog_properties_dialog_set_page  	(EogPropertiesDialog     *prop,
73 						 EogPropertiesDialogPage  page);
74 
75 void	    eog_properties_dialog_set_netbook_mode (EogPropertiesDialog *dlg,
76 						    gboolean enable);
77 G_END_DECLS
78 
79 #endif /* __EOG_PROPERTIES_DIALOG_H__ */
80