xtd 0.2.0
Loading...
Searching...
No Matches
folder_browser_dialog.h
Go to the documentation of this file.
1
4#pragma once
5#include "common_dialog.h"
6#include <xtd/environment>
7#include <xtd/forms/browser_info_flags>
8
10namespace xtd {
12 namespace forms {
30 struct data;
31
32 public:
34
43
45
49 bool auto_upgrade_enable() const noexcept;
53 folder_browser_dialog& auto_upgrade_enable(bool value);
54
58 const xtd::ustring& description() const noexcept;
63 folder_browser_dialog& description(const xtd::ustring& value);
64
68 environment::special_folder root_folder() const noexcept;
73 folder_browser_dialog& root_folder(environment::special_folder value);
78 const xtd::ustring& selected_path() const noexcept;
84 folder_browser_dialog& selected_path(const xtd::ustring& value);
85
89 bool show_new_folder_button() const noexcept;
93 folder_browser_dialog& show_new_folder_button(bool value);
95
97
100 void reset() noexcept override;
102
103 protected:
105
110 bool run_dialog(intptr owner) override;
111
114 void run_sheet(intptr owner) override;
116
117 private:
118 bool get_option(size_t flag) const noexcept;
119 void set_option(size_t flag, bool value);
120
121 std::shared_ptr<data> data_;
122 };
123 }
124}
The environment class.
Definition environment.h:117
Specifies the base class used for displaying dialog boxes on the screen.
Definition common_dialog.h:32
Prompts the user to select a folder. This class cannot be inherited.
Definition folder_browser_dialog.h:29
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.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::common_dialog class.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10