diff src/typedefs.h @ 554:2da72a136070

Prepare merging of some parts of view_file_list and view_file_icon and simplification of view_file* interface.
author zas_
date Sat, 03 May 2008 09:41:09 +0000
parents 011a6be611c8
children fe675761d091
line wrap: on
line diff
--- a/src/typedefs.h	Sat May 03 08:35:08 2008 +0000
+++ b/src/typedefs.h	Sat May 03 09:41:09 2008 +0000
@@ -28,6 +28,11 @@
 } DirViewType;
 
 typedef enum {
+	FILEVIEW_LIST,
+	FILEVIEW_ICON
+} FileViewType;
+
+typedef enum {
 	CMD_COPY = GQ_EDITOR_GENERIC_SLOTS,
 	CMD_MOVE,
 	CMD_RENAME,
@@ -142,9 +147,12 @@
 typedef struct _FileDataChangeInfo FileDataChangeInfo;
 
 typedef struct _LayoutWindow LayoutWindow;
+
 typedef struct _ViewDir ViewDir;
 typedef struct _ViewDirInfoList ViewDirInfoList;
 typedef struct _ViewDirInfoTree ViewDirInfoTree;
+
+typedef struct _ViewFile ViewFile;
 typedef struct _ViewFileList ViewFileList;
 typedef struct _ViewFileIcon ViewFileIcon;
 
@@ -492,6 +500,9 @@
 
 	LayoutLocation file_location;
 
+	ViewFile *vf;
+	FileViewType file_view_type;
+
 	ViewFileList *vfl;
 	ViewFileIcon *vfi;
 	GtkWidget *file_view;
@@ -586,6 +597,33 @@
 	gint busy_ref;
 };
 
+
+struct _ViewFile
+{
+	FileViewType type;
+	gpointer info;
+
+	GtkWidget *widget;
+	GtkWidget *listview;
+
+	gchar *path;
+	GList *list;
+
+	SortType sort_method;
+	gint sort_ascend;
+
+	/* func list */
+	void (*func_thumb_status)(ViewFile *vf, gdouble val, const gchar *text, gpointer data);
+	gpointer data_thumb_status;
+
+	void (*func_status)(ViewFile *vf, gpointer data);
+	gpointer data_status;
+
+	LayoutWindow *layout;
+
+	GtkWidget *popup;
+};
+
 struct _ViewFileList
 {
 	GtkWidget *widget;