1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
/* Eye of Mate - Main Window
*
* Copyright (C) 2000-2008 The Free Software Foundation
*
* Author: Lucas Rocha <lucasr@gnome.org>
*
* Based on code by:
* - Federico Mena-Quintero <federico@gnu.org>
* - Jens Finke <jens@gnome.org>
* Based on evince code (shell/ev-window.c) by:
* - Martin Kretzschmar <martink@gnome.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __EOM_WINDOW_H__
#define __EOM_WINDOW_H__
#include "eom-list-store.h"
#include "eom-image.h"
#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
typedef struct _EomWindow EomWindow;
typedef struct _EomWindowClass EomWindowClass;
typedef struct _EomWindowPrivate EomWindowPrivate;
#define EOM_TYPE_WINDOW (eom_window_get_type ())
#define EOM_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EOM_TYPE_WINDOW, EomWindow))
#define EOM_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EOM_TYPE_WINDOW, EomWindowClass))
#define EOM_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EOM_TYPE_WINDOW))
#define EOM_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EOM_TYPE_WINDOW))
#define EOM_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EOM_TYPE_WINDOW, EomWindowClass))
#define EOM_WINDOW_ERROR (eom_window_error_quark ())
typedef enum {
EOM_WINDOW_MODE_UNKNOWN,
EOM_WINDOW_MODE_NORMAL,
EOM_WINDOW_MODE_FULLSCREEN,
EOM_WINDOW_MODE_SLIDESHOW
} EomWindowMode;
typedef enum {
EOM_WINDOW_COLLECTION_POS_BOTTOM,
EOM_WINDOW_COLLECTION_POS_LEFT,
EOM_WINDOW_COLLECTION_POS_TOP,
EOM_WINDOW_COLLECTION_POS_RIGHT
} EomWindowCollectionPos;
//TODO
typedef enum {
EOM_WINDOW_ERROR_CONTROL_NOT_FOUND,
EOM_WINDOW_ERROR_UI_NOT_FOUND,
EOM_WINDOW_ERROR_NO_PERSIST_FILE_INTERFACE,
EOM_WINDOW_ERROR_IO,
EOM_WINDOW_ERROR_TRASH_NOT_FOUND,
EOM_WINDOW_ERROR_GENERIC,
EOM_WINDOW_ERROR_UNKNOWN
} EomWindowError;
typedef enum {
EOM_STARTUP_FULLSCREEN = 1 << 0,
EOM_STARTUP_SLIDE_SHOW = 1 << 1,
EOM_STARTUP_DISABLE_COLLECTION = 1 << 2
} EomStartupFlags;
struct _EomWindow {
GtkWindow win;
EomWindowPrivate *priv;
};
struct _EomWindowClass {
GtkWindowClass parent_class;
void (* prepared) (EomWindow *window);
};
GType eom_window_get_type (void) G_GNUC_CONST;
GtkWidget *eom_window_new (EomStartupFlags flags);
EomWindowMode eom_window_get_mode (EomWindow *window);
void eom_window_set_mode (EomWindow *window,
EomWindowMode mode);
GtkUIManager *eom_window_get_ui_manager (EomWindow *window);
EomListStore *eom_window_get_store (EomWindow *window);
GtkWidget *eom_window_get_view (EomWindow *window);
GtkWidget *eom_window_get_sidebar (EomWindow *window);
GtkWidget *eom_window_get_thumb_view (EomWindow *window);
GtkWidget *eom_window_get_thumb_nav (EomWindow *window);
GtkWidget *eom_window_get_statusbar (EomWindow *window);
EomImage *eom_window_get_image (EomWindow *window);
void eom_window_open_file_list (EomWindow *window,
GSList *file_list);
gboolean eom_window_is_empty (EomWindow *window);
void eom_window_reload_image (EomWindow *window);
G_END_DECLS
#endif
|