xtd 0.2.0
folder_browser_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include "dialog_result.h"
7 #include "iwin32_window.h"
8 #include <xtd/environment>
9 
11 namespace xtd {
13  namespace forms {
30  class forms_export_ folder_browser_box final static_ {
31  public:
33 
41  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::forms::iwin32_window& owner);
48  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::forms::iwin32_window& owner, const xtd::ustring& description);
56  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::forms::iwin32_window& owner, const xtd::ustring& description, xtd::environment::special_folder root_folder);
65  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::forms::iwin32_window& owner, const xtd::ustring& description, xtd::environment::special_folder root_folder, bool show_new_folder_button);
75  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::forms::iwin32_window& owner, const xtd::ustring& description, xtd::environment::special_folder root_folder, bool show_new_folder_button, bool auto_upgrade_enable);
81  static xtd::forms::dialog_result show(xtd::ustring& selected_path);
87  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::ustring& description);
94  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::ustring& description, xtd::environment::special_folder root_folder);
102  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::ustring& description, xtd::environment::special_folder root_folder, bool show_new_folder_button);
111  static xtd::forms::dialog_result show(xtd::ustring& selected_path, const xtd::ustring& description, xtd::environment::special_folder root_folder, bool show_new_folder_button, bool auto_upgrade_enable);
113 
114  private:
115  static xtd::forms::dialog_result show_folder_browser_box(xtd::ustring& selected_path, const xtd::ustring& description = "", xtd::environment::special_folder root_folder = xtd::environment::special_folder::desktop, bool show_new_folder_button = true, bool auto_upgrade_enable = true, const iwin32_window* owner = nullptr);
116  };
117  }
118 }
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:41
special_folder
Definition: environment.h:150
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
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
Contains xtd::forms::iwin32_window interface.
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Contains xtd::forms::dialog_result enum class.
The logical Desktop rather than the physical file system location.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Represents a common dialog box that displays a folder browser dialog. This class cannot be inherited...
Definition: folder_browser_box.h:30