1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 
3 /* fm-list-view.h - interface for list view of directory.
4 
5    Copyright (C) 2000 Eazel, Inc.
6    Copyright (C) 2001 Anders Carlsson <andersca@gnu.org>
7 
8    The Mate Library is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Library General Public License as
10    published by the Free Software Foundation; either version 2 of the
11    License, or (at your option) any later version.
12 
13    The Mate Library is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    Library General Public License for more details.
17 
18    You should have received a copy of the GNU Library General Public
19    License along with the Mate Library; see the file COPYING.LIB.  If not,
20    write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21    Boston, MA 02110-1301, USA.
22 
23    Authors: John Sullivan <sullivan@eazel.com>
24             Anders Carlsson <andersca@gnu.org>
25 */
26 
27 #ifndef FM_LIST_VIEW_H
28 #define FM_LIST_VIEW_H
29 
30 #include "fm-directory-view.h"
31 
32 #define FM_TYPE_LIST_VIEW fm_list_view_get_type()
33 #define FM_LIST_VIEW(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST ((obj), FM_TYPE_LIST_VIEW, FMListView))
35 #define FM_LIST_VIEW_CLASS(klass) \
36   (G_TYPE_CHECK_CLASS_CAST ((klass), FM_TYPE_LIST_VIEW, FMListViewClass))
37 #define FM_IS_LIST_VIEW(obj) \
38   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FM_TYPE_LIST_VIEW))
39 #define FM_IS_LIST_VIEW_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_TYPE ((klass), FM_TYPE_LIST_VIEW))
41 #define FM_LIST_VIEW_GET_CLASS(obj) \
42   (G_TYPE_INSTANCE_GET_CLASS ((obj), FM_TYPE_LIST_VIEW, FMListViewClass))
43 
44 #define FM_LIST_VIEW_ID "OAFIID:Caja_File_Manager_List_View"
45 
46 typedef struct FMListViewDetails FMListViewDetails;
47 
48 typedef struct
49 {
50     FMDirectoryView parent_instance;
51     FMListViewDetails *details;
52 } FMListView;
53 
54 typedef struct
55 {
56     FMDirectoryViewClass parent_class;
57 } FMListViewClass;
58 
59 GType fm_list_view_get_type (void);
60 void  fm_list_view_register (void);
61 GtkTreeView* fm_list_view_get_tree_view (FMListView *list_view);
62 
63 #endif /* FM_LIST_VIEW_H */
64