xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::forms::open_file_dialog Class Reference
Inheritance diagram for xtd::forms::open_file_dialog:
xtd::forms::file_dialog xtd::forms::common_dialog xtd::forms::component

Public Member Functions

 open_file_dialog ()=default
 Initializes a new instance of the common_dialog class. More...
 
virtual bool add_extension () const
 Gets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. More...
 
virtual file_dialogadd_extension (bool value)
 Sets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. More...
 
virtual bool auto_upgrade_enabled () const
 Gets a value indicating whether this file_dialog instance should automatically upgrade appearance and behavior when running on Windows Vista. More...
 
virtual file_dialogauto_upgrade_enabled (bool value)
 Sets a value indicating whether this file_dialog instance should automatically upgrade appearance and behavior when running on Windows Vista. More...
 
virtual bool check_file_exists () const
 Gets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. More...
 
virtual file_dialogcheck_file_exists (bool value)
 Sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. More...
 
virtual bool check_path_exists () const
 
virtual file_dialogcheck_path_exists (bool value)
 
virtual const std::string & default_ext () const
 
virtual file_dialogdefault_ext (const std::string &value)
 
virtual bool dereference_link () const
 
virtual file_dialogdereference_link (bool value)
 
xtd::forms::dialog_result dialog_result () const
 
virtual const std::string & file_name () const
 
virtual file_dialogfile_name (const std::string &value)
 
virtual const std::vector< std::string > file_names () const
 
virtual const std::string & filter () const
 
virtual file_dialogfilter (const std::string &value)
 
virtual size_t filter_index () const
 
virtual file_dialogfilter_index (size_t value)
 
virtual const std::string & initial_directory () const
 
virtual file_dialoginitial_directory (const std::string &value)
 
virtual bool multiselect () const
 
virtual file_dialogmultiselect (bool value)
 
std::ifstream open_file () const
 
size_t options () const
 
void reset () override
 Resets all properties to their default values. More...
 
virtual bool restore_directory () const
 
virtual file_dialogrestore_directory (bool value)
 
bool run_dialog (intptr_t hwnd_owner) override
 When overridden in a derived class, specifies a common dialog box. More...
 
void run_sheet (intptr_t hwnd_owner) override
 When overridden in a derived class, specifies a common dialog box. More...
 
xtd::forms::dialog_result show_dialog ()
 Runs a common dialog box with a default owner. More...
 
xtd::forms::dialog_result show_dialog (const iwin32_window &owner)
 Runs a common dialog box with the specified owner. More...
 
virtual bool show_help () const
 
virtual file_dialogshow_help (bool value)
 
virtual bool show_hidden_files () const
 
virtual file_dialogshow_hidden_files (bool value)
 
virtual bool show_preview () const
 
virtual file_dialogshow_preview (bool value)
 
void show_sheet (const iwin32_window &owner)
 Runs a common dialog box with the specified owner. More...
 
xtd::forms::dialog_result show_sheet_dialog (const iwin32_window &owner)
 Runs a common dialog box with the specified owner. More...
 
virtual bool support_multi_dotted_extensions () const
 
virtual file_dialogsupport_multi_dotted_extensions (bool value)
 
std::any tag () const
 Gets an object that contains data about the control. More...
 
common_dialogtag (const std::any &tag)
 Sets an object that contains data about the control. More...
 
virtual const std::string & title () const
 
virtual file_dialogtitle (const std::string &value)
 
std::string to_string () const
 
virtual bool validate_names () const
 
virtual file_dialogvalidate_names (bool value)
 

Public Attributes

event< common_dialog, common_dialog_closed_event_handler< component & > > common_dialog_closed
 
event< common_dialog, help_event_handler< component & > > help_request
 Occurs when the user clicks the Help button on a common dialog box. More...
 

Protected Member Functions

virtual bool can_raise_events () const
 Gets a value indicating whether the component can raise an event. More...
 
bool design_mode () const
 Gets a value that indicates whether the component is currently in design mode. More...
 
virtual void on_common_dialog_closed (const common_dialog_closed_event_args &e)
 Raises the close event. More...
 
virtual void on_help_request (help_event_args &e)
 Raises the help_request event. More...
 

The documentation for this class was generated from the following file: