Preparing stable version
[geeqie.git] / src / layout_util.h
1 /*
2  * Copyright (C) 2004 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * Author: John Ellis
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 along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef LAYOUT_UTIL_H
23 #define LAYOUT_UTIL_H
24
25
26 #include "layout.h"
27
28 gboolean layout_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
29
30 void layout_util_sync_thumb(LayoutWindow *lw);
31 void layout_util_sync_marks(LayoutWindow *lw);
32 void layout_util_sync_color(LayoutWindow *lw);
33 void layout_util_sync(LayoutWindow *lw);
34
35 void layout_util_status_update_write(LayoutWindow *lw);
36 void layout_util_status_update_write_all(void);
37
38 //void layout_edit_update_all(void);
39
40 void layout_recent_update_all(void);
41 void layout_recent_add_path(const gchar *path);
42
43 void layout_copy_path_update_all(void);
44
45 void layout_editors_reload_start(void);
46 void layout_editors_reload_finish(void);
47 void layout_actions_setup(LayoutWindow *lw);
48 void layout_actions_add_window(LayoutWindow *lw, GtkWidget *window);
49 GtkWidget *layout_actions_menu_bar(LayoutWindow *lw);
50 void layout_toolbar_add_from_config(LayoutWindow *lw, ToolbarType type, const gchar **attribute_names, const gchar **attribute_values);
51
52 GtkWidget *layout_actions_toolbar(LayoutWindow *lw, ToolbarType type);
53
54 void layout_toolbar_write_config(LayoutWindow *lw, ToolbarType type, GString *outstr, gint indent);
55 void layout_toolbar_clear(LayoutWindow *lw, ToolbarType type);
56 void layout_toolbar_add(LayoutWindow *lw, ToolbarType type, const gchar *action);
57 void layout_toolbar_add_default(LayoutWindow *lw, ToolbarType type);
58 void layout_keyboard_init(LayoutWindow *lw, GtkWidget *window);
59
60 void layout_bar_toggle(LayoutWindow *lw);
61 void layout_bar_set(LayoutWindow *lw, GtkWidget *bar);
62
63 void layout_bar_sort_toggle(LayoutWindow *lw);
64 void layout_bar_sort_set(LayoutWindow *lw, GtkWidget *bar);
65
66 void layout_bars_new_image(LayoutWindow *lw);
67 void layout_bars_new_selection(LayoutWindow *lw, gint count);
68
69 GtkWidget *layout_bars_prepare(LayoutWindow *lw, GtkWidget *image);
70 void layout_bars_close(LayoutWindow *lw);
71
72 void layout_exif_window_new(LayoutWindow *lw);
73
74 #endif
75 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */