text stringlengths 0 234 |
|---|
-- "button-release-event", |
-- on_tab_Label_clicked'Access, |
-- (package_name => the_Package.Name, |
-- palette => Self'unchecked_Access)); |
-- end; |
-- Build each childs Gui. |
-- |
for i in 1 .. Integer (the_Children.Length) |
loop |
build_Gui_for (the_Children.Element (i), |
the_exceptions_Palette_package.children_Notebook); -- Recurse. |
end loop; |
enable_bold_Tabs_for (the_exceptions_Palette_package.children_Notebook); |
end build_Gui_for; |
begin |
-- Recursively add sub-gui's for each package, rooted at 'Standard'. |
-- |
-- for i in 1 .. Integer (the_Environ.standard_Package.Children.Length) |
-- loop |
-- build_Gui_for (the_Environ.standard_Package.child_Packages.Element (i).all'Access, |
-- Self.all_Notebook); |
-- end loop; |
-- for i in 1 .. Integer (the_entity_Environ.standard_Package.child_Packages.Length) |
-- loop |
-- build_Gui_for (the_Environ.standard_Package.child_Packages.Element (i).all'Access, |
-- Self.all_Notebook); |
-- end loop; |
build_Gui_for (the_entity_Environ.standard_Package, |
Self.all_Notebook); |
Self.all_Notebook.Popup_enable; |
Self.all_Notebook.Show_All; |
end build_Gui_Tree; |
Self.build_recent_List; -- todo: This is useless til usage stats are made persistent. |
end freshen; |
procedure destroy_Callback (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class) |
is |
begin |
Widget.destroy; |
end destroy_Callback; |
procedure build_recent_List (Self : in out Item) |
is |
-- the_Recent : constant adam.text_Lines := recent_Exceptions.fetch; |
the_Recent : constant adam.Declaration.of_exception.vector := recent_Exceptions.fetch; |
the_Button : gtk_Button; |
Row, Col : Guint := 0; |
begin |
Self.recent_Table.Foreach (destroy_Callback'Access); |
for i in 1 .. Integer (the_Recent.Length) |
loop |
declare |
use adam, |
ada.Strings.Unbounded; |
-- the_Exception : adam.Text renames the_Recent.Element (i); |
the_Exception : constant adam.Declaration.of_exception.view := the_Recent.Element (i); |
begin |
put_Line ("Recent: " & String (the_Exception.full_Name)); |
put_Line ("Named : " & String (assist. Tail_of (the_Exception.full_Name))); |
put_Line ("package_Name: " & String (assist.strip_Tail_of (the_Exception.full_Name))); |
-- gtk_New (the_Button, +the_Exception); |
the_Button := aIDE.Palette.of_exceptions_subpackages.new_Button |
(for_Exception => the_Exception, |
Named => String (assist. Tail_of (the_Exception.full_Name)), |
package_Name => String (assist.strip_Tail_of (the_Exception.full_Name)), |
exceptions_Palette => Self'unchecked_Access, |
use_simple_Name => False); |
Self.recent_Table.attach (the_Button, |
Col, Col + 1, |
Row, Row + 1, |
Xoptions => 0, |
Yoptions => 0); |
the_Button.show_All; |
if Row = 6 then |
Row := 0; |
Col := Col + 1; |
else |
Row := Row + 1; |
end if; |
Function Definition: procedure register_Usage (the_Exception : in AdaM.a_Type.view); |
Function Body: function fetch return AdaM.a_Type.vector; |
end recent_Exceptions; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.