xtd 1.0.0
Loading...
Searching...
No Matches
exception_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "component.hpp"
6#include "dialog_result.hpp"
9#include "iwin32_window.hpp"
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
54 [[nodiscard]] auto dialog_result() const noexcept -> xtd::forms::dialog_result;
55
58 [[nodiscard]] auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance;
63
66 [[nodiscard]] auto exception() const noexcept -> xtd::ref<const std::exception>;
72
75 [[nodiscard]] auto text() const noexcept -> xtd::string;
79 auto text(const xtd::string& text) -> exception_dialog&;
81
83
86 auto reset() noexcept -> void;
87
94 auto show_sheet(const xtd::forms::iwin32_window& owner) -> void;
98
100
106
107 protected:
109
116
117 private:
118 xtd::sptr<data> data_;
119 };
120 }
121}
Contains xtd::forms::layout::arranged_element_collection collection.
Represents an event.
Definition event.hpp:23
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:26
Provides data for a dialog closed event.
Definition dialog_closed_event_args.hpp:22
exception_dialog()
Initializes a new instance of the exception_dialog class.
auto text() const noexcept -> xtd::string
Gets the dialog caption text.
auto show_dialog() -> xtd::forms::dialog_result
Runs exception dialog box.
auto on_dialog_closed(const xtd::forms::dialog_closed_event_args &e) -> void
Raises the close event.
auto reset() noexcept -> void
Resets all properties to empty string.
auto show_sheet_dialog(const xtd::forms::iwin32_window &owner) -> xtd::forms::dialog_result
Runs exception dialog box.
auto exception() const noexcept -> xtd::ref< const std::exception >
Gets exception reference.
xtd::event< exception_dialog, xtd::forms::dialog_closed_event_handler > dialog_closed
Occurs when the user close an exception dialog box with dialog close button or other dialog buttons.
Definition exception_dialog.hpp:104
auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance
Gets the dialog appearance.
auto show_sheet(const xtd::forms::iwin32_window &owner) -> void
Runs exception dialog box.
auto dialog_result() const noexcept -> xtd::forms::dialog_result
Gets async dialog_result result after dialog box is closing.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::dialog_closed_event_handler handler.
Contains xtd::forms::dialog_result enum class.
xtd::delegate< void(xtd::object &sender, const xtd::forms::dialog_closed_event_args &e)> dialog_closed_event_handler
Provides handler for a dialog closed event.
Definition dialog_closed_event_handler.hpp:27
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
xtd::reference_wrapper_object< type_t > ref
The xtd::ref object is a reference wrapper.
Definition ref.hpp:25
Contains xtd::forms::iwin32_window interface.
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
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197