xtd 1.0.0
Loading...
Searching...
No Matches
open_file_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "file_dialog.hpp"
6#include <xtd/io/file>
7
9namespace xtd {
11 namespace forms {
31 public:
33
36 open_file_dialog() = default;
38
40
44 [[nodiscard]] auto open_file() const noexcept -> std::ifstream;
45
49 [[nodiscard]] auto multiselect() const noexcept -> bool;
54 auto multiselect(bool value) -> open_file_dialog&;
56
57 private:
58 auto run_file_dialog(xtd::intptr hwnd_owner) -> bool override;
59 auto run_file_sheet(xtd::intptr hwnd_owner) -> void override;
60 };
61 }
62}
Displays a dialog box from which the user can select a file.
Definition file_dialog.hpp:45
open_file_dialog()=default
Initializes a new instance of the open_file_dialog class.
auto open_file() const noexcept -> std::ifstream
Opens the file with read only permission selected by the user.
auto multiselect() const noexcept -> bool
Gets a value indicating whether the dialog box allows multiple files to be selected.
Contains xtd::forms::file_dialog dialog.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::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