text stringlengths 0 234 |
|---|
for i in 1 .. Integer (Parent.Children.Length) |
loop |
declare |
use ada.Characters.handling; |
the_Child : constant Package_view := Parent.Children.Element (i); |
begin |
if to_Lower (+the_Child.Name) = to_Lower (Named) then |
return the_Child; |
end if; |
Function Definition: procedure build_recent_List (Self : in out Item) |
Function Body: is |
the_Recent : constant text_Lines := recent_Types.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 ada.Strings.Unbounded; |
the_Type : Text renames the_Recent.Element (i); |
begin |
new_Line; |
put_Line (+("Recent: " & the_Type)); |
put_Line (" Tail: " & assist. Tail_of (+the_Type)); |
put_Line (" Head: " & assist.strip_Tail_of (+the_Type)); |
-- gtk_New (the_Button, +the_Type); |
the_Button := aIDE.Palette.types_package.new_Button (Named => assist. Tail_of (+the_Type), |
package_Name => assist.strip_Tail_of (+the_Type), |
types_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 Name_is (Self : in out Item; Now : in String) |
Function Body: is |
begin |
Self.Name := +Now; |
end Name_is; |
function full_Name (Self : in Item) return Identifier |
is |
use type Entity.view; |
begin |
if Self.parent_Entity = null |
then |
return "Standard." & (+Self.Name); |
else |
return a_Package.view (Self.parent_Entity).full_Name & "." & (+Self.Name); |
end if; |
end full_Name; |
-- Streams |
-- |
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class; |
Self : in View) |
is |
use Ada.Tags; |
begin |
if Self = null |
then |
AdaM.Id'write (Stream, null_Id); |
return; |
end if; |
AdaM.Id'write (Stream, Self.Id); |
String 'output (Stream, external_Tag (Self.all'Tag)); |
end View_write; |
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class; |
Self : out View) |
is |
Id : AdaM.Id; |
begin |
AdaM.Id'read (Stream, Id); |
if Id = null_Id |
then |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.