xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <folder_browser_dialog.h>
Prompts the user to select a folder. This class cannot be inherited.
Inherits xtd::forms::common_dialog.
Public Member Functions | |
folder_browser_dialog ()=default | |
Initializes a new instance of the folder_browser_dialog class. More... | |
bool | auto_upgrade_enable () const |
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features. More... | |
folder_browser_dialog & | auto_upgrade_enable (bool value) |
Sets a value that indicates whether the dialog will be automatically upgraded to enable new features. More... | |
const xtd::ustring & | description () const |
Gets the descriptive text displayed above the tree view control in the dialog box. More... | |
folder_browser_dialog & | description (const xtd::ustring &value) |
Sets the descriptive text displayed above the tree view control in the dialog box. More... | |
void | reset () override |
Resets all options to their default values, the last selected color to black, and the custom colors to their default values. More... | |
environment::special_folder | root_folder () const |
Gets the root folder where the browsing starts from. More... | |
folder_browser_dialog & | root_folder (environment::special_folder value) |
Sets the root folder where the browsing starts from. More... | |
const xtd::ustring & | selected_path () const |
Gets the path selected by the user. More... | |
folder_browser_dialog & | selected_path (const xtd::ustring &value) |
Sets the path selected by the user. More... | |
bool | show_new_folder_button () const |
Gets a value indicating whether the New Folder button appears in the folder browser dialog box. More... | |
folder_browser_dialog & | show_new_folder_button (bool value) |
Sets a value indicating whether the New Folder button appears in the folder browser dialog box. More... | |
Public Member Functions inherited from xtd::forms::common_dialog | |
common_dialog ()=default | |
Initializes a new instance of the common_dialog class. More... | |
xtd::forms::dialog_result | dialog_result () const |
Get async dialog_result result after dialog box is closing. 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... | |
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... | |
std::any | tag () const |
Gets an object that contains data about the control. More... | |
common_dialog & | tag (const std::any &tag) |
Sets an object that contains data about the control. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. More... | |
Protected Member Functions | |
bool | run_dialog (intptr_t owner) override |
When overridden in a derived class, specifies a common dialog box. More... | |
void | run_sheet (intptr_t owner) override |
When overridden in a derived class, specifies a common dialog box. More... | |
Protected Member Functions inherited from xtd::forms::common_dialog | |
virtual void | on_dialog_closed (const dialog_closed_event_args &e) |
Raises the common_dialog::dialog_close event. More... | |
virtual void | on_help_request (help_event_args &e) |
Raises the common_dialog::help_request event. More... | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. More... | |
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... | |
Additional Inherited Members | |
Public Attributes inherited from xtd::forms::common_dialog | |
event< common_dialog, dialog_closed_event_handler > | dialog_closed |
Occurs when the user close a common dialog box with dialog close button or other dialog buttons. More... | |
event< common_dialog, help_event_handler > | help_request |
Occurs when the user clicks the Help button on a common dialog box. More... | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
|
default |
Initializes a new instance of the folder_browser_dialog class.
|
inline |
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features.
|
inline |
Sets a value that indicates whether the dialog will be automatically upgraded to enable new features.
value | true if the the dialog will be automatically upgraded to enable new features; otherwise, false. The default value is true. |
|
inline |
Gets the descriptive text displayed above the tree view control in the dialog box.
|
inline |
Sets the descriptive text displayed above the tree view control in the dialog box.
value | The description to display. The default is an empty string (""). |
|
overridevirtual |
Resets all options to their default values, the last selected color to black, and the custom colors to their default values.
Implements xtd::forms::common_dialog.
|
inline |
Gets the root folder where the browsing starts from.
|
inline |
Sets the root folder where the browsing starts from.
value | One of the environment::special_folder values. The default is environment::special_folder::desktop. |
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.
|
inline |
Gets the path selected by the user.
|
inline |
Sets the path selected by the user.
value | The path of the folder first selected in the dialog box or the last folder selected by the user. The default is an empty string (""). |
|
inline |
Gets a value indicating whether the New Folder button appears in the folder browser dialog box.
|
inline |
Sets a value indicating whether the New Folder button appears in the folder browser dialog box.
value | true if the New Folder button is shown in the dialog box; otherwise, false. The default is true. |