xtd 0.2.0
about_dialog.h
Go to the documentation of this file.
1 #pragma once
6 #include "component.h"
7 #include "dialog_appearance.h"
8 #include "iwin32_window.h"
9 #include <xtd/drawing/icon>
10 #include <xtd/delegate>
11 #include <xtd/ustring>
12 
14 namespace xtd {
16  namespace forms {
36  class forms_export_ about_dialog final : public component {
37  struct data;
38 
39  public:
41 
52 
54 
57  about_dialog();
59 
61  ~about_dialog();
63 
65 
69  const artist_collection& artists() const noexcept;
72  artist_collection& artists() noexcept;
76  about_dialog& artists(const artist_collection& artists);
77 
80  const author_collection& authors() const noexcept;
83  author_collection& authors() noexcept;
87  about_dialog& authors(const author_collection& authors);
88 
91  xtd::ustring copyright() const noexcept;
95  about_dialog& copyright(const xtd::ustring& copyright);
96 
99  xtd::ustring description() const noexcept;
103  about_dialog& description(const xtd::ustring& description);
104 
107  const documenter_collection& documenters() const noexcept;
110  documenter_collection& documenters() noexcept;
114  about_dialog& documenters(const documenter_collection& documenters);
115 
118  xtd::forms::dialog_appearance dialog_appearance() const noexcept;
123 
126  xtd::drawing::icon icon() const noexcept;
130  about_dialog& icon(const xtd::drawing::icon& icon);
134  about_dialog& icon(const xtd::drawing::image& image);
138  about_dialog& icon(const xtd::drawing::bitmap& bitmap);
139 
142  xtd::ustring license() const noexcept;
146  about_dialog& license(const xtd::ustring& license);
147 
150  xtd::ustring long_version() const noexcept;
154  about_dialog& long_version(const xtd::ustring& long_version);
155 
158  xtd::ustring name() const noexcept;
162  about_dialog& name(const xtd::ustring& name);
163 
166  const translator_collection& translators() const noexcept;
169  translator_collection& translators() noexcept;
173  about_dialog& translators(const translator_collection& translators);
174 
177  xtd::ustring version() const noexcept;
182 
185  xtd::ustring website() const noexcept;
189  about_dialog& website(const xtd::ustring& website);
190 
193  xtd::ustring website_label() const noexcept;
197  about_dialog& website_label(const xtd::ustring& website_label);
199 
201 
205  static about_dialog from_executing_assembly_informations();
206 
208  void reset() noexcept;
209 
211  void show();
213  void show(const iwin32_window& owner);
215 
216  private:
217  std::shared_ptr<data> data_;
218  };
219  }
220 }
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::layout::arranged_element_collection collection.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
control_appearance
Specifies the appearance of a control.
Definition: control_appearance.h:19
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition: version.h:95
Represents a collection of objects.
Definition: arranged_element_collection.h:31
Contains xtd::forms::iwin32_window interface.
Represents a dialog box that displays about dialog.
Definition: about_dialog.h:36
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::component class.
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:23