2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
5 * Author: Vladimir Nadvornik
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.
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.
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.
34 typedef struct _PaneData PaneData;
37 /* filled in by pane */
38 void (*pane_set_fd)(GtkWidget *pane, FileData *fd);
39 void (*pane_notify_selection)(GtkWidget *pane, gint count);
40 gint (*pane_event)(GtkWidget *pane, GdkEvent *event);
41 void (*pane_write_config)(GtkWidget *pane, GString *outstr, gint indent);
47 /* filled in by bar */
55 GtkWidget *bar_new(LayoutWindow *lw);
56 GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
57 GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values);
59 void bar_close(GtkWidget *bar);
61 void bar_write_config(GtkWidget *bar, GString *outstr, gint indent);
63 void bar_populate_default(GtkWidget *bar);
65 void bar_add(GtkWidget *bar, GtkWidget *pane);
66 GtkWidget *bar_find_pane_by_id(GtkWidget *bar, PaneType type, const gchar *id);
68 void bar_clear(GtkWidget *bar);
70 void bar_set_fd(GtkWidget *bar, FileData *fd);
71 void bar_notify_selection(GtkWidget *bar, gint count);
72 gboolean bar_event(GtkWidget *bar, GdkEvent *event);
74 gint bar_get_width(GtkWidget *bar);
76 GtkWidget *bar_pane_expander_title(const gchar *title);
77 void bar_update_expander(GtkWidget *pane);
78 gboolean bar_pane_translate_title(PaneType type, const gchar *id, gchar **title);
79 const gchar *bar_pane_get_default_config(const gchar *id);
82 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */