with Gtk.Menu_Item; use Gtk.Menu_Item; with Gtk; use Gtk; with Gtk.Main; use Gtk.Main; with Glib.Error; use Glib.Error; with Gtk.Widget; use Gtk.Widget; with Gtk.Dialog; use Gtk.Dialog; with Gtk.About_Dialog; use Gtk.About_Dialog; with Gtk.Label; use Gtk.Label; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Gtkada.Builder; use Gtkada.Builder; --with graphical_editor.manual_callbacks; use graphical_editor.manual_callbacks; with convert_unbounded_strings; --use convert_unbounded_strings; with manual; use manual; with graphical_editor.import_aadls_callbacks; use graphical_editor.import_aadls_callbacks; with Glib; use Glib; package body graphical_editor.import_aadls is procedure Show_file_chooser_Dialog is Builder : Gtkada_Builder; Error : Glib.Error.GError; begin Gtk.Main.Init; Gtk_New (Builder); Error := Add_From_File (Builder, to_string(Glade_path) & "import_aadl.glade"); if Error /= null then Ada.Text_IO.Put_Line ("Error : " & Get_Message (Error)); Error_Free (Error); return; end if; Register_Handler (Builder => Builder, Handler_Name => "on_button1_clicked", Handler => graphical_editor.import_aadls_callbacks.import_aadl_file'Access); Register_Handler (Builder => Builder, Handler_Name => "on_button2_clicked", Handler => graphical_editor.import_aadls_callbacks.cancel'Access); Do_Connect (Builder); Gtk.Widget.Show_All (Get_Widget (Builder, "filechooserdialog1")); Gtk.Main.Main; Unref (Builder); end Show_file_chooser_Dialog; end graphical_editor.import_aadls;