Simplify vflist_get_formatted()
[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_file_filter(LayoutWindow *lw);
33 void layout_util_sync_color(LayoutWindow *lw);
34 void layout_util_sync(LayoutWindow *lw);
35
36 void layout_util_status_update_write(LayoutWindow *lw);
37 void layout_util_status_update_write_all(void);
38
39 //void layout_edit_update_all(void);
40
41 void layout_recent_update_all(void);
42 void layout_recent_add_path(const gchar *path);
43
44 void layout_copy_path_update_all(void);
45
46 void layout_editors_reload_start(void);
47 void layout_editors_reload_finish(void);
48 void layout_actions_setup(LayoutWindow *lw);
49 void layout_actions_add_window(LayoutWindow *lw, GtkWidget *window);
50 GtkWidget *layout_actions_menu_bar(LayoutWindow *lw);
51 void layout_toolbar_add_from_config(LayoutWindow *lw, ToolbarType type, const gchar **attribute_names, const gchar **attribute_values);
52
53 GtkWidget *layout_actions_toolbar(LayoutWindow *lw, ToolbarType type);
54
55 void layout_toolbar_write_config(LayoutWindow *lw, ToolbarType type, GString *outstr, gint indent);
56 void layout_toolbar_clear(LayoutWindow *lw, ToolbarType type);
57 void layout_toolbar_add(LayoutWindow *lw, ToolbarType type, const gchar *action);
58 void layout_toolbar_add_default(LayoutWindow *lw, ToolbarType type);
59 void layout_keyboard_init(LayoutWindow *lw, GtkWidget *window);
60
61 void layout_bar_toggle(LayoutWindow *lw);
62 void layout_bar_set(LayoutWindow *lw, GtkWidget *bar);
63
64 void layout_bar_sort_toggle(LayoutWindow *lw);
65 void layout_bar_sort_set(LayoutWindow *lw, GtkWidget *bar);
66
67 void layout_bars_new_image(LayoutWindow *lw);
68 void layout_bars_new_selection(LayoutWindow *lw, gint count);
69
70 GtkWidget *layout_bars_prepare(LayoutWindow *lw, GtkWidget *image);
71 void layout_bars_close(LayoutWindow *lw);
72
73 void layout_exif_window_new(LayoutWindow *lw);
74
75 gboolean is_help_key(GdkEventKey *event);
76 void layout_menu_close_cb(GtkAction *action, gpointer data);
77 GtkWidget *layout_actions_menu_tool_bar(LayoutWindow *lw);
78 #endif
79 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */