note description: "Objects that represent a horizontal split area which holds% %objects of type GB_TOOL_HOLDER." legal: "See notice at end of class." status: "See notice at end of class." author: "" date: "$Date$" revision: "$Revision$" class GB_HORIZONTAL_SPLIT_AREA_TOOL_HOLDER inherit GB_HORIZONTAL_SPLIT_AREA GB_TOOL_HOLDER_PARENT undefine default_create, is_equal, copy end create make_with_tools feature {NONE} -- Initialization make_with_tools (tool1, tool2: EV_WIDGET; title2: STRING) -- Create `Current', add `tool1' to left side and add -- tool2 to a GB_TOOL_HOLDER with title `title2' and add -- this to right side. do default_create extend (tool1) create tool_holder.make_with_tool (tool2, title2) extend (tool_holder) end feature -- Access tool_holder: GB_TOOL_HOLDER -- Tool holder containing right hand tool. feature -- Basic operation minimize_tool (a_tool_holder: GB_TOOL_HOLDER) -- Minimize `tool_holder'. do if a_tool_holder.maximized then a_tool_holder.disable_maximized a_tool_holder.reset_maximize_button end if a_tool_holder.minimized then resize_actions.wipe_out set_split_position (restore_position.min (maximum_split_position)) else resize_actions.force_extend (agent keep_minimized_on_resize) restore_position := split_position set_split_position (maximum_split_position) end end maximize_tool (a_tool_holder: GB_TOOL_HOLDER) -- Maximize `tool_holder'. do if a_tool_holder.minimized then resize_actions.wipe_out a_tool_holder.disable_minimized a_tool_holder.reset_minimize_button end if a_tool_holder.maximized then set_split_position (restore_position.min (maximum_split_position)) else restore_position := split_position set_split_position (minimum_split_position) end end feature {NONE} -- Implementation restore_position: INTEGER -- Position to restore to. keep_minimized_on_resize -- Adjust splitter to keep tool minimized. do set_split_position (maximum_split_position) end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" 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 GB_HORIZONTAL_SPLIT_AREA_TOOL_HOLDER