xtd 0.2.0
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 bool auto_upgrade_enable() const noexcept;
56
60 const xtd::string& description() const noexcept;
65 folder_browser_dialog& description(const xtd::string& value);
66
70 environment::special_folder root_folder() const noexcept;
80 const xtd::string& selected_path() const noexcept;
86 folder_browser_dialog& selected_path(const xtd::string& value);
87
91 bool show_new_folder_button() const noexcept;
97
99
102 void reset() noexcept override;
104
105 protected:
107
112 bool run_dialog(intptr owner) override;
113
116 void run_sheet(intptr owner) override;
118
119 private:
120 bool get_option(size_t flag) const noexcept;
121 void set_option(size_t flag, bool value);
122
123 xtd::sptr<data> data_;
124 };
125 }
126}
The environment class.
Definition environment.hpp:69
common_dialog()
Initializes a new instance of the common_dialog class.
void run_sheet(intptr owner) override
When overridden in a derived class, specifies a common dialog box.
environment::special_folder root_folder() const noexcept
Gets the root folder where the browsing starts from.
bool auto_upgrade_enable() const noexcept
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features.
bool show_new_folder_button() const noexcept
Gets a value indicating whether the New Folder button appears in the folder browser dialog box.
void reset() noexcept override
Resets all options to their default values, the last selected color to black, and the custom colors t...
bool run_dialog(intptr owner) override
When overridden in a derived class, specifies a common dialog box.
const xtd::string & selected_path() const noexcept
Gets the path selected by the user.
folder_browser_dialog()
Initializes a new instance of the folder_browser_dialog class.
const xtd::string & description() const noexcept
Gets the descriptive text displayed above the tree view control in the dialog box.
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
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
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 const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201