Remove unused RendererTiles::tile_cols
[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 #include <gdk/gdk.h>
26 #include <glib.h>
27 #include <gtk/gtk.h>
28
29 #include "typedefs.h"
30
31 struct LayoutWindow;
32
33 gboolean layout_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
34
35 void layout_util_sync_thumb(LayoutWindow *lw);
36 void layout_util_sync_marks(LayoutWindow *lw);
37 void layout_util_sync_file_filter(LayoutWindow *lw);
38 void layout_util_sync_color(LayoutWindow *lw);
39 void layout_util_sync(LayoutWindow *lw);
40
41 void layout_util_status_update_write(LayoutWindow *lw);
42 void layout_util_status_update_write_all();
43
44 void layout_recent_update_all();
45 void layout_recent_add_path(const gchar *path);
46
47 void layout_copy_path_update_all();
48
49 void layout_editors_reload_start();
50 void layout_editors_reload_finish();
51 void layout_actions_setup(LayoutWindow *lw);
52 void layout_actions_add_window(LayoutWindow *lw, GtkWidget *window);
53 GtkWidget *layout_actions_menu_bar(LayoutWindow *lw);
54 void layout_toolbar_add_from_config(LayoutWindow *lw, ToolbarType type, const gchar **attribute_names, const gchar **attribute_values);
55
56 GtkWidget *layout_actions_toolbar(LayoutWindow *lw, ToolbarType type);
57
58 void layout_toolbar_write_config(LayoutWindow *lw, ToolbarType type, GString *outstr, gint indent);
59 void layout_toolbar_clear(LayoutWindow *lw, ToolbarType type);
60 void layout_toolbar_add(LayoutWindow *lw, ToolbarType type, const gchar *action);
61 void layout_toolbar_add_default(LayoutWindow *lw, ToolbarType type);
62 void layout_keyboard_init(LayoutWindow *lw, GtkWidget *window);
63
64 void layout_bar_toggle(LayoutWindow *lw);
65 void layout_bar_set(LayoutWindow *lw, GtkWidget *bar);
66
67 void layout_bar_sort_toggle(LayoutWindow *lw);
68 void layout_bar_sort_set(LayoutWindow *lw, GtkWidget *bar);
69
70 void layout_bars_new_image(LayoutWindow *lw);
71 void layout_bars_new_selection(LayoutWindow *lw, gint count);
72
73 GtkWidget *layout_bars_prepare(LayoutWindow *lw, GtkWidget *image);
74 void layout_bars_close(LayoutWindow *lw);
75
76 void layout_exif_window_new(LayoutWindow *lw);
77
78 gboolean is_help_key(GdkEventKey *event);
79 void layout_menu_close_cb(GtkAction *action, gpointer data);
80 GtkWidget *layout_actions_menu_tool_bar(LayoutWindow *lw);
81
82 void create_toolbars(LayoutWindow *lw);
83
84 #endif
85 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */