xtd 1.0.0
Loading...
Searching...
No Matches
folder_browser_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "common_dialog.hpp"
6#include <xtd/environment>
7#include <xtd/forms/browser_info_flags>
8
10namespace xtd {
12 namespace forms {
32 struct data;
33
34 public:
36
45
47
51 [[nodiscard]] auto auto_upgrade_enable() const noexcept -> bool;
56
60 [[nodiscard]] auto description() const noexcept -> const xtd::string&;
65 auto description(const xtd::string& value) -> folder_browser_dialog&;
66
70 [[nodiscard]] auto root_folder() const noexcept -> xtd::environment::special_folder;
75 auto root_folder(xtd::environment::special_folder value) -> folder_browser_dialog&;
80 [[nodiscard]] auto selected_path() const noexcept -> const xtd::string&;
86 auto selected_path(const xtd::string& value) -> folder_browser_dialog&;
87
91 [[nodiscard]] bool show_new_folder_button() const noexcept;
97
99
102 auto reset() noexcept -> void override;
104
105 protected:
107
112 auto run_dialog(xtd::intptr owner) -> bool override;
113
116 auto run_sheet(xtd::intptr owner) -> void override;
118
119 private:
120 [[nodiscard]] auto get_option(xtd::usize flag) const noexcept -> bool;
121 auto set_option(xtd::usize flag, bool value) -> void;
122
123 xtd::sptr<data> data_;
124 };
125 }
126}
The environment class.
Definition environment.hpp:69
Specifies the base class used for displaying dialog boxes on the screen.
Definition common_dialog.hpp:34
auto selected_path() const noexcept -> const xtd::string &
Gets the path selected by the user.
auto auto_upgrade_enable() const noexcept -> bool
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features.
auto reset() noexcept -> void override
Resets all options to their default values, the last selected color to black, and the custom colors t...
bool show_new_folder_button() const noexcept
Gets a value indicating whether the New Folder button appears in the folder browser dialog box.
auto run_sheet(xtd::intptr owner) -> void override
When overridden in a derived class, specifies a common dialog box.
auto run_dialog(xtd::intptr owner) -> bool override
When overridden in a derived class, specifies a common dialog box.
folder_browser_dialog()
Initializes a new instance of the folder_browser_dialog class.
auto description() const noexcept -> const xtd::string &
Gets the descriptive text displayed above the tree view control in the dialog box.
auto root_folder() const noexcept -> xtd::environment::special_folder
Gets the root folder where the browsing starts from.
Contains xtd::forms::common_dialog class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197