4 * Copyright (C) 2008 - 2009 The Geeqie Team
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!
17 extern GList *layout_window_list;
20 LayoutWindow *layout_new(FileData *dir_fd, LayoutOptions *lop);
21 LayoutWindow *layout_new_with_geometry(FileData *dir_fd, LayoutOptions *lop,
22 const gchar *geometry);
23 LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar **attribute_values, gboolean use_commandline);
25 void layout_close(LayoutWindow *lw);
26 void layout_free(LayoutWindow *lw);
28 gint layout_valid(LayoutWindow **lw);
30 void layout_sync_options_with_current_state(LayoutWindow *lw);
31 void layout_load_attributes(LayoutOptions *layout, const gchar **attribute_names, const gchar **attribute_values);
32 void layout_write_attributes(LayoutOptions *layout, GString *outstr, gint indent);
33 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent);
36 LayoutWindow *layout_find_by_image(ImageWindow *imd);
37 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd);
39 const gchar *layout_get_path(LayoutWindow *lw);
40 gint layout_set_path(LayoutWindow *lw, const gchar *path);
41 gint layout_set_fd(LayoutWindow *lw, FileData *fd);
43 void layout_status_update_progress(LayoutWindow *lw, gdouble val, const gchar *text);
44 void layout_status_update_info(LayoutWindow *lw, const gchar *text);
45 void layout_status_update_image(LayoutWindow *lw);
46 void layout_status_update_write(LayoutWindow *lw);
47 void layout_status_update_all(LayoutWindow *lw);
49 void layout_status_update_write_all(void);
51 GList *layout_list(LayoutWindow *lw);
52 guint layout_list_count(LayoutWindow *lw, gint64 *bytes);
53 FileData *layout_list_get_fd(LayoutWindow *lw, gint index);
54 gint layout_list_get_index(LayoutWindow *lw, FileData *fd);
55 void layout_list_sync_fd(LayoutWindow *lw, FileData *fd);
57 GList *layout_selection_list(LayoutWindow *lw);
58 /* return list of pointers to int for selection */
59 GList *layout_selection_list_by_index(LayoutWindow *lw);
60 guint layout_selection_count(LayoutWindow *lw, gint64 *bytes);
61 void layout_select_all(LayoutWindow *lw);
62 void layout_select_none(LayoutWindow *lw);
63 void layout_select_invert(LayoutWindow *lw);
65 void layout_mark_to_selection(LayoutWindow *lw, gint mark, MarkToSelectionMode mode);
66 void layout_selection_to_mark(LayoutWindow *lw, gint mark, SelectionToMarkMode mode);
68 void layout_refresh(LayoutWindow *lw);
70 void layout_thumb_set(LayoutWindow *lw, gint enable);
71 gint layout_thumb_get(LayoutWindow *lw);
73 void layout_marks_set(LayoutWindow *lw, gint enable);
74 gint layout_marks_get(LayoutWindow *lw);
76 void layout_sort_set(LayoutWindow *lw, SortType type, gint ascend);
77 gint layout_sort_get(LayoutWindow *lw, SortType *type, gint *ascend);
79 gint layout_geometry_get(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h);
80 gint layout_geometry_get_dividers(LayoutWindow *lw, gint *h, gint *v);
82 void layout_views_set(LayoutWindow *lw, DirViewType dir_view_type, FileViewType file_view_type);
83 gint layout_views_get(LayoutWindow *lw, DirViewType *dir_view_type, FileViewType *file_view_type);
85 void layout_status_update(LayoutWindow *lw, const gchar *text);
87 void layout_style_set(LayoutWindow *lw, gint style, const gchar *order);
89 void layout_menu_update_edit(void);
90 void layout_styles_update(void);
91 void layout_colors_update(void);
94 gint layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w, gint *h, gint *divider_pos);
95 void layout_tools_float_set(LayoutWindow *lw, gint popped, gint hidden);
96 gint layout_tools_float_get(LayoutWindow *lw, gint *popped, gint *hidden);
98 void layout_tools_float_toggle(LayoutWindow *lw);
99 void layout_tools_hide_toggle(LayoutWindow *lw);
102 void layout_toolbar_toggle(LayoutWindow *lw);
103 gint layout_toolbar_hidden(LayoutWindow *lw);
105 void layout_split_change(LayoutWindow *lw, ImageSplitMode mode);
108 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */