xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
save_file_dialog.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/io/file.h>
6#include "file_dialog.h"
7
9namespace xtd {
11 namespace forms {
22 public:
24 save_file_dialog() = default;
25
28 std::fstream open_file() const {return io::file::open(xtd::ustring(file_name_), std::ios::binary | std::ios::in | std::ios::out);}
29
30 private:
31 bool run_file_dialog(intptr_t hwnd_owner) override;
32 void run_file_sheet(intptr_t owner) override;
33 };
34 }
35}
Displays a dialog box from which the user can select a file.
Definition: file_dialog.h:41
Prompts the user to select a location for saving a file. This class cannot be inherited.
Definition: save_file_dialog.h:21
save_file_dialog()=default
Initializes a new instance of the save_file_dialog class.
std::fstream open_file() const
Opens the file with read/write permission selected by the user.
Definition: save_file_dialog.h:28
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
Contains xtd::io::file class.
Contains xtd::forms::file_dialog dialog.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17