note description: "[ Objects that represent an EV_TITLED_WINDOW. The original version of this class was generated by EiffelBuild. This class is the implementation of an EV_TITLED_WINDOW generated by EiffelBuild. You should not modify this code by hand, as it will be re-generated every time modifications are made to the project. ]" generator: "EiffelBuild" date: "$Date$" revision: "$Revision$" deferred class EC_MAIN_WINDOW_IMP inherit EV_TITLED_WINDOW redefine create_interface_objects, initialize, is_in_default_state end EC_CHECKER_CONSTANTS undefine is_equal, default_create, copy end feature {NONE}-- Initialization frozen initialize -- Initialize `Current'. do Precursor {EV_TITLED_WINDOW} initialize_constants -- Build widget structure. extend (l_ev_vertical_box_1) l_ev_vertical_box_1.extend (l_ev_vertical_box_2) l_ev_vertical_box_2.extend (tbar_main) tbar_main.extend (tbtn_new) tbar_main.extend (tbtn_open) tbar_main.extend (tbtn_save) tbar_main.extend (l_ev_tool_bar_separator_1) tbar_main.extend (tbtn_check) tbar_main.extend (tbtn_help) l_ev_vertical_box_1.extend (l_ev_cell_1) l_ev_vertical_box_1.extend (l_ev_horizontal_separator_1) l_ev_vertical_box_1.extend (l_ev_vertical_box_3) l_ev_vertical_box_3.extend (nb_main) nb_main.extend (vbox_project_settings) nb_main.extend (vbox_output) l_ev_vertical_box_3.extend (l_ev_horizontal_box_1) l_ev_horizontal_box_1.extend (l_ev_cell_2) l_ev_horizontal_box_1.extend (lbl_copyright) l_ev_horizontal_box_1.extend (l_ev_cell_3) l_ev_horizontal_box_1.extend (btn_close) l_ev_vertical_box_1.disable_item_expand (l_ev_vertical_box_2) l_ev_vertical_box_1.disable_item_expand (l_ev_cell_1) l_ev_vertical_box_1.disable_item_expand (l_ev_horizontal_separator_1) l_ev_vertical_box_2.set_border_width (2) l_ev_vertical_box_2.disable_item_expand (tbar_main) tbar_main.set_minimum_height (20) string_constant_set_procedures.extend (agent tbtn_new.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_new) pixmap_constant_set_procedures.extend (agent tbtn_new.set_pixmap (?)) pixmap_constant_retrieval_functions.extend (agent icon_new) string_constant_set_procedures.extend (agent tbtn_open.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_open) pixmap_constant_set_procedures.extend (agent tbtn_open.set_pixmap (?)) pixmap_constant_retrieval_functions.extend (agent icon_open) string_constant_set_procedures.extend (agent tbtn_save.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_save) pixmap_constant_set_procedures.extend (agent tbtn_save.set_pixmap (?)) pixmap_constant_retrieval_functions.extend (agent icon_save) string_constant_set_procedures.extend (agent tbtn_check.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_check) pixmap_constant_set_procedures.extend (agent tbtn_check.set_pixmap (?)) pixmap_constant_retrieval_functions.extend (agent icon_check_compliance) string_constant_set_procedures.extend (agent tbtn_help.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_help) pixmap_constant_set_procedures.extend (agent tbtn_help.set_pixmap (?)) pixmap_constant_retrieval_functions.extend (agent icon_help) l_ev_cell_1.set_minimum_height (2) integer_constant_set_procedures.extend (agent l_ev_vertical_box_3.set_padding (?)) integer_constant_retrieval_functions.extend (agent box_padding_width) l_ev_vertical_box_3.set_border_width (4) l_ev_vertical_box_3.disable_item_expand (l_ev_horizontal_box_1) nb_main.set_minimum_height (100) string_constant_set_procedures.extend (agent nb_main.set_item_text (vbox_project_settings, ?)) string_constant_retrieval_functions.extend (agent tab_project) string_constant_set_procedures.extend (agent nb_main.set_item_text (vbox_output, ?)) string_constant_retrieval_functions.extend (agent tab_output) pixmap_constant_set_procedures.extend (agent (nb_main.item_tab (vbox_project_settings)).set_pixmap) pixmap_constant_retrieval_functions.extend (agent icon_project) pixmap_constant_set_procedures.extend (agent (nb_main.item_tab (vbox_output)).set_pixmap) pixmap_constant_retrieval_functions.extend (agent icon_settings) l_ev_horizontal_box_1.disable_item_expand (l_ev_cell_2) l_ev_horizontal_box_1.disable_item_expand (btn_close) l_ev_cell_2.set_minimum_width (3) string_constant_set_procedures.extend (agent lbl_copyright.set_text (?)) string_constant_retrieval_functions.extend (agent label_copyright) lbl_copyright.align_text_left string_constant_set_procedures.extend (agent btn_close.set_text (?)) string_constant_retrieval_functions.extend (agent button_close) string_constant_set_procedures.extend (agent btn_close.set_tooltip (?)) string_constant_retrieval_functions.extend (agent tooltip_close) btn_close.set_minimum_width (100) integer_constant_set_procedures.extend (agent btn_close.set_minimum_height (?)) integer_constant_retrieval_functions.extend (agent button_height) set_minimum_width (550) set_minimum_height (425) set_maximum_width (9999) set_maximum_height (9999) string_constant_set_procedures.extend (agent set_title (?)) string_constant_retrieval_functions.extend (agent main_window_title) set_all_attributes_using_constants -- Connect events. -- Close the application when an interface close -- request is received on `Current'. i.e. the cross is clicked. close_request_actions.extend (agent destroy_and_exit_if_last) -- Call `user_initialization'. user_initialization end frozen create_interface_objects -- Create objects do -- Create all widgets. create l_ev_vertical_box_1 create l_ev_vertical_box_2 create tbar_main create tbtn_new create tbtn_open create tbtn_save create l_ev_tool_bar_separator_1 create tbtn_check create tbtn_help create l_ev_cell_1 create l_ev_horizontal_separator_1 create l_ev_vertical_box_3 create nb_main create vbox_project_settings create vbox_output create l_ev_horizontal_box_1 create l_ev_cell_2 create lbl_copyright create l_ev_cell_3 create btn_close create string_constant_set_procedures.make (10) create string_constant_retrieval_functions.make (10) create integer_constant_set_procedures.make (10) create integer_constant_retrieval_functions.make (10) create pixmap_constant_set_procedures.make (10) create pixmap_constant_retrieval_functions.make (10) create integer_interval_constant_retrieval_functions.make (10) create integer_interval_constant_set_procedures.make (10) create font_constant_set_procedures.make (10) create font_constant_retrieval_functions.make (10) create pixmap_constant_retrieval_functions.make (10) create color_constant_set_procedures.make (10) create color_constant_retrieval_functions.make (10) user_create_interface_objects end feature -- Access tbar_main: EV_TOOL_BAR tbtn_new, tbtn_open, tbtn_save, tbtn_check, tbtn_help: EV_TOOL_BAR_BUTTON nb_main: EV_NOTEBOOK vbox_project_settings: EC_PROJECT_SETTINGS_PANE vbox_output: EC_CHECK_REPORT_PANE lbl_copyright: EV_LABEL btn_close: EV_BUTTON feature {NONE} -- Implementation l_ev_vertical_box_1, l_ev_vertical_box_2, l_ev_vertical_box_3: EV_VERTICAL_BOX l_ev_tool_bar_separator_1: EV_TOOL_BAR_SEPARATOR l_ev_cell_1, l_ev_cell_2, l_ev_cell_3: EV_CELL l_ev_horizontal_separator_1: EV_HORIZONTAL_SEPARATOR l_ev_horizontal_box_1: EV_HORIZONTAL_BOX feature {NONE} -- Implementation is_in_default_state: BOOLEAN -- Is `Current' in its default state? do Result := True end user_create_interface_objects -- Feature for custom user interface object creation, called at end of `create_interface_objects'. deferred end user_initialization -- Feature for custom initialization, called at end of `initialize'. deferred end feature {NONE} -- Constant setting frozen set_attributes_using_string_constants -- Set all attributes relying on string constants to the current -- value of the associated constant. local s: detachable STRING_32 do from string_constant_set_procedures.start until string_constant_set_procedures.off loop string_constant_retrieval_functions.i_th (string_constant_set_procedures.index).call (Void) s := string_constant_retrieval_functions.i_th (string_constant_set_procedures.index).last_result if s /= Void then string_constant_set_procedures.item.call ([s]) end string_constant_set_procedures.forth end end frozen set_attributes_using_integer_constants -- Set all attributes relying on integer constants to the current -- value of the associated constant. local i: INTEGER arg1, arg2: INTEGER int: INTEGER_INTERVAL do from integer_constant_set_procedures.start until integer_constant_set_procedures.off loop integer_constant_retrieval_functions.i_th (integer_constant_set_procedures.index).call (Void) i := integer_constant_retrieval_functions.i_th (integer_constant_set_procedures.index).last_result integer_constant_set_procedures.item.call ([i]) integer_constant_set_procedures.forth end from integer_interval_constant_retrieval_functions.start integer_interval_constant_set_procedures.start until integer_interval_constant_retrieval_functions.off loop integer_interval_constant_retrieval_functions.item.call (Void) arg1 := integer_interval_constant_retrieval_functions.item.last_result integer_interval_constant_retrieval_functions.forth integer_interval_constant_retrieval_functions.item.call (Void) arg2 := integer_interval_constant_retrieval_functions.item.last_result create int.make (arg1, arg2) integer_interval_constant_set_procedures.item.call ([int]) integer_interval_constant_retrieval_functions.forth integer_interval_constant_set_procedures.forth end end frozen set_attributes_using_pixmap_constants -- Set all attributes relying on pixmap constants to the current -- value of the associated constant. local p: detachable EV_PIXMAP do from pixmap_constant_set_procedures.start until pixmap_constant_set_procedures.off loop pixmap_constant_retrieval_functions.i_th (pixmap_constant_set_procedures.index).call (Void) p := pixmap_constant_retrieval_functions.i_th (pixmap_constant_set_procedures.index).last_result if p /= Void then pixmap_constant_set_procedures.item.call ([p]) end pixmap_constant_set_procedures.forth end end frozen set_attributes_using_font_constants -- Set all attributes relying on font constants to the current -- value of the associated constant. local f: detachable EV_FONT do from font_constant_set_procedures.start until font_constant_set_procedures.off loop font_constant_retrieval_functions.i_th (font_constant_set_procedures.index).call (Void) f := font_constant_retrieval_functions.i_th (font_constant_set_procedures.index).last_result if f /= Void then font_constant_set_procedures.item.call ([f]) end font_constant_set_procedures.forth end end frozen set_attributes_using_color_constants -- Set all attributes relying on color constants to the current -- value of the associated constant. local c: detachable EV_COLOR do from color_constant_set_procedures.start until color_constant_set_procedures.off loop color_constant_retrieval_functions.i_th (color_constant_set_procedures.index).call (Void) c := color_constant_retrieval_functions.i_th (color_constant_set_procedures.index).last_result if c /= Void then color_constant_set_procedures.item.call ([c]) end color_constant_set_procedures.forth end end frozen set_all_attributes_using_constants -- Set all attributes relying on constants to the current -- calue of the associated constant. do set_attributes_using_string_constants set_attributes_using_integer_constants set_attributes_using_pixmap_constants set_attributes_using_font_constants set_attributes_using_color_constants end string_constant_set_procedures: ARRAYED_LIST [PROCEDURE [READABLE_STRING_GENERAL]] string_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [STRING_32]] integer_constant_set_procedures: ARRAYED_LIST [PROCEDURE [INTEGER]] integer_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [INTEGER]] pixmap_constant_set_procedures: ARRAYED_LIST [PROCEDURE [EV_PIXMAP]] pixmap_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [EV_PIXMAP]] integer_interval_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [INTEGER]] integer_interval_constant_set_procedures: ARRAYED_LIST [PROCEDURE [INTEGER_INTERVAL]] font_constant_set_procedures: ARRAYED_LIST [PROCEDURE [EV_FONT]] font_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [EV_FONT]] color_constant_set_procedures: ARRAYED_LIST [PROCEDURE [EV_COLOR]] color_constant_retrieval_functions: ARRAYED_LIST [FUNCTION [EV_COLOR]] frozen integer_from_integer (an_integer: INTEGER): INTEGER -- Return `an_integer', used for creation of -- an agent that returns a fixed integer value. do Result := an_integer end end