indexing description: "A class for the tutorial example that% %gives a path for the bitmaps." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class PIXMAP_PATH feature -- Access pixmap_path (name: STRING): STRING is -- Return the full name of the given pixmap of EiffelBench. local env: EXECUTION_ENVIRONMENT do create env Result := env.get ("ISE_EIFFEL") Result.append_character (Operating_environment.directory_separator) Result.append ("bench") Result.append_character (Operating_environment.directory_separator) Result.append ("bitmaps") Result.append_character (Operating_environment.directory_separator) Result.append (pixmap_extension) Result.append_character (Operating_environment.directory_separator) Result.append (name) Result.append (".") Result.append (pixmap_extension) end feature {NONE} -- Implementation pixmap_extension: STRING is local platform: EV_TOOLKIT once create platform if platform.name.is_equal ("WEL") then Result := "bmp" else Result := "xpm" end end end -- class PIXMAP_PATH --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------