type Gtk_File_Selection_Record is new Gtk.Dialog.Gtk_Dialog_Record with private;
type Gtk_File_Selection is access all Gtk_File_Selection_Record'Class;
Filename_Property : constant Glib.Properties.Property_String;
Show_Fileops_Property : constant Glib.Properties.Property_Boolean;
Select_Multiple_Property : constant Glib.Properties.Property_Boolean;
procedure Gtk_New
( | File_Selection | : out Gtk_File_Selection; |
Title | : UTF8_String); |
procedure Initialize
( | File_Selection | : access Gtk_File_Selection_Record'Class; |
Title | : UTF8_String); |
function Get_Type return Gtk.Gtk_Type;
procedure Set_Filename
( | File_Selection | : access Gtk_File_Selection_Record; |
Filename | : UTF8_String); |
function Get_Filename
( | File_Selection | : access Gtk_File_Selection_Record) return UTF8_String; |
function Get_Selections
( | Filesel | : access Gtk_File_Selection_Record) return GNAT.Strings.String_List; |
procedure Complete
( | File_Selection | : access Gtk_File_Selection_Record; |
Pattern | : UTF8_String); |
procedure Show_Fileop_Buttons
( | File_Selection | : access Gtk_File_Selection_Record); |
procedure Hide_Fileop_Buttons
( | File_Selection | : access Gtk_File_Selection_Record); |
procedure Set_Show_File_Op_Buttons
( | File_Selection | : access Gtk_File_Selection_Record; |
Flag | : Boolean); |
procedure Set_Select_Multiple
( | Filesel | : access Gtk_File_Selection_Record; |
Select_Multiple | : Boolean); |
function Get_Select_Multiple
( | Filesel | : access Gtk_File_Selection_Record) return Boolean; |
function Get_Action_Area
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box; |
function Get_Button_Area
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box; |
function Get_Dir_List
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_File_List
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Cancel_Button
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; |
function Get_Help_Button
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; |
function Get_Ok_Button
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; |
function Get_History_Pulldown
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Selection_Entry
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Selection_Text
( | File_Selection | : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; |
A Gtk_File_Selection is a general widget to interactively select file.
It displays a dialog in which the user can navigate through directories, select a file, and even manipulate files with operations like removing, renaming,...
Currently, only one file can be selected in the dialog.
Binding from C File version 2.8.17
<testgtk>create_file_selection.adb</testgtk>