indexing description: "Parent of any graphic application based on the Motif toolkit. % %This is an convenience class to automatically setup the % %environment for a motif application."; status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" deferred class MEL_APPLICATION feature {NONE} -- Initialization make is -- Create the application. do set_default; create application_context.make; create display.make (application_context, Void, Void, application_name); if display.is_valid then create top_level.make (application_name, Void, display.default_screen); build; top_level.realize; application_context.main_loop end end; feature -- Access top_level: MEL_APPLICATION_SHELL; -- Top level of the application display: MEL_DISPLAY; -- Application display application_name: STRING is -- Application name deferred end; application_context: MEL_APPLICATION_CONTEXT -- Application context feature -- Basic operations exit is -- Exit from the application do application_context.exit end; main_loop is -- Loop the application. do application_context.main_loop end; feature {NONE} -- Implementation set_default is -- Define default parameters for the application. do end; build is -- Build an application. do end; end -- class MEL_APPLICATION --|---------------------------------------------------------------- --| Motif Eiffel Library: 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 --|----------------------------------------------------------------