---------------------------------------------------------------
--                                                           
--  RAPID - Rapid Ada Portable Interface Designer
--                                                           
--  GUI-WIDGET-CHECK_BUTTON.ADS 
--  Description : GUI Widget Check Button 
--                       
--  By: Martin Carlisle and Patrick Maes
--                                         
-- RAPID is free software; you can redistribute it and/or 
-- modify it without restriction.  However, we ask that you
-- please retain the original author information, and clearly  
-- indicate if it has been modified.
--
-- RAPID is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty
-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
--
---------------------------------------------------------------
with Ada.Text_Io;
with Mcc.Gui.Container;
with Mcc.Gui.Widget.Text_Entry;

package Gui.Widget.Check_Button is

   type Check_Button is new Gui.Widget.Gui_Widget with record
      Text : String_Pointer;
      Data : String_Pointer;
      Text_Entry : Mcc.Gui.Widget.Text_Entry.Text_Entry_Pointer;
      Data_Entry : Mcc.Gui.Widget.Text_Entry.Text_Entry_Pointer;
   end record;

   -- reads information from file into GUI_Widget,
   -- assumes keyword already read.
   procedure Read_Widget (Widget : in out Check_Button;
      File        : in Ada.Text_Io.File_Type);

   -- Writes information to file from GUI_Widget
   procedure Write_Widget (Widget : in Check_Button;
      File : in Ada.Text_Io.File_Type);

   -- mcc 05/23/00
   procedure Generate_Action_Context_Clause(Widget : in Check_Button;
      File : in Ada.Text_IO.File_Type);

   -- wbw 6/6/99      
   procedure Generate_Widget_Context_Clause(Widget : in Check_Button;
      File : in Ada.Text_IO.File_Type);

   -- wbw 6/6/99      
   procedure Generate_Widget_Declaration(Widget : in Check_Button;
      File : in Ada.Text_IO.File_Type);

   -- wbw 5/10/99      
   procedure Generate_Widget_Creation(Widget : in Check_Button;
      File        : in Ada.Text_IO.File_Type;
      Window_Name : in String);

   procedure Generate_Fill_Action(Widget : in Check_Button;
      File        : in Ada.Text_IO.File_Type);

   procedure Generate_Read_Action(Widget : in Check_Button;
      File        : in Ada.Text_IO.File_Type);

   procedure Display_Widget (Widget : in out Check_Button;
      Container : in out Mcc.Gui.Container.Container'Class);

   procedure Set_Properties(Widget : in out Check_Button);

   procedure Apply_Properties(Widget : in out Check_Button);

   procedure Check_Properties(Widget : in out Check_Button;
      Ok : out Boolean);

end Gui.Widget.Check_Button;