note description: "Eiffel Vision cell, Mswindows implementation." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class EV_CELL_IMP inherit EV_CELL_I redefine interface end EV_DOCKABLE_TARGET_IMP redefine interface end EV_SINGLE_CHILD_CONTAINER_IMP undefine propagate_foreground_color, propagate_background_color redefine interface, compute_minimum_width, compute_minimum_height, compute_minimum_size, make end EV_WEL_CONTROL_CONTAINER_IMP rename make as ev_wel_control_container_make undefine on_wm_dropfiles redefine top_level_window_imp end create make feature -- initialization old_make (an_interface: like interface) -- Create `Current'. do assign_interface (an_interface) end make do ev_wel_control_container_make Precursor end feature -- Element change top_level_window_imp: detachable EV_WINDOW_IMP -- Top level window that contains `Current'. set_top_level_window_imp (a_window: detachable EV_WINDOW_IMP) -- Make `a_window' the new `top_level_window_imp' -- of `Current'. do top_level_window_imp := a_window if attached item_imp as l_item_imp then l_item_imp.set_top_level_window_imp (a_window) end end feature {EV_ANY_I} -- Implementation compute_minimum_width -- Recompute the minimum_width of `Current'. local mw: INTEGER do if attached item_imp as l_item_imp and then l_item_imp.is_show_requested then mw := l_item_imp.minimum_width end ev_set_minimum_width (mw) end compute_minimum_height -- Recompute the minimum_width of `Current'. local mh: INTEGER do if attached item_imp as l_item_imp and then l_item_imp.is_show_requested then mh := l_item_imp.minimum_height end ev_set_minimum_height (mh) end compute_minimum_size -- Recompute both the minimum_width the -- minimum_height of `Current'. local mw, mh: INTEGER do if attached item_imp as l_item_imp and then l_item_imp.is_show_requested then mw := l_item_imp.minimum_width mh := l_item_imp.minimum_height end ev_set_minimum_size (mw, mh) end feature {EV_ANY, EV_ANY_I} -- Implementation interface: detachable EV_CELL note option: stable attribute end; -- Provides a common user interface to possibly dependent -- functionality implemented by `Current'. note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class EV_CELL_IMP