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