_
SelectionA 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.
Widget Hierarchy |
---|
GObject (see section Package Glib.Object)
Gtk_Object (see section Package Gtk.Object)
\___ Gtk_Widget (see section Package Gtk.Widget)
\___ Gtk_Container (see section Package Gtk.Container)
\___ Gtk_Bin (see section Package Gtk.Bin)
\___ Gtk_Window (see section Package Gtk.Window)
\___ Gtk_Dialog (see section Package Gtk.Dialog)
\___ Gtk_File_Selection (see section Package Gtk.File
|
Subprograms |
---|
Operations on the dialog | ||
procedure Gtk_New (File_Selection : out Gtk_File_Selection; Title : UTF8_String); | ||
Create a new file selection dialog. | ||
function Get_Type return Gtk.Gtk_Type; | ||
Return the internal value associated with a Gtk_File_Selection.
| ||
procedure Set_Filename (File_Selection : access Gtk_File_Selection_Record; Filename : UTF8_String); | ||
Highlight the given file in the dialog. | ||
function Get_Filename (File_Selection : access Gtk_File_Selection_Record) return UTF8_String; | ||
Get the selected file name.
| ||
procedure Complete (File_Selection : access Gtk_File_Selection_Record; Pattern : UTF8_String); | ||
Set the filter used to display the files. | ||
procedure Show_Fileop_Buttons (File_Selection : access Gtk_File_Selection_Record); | ||
When this function is called, the dialog includes a series of buttons | ||
procedure Hide_Fileop_Buttons (File_Selection : access Gtk_File_Selection_Record); | ||
Hide the buttons for file operations.
| ||
procedure Set_Show_File_Op_Buttons (File_Selection : access Gtk_File_Selection_Record; Flag : Boolean); | ||
Choose whether to display or not the file operation buttons. | ||
Getting the fields | ||
The following functions are provided to access the fields of the | ||
function Get_Action_Area (File_Selection : access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box; | ||
Return the action area. | ||
function Get_Button_Area (File_Selection : access Gtk_File_Selection_Record) return Gtk.Box.Gtk_Box; | ||
Return the button area. | ||
function Get_Dir_List (File_Selection : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; | ||
Return the list that display the list of directories.
| ||
function Get_File_List (File_Selection : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; | ||
Return the list that display the list of files in the selected directory
| ||
function Get_Cancel_Button (File_Selection : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; | ||
Return the Cancel button. | ||
function Get_Help_Button (File_Selection : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; | ||
Return the Help button. | ||
function Get_Ok_Button (File_Selection : access Gtk_File_Selection_Record) return Gtk.Button.Gtk_Button; | ||
Return the OK button. | ||
function Get_History_Pulldown (File_Selection : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; | ||
Return the menu that display the history of directories | ||
function Get_Selection_Entry (File_Selection : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; | ||
Return the entry used to set the filter on the list of directories. | ||
function Get_Selection_Text (File_Selection : access Gtk_File_Selection_Record) return Gtk.Widget.Gtk_Widget; | ||
Return the text displayed just above the Selection_Entry.
|