indexing description: "Menu which can be popped up"; status: "See notice at end of class"; date: "$Date$"; revision: "$Revision$" class POPUP inherit MENU redefine implementation end create make feature {NONE} -- Initialization make (a_name: STRING; a_parent: COMPOSITE) is -- Create a popup menu with `a_name' as identifier, -- `a_parent' as parent. require valid_name: a_name /= Void; valid_parent: a_parent /= Void do depth := a_parent.depth+1; widget_manager.new (Current, a_parent); identifier:= clone (a_name); create {POPUP_IMP} implementation.make (Current, a_parent); set_default ensure parent_set: parent = a_parent; name_set: identifier.is_equal (a_name) end; feature -- Status setting popup is -- Popup Current popup menu. require exists: not destroyed do implementation.popup end feature {G_ANY, G_ANY_I, WIDGET_I, TOOLKIT} -- Implementation implementation: POPUP_I; -- Implementation of popup menu feature {NONE} -- Implementation set_default is -- Set default values of current popup menu. do end; end -- class POPUP --|---------------------------------------------------------------- --| EiffelVision: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------