xtd 0.2.0
Loading...
Searching...
No Matches
assert_dialog.h
Go to the documentation of this file.
1
4#pragma once
5#include "component.h"
6#include "dialog_result.h"
7#include "dialog_appearance.h"
9#include "iwin32_window.h"
10#include <xtd/diagnostics/stack_frame>
11#include <xtd/event>
12
14namespace xtd {
16 namespace forms {
35 class forms_export_ assert_dialog final : public component {
36 struct data;
37
38 public:
40
45
47
52
60
63 xtd::string message() const noexcept;
67 assert_dialog& message(const xtd::string& value);
68
72 [[deprecated("Will be removed in version 0.4.0.")]]
73 xtd::diagnostics::stack_frame stack_frame() const noexcept;
78 [[deprecated("Use xtd::forms::assert_dialog::show_dialog ([owner,] stack_frame) or xtd::forms::assert_dialog::show_sheet (owner, stack_frame) - Will be removed in version 0.4.0.")]]
79 assert_dialog& stack_frame(const xtd::diagnostics::stack_frame& value);
81
83
86 void reset() noexcept;
87
89 xtd::forms::dialog_result show_dialog(const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current());
91 xtd::forms::dialog_result show_dialog(const iwin32_window& owner, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current());
92
95 void show_sheet(const iwin32_window& owner, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current());
96
98 xtd::forms::dialog_result show_sheet_dialog(const iwin32_window& owner, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current());
100
102
108
109 protected:
111
116 void on_dialog_closed(const dialog_closed_event_args& e);
118
119 private:
120 void set_message() noexcept;
121 xtd::sptr<data> data_;
122 };
123 }
124}
Represents an event.
Definition event.h:21
Represents a common dialog box that displays assert dialog.
Definition assert_dialog.h:35
xtd::forms::dialog_result dialog_result() const noexcept
Gets async dialog_result result after dialog box is closing.
assert_dialog()
Initializes a new instance of the assert_dialog class.
Provides the base implementation and enables object sharing between applications.
Definition component.h:25
Provides data for a dialog closed event.
Definition dialog_closed_event_args.h:22
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Implements a Windows message.
Definition message.h:28
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::dialog_closed_event_handler dialog.
Contains xtd::forms::dialog_result enum class.
delegate< void(object &sender, const dialog_closed_event_args &e)> dialog_closed_event_handler
Provides handler for a dialog closed event.
Definition dialog_closed_event_handler.h:24
#define forms_export_
Define shared library export.
Definition forms_export.h:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:43
control_appearance
Specifies the appearance of a control.
Definition control_appearance.h:21
Contains xtd::forms::iwin32_window interface.
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