Mercurial > geeqie
annotate src/layout.h @ 1460:8178ef34d257
added more IPTC tags
author | nadvornik |
---|---|
date | Tue, 17 Mar 2009 23:03:07 +0000 |
parents | d7a6fb7a90dd |
children | 6e020d3ab168 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 #ifndef LAYOUT_H | |
14 #define LAYOUT_H | |
15 | |
16 | |
17 extern GList *layout_window_list; | |
18 | |
19 | |
1309 | 20 LayoutWindow *layout_new(FileData *dir_fd, LayoutOptions *lop); |
21 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
|
22 const gchar *geometry); |
1313 | 23 LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar **attribute_values, gboolean use_commandline); |
9 | 24 |
25 void layout_close(LayoutWindow *lw); | |
26 void layout_free(LayoutWindow *lw); | |
27 | |
1416 | 28 gboolean layout_valid(LayoutWindow **lw); |
9 | 29 |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1416
diff
changeset
|
30 void layout_show_config_window(LayoutWindow *lw); |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1416
diff
changeset
|
31 |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1416
diff
changeset
|
32 void layout_apply_options(LayoutWindow *lw, LayoutOptions *lop); |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1416
diff
changeset
|
33 |
1309 | 34 void layout_sync_options_with_current_state(LayoutWindow *lw); |
35 void layout_load_attributes(LayoutOptions *layout, const gchar **attribute_names, const gchar **attribute_values); | |
36 void layout_write_attributes(LayoutOptions *layout, GString *outstr, gint indent); | |
37 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent); | |
38 | |
39 | |
9 | 40 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
|
41 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd); |
9 | 42 |
43 const gchar *layout_get_path(LayoutWindow *lw); | |
1416 | 44 gboolean layout_set_path(LayoutWindow *lw, const gchar *path); |
45 gboolean layout_set_fd(LayoutWindow *lw, FileData *fd); | |
9 | 46 |
47 void layout_status_update_progress(LayoutWindow *lw, gdouble val, const gchar *text); | |
48 void layout_status_update_info(LayoutWindow *lw, const gchar *text); | |
49 void layout_status_update_image(LayoutWindow *lw); | |
1240
30e207ac22e4
added a status bar button for writting metadata immediately
nadvornik
parents:
1055
diff
changeset
|
50 void layout_status_update_write(LayoutWindow *lw); |
9 | 51 void layout_status_update_all(LayoutWindow *lw); |
52 | |
1240
30e207ac22e4
added a status bar button for writting metadata immediately
nadvornik
parents:
1055
diff
changeset
|
53 void layout_status_update_write_all(void); |
30e207ac22e4
added a status bar button for writting metadata immediately
nadvornik
parents:
1055
diff
changeset
|
54 |
9 | 55 GList *layout_list(LayoutWindow *lw); |
736 | 56 guint layout_list_count(LayoutWindow *lw, gint64 *bytes); |
138 | 57 FileData *layout_list_get_fd(LayoutWindow *lw, gint index); |
783 | 58 gint layout_list_get_index(LayoutWindow *lw, FileData *fd); |
138 | 59 void layout_list_sync_fd(LayoutWindow *lw, FileData *fd); |
9 | 60 |
61 GList *layout_selection_list(LayoutWindow *lw); | |
62 /* return list of pointers to int for selection */ | |
63 GList *layout_selection_list_by_index(LayoutWindow *lw); | |
736 | 64 guint layout_selection_count(LayoutWindow *lw, gint64 *bytes); |
9 | 65 void layout_select_all(LayoutWindow *lw); |
66 void layout_select_none(LayoutWindow *lw); | |
601 | 67 void layout_select_invert(LayoutWindow *lw); |
9 | 68 |
162
1a42a2451575
created menu "Select" with selection and marks operations
nadvornik
parents:
138
diff
changeset
|
69 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
|
70 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
|
71 |
9 | 72 void layout_refresh(LayoutWindow *lw); |
73 | |
1416 | 74 void layout_thumb_set(LayoutWindow *lw, gboolean enable); |
75 gboolean layout_thumb_get(LayoutWindow *lw); | |
9 | 76 |
1416 | 77 void layout_marks_set(LayoutWindow *lw, gboolean enable); |
78 gboolean layout_marks_get(LayoutWindow *lw); | |
132 | 79 |
1416 | 80 void layout_sort_set(LayoutWindow *lw, SortType type, gboolean ascend); |
81 gboolean layout_sort_get(LayoutWindow *lw, SortType *type, gboolean *ascend); | |
9 | 82 |
1416 | 83 gboolean layout_geometry_get(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h); |
84 gboolean layout_geometry_get_dividers(LayoutWindow *lw, gint *h, gint *v); | |
9 | 85 |
556
fe675761d091
Replace Layout icon_view field by more generic file_view_type.
zas_
parents:
475
diff
changeset
|
86 void layout_views_set(LayoutWindow *lw, DirViewType dir_view_type, FileViewType file_view_type); |
1416 | 87 gboolean layout_views_get(LayoutWindow *lw, DirViewType *dir_view_type, FileViewType *file_view_type); |
9 | 88 |
89 void layout_status_update(LayoutWindow *lw, const gchar *text); | |
90 | |
91 void layout_style_set(LayoutWindow *lw, gint style, const gchar *order); | |
92 | |
93 void layout_menu_update_edit(void); | |
94 void layout_styles_update(void); | |
95 void layout_colors_update(void); | |
96 | |
97 | |
1416 | 98 gboolean layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h, gint *divider_pos); |
99 void layout_tools_float_set(LayoutWindow *lw, gboolean popped, gboolean hidden); | |
100 gboolean layout_tools_float_get(LayoutWindow *lw, gboolean *popped, gboolean *hidden); | |
9 | 101 |
102 void layout_tools_float_toggle(LayoutWindow *lw); | |
103 void layout_tools_hide_toggle(LayoutWindow *lw); | |
104 | |
105 | |
106 void layout_toolbar_toggle(LayoutWindow *lw); | |
1375
df58e511d90e
Display pixel coordinates and rgb - patch by Ruben Stein
nadvornik
parents:
1313
diff
changeset
|
107 void layout_info_pixel_toggle(LayoutWindow *lw); |
9 | 108 |
127 | 109 void layout_split_change(LayoutWindow *lw, ImageSplitMode mode); |
9 | 110 |
111 #endif | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
796
diff
changeset
|
112 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |