2
* C Interface: ptk-file-list
7
* Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006
9
* Copyright: See COPYING file that comes with this distribution
13
#ifndef _PTK_FILE_LIST_H_
14
#define _PTK_FILE_LIST_H_
18
#include <glib-object.h>
20
#include <sys/types.h>
26
#define PTK_TYPE_FILE_LIST (ptk_file_list_get_type())
27
#define PTK_FILE_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PTK_TYPE_FILE_LIST, PtkFileList))
28
#define PTK_FILE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PTK_TYPE_FILE_LIST, PtkFileListClass))
29
#define PTK_IS_FILE_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PTK_TYPE_FILE_LIST))
30
#define PTK_IS_FILE_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PTK_TYPE_FILE_LIST))
31
#define PTK_FILE_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PTK_TYPE_FILE_LIST, PtkFileListClass))
33
/* Columns of folder view */
35
COL_FILE_BIG_ICON = 0,
47
typedef struct _PtkFileList PtkFileList;
48
typedef struct _PtkFileListClass PtkFileListClass;
62
GtkSortType sort_order;
63
/* Random integer to check whether an iter belongs to our model */
67
struct _PtkFileListClass
70
/* Default signal handlers */
71
void ( *file_created ) ( VFSDir* dir, const char* file_name );
72
void ( *file_deleted ) ( VFSDir* dir, const char* file_name );
73
void ( *file_changed ) ( VFSDir* dir, const char* file_name );
74
void ( *load_complete ) ( VFSDir* dir );
77
GType ptk_file_list_get_type (void);
79
PtkFileList *ptk_file_list_new ( VFSDir* dir, gboolean show_hidden );
81
void ptk_file_list_set_dir( PtkFileList* list, VFSDir* dir );
83
void ptk_file_list_show_thumbnails( PtkFileList* list, gboolean big,
87
/* I still have doubt if these functions work */
89
void ptk_file_list_show_hidden_files( PtkFileList* list );
91
void ptk_file_list_hide_hidden_files( PtkFileList* list );