X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=Ada95%2Fgen%2Fterminal_interface-curses-menus.ads.m4;h=7b87274caabb1306a05460fced99848382677e83;hp=d3e4592028bb40604b3654435e0551738437e9a4;hb=027ae42953e3186daed8f3882da73de48291b606;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/Ada95/gen/terminal_interface-curses-menus.ads.m4 b/Ada95/gen/terminal_interface-curses-menus.ads.m4 index d3e45920..7b87274c 100644 --- a/Ada95/gen/terminal_interface-curses-menus.ads.m4 +++ b/Ada95/gen/terminal_interface-curses-menus.ads.m4 @@ -1,5 +1,5 @@ -- -*- ada -*- -define(`HTMLNAME',`terminal_interface-curses-menus_s.html')dnl +define(`HTMLNAME',`terminal_interface-curses-menus__ads.htm')dnl include(M4MACRO)dnl ------------------------------------------------------------------------------ -- -- @@ -10,7 +10,7 @@ include(M4MACRO)dnl -- S P E C -- -- -- ------------------------------------------------------------------------------ --- Copyright (c) 1998 Free Software Foundation, Inc. -- +-- Copyright (c) 1998,2006 Free Software Foundation, Inc. -- -- -- -- Permission is hereby granted, free of charge, to any person obtaining a -- -- copy of this software and associated documentation files (the -- @@ -36,21 +36,20 @@ include(M4MACRO)dnl -- sale, use or other dealings in this Software without prior written -- -- authorization. -- ------------------------------------------------------------------------------ --- Author: Juergen Pfeifer 1996 +-- Author: Juergen Pfeifer, 1996 -- Version Control: --- $Revision: 1.12 $ --- Binding Version 00.93 +-- $Revision: 1.26 $ +-- $Date: 2006/06/25 14:30:22 $ +-- Binding Version 01.00 ------------------------------------------------------------------------------ include(`Menu_Base_Defs') with System; -with Interfaces.C; with Ada.Characters.Latin_1; package Terminal_Interface.Curses.Menus is - pragma Preelaborate (Menus); -include(`Menu_Linker_Options') - - + pragma Preelaborate (Terminal_Interface.Curses.Menus); +include(`Menu_Linker_Options')dnl +include(`Linker_Options') Space : Character renames Ada.Characters.Latin_1.Space; type Item is private; @@ -117,8 +116,10 @@ include(`Menu_Linker_Options') -- -- Menu options -- + pragma Warnings (Off); +include(`Menu_Opt_Rep')dnl -include(`Menu_Opt_Rep') + pragma Warnings (On); function Default_Menu_Options return Menu_Option_Set; -- Initial default options for a menu. @@ -126,7 +127,10 @@ include(`Menu_Opt_Rep') -- -- Item options -- -include(`Item_Rep') + pragma Warnings (Off); +include(`Item_Rep')dnl + + pragma Warnings (On); function Default_Item_Options return Item_Option_Set; -- Initial default options for an item. @@ -470,6 +474,13 @@ include(`Item_Rep') procedure Set_Format (Men : in Menu; Lines : in Line_Count; Columns : in Column_Count); + -- Not implemented: 0 argument for Lines or Columns; + -- instead use Format to get the current sizes + -- The default format is 16 rows, 1 column. Calling + -- set_menu_format with a null menu pointer will change this + -- default. A zero row or column argument to set_menu_format + -- is interpreted as a request not to change the current + -- value. -- AKA pragma Inline (Set_Format); @@ -539,7 +550,7 @@ include(`Item_Rep') procedure Set_Items (Men : in Menu; Items : in Item_Array_Access) renames Redefine; - pragma Inline (Set_Items); + -- pragma Inline (Set_Items); -- ANCHOR(`menu_items()',`Items') function Items (Men : Menu; @@ -567,7 +578,7 @@ include(`Item_Rep') -- Reset Men to Null_Menu -- Not inlined - -- MANPAGE(`menu_new.3x') + -- MANPAGE(`menu_driver.3x') type Driver_Result is (Menu_Ok, Request_Denied, @@ -580,12 +591,14 @@ include(`Item_Rep') -- AKA -- Driver is not inlined + -- ANCHOR(`menu_requestname.3x') + -- Not Implemented: menu_request_name, menu_request_by_name ------------------------------------------------------------------------------- private - type Item is new System.Address; - type Menu is new System.Address; + type Item is new System.Storage_Elements.Integer_Address; + type Menu is new System.Storage_Elements.Integer_Address; - Null_Item : constant Item := Item (System.Null_Address); - Null_Menu : constant Menu := Menu (System.Null_Address); + Null_Item : constant Item := 0; + Null_Menu : constant Menu := 0; end Terminal_Interface.Curses.Menus;