xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <progress_dialog.h>
Represents a common dialog box that displays progress dialog.
Inherits xtd::forms::component.
Public Member Functions | |
progress_dialog ()=default | |
Initializes a new instance of the progress_dialog class. | |
bool | cancelled () const |
Gets whether user has clicked on cancel button. | |
xtd::forms::dialog_style | dialog_style () const |
Gets the dialog style. | |
progress_dialog & | dialog_style (xtd::forms::dialog_style dialog_style) |
Sets the dialog style. | |
void | hide () |
Hides progress dialog box. | |
void | increment (int32_t increment) |
Advances the current position of the progress bar by the specified amount. | |
const std::vector< xtd::ustring > & | informations () const |
Gets the information texts. | |
progress_dialog & | informations (const std::vector< xtd::ustring > &informations) |
Sets the information texts. | |
bool | marquee () const |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. | |
progress_dialog & | marquee (bool marquee) |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. | |
size_t | marquee_animation_speed () |
Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress bar. | |
progress_dialog & | marquee_animation_speed (size_t marquee_animation_speed) |
Sets the time period, in milliseconds, that it takes the progress block to scroll across the progress bar. | |
int32_t | maximum () |
Gets the maximum value of the range of the control. | |
progress_dialog & | maximum (int32_t maximum) |
Sets the maximum value of the range of the control. | |
const xtd::ustring & | message () const |
Gets the message text. | |
progress_dialog & | message (const xtd::ustring &message) |
Sets the message text. | |
int32_t | minimum () |
Gets the minimum value of the range of the control. | |
progress_dialog & | minimum (int32_t minimum) |
Sets the minimum value of the range of the control. | |
void | perform_step () |
Advances the current position of the progress bar by the amount of the Step property. | |
void | reset () |
Resets all properties to empty string. | |
void | resume () |
Resume progress dialog box after Abort button clicked. | |
void | show () |
Runs progress dialog box. | |
void | show (const iwin32_window &owner) |
Runs progress dialog box. | |
bool | show_cancel_button () const |
Gets a value that indicates whether cancel button is shown. | |
progress_dialog & | show_cancel_button (bool show_cancel_button) |
Sets a value that indicates whether cancel button is shown. | |
void | show_dialog () |
Runs progress dialog box. | |
void | show_dialog (const iwin32_window &owner) |
Runs progress dialog box. | |
bool | show_elapsed_time () const |
Gets a value that indicates whether elapsed time is shown. | |
progress_dialog & | show_elapsed_time (bool show_elapsed_time) |
Sets a value that indicates whether elapsed time is shown. | |
bool | show_estimated_time () const |
Gets a value that indicates whether estimated time is shown. | |
progress_dialog & | show_estimated_time (bool show_estimated_time) |
Sets a value that indicates whether estimated time is shown. | |
bool | show_remaining_time () const |
Gets a value that indicates whether remaining time is shown. | |
progress_dialog & | show_remaining_time (bool show_remaining_time) |
Sets a value that indicates whether remaining time is shown. | |
void | show_sheet (const iwin32_window &owner) |
Runs progress dialog box as sheet. | |
void | show_sheet_dialog (const iwin32_window &owner) |
Runs progress dialog box. | |
bool | show_skip_button () const |
Gets a value that indicates whether skip button is shown. | |
progress_dialog & | show_skip_button (bool show_skip_button) |
Sets a value that indicates whether skip button is shown. | |
bool | skipped () const |
Gets whether user has clicked on skip button. | |
virtual int32_t | step () |
Gets the amount by which a call to the PerformStep() method increases the current position of the progress bar. | |
virtual progress_dialog & | step (int32_t step) |
Sets the amount by which a call to the PerformStep() method increases the current position of the progress bar. | |
const xtd::ustring & | text () const |
Gets the dialog title. | |
progress_dialog & | text (const xtd::ustring &text) |
Sets the dialog title. | |
int32_t | value () |
Gets the current position of the progress bar. | |
progress_dialog & | value (int32_t value) |
Sets the current position of the progress bar. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. | |
virtual bool | can_raise_events () const |
Gets a value indicating whether the component can raise an event. | |
bool | design_mode () const |
Gets a value that indicates whether the component is currently in design mode. | |
|
default |
Initializes a new instance of the progress_dialog class.
bool xtd::forms::progress_dialog::cancelled | ( | ) | const |
Gets whether user has clicked on cancel button.
|
inline |
Gets the dialog style.
|
inline |
Sets the dialog style.
dialog_style | One of the xtd::forms::dialog_style values. The default value is xtd::forms::dialog_style::standard. |
void xtd::forms::progress_dialog::hide | ( | ) |
Hides progress dialog box.
|
inline |
Advances the current position of the progress bar by the specified amount.
increment | The amount by which to increment the progress bar's current position. |
|
inline |
Gets the information texts.
progress_dialog & xtd::forms::progress_dialog::informations | ( | const std::vector< xtd::ustring > & | informations | ) |
Sets the information texts.
informations | The information texts. |
|
inline |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion.
progress_dialog & xtd::forms::progress_dialog::marquee | ( | bool | marquee | ) |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion.
marquee | tree is marquee; otherwise false. The default is false. |
|
inline |
Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress bar.
progress_dialog & xtd::forms::progress_dialog::marquee_animation_speed | ( | size_t | marquee_animation_speed | ) |
Sets the time period, in milliseconds, that it takes the progress block to scroll across the progress bar.
marquee_animation_speed | The time period, in milliseconds, that it takes the progress block to scroll across the progress bar. |
|
inline |
Gets the maximum value of the range of the control.
progress_dialog & xtd::forms::progress_dialog::maximum | ( | int32_t | maximum | ) |
Sets the maximum value of the range of the control.
maximum | The maximum value of the range. The default is 100. |
|
inline |
progress_dialog & xtd::forms::progress_dialog::message | ( | const xtd::ustring & | message | ) |
Sets the message text.
description | The message text. |
|
inline |
Gets the minimum value of the range of the control.
progress_dialog & xtd::forms::progress_dialog::minimum | ( | int32_t | minimum | ) |
Sets the minimum value of the range of the control.
minimum | The minimum value of the range. The default is 0. |
|
inline |
Advances the current position of the progress bar by the amount of the Step property.
void xtd::forms::progress_dialog::reset | ( | ) |
Resets all properties to empty string.
void xtd::forms::progress_dialog::resume | ( | ) |
Resume progress dialog box after Abort button clicked.
void xtd::forms::progress_dialog::show | ( | ) |
Runs progress dialog box.
void xtd::forms::progress_dialog::show | ( | const iwin32_window & | owner | ) |
Runs progress dialog box.
|
inline |
Gets a value that indicates whether cancel button is shown.
progress_dialog & xtd::forms::progress_dialog::show_cancel_button | ( | bool | show_cancel_button | ) |
Sets a value that indicates whether cancel button is shown.
show_cancel_button | true if cancel button is shown; otherwise false. By default false. |
void xtd::forms::progress_dialog::show_dialog | ( | ) |
Runs progress dialog box.
void xtd::forms::progress_dialog::show_dialog | ( | const iwin32_window & | owner | ) |
Runs progress dialog box.
|
inline |
Gets a value that indicates whether elapsed time is shown.
progress_dialog & xtd::forms::progress_dialog::show_elapsed_time | ( | bool | show_elapsed_time | ) |
Sets a value that indicates whether elapsed time is shown.
show_elapsed_time | true if elapsed time is shown; otherwise false. By default false. |
|
inline |
Gets a value that indicates whether estimated time is shown.
progress_dialog & xtd::forms::progress_dialog::show_estimated_time | ( | bool | show_estimated_time | ) |
Sets a value that indicates whether estimated time is shown.
show_estimated_time | true if estimated time is shown; otherwise false. By default false. |
|
inline |
Gets a value that indicates whether remaining time is shown.
progress_dialog & xtd::forms::progress_dialog::show_remaining_time | ( | bool | show_remaining_time | ) |
Sets a value that indicates whether remaining time is shown.
show_remaining_time | true if remaining time is shown; otherwise false. By default false. |
void xtd::forms::progress_dialog::show_sheet | ( | const iwin32_window & | owner | ) |
Runs progress dialog box as sheet.
void xtd::forms::progress_dialog::show_sheet_dialog | ( | const iwin32_window & | owner | ) |
Runs progress dialog box.
|
inline |
Gets a value that indicates whether skip button is shown.
progress_dialog & xtd::forms::progress_dialog::show_skip_button | ( | bool | show_skip_button | ) |
Sets a value that indicates whether skip button is shown.
show_skip_button | true if skip button is shown; otherwise false. By default false. |
bool xtd::forms::progress_dialog::skipped | ( | ) | const |
Gets whether user has clicked on skip button.
|
inlinevirtual |
Gets the amount by which a call to the PerformStep() method increases the current position of the progress bar.
|
virtual |
Sets the amount by which a call to the PerformStep() method increases the current position of the progress bar.
step | The amount by which to increment the progress bar with each call to the perform_step() method. The default is 10. |
|
inline |
|
inline |
Sets the dialog title.
copyright | The dialog title. |
|
inline |
Gets the current position of the progress bar.
progress_dialog & xtd::forms::progress_dialog::value | ( | int32_t | value | ) |
Sets the current position of the progress bar.
value | The position within the range of the progress bar. The default is 0. |