1. private with Events; 
  2. private with Events.Listeners; 
  3. private with Widgets.Buttons; 
  4.  
  5. package Widgets.Containers.Panels.Dialogs.Properties is 
  6.  
  7.     function Create_Properties_Dialog( view : not null access Game_Views.Game_View'Class; 
  8.                                        id   : String ) return A_Dialog; 
  9.     pragma Precondition( id'Length > 0 ); 
  10.     pragma Postcondition( Create_Properties_Dialog'Result /= null ); 
  11.  
  12. private 
  13.  
  14.     use Events; 
  15.     use Events.Listeners; 
  16.     use Widgets.Buttons; 
  17.  
  18.     type Properties_Dialog is new Dialog and 
  19.          Button_Listener and 
  20.          Event_Listener with null record; 
  21.  
  22.     procedure Construct( this : access Properties_Dialog; 
  23.                          view : not null access Game_Views.Game_View'Class; 
  24.                          id   : String ); 
  25.     pragma Precondition( id'Length > 0 ); 
  26.  
  27.     procedure Delete( this : in out Properties_Dialog ); 
  28.  
  29.     procedure Do_Apply( this : access Properties_Dialog ); 
  30.  
  31.     procedure Handle_Action( this   : access Properties_Dialog; 
  32.                              action : A_Button_Action ); 
  33.  
  34.     procedure Handle_Action( this    : access Properties_Dialog; 
  35.                              action  : A_Key_Action; 
  36.                              handled : out Boolean ); 
  37.  
  38.     procedure Handle_Event( this : access Properties_Dialog; 
  39.                             evt  : in out A_Event; 
  40.                             resp : out Response_Type ); 
  41.     pragma Precondition( evt /= null ); 
  42.  
  43.     procedure Handle_Hide( this : access Properties_Dialog ); 
  44.  
  45.     procedure Handle_Show( this : access Properties_Dialog ); 
  46.  
  47.     procedure Show( this : access Properties_Dialog ); 
  48.  
  49. end Widgets.Containers.Panels.Dialogs.Properties;