-- Auto generated by RAPID
-- By: Martin C. Carlisle and W. Blair Watkinson II

with Subwindow_Actions;
with Subwindow_Actions;
with Subwindow_Actions;
with Subwindow_Actions;


with Mcc.Gui.Fonts;

package body check_button_dialog_window is

   procedure Generate_Window is
   begin

      if Mcc.Gui.Container.Window.Is_Open(Mcc.Gui.Container.Window.Window(check_button_dialog_window)) then
         raise Already_Open;
      end if;

      Mcc.Gui.Container.Window.Create(
         Obj    => check_button_dialog_window,
         X      => 0,
         Y      => 0,
         Width  => 237,
         Height => 327);

      Mcc.Gui.Container.Window.Set_Title(
         Obj   => check_button_dialog_window,
         Title => "Checkbutton Properties");


      Mcc.Gui.Widget.Label.Create(
         Obj     => label1,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 5,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Widget name");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry1,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 5,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => label2,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 35,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "X");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry2,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 35,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => label3,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 65,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Y");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry3,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 65,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => label4,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 95,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Width");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry4,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 95,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => label5,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 125,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Height");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry5,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 125,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => label6,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 155,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Text");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry6,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 155,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => autofill,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 227,
         Width   => 205,
         Height  => 19,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Specify fully qualified name or leave blank");
      Mcc.Gui.Widget.Label.Set_Foreground_Color(
         Obj       => autofill,
         New_Color => Mcc.Gui.Colors.Named_Color(
            Mcc.Gui.Colors.black));
      Mcc.Gui.Widget.Label.Create(
         Obj     => data_label,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 250,
         Width   => 110,
         Height  => 20,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Boolean variable");
      Mcc.Gui.Widget.Text_Entry.Create(
         Obj    => entry7,
         Parent => check_button_dialog_window,
         X      => 110,
         Y      => 252,
         Width  => 100,
         Height => 20);
      Mcc.Gui.Widget.Label.Create(
         Obj     => font_label,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 184,
         Width   => 110,
         Height  => 13,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Font: ");
      Mcc.Gui.Widget.Button.Text.Create(
         Obj    => change_font,
         Parent => check_button_dialog_window,
         X      => 112,
         Y      => 187,
         Width  => 96,
         Height => 21,
         Text   => "Change Font");
      Mcc.Gui.Widget.Button.Set_Push_Callback(
         Obj      => change_font'access,
         Callback => Subwindow_Actions.Change_Font'access);
      Mcc.Gui.Widget.Label.Create(
         Obj     => font_style,
         Parent  => check_button_dialog_window,
         X       => 0,
         Y       => 201,
         Width   => 110,
         Height  => 15,
         Justify => Mcc.Gui.Widget.Label.left,
         Text    => "Default");
      Mcc.Gui.Widget.Button.Text.Create(
         Obj    => applyButton,
         Parent => check_button_dialog_window,
         X      => 18,
         Y      => 290,
         Width  => 60,
         Height => 20,
         Text   => "Apply");
      Mcc.Gui.Widget.Button.Set_Push_Callback(
         Obj      => applyButton'access,
         Callback => Subwindow_Actions.Apply_Properties_Dialog'access);
      Mcc.Gui.Widget.Button.Text.Create(
         Obj    => okbutton,
         Parent => check_button_dialog_window,
         X      => 88,
         Y      => 290,
         Width  => 60,
         Height => 20,
         Text   => "OK");
      Mcc.Gui.Widget.Button.Set_Push_Callback(
         Obj      => okbutton'access,
         Callback => Subwindow_Actions.Done_Properties_Dialog'access);
      Mcc.Gui.Widget.Button.Text.Create(
         Obj    => cancelButton,
         Parent => check_button_dialog_window,
         X      => 158,
         Y      => 290,
         Width  => 60,
         Height => 20,
         Text   => "Cancel");
      Mcc.Gui.Widget.Button.Set_Push_Callback(
         Obj      => cancelButton'access,
         Callback => Subwindow_Actions.Cancel_Properties_Dialog'access);

   end Generate_Window;

   procedure Fill_Window is
   begin
      null; -- in case there aren't any widgets to fill

   end Fill_Window;

   procedure Generate_and_Fill_Window is
   begin
       Generate_Window;
       Fill_Window;
   end Generate_and_Fill_Window;

   procedure Read_Window(
         Success         :    out Boolean;
         Highlight_Error : in     Boolean := True;
         Beep_On_Error   : in     Boolean := True) is
   begin
      Success := True;
   exception when others => Success := False;
   end Read_Window;

   procedure Close_Window is
   begin
      Mcc.Gui.Container.Window.Destroy(Mcc.Gui.Container.Window.Window(check_button_dialog_window));
   end Close_Window;


end check_button_dialog_window;
