indexing description : "All information about the wizard ... This class is inherited in each state " legal: "See notice at end of class." status: "See notice at end of class." class WIZARD_INFORMATION inherit BENCH_WIZARD_INFORMATION redefine make end create make feature -- Initialization make is -- Assign default values do Precursor icon_location := wizard_resources_path icon_location := icon_location + Icon_relative_filename generate_dll := False root_class_name := Default_root_class_name creation_routine_name := Default_creation_routine_name clr_version := clr_version_10 end feature -- Setting set_icon_location (new_value: STRING) is -- Set `icon_location' to `new_value' do icon_location := new_value end set_generate_dll (new_value: BOOLEAN) is -- Set `generate_dll' to `new_value' do generate_dll := new_value end set_root_class_name (a_name: like root_class_name) is -- Set `root_class_name' with `a_name'. local upper_case_name: STRING do upper_case_name := clone (a_name) upper_case_name.to_upper root_class_name := upper_case_name end set_creation_routine_name (a_name: like creation_routine_name) is -- Set `creation_routine_name' with `a_name'. do creation_routine_name := a_name ensure creation_routine_name_set: creation_routine_name = a_name end set_console_application (a_bool: like console_application) is -- Set `console_application' with `a_bool'. do console_application := a_bool ensure console_application_set: console_application = a_bool end set_clr_version (a_version: like clr_version) is -- set `clr_version' with `a_version' require non_void_version: a_version /= Void valid_version: is_valid_clr_version (a_version) do clr_version := clone (a_version) ensure clr_version_set: equal (clr_version, a_version) end set_is_most_recent_clr_version (a_flag: BOOLEAN) is -- Set `is_most_recent_clr_version' to `a_flag' do is_most_recent_clr_version := a_flag ensure set: is_most_recent_clr_version = a_flag end feature -- Access icon_location: STRING -- Location of the icon choose by the user generate_dll: BOOLEAN -- Should the compiler generate a DLL? -- If set to False, it will generate an EXE. root_class_name: STRING -- Name of the root class of the Eiffel.NET project creation_routine_name: STRING -- Name of the creation routine of the root class application_type: STRING is -- "dll" if `generate_dll' is set, "exe" otherwise do if generate_dll then Result := Dll_type else Result := Exe_type end end console_application: BOOLEAN -- Is it a console application system? is_most_recent_clr_version: BOOLEAN -- Should we target the most recent CLR version available on the users system? clr_version: STRING -- version of clr to target is_valid_clr_version (a_version: STRING): BOOLEAN is -- is `a_version' a valid clr version? require non_void_version: a_version /= Void do Result := not a_version.is_empty and then a_version.is_equal (clr_version_10) or a_version.is_equal (clr_version_11) end clr_version_10: STRING is "v1.0.3705" -- version 1.0 of CLR clr_version_11: STRING is "v1.1.4322" -- version 1.1 of CLR feature {NONE} -- Implementation Default_project_name: STRING is "my_dotnet_application" -- Default project name feature {NONE} -- Constants Icon_relative_filename: STRING is "\eiffel.ico" -- Filename of `eiffel.ico' relatively to `icon_location' Default_root_class_name: STRING is "APPLICATION" -- Default root class name Default_creation_routine_name: STRING is "make" -- Default creation routine name Dll_type: STRING is "dll" -- DLL type Exe_type: STRING is "exe" -- EXE type invariant non_void_root_class_name: root_class_name /= Void non_void_creation_routine_name: creation_routine_name /= Void non_void_clr_version: clr_version /= Void valid_clr_version: is_valid_clr_version (clr_version) indexing 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 WIZARD_INFORMATION