note description: "Builds an attrribute editor for modification of objects of type EV_TOOLTIPABLE." legal: "See notice at end of class." status: "See notice at end of class." author: "" date: "$Date$" revision: "$Revision$" deferred class GB_EV_TOOLTIPABLE_EDITOR_CONSTRUCTOR inherit GB_EV_EDITOR_CONSTRUCTOR undefine default_create end feature -- Access ev_type: EV_TOOLTIPABLE -- Vision2 type represented by `Current'. type: STRING = "EV_TOOLTIPABLE" -- String representation of object_type modifyable by `Current'. attribute_editor: GB_OBJECT_EDITOR_ITEM -- A vision2 component to enable modification -- of items held in `objects'. do create Result.make_with_components (components) Result.set_padding_width (object_editor_vertical_padding_width) initialize_attribute_editor (Result) create tooltip_entry.make (Current, Result, tooltip_string, Gb_ev_tooltipable_tooltip , Gb_ev_tooltipable_tooltip_tooltip, agent set_tooltip (?), agent validate_true (?), multiple_line_entry, components) update_attribute_editor disable_all_items (Result) align_labels_left (Result) end update_attribute_editor -- Update status of `attribute_editor' to reflect information -- from `objects.first'. do tooltip_entry.update_constant_display (first.tooltip) end feature {NONE} -- Implementation initialize_agents -- Initialize `validate_agents' and `execution_agents' to -- contain all agents required for modification of `Current. do execution_agents.put (agent set_tooltip (?), tooltip_string) validate_agents.put (agent validate_true (?), tooltip_string) end tooltip_entry: GB_STRING_INPUT_FIELD -- Holds the text to be used for the tooltip. set_tooltip (a_tooltip: STRING) -- Assign text of `tooltip_entry' to tooltip of all objects. do if not a_tooltip.is_empty then for_all_objects (agent {EV_TOOLTIPABLE}.set_tooltip (a_tooltip)) else for_all_objects (agent {EV_TOOLTIPABLE}.remove_tooltip) end update_editors end Tooltip_string: STRING = "Tooltip"; 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_EV_TOOLTIPABLE_EDITOR_CONSTRUCTOR