Mercurial > geeqie
annotate src/bar.h @ 1486:1b2ddc6b2b27
added UfRaw ID files to known filetypes
author | nadvornik |
---|---|
date | Sun, 29 Mar 2009 16:39:42 +0000 |
parents | 9c16a93a0fdf |
children | 7216f4a45698 |
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_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
|
47 GtkWidget *bar_update_from_config(GtkWidget *bar, const gchar **attribute_names, const gchar **attribute_values); |
1309 | 48 |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
49 void bar_close(GtkWidget *bar); |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
50 |
1309 | 51 void bar_write_config(GtkWidget *bar, GString *outstr, gint indent); |
52 | |
1484 | 53 void bar_populate_default(GtkWidget *bar); |
54 | |
1309 | 55 void bar_add(GtkWidget *bar, GtkWidget *pane); |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
56 GtkWidget *bar_find_pane_by_id(GtkWidget *bar, PaneType type, const gchar *id); |
1309 | 57 |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
58 void bar_clear(GtkWidget *bar); |
1309 | 59 |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
60 void bar_set_fd(GtkWidget *bar, FileData *fd); |
1417 | 61 gboolean bar_event(GtkWidget *bar, GdkEvent *event); |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
62 |
1383 | 63 gint bar_get_width(GtkWidget *bar); |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
64 |
1389
c44f21235ffe
Use a common function bar_pane_expander_title() to set expanders title widget.
zas_
parents:
1387
diff
changeset
|
65 GtkWidget *bar_pane_expander_title(const gchar *title); |
1469
607c60506863
added a possibility to update existing bars from config
nadvornik
parents:
1417
diff
changeset
|
66 void bar_update_expander(GtkWidget *pane); |
1471 | 67 gboolean bar_pane_translate_title(PaneType type, const gchar *id, gchar **title); |
1484 | 68 const gchar *bar_pane_get_default_config(const gchar *id); |
69 | |
1291
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
70 #endif |
50ae02a4a675
replaced bar_info with an universal bar, restored the original
nadvornik
parents:
diff
changeset
|
71 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |