xtd 0.2.0
Loading...
Searching...
No Matches
exception_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"
11#include <xtd/version>
12#include <xtd/drawing/icon>
13#include <xtd/exception>
14#include <functional>
15
17namespace xtd {
19 namespace forms {
39 struct data;
40
41 public:
43
48
50
55
63
66 std::reference_wrapper<const std::exception> exception() const noexcept;
72
75 xtd::string text() const noexcept;
79 exception_dialog& text(const xtd::string& text);
81
83
86 void reset() noexcept;
87
89 xtd::forms::dialog_result show_dialog();
91 xtd::forms::dialog_result show_dialog(const iwin32_window& owner);
94 void show_sheet(const iwin32_window& owner);
96 xtd::forms::dialog_result show_sheet_dialog(const iwin32_window& owner);
98
100
106
107 protected:
109
114 void on_dialog_closed(const dialog_closed_event_args& e);
116
117 private:
118 xtd::sptr<data> data_;
119 };
120 }
121}
Contains xtd::forms::layout::arranged_element_collection collection.
Represents an event.
Definition event.h:21
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.h:28
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
Represents a common dialog box that displays exception dialog.
Definition exception_dialog.h:38
exception_dialog()
Initializes a new instance of the exception_dialog class.
xtd::forms::dialog_result dialog_result() const noexcept
Gets async dialog_result result after dialog box is closing.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
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