indexing description: "Class to share the application's main window object." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_APPLICATION_MAIN_WINDOW feature -- Access application_main_window: WEL_COMPOSITE_WINDOW is -- Application's main window do Result := application_main_window_cell.item end application: WEL_APPLICATION is -- Current application do Result := application_cell.item end feature -- Status report is_application_main_window (window: WEL_COMPOSITE_WINDOW): BOOLEAN is -- Is `window' the application's main window? require window_not_void: window /= Void do Result := window = application_main_window ensure Result = (window = application_main_window) end feature {WEL_APPLICATION} -- Element change set_application_main_window (window: WEL_COMPOSITE_WINDOW) is -- Set `application_main_window' with `window'. require window_not_void: window /= Void parent_window_is_void: window.parent = Void do application_main_window_cell.put (window) ensure application_main_window_set: application_main_window = window end set_application (app: WEL_APPLICATION) is -- Set the `application' with `app'. require app_not_void: app /= Void do application_cell.put (app) ensure application_set: application = app end feature {NONE} -- Implementation application_main_window_cell: CELL [WEL_COMPOSITE_WINDOW] is -- Application's main window cell once create Result.put (Void) ensure result_not_void: Result /= Void end application_cell: CELL [WEL_APPLICATION] is -- Application cell once create Result.put (Void) ensure result_not_void: Result /= Void end end -- class WEL_APPLICATION_MAIN_WINDOW --|---------------------------------------------------------------- --| Windows 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 --|----------------------------------------------------------------