text stringlengths 0 234 |
|---|
Table.Put (""); |
for M in 1 .. Last_Month loop |
if M mod Step = 0 and M > 9 then |
Table.Put (Image (M / 10)); |
else |
Table.Put (""); |
end if; |
Table.Put (""); |
end loop; |
Table.New_Row; |
end First_Header_Line; |
procedure Second_Header_Line is |
begin |
Table.Put (""); |
Table.Put (""); |
for M in 1 .. Last_Month loop |
if M mod Step = 0 then |
Table.Put (Image (M mod 10)); |
else |
Table.Put (""); |
end if; |
Table.Put (""); |
end loop; |
Table.New_Row; |
end Second_Header_Line; |
procedure Show_Busy_Time (Item : EU_Projects.Nodes.Action_Nodes.Action_Node'Class) |
is |
From : constant Instant := Item.Starting_Time; |
To : constant Instant := Item.Ending_Time; |
begin |
if From = To_Be_Decided or To = To_Be_Decided then |
for M in 1 .. Last_Month loop |
Table.Put ("\TBDcell"); |
Table.Put (""); |
end loop; |
else |
declare |
T : Instant; |
begin |
for M in 1 .. Last_Month loop |
T := To_Instant (M); |
Table.Put ((if T >= From and then T <= To |
then |
"\busytimecell" |
else |
"\freetimecell")); |
Table.Put (""); |
end loop; |
Function Definition: procedure Make_WP_Separator; |
Function Body: Current_V_Pos : Picture_Length; |
function Month_Position (Month : Projects.Month_Number; |
Setup : Graphic_Setup_Descriptor) |
return Picture_Length |
is (Setup.Label_Size + (Integer (Month) - 1) * Setup.Month_Width); |
function To_Length (L : Picture_Length; |
Setup : Graphic_Setup_Descriptor) |
return Latex_Length |
is (Float (L) * Setup.Unit_Length); |
procedure Next_Row is |
begin |
-- Put_Line (Current_V_Pos'Image); |
-- Put_Line (Graphic_Setup.Month_Heigth'Image); |
-- Put_Line (Graphic_Setup.Interline'image); |
Current_V_Pos := Current_V_Pos - Graphic_Setup.Line_Heigth; |
end Next_Row; |
procedure Show_Busy_Time (Item : EU_Projects.Nodes.Action_Nodes.Action_Node'Class; |
Style : String; |
Intensity : EU_Projects.Nodes.Action_Nodes.Tasks.Task_Intensity) |
is |
procedure Make_Bar (From, To : Month_Number; |
Command : String; |
Show_Intensity : Boolean) is |
Start : constant Picture_Length := |
Month_Position (From, Graphic_Setup); |
Len : constant Latex_Length := |
To_Length (Month_Position (To, Graphic_Setup)-Start, Graphic_Setup); |
Shrink : constant Float := 0.8; |
H : constant Latex_Length := |
Shrink * To_Length (Graphic_Setup.Line_Heigth, Graphic_Setup); |
H2 : constant Latex_Length := Float'Max (Intensity, 0.15) * H; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.