Mercurial > geeqie
annotate src/bar.h @ 1472:b4001cb9fbc4
do not copy existing layout id to new window
author | nadvornik |
---|---|
date | Sat, 21 Mar 2009 18:22:04 +0000 |
parents | 65a5c27823c2 |
children | 9c16a93a0fdf |
rev | line source |
---|---|
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
1 /* |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
2 * Geeqie |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
3 * (C) 2004 John Ellis |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
4 * Copyright (C) 2008 - 2009 The Geeqie Team |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
5 * |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
6 * Author: Vladimir Nadvornik |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
7 * |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
8 * This software is released under the GNU General Public License (GNU GPL). |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
9 * Please read the included file COPYING for more information. |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
10 * This software comes with no warranty of any kind, use at your own risk! |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
11 */ |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
12 |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
13 |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
14 #ifndef BAR_H |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
15 #define BAR_H |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
16 |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
17 typedef enum { |
1471 | 18 PANE_UNDEF = 0, |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
19 PANE_COMMENT, |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
20 PANE_EXIF, |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
21 PANE_HISTOGRAM, |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
22 PANE_KEYWORDS |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
23 } PaneType; |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
24 |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
25 typedef struct _PaneData PaneData; |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
26 |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
27 struct _PaneData { |
1387 | 28 /* filled in by pane */ |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
29 void (*pane_set_fd)(GtkWidget *pane, FileData *fd); |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
30 gint (*pane_event)(GtkWidget *pane, GdkEvent *event); |
1309 | 31 void (*pane_write_config)(GtkWidget *pane, GString *outstr, gint indent); |
1343 | 32 GtkWidget *title; |
1309 | 33 gboolean expanded; |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
34 gchar *id; |
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
35 PaneType type; |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
36 |
1387 | 37 /* filled in by bar */ |
38 GtkWidget *bar; | |
39 LayoutWindow *lw; | |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
40 }; |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
41 |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
42 |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
43 |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
44 |
1387 | 45 GtkWidget *bar_new(LayoutWindow *lw); |
46 GtkWidget *bar_new_default(LayoutWindow *lw); | |
47 GtkWidget *bar_new_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values); | |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
48 GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values); |
1309 | 49 |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
50 void bar_close(GtkWidget *bar); |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
51 |
1309 | 52 void bar_write_config(GtkWidget *bar, GString *outstr, gint indent); |
53 | |
54 void bar_add(GtkWidget *bar, GtkWidget *pane); | |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
55 GtkWidget *bar_find_pane_by_id(GtkWidget *bar, PaneType type, const gchar *id); |
1309 | 56 |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
57 void bar_clear(GtkWidget *bar); |
1309 | 58 |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
59 void bar_set_fd(GtkWidget *bar, FileData *fd); |
1417 | 60 gboolean bar_event(GtkWidget *bar, GdkEvent *event); |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
61 |
1383 | 62 gint bar_get_width(GtkWidget *bar); |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
63 |
1389
c44f21235ffe
Use a common function bar_pane_expander_title() to set expanders title widget.
zas_
parents:
1387
diff
changeset
|
64 GtkWidget *bar_pane_expander_title(const gchar *title); |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
65 void bar_update_expander(GtkWidget *pane); |
1471 | 66 gboolean bar_pane_translate_title(PaneType type, const gchar *id, gchar **title); |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
67 #endif |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
68 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |