xtd 0.2.0
about_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "component.hpp"
8#include "iwin32_window.hpp"
9#include "tab_page.hpp"
10#include "tab_control.hpp"
11#include <xtd/drawing/icon>
12#include <xtd/reflection/assembly>
13#include <xtd/delegate>
14#include <xtd/string>
15
17namespace xtd {
19 namespace forms {
41 class forms_export_ about_dialog final : public component {
42 struct data;
43
44 public:
46
59
61
66
70
72
76 const artist_collection& artists() const noexcept;
84
87 const author_collection& authors() const noexcept;
95
98 xtd::string copyright() const noexcept;
103
106 xtd::string description() const noexcept;
111
114 const documenter_collection& documenters() const noexcept;
122
130
133 xtd::drawing::icon icon() const noexcept;
141 about_dialog& icon(const xtd::drawing::image& image);
145 about_dialog& icon(const xtd::drawing::bitmap& bitmap);
146
149 xtd::string license() const noexcept;
153 about_dialog& license(const xtd::string& license);
154
157 xtd::string long_version() const noexcept;
162
165 xtd::string name() const noexcept;
169 about_dialog& name(const xtd::string& name);
170
173 const translator_collection& translators() const noexcept;
181
190
193 xtd::string version() const noexcept;
197 about_dialog& version(const xtd::string& version);
198
201 xtd::string website() const noexcept;
205 about_dialog& website(const xtd::string& website);
206
209 xtd::string website_label() const noexcept;
215
217
220 void reset() noexcept;
221
223 void show();
226 void show(const iwin32_window& owner);
228
230
235 static about_dialog from_assembly(const xtd::reflection::assembly& assembly);
240
241 private:
242 xtd::sptr<data> data_;
243 };
244 }
245}
Contains xtd::forms::layout::arranged_element_collection collection.
user_tab_page_collection & user_tab_pages() noexcept
Gets the collection of user tab pages in this about box.
const translator_collection & translators() const noexcept
Gets the translators array.
xtd::string website_label() const noexcept
Gets the product website label.
xtd::string copyright() const noexcept
Gets the product copyright.
const documenter_collection & documenters() const noexcept
Gets the documentation writers array.
xtd::forms::layout::arranged_element_collection< xtd::string > author_collection
Represents an author collection.
Definition about_dialog.hpp:49
xtd::string description() const noexcept
Gets the product description.
static about_dialog from_assembly(const xtd::reflection::assembly &assembly)
Create a new xtd::forms::about_dialog from specified assembly.
xtd::string long_version() const noexcept
Gets the product long version.
about_dialog()
Initializes a new instance of the about_dialog class.
xtd::string version() const noexcept
Gets the product version.
void reset() noexcept
Resets all properties to empty string.
xtd::drawing::icon icon() const noexcept
Gets the product icon.
const artist_collection & artists() const noexcept
Gets the artists array.
tab_control::tab_page_collection user_tab_page_collection
Represents user tab page collection.
Definition about_dialog.hpp:57
void show()
Runs about dialog box.
xtd::string license() const noexcept
Gets the product license.
xtd::forms::layout::arranged_element_collection< xtd::string > documenter_collection
Represents a documenter collection.
Definition about_dialog.hpp:53
xtd::string website() const noexcept
Gets the product website.
xtd::forms::layout::arranged_element_collection< xtd::string > artist_collection
Represents an artist collection.
Definition about_dialog.hpp:51
const author_collection & authors() const noexcept
Gets the authors array.
xtd::forms::dialog_appearance dialog_appearance() const noexcept
Gets the dialog appearance.
xtd::string name() const noexcept
Gets the product name.
static about_dialog from_executing_assembly_informations()
Create a new xtd::forms::about_dialog from executing xtd::reflection::assembly informations.
xtd::forms::layout::arranged_element_collection< xtd::string > translator_collection
Represents a translator collection.
Definition about_dialog.hpp:55
component()
Initialises a new instance of the component class.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Represents a collection of objects.
Definition arranged_element_collection.hpp:35
Represents a collection of controls.
Definition tab_control.hpp:44
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
#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
Contains xtd::forms::iwin32_window interface.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd::reflection namespace contains types that retrieve information about assemblies,...
Definition assembly.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::tab_control container.
Contains xtd::forms::tab_page container.