1 /* Eye Of Mate - 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
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef __EOM_PROPERTIES_DIALOG_H__
23 #define __EOM_PROPERTIES_DIALOG_H__
24 
25 #include "eom-image.h"
26 #include "eom-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 _EomPropertiesDialog EomPropertiesDialog;
35 typedef struct _EomPropertiesDialogClass EomPropertiesDialogClass;
36 typedef struct _EomPropertiesDialogPrivate EomPropertiesDialogPrivate;
37 
38 #define EOM_TYPE_PROPERTIES_DIALOG            (eom_properties_dialog_get_type ())
39 #define EOM_PROPERTIES_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), EOM_TYPE_PROPERTIES_DIALOG, EomPropertiesDialog))
40 #define EOM_PROPERTIES_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass),  EOM_TYPE_PROPERTIES_DIALOG, EomPropertiesDialogClass))
41 #define EOM_IS_PROPERTIES_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), EOM_TYPE_PROPERTIES_DIALOG))
42 #define EOM_IS_PROPERTIES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  EOM_TYPE_PROPERTIES_DIALOG))
43 #define EOM_PROPERTIES_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  EOM_TYPE_PROPERTIES_DIALOG, EomPropertiesDialogClass))
44 
45 typedef enum {
46 	EOM_PROPERTIES_DIALOG_PAGE_GENERAL = 0,
47 	EOM_PROPERTIES_DIALOG_PAGE_EXIF,
48 	EOM_PROPERTIES_DIALOG_PAGE_DETAILS,
49 	EOM_PROPERTIES_DIALOG_N_PAGES
50 } EomPropertiesDialogPage;
51 
52 struct _EomPropertiesDialog {
53 	GtkDialog dialog;
54 
55 	EomPropertiesDialogPrivate *priv;
56 };
57 
58 struct _EomPropertiesDialogClass {
59 	GtkDialogClass parent_class;
60 };
61 
62 GType	    eom_properties_dialog_get_type	(void) G_GNUC_CONST;
63 
64 GtkWidget   *eom_properties_dialog_new	  	(GtkWindow               *parent,
65                                              EomThumbView            *thumbview,
66                                              GtkAction               *next_image_action,
67                                              GtkAction               *previous_image_action);
68 
69 void	    eom_properties_dialog_update  	(EomPropertiesDialog     *prop,
70 						 EomImage                *image);
71 
72 void	    eom_properties_dialog_set_page  	(EomPropertiesDialog     *prop,
73 						 EomPropertiesDialogPage  page);
74 
75 void	    eom_properties_dialog_set_netbook_mode (EomPropertiesDialog *dlg,
76 						    gboolean enable);
77 G_END_DECLS
78 
79 #endif /* __EOM_PROPERTIES_DIALOG_H__ */
80