xtd 0.2.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 bool auto_upgrade_enable() const noexcept;
55 folder_browser_dialog& auto_upgrade_enable(bool value);
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;
75 folder_browser_dialog& root_folder(environment::special_folder value);
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;
95 folder_browser_dialog& show_new_folder_button(bool value);
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:67
Specifies the base class used for displaying dialog boxes on the screen.
Definition common_dialog.hpp:34
Prompts the user to select a folder. This class cannot be inherited.
Definition folder_browser_dialog.hpp:31
bool auto_upgrade_enable() const noexcept
Gets a value that indicates whether the dialog will be automatically upgraded to enable new features.
folder_browser_dialog()
Initializes a new instance of the folder_browser_dialog class.
Contains xtd::forms::common_dialog class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10