INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "standard dialogs"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: grape
class FILE_DIALOG
inherit

DIALOG
rename
init as dialog_init
redefine
run
end

DIALOG
redefine
init,
run
select
init
end
creation

make_open,
make_open_multiple,
make_save
feature

filters: ARRAY [STRING]

default_filter: INTEGER

default_path: STRING

default_file: STRING

selected_files: ARRAY [STRING]

selected_path: STRING
feature

make_open (dialog_title: STRING; file_filters: ARRAY [STRING])
-- Creates a system-defined dialog box that makes
-- it possible for the user to select a file to open.
-- Each element of the filter array is a string describing the filter's
-- name, and associated filename regular expression.
-- Example : "Text Files (*.*)". Note that the braces around '*.*'are
-- strictly recommended. They are used while extracting from the filter
-- name their filename extensions.
-- Each filter item can have multiple associated filename extensions,
-- which must be separated by semicolons (example: "*.bak;*.txt\")

make_open_multiple (dialog_title: STRING; file_filters: ARRAY [STRING])
-- Creates a system-defined dialog box that makes
-- it possible for the user to select a list of multiple files to open.

make_save (dialog_title: STRING; file_filters: ARRAY [STRING])
-- Creates a system-defined dialog box that makes
-- it possible for the user to select a file to save in something.

turn_slash (path_str: STRING)

set_default_path (def_path, def_file: STRING)
-- Assigns to the File dialog new default values for the current
-- directory, and for current file name in the edit control.
-- This attributes are automatically updated after the execution
-- of File Dialog, reflecting all currency changes.

set_default_filter (filter_index: INTEGER)
-- Set the filter to use when displaying directory contents.
require
filter_must_exist: filters /= void and filter_index >= filters.lower and filter_index <= filters.upper
feature

extract_file_list
require
default_file /= void
end -- class FILE_DIALOG

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES