Package OpenCAGE.GUI.Menus.Top_Menus

Class Top_Menu

extends OpenCAGE.GUI.Menus.Sub_Menus.Sub_Menu

Highest Level of menus, has no parents.


private OpenCAGE.GUI.Menus.Hashed_Menus.Mapping Menu_Hash 

Stores all menus being part of self. The link of the menu is used as key for the hashtable.

private Gtk.Menu.Gtk_Menu Shown_Gtk_Menu 

Stores the Gtk_Menu that has already been shown in order to being able to destroy it.

private Ada.Strings.Unbounded.Unbounded_String Default_Command 

private FET.Data_Source Data_Source 

Used to check if menu is grayed out or not.


public Gtk.Menu.Gtk_Menu Get_Gtk_Menu( OpenCAGE.GUI.Con_Men_Handlers.Con_Men_Handler Handler);

returns a gtk menu

public Boolean Contains( OpenCAGE.GUI.Menus.Menu Menu);

public Menu_Added( OpenCAGE.GUI.Menus.Menu Menu);

public Menu_Removed( OpenCAGE.GUI.Menus.Menu Menu);

public OpenCAGE.GUI.Menus.Top_Menus.Top_Menu Read( OpenCAGE.General.XML.Node_Ptr Node);

Reads the content of the menu from the given XML file.

public OpenCAGE.GUI.Menus.Menu Clone( OpenCAGE.GUI.Menus.Menu Parent);

Creates a deep copy of this object [This description is adopted from 'OpenCAGE.GUI.Menus.Menu'.]

public OpenCAGE.GUI.Menus.Top_Menus.Top_Menu Clone( OpenCAGE.GUI.Menus.Menu Parent);

This calls clone and casts the clone to a Top_Menu

public Copy( OpenCAGE.GUI.Menus.Top_Menus.Top_Menu Menu);

copies everything from this object into the given menu

public Intersect( OpenCAGE.GUI.Menus.Menu Menu);

Intersects itself with the given menu, so that only menu items remain which are part of both menus. [This description is adopted from 'OpenCAGE.GUI.Menus.Menu'.]