indexing description: "Eiffel Vision file open dialog." status: "See notice at end of class" date: "$Date$" revision: "$Revision$" class EV_FILE_OPEN_DIALOG inherit EV_FILE_DIALOG rename ok_actions as open_actions redefine implementation end create default_create, make_with_title feature -- Event handling ok_actions: EV_NOTIFY_ACTION_SEQUENCE is -- Actions to be performed when user clicks Open. obsolete "This has been replaced by open_actions" do Result := open_actions ensure not_void: Result /= Void end feature -- Status report multiple_selection_enabled: BOOLEAN is -- Can more than one filename be selected? require not_destroyed: not is_destroyed do Result := implementation.multiple_selection_enabled ensure bridge_ok: Result = implementation.multiple_selection_enabled end file_names: ARRAYED_LIST [STRING] is -- Full names of currently selected files including path. -- No particular order is guaranteed. require not_destroyed: not is_destroyed do Result := implementation.file_names ensure Result_not_void: Result /= Void end feature -- Status setting enable_multiple_selection is -- Allow more than one filename to be selected. require not_destroyed: not is_destroyed do implementation.enable_multiple_selection ensure multiple_selection_enabled: multiple_selection_enabled end disable_multiple_selection is -- Allow only one filename to be selected. require not_destroyed: not is_destroyed do implementation.disable_multiple_selection ensure not_multiple_selection_enabled: not multiple_selection_enabled end feature {EV_ANY, EV_ANY_I} -- Implementation implementation: EV_FILE_OPEN_DIALOG_I -- Responsible for interaction with native graphics toolkit. feature {NONE} -- Implementation create_implementation is -- See `{EV_ANY}.create_implementation'. do create {EV_FILE_OPEN_DIALOG_IMP} implementation.make (Current) end invariant file_name_consistent_with_file_names: not file_names.is_empty implies file_names.first.is_equal (file_name) end -- class EV_FILE_OPEN_DIALOG --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1985-2004 Eiffel Software. All rights reserved. --| Duplication and distribution prohibited. May be used only with --| ISE Eiffel, under terms of user license. --| Contact Eiffel Software for any other use. --| --| Interactive Software Engineering Inc. --| dba Eiffel Software --| 356 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Contact us at: http://www.eiffel.com/general/email.html --| Customer support: http://support.eiffel.com --| For latest info on our award winning products, visit: --| http://www.eiffel.com --|----------------------------------------------------------------