note description: "Collected Information by the wizard." legal: "See notice at end of class." status: "See notice at end of class." author: "pascalf" date: "$Date$" revision: "$Revision$" class WIZARD_INFORMATION create {WIZARD_WINDOW} make feature {NONE} -- Initialization make -- Initialize Current with Default Values do new_project := True username := "" password := "" data_source := "" location := "" project_name := "sample" create table_list.make (10) dbms_code := 1 compile_project := True precompiled_base := False vision_example := True generate_every_table := True end feature {WIZARD_STATE_WINDOW} -- Settings set_database_info (s1, s2, s3: STRING; dbms_selected: INTEGER) -- Set the database information. require -- do if s1 /= Void then username := s1 else username := "" end if s2 /= Void then password := s2 else password := "" end if s3 /= Void then data_source := s3 else data_source := "" end dbms_code := dbms_selected end set_generation_type (b: BOOLEAN) -- Set generation type information. do new_project := b end set_table_list (li: ARRAYED_LIST [CLASS_NAME]) -- Set table to be generated. do table_list := li end set_unselected_table_list (li: ARRAYED_LIST [CLASS_NAME]) -- Table not to be generated do unselected_table_list := li end set_location (loc: STRING) -- Set the location corresponding to -- the generation. do location := loc end set_generate_all_table (b: BOOLEAN) do generate_every_table := b end set_project_name (proj: STRING) -- Set the project Name. do project_name := proj end set_compile_project (b: BOOLEAN) -- Set whether the user want to compile project or not. do compile_project := b end set_precompiled_base (b: BOOLEAN) -- Set whether the user want to use -- the precompiled base library or not. do precompiled_base := b end set_vision_example (b: BOOLEAN) -- Set whether the user want to create -- the Vision2 example. do vision_example := b end feature -- Access dbms_code: INTEGER -- Selected DBMS code. Use through WIZARD_PROJECT_SHARED. location: STRING -- Generation location. project_name: STRING -- Project Name username: STRING -- User Name. password: STRING -- User Password. data_source: STRING -- User datasource. (Useful with ODBC) new_project: BOOLEAN -- Does the user want to generate a new projet ? vision_example: BOOLEAN -- Does the user want to generate an example using the EiffelVision2 library ? table_list: ARRAYED_LIST [CLASS_NAME] -- List of the selected database tables. unselected_table_list: ARRAYED_LIST [CLASS_NAME] -- List of the unselected database tables. generate_every_table: BOOLEAN compile_project: BOOLEAN -- Does the user want to compile the project ? precompiled_base: BOOLEAN -- Does the user want to use the precompiled base library when compiling? invariant default_exist: username /= Void and password /= Void and data_source /= Void and location /= Void and table_list /= Void note 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