annotate src/layout.h @ 1582:2ca277a9845b

- handle color profile and write metadata buttons on statusbar by ui_manager - statusbar buttons made configurable
author nadvornik
date Fri, 01 May 2009 23:15:51 +0000
parents 01693e68707b
children 0cd2268f500b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 162
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1240
diff changeset
4 * Copyright (C) 2008 - 2009 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13 #ifndef LAYOUT_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #define LAYOUT_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15
1473
01693e68707b layout id "_current_" matches the currently active layout window
nadvornik
parents: 1466
diff changeset
16 #define LAYOUT_ID_CURRENT "_current_"
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
17
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
18 extern GList *layout_window_list;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
19
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
21 LayoutWindow *layout_new(FileData *dir_fd, LayoutOptions *lop);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
22 LayoutWindow *layout_new_with_geometry(FileData *dir_fd, LayoutOptions *lop,
81
0ef72a64930b Thu Oct 19 09:35:18 2006 John Ellis <johne@verizon.net>
gqview
parents: 9
diff changeset
23 const gchar *geometry);
1313
1ffa5222dc61 enabled commandline again
nadvornik
parents: 1309
diff changeset
24 LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar **attribute_values, gboolean use_commandline);
1466
6e020d3ab168 added possibility to update existing layout window from config
nadvornik
parents: 1436
diff changeset
25 void layout_update_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 void layout_close(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 void layout_free(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
30 gboolean layout_valid(LayoutWindow **lw);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31
1436
d7a6fb7a90dd completely separated global and layout window options
nadvornik
parents: 1416
diff changeset
32 void layout_show_config_window(LayoutWindow *lw);
d7a6fb7a90dd completely separated global and layout window options
nadvornik
parents: 1416
diff changeset
33
d7a6fb7a90dd completely separated global and layout window options
nadvornik
parents: 1416
diff changeset
34 void layout_apply_options(LayoutWindow *lw, LayoutOptions *lop);
d7a6fb7a90dd completely separated global and layout window options
nadvornik
parents: 1416
diff changeset
35
1309
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
36 void layout_sync_options_with_current_state(LayoutWindow *lw);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
37 void layout_load_attributes(LayoutOptions *layout, const gchar **attribute_names, const gchar **attribute_values);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
38 void layout_write_attributes(LayoutOptions *layout, GString *outstr, gint indent);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
39 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent);
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
40
55ea4962887a config file format changed to XML
nadvornik
parents: 1284
diff changeset
41
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42 LayoutWindow *layout_find_by_image(ImageWindow *imd);
368
95fe470440ad New Go to directory view feature that permits to find and display the directory
zas_
parents: 196
diff changeset
43 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd);
1466
6e020d3ab168 added possibility to update existing layout window from config
nadvornik
parents: 1436
diff changeset
44 LayoutWindow *layout_find_by_layout_id(const gchar *id);
6e020d3ab168 added possibility to update existing layout window from config
nadvornik
parents: 1436
diff changeset
45
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
46
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47 const gchar *layout_get_path(LayoutWindow *lw);
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
48 gboolean layout_set_path(LayoutWindow *lw, const gchar *path);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
49 gboolean layout_set_fd(LayoutWindow *lw, FileData *fd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
50
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
51 void layout_status_update_progress(LayoutWindow *lw, gdouble val, const gchar *text);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
52 void layout_status_update_info(LayoutWindow *lw, const gchar *text);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53 void layout_status_update_image(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
54 void layout_status_update_all(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
55
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
56 GList *layout_list(LayoutWindow *lw);
736
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 632
diff changeset
57 guint layout_list_count(LayoutWindow *lw, gint64 *bytes);
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 132
diff changeset
58 FileData *layout_list_get_fd(LayoutWindow *lw, gint index);
783
d6a7fb4b8e7c replaced directory path with FileData* dir_fd
nadvornik
parents: 736
diff changeset
59 gint layout_list_get_index(LayoutWindow *lw, FileData *fd);
138
71e1ebee420e replaced gchar* path with FileData *fd
nadvornik
parents: 132
diff changeset
60 void layout_list_sync_fd(LayoutWindow *lw, FileData *fd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
61
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
62 GList *layout_selection_list(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
63 /* return list of pointers to int for selection */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
64 GList *layout_selection_list_by_index(LayoutWindow *lw);
736
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 632
diff changeset
65 guint layout_selection_count(LayoutWindow *lw, gint64 *bytes);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
66 void layout_select_all(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
67 void layout_select_none(LayoutWindow *lw);
601
93c6dc4c537b Add a way to invert the current selection.
zas_
parents: 556
diff changeset
68 void layout_select_invert(LayoutWindow *lw);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
69
162
1a42a2451575 created menu "Select" with selection and marks operations
nadvornik
parents: 138
diff changeset
70 void layout_mark_to_selection(LayoutWindow *lw, gint mark, MarkToSelectionMode mode);
1a42a2451575 created menu "Select" with selection and marks operations
nadvornik
parents: 138
diff changeset
71 void layout_selection_to_mark(LayoutWindow *lw, gint mark, SelectionToMarkMode mode);
1a42a2451575 created menu "Select" with selection and marks operations
nadvornik
parents: 138
diff changeset
72
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
73 void layout_refresh(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
74
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
75 void layout_thumb_set(LayoutWindow *lw, gboolean enable);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
76 gboolean layout_thumb_get(LayoutWindow *lw);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
77
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
78 void layout_marks_set(LayoutWindow *lw, gboolean enable);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
79 gboolean layout_marks_get(LayoutWindow *lw);
132
661cd91e5a7e First implementation of marks for all photos.
bruclik
parents: 127
diff changeset
80
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
81 void layout_sort_set(LayoutWindow *lw, SortType type, gboolean ascend);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
82 gboolean layout_sort_get(LayoutWindow *lw, SortType *type, gboolean *ascend);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
83
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
84 gboolean layout_geometry_get(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
85 gboolean layout_geometry_get_dividers(LayoutWindow *lw, gint *h, gint *v);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
86
556
fe675761d091 Replace Layout icon_view field by more generic file_view_type.
zas_
parents: 475
diff changeset
87 void layout_views_set(LayoutWindow *lw, DirViewType dir_view_type, FileViewType file_view_type);
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
88 gboolean layout_views_get(LayoutWindow *lw, DirViewType *dir_view_type, FileViewType *file_view_type);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
89
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
90 void layout_status_update(LayoutWindow *lw, const gchar *text);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
91
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
92 void layout_style_set(LayoutWindow *lw, gint style, const gchar *order);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
93
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
94 void layout_menu_update_edit(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
95 void layout_styles_update(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
96 void layout_colors_update(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
97
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
98
1416
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
99 gboolean layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h, gint *divider_pos);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
100 void layout_tools_float_set(LayoutWindow *lw, gboolean popped, gboolean hidden);
9fe2fede7ae5 Use gboolean pseudo type where applicable.
zas_
parents: 1415
diff changeset
101 gboolean layout_tools_float_get(LayoutWindow *lw, gboolean *popped, gboolean *hidden);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
102
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
103 void layout_tools_float_toggle(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
104 void layout_tools_hide_toggle(LayoutWindow *lw);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
105
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
106
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
107 void layout_toolbar_toggle(LayoutWindow *lw);
1375
df58e511d90e Display pixel coordinates and rgb - patch by Ruben Stein
nadvornik
parents: 1313
diff changeset
108 void layout_info_pixel_toggle(LayoutWindow *lw);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
109
127
271afad04d07 implemented split windows
nadvornik
parents: 81
diff changeset
110 void layout_split_change(LayoutWindow *lw, ImageSplitMode mode);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
111
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
112 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 796
diff changeset
113 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */