note description: "Graphical settings for eSplitter" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class CODE_ES_SAVED_SETTINGS inherit ANY CODE_ES_REGISTRY_KEYS export {NONE} all end CODE_GRAPHICAL_SETTINGS_MANAGER rename make as settings_make export {NONE} all end create make feature {NONE} -- Initialization make -- Initialize `registry_path'. do settings_make (Saved_settings_key) end feature -- Access saved_process_subfolders: BOOLEAN -- Should subfolders be scanned? do Result := saved_boolean (Process_subfolders_key) end saved_has_destination: BOOLEAN -- Should generated source files be created in destination folder? do Result := saved_boolean (Has_destination_key) end saved_folders: LIST [STRING] -- List of saved values for folders combo do Result := saved_list (Folders_key) end saved_destination_folders: LIST [STRING] -- List of saved values for destination folders combo do Result := saved_list (Destination_folders_key) end saved_regexps: LIST [STRING] -- List of saved values for regular expression combo do Result := saved_list (Regexps_key) end feature -- Element Settings save_folders (a_folders: LIST [STRING]) -- Set folders paths. require non_void_folders: a_folders /= Void do save_list (Folders_key, a_folders) end save_destination_folders (a_folders: LIST [STRING]) -- Set folders paths. require non_void_folders: a_folders /= Void do save_list (Destination_folders_key, a_folders) end save_regexps (a_regexps: LIST [STRING]) -- Set regular expressions. require non_void_regexpss: a_regexps /= Void do save_list (Regexps_key, a_regexps) end save_process_subfolders (a_value: BOOLEAN) -- Set `process subfolders' checkable button state. do save_boolean (Process_subfolders_key, a_value) end save_has_destination (a_value: BOOLEAN) -- Set `saved_has_destination' with `a_value'. do save_boolean (Has_destination_key, a_value) end feature {NONE} -- Private Access Folders_key: STRING = "folders_key" -- Folders paths key name Destination_folders_key: STRING = "destination_folders_key" -- Folders paths key name Regexps_key: STRING = "regexps_key" -- Regular expressions key name Process_subfolders_key: STRING = "process_subfolders" -- Process subfolders key name Has_destination_key: STRING = "has_destination_key"; -- Has destination key 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 CODE_ES_SAVED_SETTINGS