xtd 0.2.0
Loading...
Searching...
No Matches
progress_box.h
Go to the documentation of this file.
1
4#pragma once
6#include "progress_dialog.h"
7#include <xtd/static>
8
10namespace xtd {
12 namespace forms {
32 public:
34
38 static bool cancelled();
41 static bool skipped();
44 static int32 minimum();
47 static int32 maximum();
49
51
54 static void hide();
55
58 static void show(const xtd::string& title);
62 static void show(const xtd::string& title, const progress_box_options options);
63
67 static void show(const xtd::string& title, const xtd::string& message);
72 static void show(const xtd::string& title, const xtd::string& message, const progress_box_options options);
73
78 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value);
84 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const progress_box_options options);
85
91 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum);
98 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const progress_box_options options);
99
106 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum);
114 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const progress_box_options options);
115
123 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed);
132 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const progress_box_options options);
133
143 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector<xtd::string>& informations);
154 static void show(const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector<xtd::string>& informations, const progress_box_options options);
155
159 static void show(const iwin32_window& owner, const xtd::string& title);
164 static void show(const iwin32_window& owner, const xtd::string& title, const progress_box_options options);
165
170 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message);
176 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const progress_box_options options);
177
183 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value);
190 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const progress_box_options options);
191
198 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum);
206 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const progress_box_options options);
207
215 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum);
224 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const progress_box_options options);
225
234 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed);
244 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const progress_box_options options);
245
256 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector<xtd::string>& informations);
268 static void show(const iwin32_window& owner, const xtd::string& title, const xtd::string& message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector<xtd::string>& informations, const progress_box_options options);
269
272 static void update(const progress_box_options options);
275 static void update(const int32 value);
279 static void update(const int32 value, const xtd::string& title);
284 static void update(const int32 value, const xtd::string& title, const xtd::string& message);
290 static void update(const int32 value, const xtd::string& title, const xtd::string& message, const int32 minimum);
297 static void update(const int32 value, const xtd::string& title, const xtd::string& message, const int32 minimum, const int32 maximum);
305 static void update(const int32 value, const xtd::string& title, const xtd::string& message, const int32 minimum, const int32 maximum, const bool marquee);
314 static void update(const int32 value, const xtd::string& title, const xtd::string& message, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed);
324 static void update(const int32 value, const xtd::string& title, const xtd::string& message, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector<xtd::string>& informations);
326
327 private:
328 static void show_progress_box(const iwin32_window* owner = nullptr, const 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, const bool marquee = false, size_t marquee_animation_speed = 100, const std::vector<xtd::string>& informations = std::vector<xtd::string>());
329
330 static xtd::uptr<progress_dialog> dialog_;
331 };
332 }
333}
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Implements a Windows message.
Definition message.h:28
Represents a common dialog box that displays a progress dialog.
Definition progress_box.h:31
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value)
Displays a progress dialog box in front of a specified window.
static void update(const int32 value, const xtd::string &title, const xtd::string &message, const int32 minimum, const int32 maximum, const bool marquee)
Updates progress box.
static void show(const xtd::string &title, const xtd::string &message, const progress_box_options options)
Displays a progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed)
Displays a progress box.
static void hide()
Hides a progress box in front.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void show(const xtd::string &title, const progress_box_options options)
Displays a progress box.
static int32 maximum()
Gets the maximum value of the range of the progress dialog.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const progress_box_options options)
Displays a progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const progress_box_options options)
Displays a progress box.
static void update(const int32 value, const xtd::string &title, const xtd::string &message, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed)
Updates progress box.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector< xtd::string > &informations)
Displays a progress dialog box in front of a specified window.
static bool skipped()
Check if the progress dialog is skipped.
static void show(const iwin32_window &owner, const xtd::string &title, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void update(const int32 value)
Updates progress box.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed)
Displays a progress dialog box in front of a specified window.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const progress_box_options options)
Displays a progress box.
static void show(const xtd::string &title)
Displays a progress box.
static void update(const int32 value, const xtd::string &title, const xtd::string &message, const int32 minimum, const int32 maximum)
Updates progress box.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const progress_box_options options)
Displays a progress box.
static void update(const int32 value, const xtd::string &title, const xtd::string &message, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector< xtd::string > &informations)
Updates progress box.
static void update(const int32 value, const xtd::string &title)
Updates progress box.
static int32 minimum()
Gets the minimum value of the range of the progress dialog.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector< xtd::string > &informations)
Displays a progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum)
Displays a progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum)
Displays a progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value)
Displays a progress box.
static bool cancelled()
Check if the progress dialog is canceled.
static void show(const xtd::string &title, const xtd::string &message)
Displays a progress box.
static void show(const iwin32_window &owner, const xtd::string &title)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector< xtd::string > &informations, const progress_box_options options)
Displays a progress dialog box in front of a specified window.
static void update(const int32 value, const xtd::string &title, const xtd::string &message)
Updates progress box.
static void show(const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum, const int32 maximum, const bool marquee, const size_t marquee_animation_speed, const std::vector< xtd::string > &informations, const progress_box_options options)
Displays a progress box.
static void update(const progress_box_options options)
Updates progress box.
static void update(const int32 value, const xtd::string &title, const xtd::string &message, const int32 minimum)
Updates progress box.
static void show(const iwin32_window &owner, const xtd::string &title, const xtd::string &message, const int32 initial_value, const int32 minimum)
Displays a progress dialog box in front of a specified window.
#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
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
progress_box_options
Specifies options on a xtd::forms::progress_box.
Definition progress_box_options.h:22
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::progress_box_options control.
Contains xtd::forms::progress_dialog dialog.