note description: "Window for displaying pictures." legal: "See notice at end of class." status: "See notice at end of class." author: "Vincent Brendel" class PICTURE_WINDOW inherit EV_WINDOW create make_empty feature -- Initialization make_empty(par:EV_WINDOW) -- Initialize local v: EV_VERTICAL_BOX do make(par) create v.make(Current) create img_area.make(v) create caption_area.make(v) set_size(200,200) set_title("Picture") show end set_picture(name, caption:STRING) do create pixmap.make_from_file(name) img_area.set_pixmap(pixmap) caption_area.set_text(caption) end caption_area: EV_LABEL img_area: EV_DRAWING_AREA pixmap: EV_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 PICTURE_WINDOW