r1447: Middle button clicks on the pinboard are passed to the window manager.
[rox-filer.git] / ROX-Filer / src / global.h
blob850bad9f7d5594319cb980fe2e5fea93b2ae8522
1 /*
2 * $Id$
4 * ROX-Filer, filer for the ROX desktop project
5 * By Thomas Leonard, <tal197@users.sourceforge.net>.
6 */
8 /* global.h is included by most of the other source files, just after
9 * including config.h and the system header files, but before any other
10 * ROX-Filer header files.
13 #include <glib.h>
15 /* We put all the global typedefs here to avoid creating dependencies
16 * between header files.
19 /* Each filer window has one of these all to itself */
20 typedef struct _FilerWindow FilerWindow;
22 /* There is one Directory object per cached disk directory inode number.
23 * Multiple FilerWindows may share a single Directory. Directories
24 * are cached, so a Directory may exist without any filer windows
25 * referencing it at all.
27 typedef struct _Directory Directory;
29 /* Each item in a directory has a DirItem. The contains information from
30 * stat()ing the file, plus a few other bits. There may be several of these
31 * for a single file, if it appears (hard-linked) in several directories.
32 * Each pinboard and panel icon also has one of these (not shared).
34 typedef struct _DirItem DirItem;
36 /* A Collection is a GtkWidget used to arrange a grid of items.
37 * Each filer window has its own one of these; the data field
38 * of each item is the corresponding DirItem, shared with the
39 * FilerWindow's Directory and other windows' Collections.
41 typedef struct _Collection Collection;
43 /* Each item in a Collection has one of these, which stores its selected
44 * state, data, and view_data.
46 typedef struct _CollectionItem CollectionItem;
48 /* This contains the pixbufs for an image, in various sizes */
49 typedef struct _MaskedPixmap MaskedPixmap;
51 /* Each MIME type (eg 'text/plain') has one of these. It contains
52 * a link to the image and the type's name (used so that the image can
53 * be refreshed, amoung other things).
55 typedef struct _MIME_type MIME_type;
57 /* Icon is an abstract base class for pinboard and panel icons.
58 * It contains the name and path of the icon, as well as its DirItem.
60 typedef struct _Icon Icon;
62 /* There will be one of these if the pinboard is in use. It contains
63 * the name of the pinboard and links to the pinned Icons inside.
65 typedef struct _Pinboard Pinboard;
67 /* There is one of these for each panel window open. Panels work rather
68 * like little pinboards, but with a more rigid layout.
70 typedef struct _Panel Panel;
72 /* Each option has a static Option structure. This is initialised by
73 * calling option_add_int() or similar. See options.c for details.
74 * This structure is read-only.
76 typedef struct _Option Option;
78 /* A filesystem cache provides a quick and easy way to load files.
79 * When a cache is created, functions to load and update files are
80 * registered to it. Requesting an object from the cache will load
81 * or update it as needed, or return the cached copy if the current
82 * version of the file is already cached.
83 * Caches are used to access directories, images and XML files.
85 typedef struct _GFSCache GFSCache;
87 /* Each cached XML file is represented by one of these */
88 typedef struct _XMLwrapper XMLwrapper;
90 /* The minibuffer is a text field which appears at the bottom of
91 * a filer window. It has four modes of operation:
93 typedef enum {
94 MINI_NONE,
95 MINI_PATH,
96 MINI_SHELL,
97 MINI_SELECT_IF,
98 } MiniType;
100 /* The next two correspond to the styles on the Display submenu: */
102 typedef enum { /* Values used in options, must start at 0 */
103 LARGE_ICONS = 0,
104 SMALL_ICONS = 1,
105 HUGE_ICONS = 2,
106 UNKNOWN_STYLE
107 } DisplayStyle;
109 typedef enum { /* Values used in options, must start at 0 */
110 DETAILS_NONE = 0,
111 DETAILS_SUMMARY = 1,
112 DETAILS_SIZE = 2,
113 DETAILS_PERMISSIONS = 3,
114 DETAILS_TYPE = 4,
115 DETAILS_TIMES = 5,
116 DETAILS_UNKNOWN = -1,
117 } DetailsType;
119 /* The namespaces for the SOAP messages */
120 #define SOAP_ENV_NS_OLD "http://www.w3.org/2001/06/soap-envelope"
121 #define SOAP_ENV_NS "http://www.w3.org/2001/12/soap-envelope"
122 #define SOAP_RPC_NS "http://www.w3.org/2001/12/soap-rpc"
123 #define ROX_NS "http://rox.sourceforge.net/SOAP/ROX-Filer"
125 #include <libxml/tree.h>