xtd 0.2.0
folder_browser_dialog.h
Go to the documentation of this file.
1 #pragma once
5 #include "common_dialog.h"
6 #include <xtd/environment>
7 #include <xtd/forms/browser_info_flags>
8 
10 namespace xtd {
12  namespace forms {
29  class forms_export_ folder_browser_dialog final : public common_dialog {
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;
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 }
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
special_folder
Definition: environment.h:150
Contains xtd::forms::common_dialog class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Prompts the user to select a folder. This class cannot be inherited.
Definition: folder_browser_dialog.h:29
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Specifies the base class used for displaying dialog boxes on the screen.
Definition: common_dialog.h:32