xtd - Reference Guide
0.1.1
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. More... | |
bool | cancelled () const |
Gets whether user has clicked on cancel button. More... | |
xtd::forms::dialog_style | dialog_style () const |
Gets the dialog style. More... | |
progress_dialog & | dialog_style (xtd::forms::dialog_style dialog_style) |
Sets the dialog style. More... | |
void | hide () |
Hides progress dialog box. More... | |
void | increment (int32_t increment) |
Advances the current position of the progress bar by the specified amount. More... | |
const std::vector< xtd::ustring > & | informations () const |
Gets the information texts. More... | |
progress_dialog & | informations (const std::vector< xtd::ustring > &informations) |
Sets the information texts. More... | |
bool | marquee () const |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. More... | |
progress_dialog & | marquee (bool marquee) |
Gets a value that Indicates progress by continuously scrolling a block across a progress_bar in a marquee fashion. More... | |
size_t | marquee_animation_speed () |
Gets he time period, in milliseconds, that it takes the progress block to scroll across the progress bar. More... | |
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. More... | |
int32_t | maximum () |
Gets the maximum value of the range of the control. More... | |
progress_dialog & | maximum (int32_t maximum) |
Sets the maximum value of the range of the control. More... | |
const xtd::ustring & | message () const |
Gets the message text. More... | |
progress_dialog & | message (const xtd::ustring &message) |
Sets the message text. More... | |
int32_t | minimum () |
Gets the minimum value of the range of the control. More... | |
progress_dialog & | minimum (int32_t minimum) |
Sets the minimum value of the range of the control. More... | |
void | perform_step () |
Advances the current position of the progress bar by the amount of the Step property. More... | |
void | reset () |
Resets all properties to empty string. More... | |
void | resume () |
Resume progress dialog box after Abort button clicked. More... | |
void | show () |
Runs progress dialog box. More... | |
void | show (const iwin32_window &owner) |
Runs progress dialog box. More... | |
bool | show_cancel_button () const |
Gets a value that indicates whether cancel button is shown. More... | |
progress_dialog & | show_cancel_button (bool show_cancel_button) |
Sets a value that indicates whether cancel button is shown. More... | |
void | show_dialog () |
Runs progress dialog box. More... | |
void | show_dialog (const iwin32_window &owner) |
Runs progress dialog box. More... | |
bool | show_elapsed_time () const |
Gets a value that indicates whether elapsed time is shown. More... | |
progress_dialog & | show_elapsed_time (bool show_elapsed_time) |
Sets a value that indicates whether elapsed time is shown. More... | |
bool | show_estimated_time () const |
Gets a value that indicates whether estimated time is shown. More... | |
progress_dialog & | show_estimated_time (bool show_estimated_time) |
Sets a value that indicates whether estimated time is shown. More... | |
bool | show_remaining_time () const |
Gets a value that indicates whether remaining time is shown. More... | |
progress_dialog & | show_remaining_time (bool show_remaining_time) |
Sets a value that indicates whether remaining time is shown. More... | |
void | show_sheet (const iwin32_window &owner) |
Runs progress dialog box as sheet. More... | |
void | show_sheet_dialog (const iwin32_window &owner) |
Runs progress dialog box. More... | |
bool | show_skip_button () const |
Gets a value that indicates whether skip button is shown. More... | |
progress_dialog & | show_skip_button (bool show_skip_button) |
Sets a value that indicates whether skip button is shown. More... | |
bool | skipped () const |
Gets whether user has clicked on skip button. More... | |
virtual int32_t | step () |
Gets the amount by which a call to the PerformStep() method increases the current position of the progress bar. More... | |
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. More... | |
const xtd::ustring & | text () const |
Gets the dialog title. More... | |
progress_dialog & | text (const xtd::ustring &text) |
Sets the dialog title. More... | |
int32_t | value () |
Gets the current position of the progress bar. More... | |
progress_dialog & | value (int32_t value) |
Sets the current position of the progress bar. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. More... | |
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. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. More... | |
virtual bool | can_raise_events () const |
Gets a value indicating whether the component can raise an event. More... | |
bool | design_mode () const |
Gets a value that indicates whether the component is currently in design mode. More... | |
|
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 |
Gets the message text.
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 |
Gets the dialog title.
|
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. |