Package OpenCAGE.Dialogs.Buttons

contains class for dialogs with a button box at bottom

Class Button_Box

extends OpenCAGE.GUI.Workbench.GUI_Element

Attributes

private OpenCAGE.GUI.General.Oc_Gtkada_Buttons_Lists.List Buttons 

private Gtk.HButton_Box.Gtk_HButton_Box Box 

private OpenCAGE.Dialogs.Handlers.Handler_Target Handler_Target 

An object which has a handler that is called when a button is clicked. It doesn't matter if the buttons are added before or after this is set.

Operations

public Gtk.Widget.Gtk_Widget Get_Widget(void);

Create and return the widget that belongs to this element. [This description is adopted from 'OpenCAGE.GUI.Workbench.GUI_Element'.]

Precondition: Model and Handler if applicable are set. [This precondition is adopted from 'OpenCAGE.GUI.Workbench.GUI_Element'.]

public Ada.Strings.Unbounded.Unbounded_String Get_Name(void);

Returns a name specific for this element. This will perhaps be used to identify a matching model. [This description is adopted from 'OpenCAGE.GUI.Workbench.GUI_Element'.]

public Add_Button( OpenCAGE.GUI.General.Oc_Gtkada_Button B);

public Update_Sensitivity(void);

Check for every button if it should be greyed out and do it.