note description: "Objects that represent a common editor constructor for pixmap and pixmapable objects." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class GB_EV_COMMON_PIXMAP_EDITOR_CONSTRUCTOR inherit GB_EV_EDITOR_CONSTRUCTOR undefine default_create end GB_EV_PIXMAP_HANDLER undefine default_create end GB_CONSTANTS export {NONE} all end GB_SHARED_PIXMAPS export {NONE} all end GB_WIDGET_UTILITIES export {NONE} all end feature -- Access attribute_editor: GB_OBJECT_EDITOR_ITEM -- A vision2 component to enable modification -- of items held in `objects'. do create Result.make_with_components (components) initialize_attribute_editor (Result) -- Tool bar and menu separators do inherit from EV_PIXMAPABLE, -- however, the facilities are not exported. if not (object.type.same_string ("EV_TOOL_BAR_SEPARATOR") or object.type.same_string ("EV_MENU_SEPARATOR")) then create pixmap_input_field.make (Current, Result, pixmap_path_string, "Pixmap", "Pixmap", agent execute, agent validate, agent return_pixmap, agent return_pixmap_path, components) update_attribute_editor end end execute (a_pixmap: EV_PIXMAP; pixmap_path: PATH) -- Asssign `a_pixmap' located at `pixmap_path' to all representations of `Current'. -- If `a_pixmap' is Void, remove pixmap and path. deferred end validate (a_pixmap: EV_PIXMAP; pixmap_path: PATH): BOOLEAN -- Validate pixmap `a_pixmap' with path `pixmap_path'. deferred end return_pixmap: EV_PIXMAP -- `Result' is pixmap used for `Current'. deferred end return_pixmap_path: PATH -- `Result' is path used to retrieve pixmap. deferred end feature {NONE} -- Implementation pixmap_path_string: STRING = "Pixmap_path" Remove_tooltip: STRING = "Remove pixmap" -- Tooltip on `modify_button' when able to remove pixmap. Select_tooltip: STRING = "Select pixmap" -- Tooltip on `modify_button' when able to remove pixmap. pixmap_input_field: GB_PIXMAP_INPUT_FIELD; -- Input field to retrieve pixmap. 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_COMMON_PIXMAP_EDITOR_CONSTRUCTOR