xtd 1.0.0
Loading...
Searching...
No Matches
progress_box.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "progress_dialog.hpp"
7#include <xtd/globalization/translator>
8#include <xtd/static>
9
11namespace xtd {
13 namespace forms {
33 public:
35
39 [[nodiscard]] static auto cancelled() -> bool;
42 [[nodiscard]] static auto skipped() -> bool;
45 [[nodiscard]] static auto minimum() -> xtd::int32;
48 [[nodiscard]] static auto maximum() -> xtd::int32;
50
52
55 static auto hide() -> void;
56
59 static auto show(const xtd::string& title) -> void;
63 static auto show(const xtd::string& title, xtd::forms::progress_box_options options) -> void;
64
68 static auto show(const xtd::string& title, const xtd::string& message) -> void;
73 static auto show(const xtd::string& title, const xtd::string& message, xtd::forms::progress_box_options options) -> void;
74
79 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value) -> void;
85 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::forms::progress_box_options options) -> void;
86
92 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum) -> void;
99 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::forms::progress_box_options options) -> void;
100
107 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum) -> void;
115 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, xtd::forms::progress_box_options options) -> void;
116
124 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void;
133 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, xtd::forms::progress_box_options options) -> void;
134
144 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array<xtd::string>& informations) -> void;
155 static auto show(const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array<xtd::string>& informations, xtd::forms::progress_box_options options) -> void;
156
160 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title) -> void;
165 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, xtd::forms::progress_box_options options) -> void;
166
171 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message) -> void;
177 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::forms::progress_box_options options) -> void;
178
184 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value) -> void;
191 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::forms::progress_box_options options) -> void;
192
199 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum) -> void;
207 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::forms::progress_box_options options) -> void;
208
216 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum) -> void;
225 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, xtd::forms::progress_box_options options) -> void;
226
235 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void;
245 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, xtd::forms::progress_box_options options) -> void;
246
257 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array<xtd::string>& informations) -> void;
269 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& title, const xtd::string& message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array<xtd::string>& informations, xtd::forms::progress_box_options options) -> void;
270
273 static auto update(xtd::forms::progress_box_options options) -> void;
276 static auto update(xtd::int32 value) -> void;
280 static auto update(xtd::int32 value, const xtd::string& title) -> void;
285 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message) -> void;
291 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message, xtd::int32 minimum) -> void;
298 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message, xtd::int32 minimum, xtd::int32 maximum) -> void;
306 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message, xtd::int32 minimum, xtd::int32 maximum, bool marquee) -> void;
315 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void;
325 static auto update(xtd::int32 value, const xtd::string& title, const xtd::string& message, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array<xtd::string>& informations) -> void;
327
328 private:
329 static auto show_progress_box(const xtd::forms::iwin32_window* owner = nullptr, xtd::forms::progress_box_options options = progress_box_options::none, const xtd::string& title = "Please wait..."_t, const xtd::string& message = ""_t, int32 initial_value = 0, int32 minimum = 0, int32 maximum = 100, bool marquee = false, xtd::usize marquee_animation_speed = 100, const xtd::array<xtd::string>& informations = {}) -> void;
330
331 static xtd::uptr<progress_dialog> dialog_;
332 };
333 }
334}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Represents a common dialog box that displays a progress dialog.
Definition progress_box.hpp:32
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum) -> void
Displays a progress dialog box in front of a specified window.
static auto hide() -> void
Hides a progress box in front.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void
Updates progress box.
static auto update(xtd::int32 value) -> void
Updates progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array< xtd::string > &informations, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array< xtd::string > &informations) -> void
Displays a progress box.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message, xtd::int32 minimum, xtd::int32 maximum) -> void
Updates progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array< xtd::string > &informations) -> void
Updates progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::string &title) -> void
Displays a progress box.
static auto show(const xtd::string &title, const xtd::string &message) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void
Displays a progress dialog box in front of a specified window.
static auto update(xtd::int32 value, const xtd::string &title) -> void
Updates progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array< xtd::string > &informations) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum) -> void
Displays a progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum) -> void
Displays a progress box.
static auto maximum() -> xtd::int32
Gets the maximum value of the range of the progress dialog.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum) -> void
Displays a progress dialog box in front of a specified window.
static auto update(xtd::forms::progress_box_options options) -> void
Updates progress box.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message, xtd::int32 minimum, xtd::int32 maximum, bool marquee) -> void
Updates progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto cancelled() -> bool
Check if the progress dialog is canceled.
static auto minimum() -> xtd::int32
Gets the minimum value of the range of the progress dialog.
static auto show(const xtd::string &title, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto skipped() -> bool
Check if the progress dialog is skipped.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message, xtd::int32 minimum) -> void
Updates progress box.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed, const xtd::array< xtd::string > &informations, xtd::forms::progress_box_options options) -> void
Displays a progress box.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, xtd::forms::progress_box_options options) -> void
Displays a progress dialog box in front of a specified window.
static auto show(const xtd::string &title, const xtd::string &message, xtd::int32 initial_value, xtd::int32 minimum, xtd::int32 maximum, bool marquee, xtd::usize marquee_animation_speed) -> void
Displays a progress box.
static auto update(xtd::int32 value, const xtd::string &title, const xtd::string &message) -> void
Updates progress box.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
progress_box_options
Specifies options on a xtd::forms::progress_box.
Definition progress_box_options.hpp:22
@ none
No options.
Definition progress_box_options.hpp:24
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
Contains xtd::forms::progress_box_options control.
Contains xtd::forms::progress_dialog dialog.
Implements a Windows message.
Definition message.hpp:33