annotate src/view_dir.h @ 1758:8b9bbf92725f

require libchamplain 0.4 - check for libchamplain 0.4 - dropped libchamplain 0.3.x support http://sourceforge.net/tracker/index.php?func=detail&aid=2861847&group_id=222125&atid=1054680
author nadvornik
date Fri, 25 Sep 2009 20:39:15 +0000
parents fa942b3f0ef5
children 956aab097ea7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
1 /*
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
2 * Geeqie
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1055
diff changeset
3 * Copyright (C) 2008 - 2009 The Geeqie Team
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
4 *
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
5 * Author: Laurent Monin
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
6 *
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
8 * Please read the included file COPYING for more information.
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
10 */
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
11
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
12 #ifndef VIEW_DIR_H
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
13 #define VIEW_DIR_H
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
14
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
15 enum {
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
16 DIR_COLUMN_POINTER = 0,
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
17 DIR_COLUMN_ICON,
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
18 DIR_COLUMN_NAME,
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
19 DIR_COLUMN_COLOR,
825
ee33d2ddb661 Optionnally display directory's date in list view.
zas_
parents: 783
diff changeset
20 DIR_COLUMN_DATE,
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
21 DIR_COLUMN_COUNT
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
22 };
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
23
527
93a1730e4641 Fix number of directory views, bug introduced in revision 617.
zas_
parents: 523
diff changeset
24 #define VIEW_DIR_TYPES_COUNT 2
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
25
783
d6a7fb4b8e7c replaced directory path with FileData* dir_fd
nadvornik
parents: 527
diff changeset
26 ViewDir *vd_new(DirViewType type, FileData *dir_fd);
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
27
1628
66bf394d162a simplified the code around vd_select_row
nadvornik
parents: 1452
diff changeset
28 void vd_set_select_func(ViewDir *vdl, void (*func)(ViewDir *vdl, FileData *fd, gpointer data), gpointer data);
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
29
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
30 void vd_set_layout(ViewDir *vdl, LayoutWindow *layout);
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
31
1452
67b40740122e gint -> gboolean where applicable.
zas_
parents: 1284
diff changeset
32 gboolean vd_set_fd(ViewDir *vdl, FileData *dir_fd);
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
33 void vd_refresh(ViewDir *vdl);
1452
67b40740122e gint -> gboolean where applicable.
zas_
parents: 1284
diff changeset
34 gboolean vd_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter);
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
35
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
36 const gchar *vd_row_get_path(ViewDir *vdl, gint row);
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
37
383
499d7ba62261 Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents: 380
diff changeset
38 void vd_color_set(ViewDir *vd, FileData *fd, gint color_set);
499d7ba62261 Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents: 380
diff changeset
39 void vd_popup_destroy_cb(GtkWidget *widget, gpointer data);
499d7ba62261 Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents: 380
diff changeset
40
499d7ba62261 Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents: 380
diff changeset
41 GtkWidget *vd_drop_menu(ViewDir *vd, gint active);
388
5186f8e38cb8 Make directory view popup menu common and move it to view_dir.{c,h}.
zas_
parents: 384
diff changeset
42 GtkWidget *vd_pop_menu(ViewDir *vd, FileData *fd);
383
499d7ba62261 Move some dnd common code from view_dir_list.c and view_dir_tree.c
zas_
parents: 380
diff changeset
43
1637
cc3ccf3c7c27 unify code paths for New directory
nadvornik
parents: 1628
diff changeset
44 void vd_new_folder(ViewDir *vd, FileData *dir_fd);
cc3ccf3c7c27 unify code paths for New directory
nadvornik
parents: 1628
diff changeset
45
394
4a5e1377f3d7 Merge dirlist/dirview dnd code.
zas_
parents: 389
diff changeset
46 void vd_dnd_drop_scroll_cancel(ViewDir *vd);
4a5e1377f3d7 Merge dirlist/dirview dnd code.
zas_
parents: 389
diff changeset
47 void vd_dnd_init(ViewDir *vd);
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
48
395
c359fc2c5a1f Move common menu position callback to view_dir.c.
zas_
parents: 394
diff changeset
49 void vd_menu_position_cb(GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer data);
c359fc2c5a1f Move common menu position callback to view_dir.c.
zas_
parents: 394
diff changeset
50
396
a01535f52b56 Merge few more functions to view_dir.c.
zas_
parents: 395
diff changeset
51 void vd_activate_cb(GtkTreeView *tview, GtkTreePath *tpath, GtkTreeViewColumn *column, gpointer data);
a01535f52b56 Merge few more functions to view_dir.c.
zas_
parents: 395
diff changeset
52 void vd_color_cb(GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data);
a01535f52b56 Merge few more functions to view_dir.c.
zas_
parents: 395
diff changeset
53
1452
67b40740122e gint -> gboolean where applicable.
zas_
parents: 1284
diff changeset
54 gboolean vd_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
67b40740122e gint -> gboolean where applicable.
zas_
parents: 1284
diff changeset
55 gboolean vd_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data);
67b40740122e gint -> gboolean where applicable.
zas_
parents: 1284
diff changeset
56 gboolean vd_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data);
395
c359fc2c5a1f Move common menu position callback to view_dir.c.
zas_
parents: 394
diff changeset
57
380
5afe77bb563a Introduce a new struct ViewDir to handle directory views common
zas_
parents:
diff changeset
58 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 825
diff changeset
59 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */