2
{$IFDEF read_forward_definitions}
5
{$IFDEF read_interface_types}
7
PGtkFileChooserDialogPrivate = pointer;
8
PPGtkFileChooserDialogPrivate = ^PGtkFileChooserDialogPrivate;
10
PGtkFileChooserIface = ^TGtkFileChooserIface;
11
TGtkFileChooserIface = record
12
base_iface : TGTypeInterface;
14
set_current_folder : function (chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;cdecl;
15
get_current_folder : function (chooser:PGtkFileChooser):PGtkFilePath;
16
set_current_name : procedure (chooser:PGtkFileChooser; name:Pgchar);
17
select_path : function (chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;
18
unselect_path : procedure (chooser:PGtkFileChooser; path:PGtkFilePath);
19
select_all : procedure (chooser:PGtkFileChooser);
20
unselect_all : procedure (chooser:PGtkFileChooser);
21
get_paths : function (chooser:PGtkFileChooser):PGSList;
22
get_preview_path : function (chooser:PGtkFileChooser):PGtkFilePath;
23
get_file_system : function (chooser:PGtkFileChooser):PGtkFileSystem;
24
add_filter : procedure (chooser:PGtkFileChooser; filter:PGtkFileFilter);
25
remove_filter : procedure (chooser:PGtkFileChooser; filter:PGtkFileFilter);
26
list_filters : function (chooser:PGtkFileChooser):PGSList;
27
add_shortcut_folder : function (chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;
28
remove_shortcut_folder : function (chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;
29
list_shortcut_folders : function (chooser:PGtkFileChooser):PGSList;
32
current_folder_changed : procedure (chooser:PGtkFileChooser);
33
selection_changed : procedure (chooser:PGtkFileChooser);
34
update_preview : procedure (chooser:PGtkFileChooser);
35
file_activated : procedure (chooser:PGtkFileChooser);
40
{$IFDEF read_interface_rest}
44
function GTK_FILE_CHOOSER_GET_IFACE(inst : PGTypeInstance) : PGtkFileChooserIface;
48
function _gtk_file_chooser_get_file_system(chooser:PGtkFileChooser):PGtkFileSystem;cdecl;external gtklib name '_gtk_file_chooser_get_file_system';
50
function _gtk_file_chooser_set_current_folder_path(chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;cdecl;external gtklib name '_gtk_file_chooser_set_current_folder_path';
51
function _gtk_file_chooser_get_current_folder_path(chooser:PGtkFileChooser):PGtkFilePath;cdecl;external gtklib name '_gtk_file_chooser_get_current_folder_path';
53
function _gtk_file_chooser_select_path(chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;cdecl;external gtklib name '_gtk_file_chooser_select_path';
54
procedure _gtk_file_chooser_unselect_path(chooser:PGtkFileChooser; path:PGtkFilePath);cdecl;external gtklib name '_gtk_file_chooser_unselect_path';
56
function _gtk_file_chooser_get_paths(chooser:PGtkFileChooser):PGSList;cdecl;external gtklib name '_gtk_file_chooser_get_paths';
57
function _gtk_file_chooser_get_preview_path(chooser:PGtkFileChooser):PGtkFilePath;cdecl;external gtklib name '_gtk_file_chooser_get_preview_path';
59
function _gtk_file_chooser_add_shortcut_folder(chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;cdecl;external gtklib name '_gtk_file_chooser_add_shortcut_folder';
60
function _gtk_file_chooser_remove_shortcut_folder(chooser:PGtkFileChooser; path:PGtkFilePath; error:PPGError):gboolean;cdecl;external gtklib name '_gtk_file_chooser_remove_shortcut_folder';
62
{$endif} {interface_rest}
64
{************************************************}
66
{$IFDEF read_implementation}
69
function GTK_FILE_CHOOSER_GET_IFACE(inst : PGTypeInstance) : PGtkFileChooserIface;
72
GTK_FILE_CHOOSER_GET_IFACE:=G_TYPE_INSTANCE_GET_INTERFACE(inst,GTK_TYPE_FILE_CHOOSER);
75
{$ENDIF} {read_implementation}