1. ----------------------------------------------------------------------- 
  2. --              GtkAda - Ada95 binding for Gtk+/Gnome                -- 
  3. --                                                                   -- 
  4. --                Copyright (C) 2006-2011, AdaCore                   -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  21. -- -- -- -- -- -- -- -- -- -- -- --
  22. ----------------------------------------------------------------------- 
  23.  
  24. --  <description> 
  25. --  Gtk_File_Chooser_Widget is a widget suitable for selecting files. It is the 
  26. --  main building block of a Gtk_File_Chooser_Dialog. Most applications will 
  27. --  only need to use the latter; you can use Gtk_File_Chooser_Widget as part of 
  28. --  a larger window if you have special needs. 
  29. --  </description> 
  30. --  <c_version>2.8.17</c_version> 
  31. --  <group>Selectors</group> 
  32.  
  33. with Glib.Types; 
  34. with Gtk.Box; 
  35. with Gtk.File_Chooser; 
  36.  
  37. package Gtk.File_Chooser_Widget is 
  38.  
  39.    type Gtk_File_Chooser_Widget_Record is 
  40.      new Gtk.Box.Gtk_Vbox_Record with null record; 
  41.    type Gtk_File_Chooser_Widget is 
  42.      access all Gtk_File_Chooser_Widget_Record'Class; 
  43.  
  44.    function Get_Type return GType; 
  45.    --  Return the internal value associated with a Gtk_File_Chooser_Widget 
  46.  
  47.    procedure Gtk_New 
  48.      (Widget : out Gtk_File_Chooser_Widget; 
  49.       Action : Gtk.File_Chooser.File_Chooser_Action); 
  50.    procedure Initialize 
  51.      (Widget : access Gtk_File_Chooser_Widget_Record'Class; 
  52.       Action : Gtk.File_Chooser.File_Chooser_Action); 
  53.    --  Creates a new file chooser.  This is a file chooser widget that can 
  54.    --  be embedded in custom windows, and it is the same widget that is used by 
  55.    --  Gtk_File_Chooser_Dialog. 
  56.  
  57.    procedure Gtk_New_With_Backend 
  58.      (Widget  : out Gtk_File_Chooser_Widget; 
  59.       Action  : Gtk.File_Chooser.File_Chooser_Action; 
  60.       Backend : String); 
  61.    pragma Obsolescent (Gtk_New_With_Backend); 
  62.    procedure Initialize_With_Backend 
  63.      (Widget  : access Gtk_File_Chooser_Widget_Record'Class; 
  64.       Action  : Gtk.File_Chooser.File_Chooser_Action; 
  65.       Backend : String); 
  66.    pragma Obsolescent (Initialize_With_Backend); 
  67.    --  Creates a new file chooser with a specified backend.  This is 
  68.    --  especially useful if you use Gtk.File_Chooser.Set_Local_Only to allow 
  69.    --  non-local files.  This is a file chooser widget that can be embedded in 
  70.    --  custom windows and it is the same widget that is used by 
  71.    --  Gtk_File_Chooser_Dialog. 
  72.  
  73.    ---------------- 
  74.    -- Interfaces -- 
  75.    ---------------- 
  76.    --  This class implements several interfaces. See Glib.Types 
  77.    -- 
  78.    --  - "Gtk_File_Chooser" 
  79.  
  80.    package Implements_File_Chooser is new Glib.Types.Implements 
  81.      (Gtk.File_Chooser.Gtk_File_Chooser, 
  82.       Gtk_File_Chooser_Widget_Record, Gtk_File_Chooser_Widget); 
  83.    function "+" 
  84.      (Widget : access Gtk_File_Chooser_Widget_Record'Class) 
  85.       return Gtk.File_Chooser.Gtk_File_Chooser 
  86.       renames Implements_File_Chooser.To_Interface; 
  87.    function "-" 
  88.      (File : Gtk.File_Chooser.Gtk_File_Chooser) 
  89.       return Gtk_File_Chooser_Widget 
  90.       renames Implements_File_Chooser.To_Object; 
  91.    --  Converts to and from the Gtk_File_Chooser interface 
  92.  
  93. private 
  94.    pragma Import (C, Get_Type, "gtk_file_chooser_widget_get_type"); 
  95.  
  96. end Gtk.File_Chooser_Widget;