xtd 0.2.0
Loading...
Searching...
No Matches
about_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "about_dialog.h"
6#include <xtd/literals>
7#include <xtd/static>
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
33 public:
35
46
48
52 static void show(const iwin32_window& owner);
53
57 static void show(const iwin32_window& owner, const xtd::string& text);
58
63 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption);
64
70 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon);
71
78 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version);
79
87 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version);
88
97 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright);
98
108 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website);
109
120 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label);
121
133 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors);
134
147 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters);
148
162 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators);
163
178 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists);
179
195 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists, const xtd::string& license);
196
198 static void show();
199
202 static void show(const xtd::string& text);
203
207 static void show(const xtd::string& text, const xtd::string& caption);
208
213 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon);
214
220 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version);
221
228 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version);
229
237 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright);
238
247 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website);
248
258 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label);
259
270 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors);
271
283 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters);
284
297 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators);
298
312 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists);
313
328 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists, const xtd::string& license);
329
334 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon);
335
341 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version);
342
349 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version);
350
358 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright);
359
368 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website);
369
379 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label);
380
391 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors);
392
404 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters);
405
418 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators);
419
433 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists);
434
449 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::bitmap& icon, const xtd::string& version, const xtd::string& long_version, const xtd::string& copyright, const xtd::string& website, const xtd::string& website_label, const author_collection& authors, const documenter_collection& documenters, const translator_collection& translators, const artist_collection& artists, const xtd::string& license);
451
452 private:
453 template<typename icon_t>
454 static void show_about_dialog(const iwin32_window* owner, const xtd::string& text = "About box..."_t, const xtd::string& caption = xtd::string::empty_string, const icon_t& icon = icon_t::empty, const xtd::string& version = xtd::string::empty_string, const xtd::string& long_version = xtd::string::empty_string, const xtd::string& copyright = xtd::string::empty_string, const xtd::string& website = xtd::string::empty_string, const xtd::string& website_label = xtd::string::empty_string, const author_collection& authors = author_collection {}, const documenter_collection& documenters = documenter_collection {}, const translator_collection& translators = translator_collection {}, const artist_collection& artists = artist_collection {}, const xtd::string& license = "") {
455 static auto dialog = about_dialog {};
456 dialog.description(text);
457 dialog.name(caption);
458 dialog.icon(icon);
459 dialog.version(version);
460 dialog.long_version(long_version);
461 dialog.copyright(copyright);
462 dialog.website(website);
463 dialog.website_label(website_label);
464 dialog.authors(authors);
465 dialog.documenters(documenters);
466 dialog.translators(translators);
467 dialog.artists(artists);
468 dialog.license(license);
469 owner ? dialog.show(*owner) : dialog.show();
470 }
471 };
472 }
473}
Represents text as a sequence of character units.
Definition basic_string.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.h:26
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.h:28
Represents a dialog box that displays about box.
Definition about_box.h:32
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists, const xtd::string &license)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const iwin32_window &owner)
Displays an about box in front of the specified window.
static void show(const iwin32_window &owner, const xtd::string &text)
Displays an about box in front of the specified window. The about box displays a message.
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version)
Displays an about box. The about box displays a message, title bar caption, icon and version.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
Displays an about box. The about box displays a message, title bar caption and icon.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists, const xtd::string &license)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text)
Displays an about box. The about box displays a message.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version)
Displays an about box. The about box displays a message, title bar caption, icon, version and long ve...
static void show(const xtd::string &text, const xtd::string &caption)
Displays an about box. The about box displays a message and title bar caption.
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version)
Displays an about box. The about box displays a message, title bar caption, icon, version and long ve...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version)
Displays an about box. The about box displays a message, title bar caption, icon and version.
static void show()
Displays an about box.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon)
Displays an about box. The about box displays a message, title bar caption and icon.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::bitmap &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists)
Displays an about box. The about box displays a message, title bar caption, icon, version,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::string &version, const xtd::string &long_version, const xtd::string &copyright, const xtd::string &website, const xtd::string &website_label, const author_collection &authors, const documenter_collection &documenters, const translator_collection &translators, const artist_collection &artists, const xtd::string &license)
Displays an about box in front of the specified window. The about box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption)
Displays an about box in front of the specified window. The about box displays a message and title ba...
xtd::forms::layout::arranged_element_collection< xtd::string > author_collection
Represents an author collection.
Definition about_dialog.h:48
xtd::forms::layout::arranged_element_collection< xtd::string > documenter_collection
Represents a documenter collection.
Definition about_dialog.h:52
xtd::forms::layout::arranged_element_collection< xtd::string > artist_collection
Represents an artist collection.
Definition about_dialog.h:50
xtd::forms::layout::arranged_element_collection< xtd::string > translator_collection
Represents a translator collection.
Definition about_dialog.h:54
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Represents a collection of objects.
Definition arranged_element_collection.h:34
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
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
Contains xtd::forms::about_dialog dialog.