![]() |
NDEVR
API Documentation
|
Provides a demonstration of the ProgressWidget with animated previews and configurable options. More...
Static Public Member Functions | |
| static void | AdjustButtonPosition (Button *preview_button, QCustomTabWidget *dialog) |
| Repositions the options button to the bottom-right corner of the dialog. | |
| static GenericOptionGroup & | options () |
| Returns the shared default options group for the progress widget demo. | |
| static Button * | OptionsButton (QWidget *parent) |
| Creates a button that opens a popup with the demo options editor. | |
| static void | Setup (QCustomTabWidget *dialog) |
| Sets up the progress widget demo inside a tab widget with animation timer. | |
| static void | UpdateWidgetDemo (ProgressWidget *widget) |
| Updates the progress widget with animated values based on current time and options. | |
Provides a demonstration of the ProgressWidget with animated previews and configurable options.
Definition at line 15 of file ProgressWidgetDemo.h.
|
inlinestatic |
Repositions the options button to the bottom-right corner of the dialog.
| [in] | preview_button | The button to reposition. |
| [in] | dialog | The dialog whose size determines the position. |
Definition at line 107 of file ProgressWidgetDemo.h.
Referenced by Setup().
|
inlinestatic |
Returns the shared default options group for the progress widget demo.
Definition at line 20 of file ProgressWidgetDemo.h.
References GenericOptionGroup::addOption(), GenericOption::allow_custom_option, GenericOption::available_options, thickness, and GenericOption::value_bounds.
Referenced by OptionsButton(), and UpdateWidgetDemo().
|
inlinestatic |
Creates a button that opens a popup with the demo options editor.
| [in] | parent | The parent widget for the button. |
Definition at line 58 of file ProgressWidgetDemo.h.
References Button::e_small, GenericOptionsGroup::edited(), GenericOptionsGroup::group(), options(), Button::setButtonState(), and QTTools::ShowDialog().
Referenced by Setup().
|
inlinestatic |
Sets up the progress widget demo inside a tab widget with animation timer.
| [in] | dialog | The tab widget to add the demo to. |
Definition at line 78 of file ProgressWidgetDemo.h.
References QCustomTabWidget::addWidget(), AdjustButtonPosition(), OptionsButton(), QCustomProgressBar::setProgressColors(), and UpdateWidgetDemo().
|
inlinestatic |
Updates the progress widget with animated values based on current time and options.
| [in] | widget | The ProgressWidget to update. |
Definition at line 120 of file ProgressWidgetDemo.h.
References cast(), Time::getMilliseconds(), GenericOptionGroup::getValue(), options(), QCustomProgressBar::setFormat(), ProgressWidget::setHorizontal(), ProgressWidget::setIconID(), ProgressWidget::setPercent(), ProgressWidget::setProgressThickness(), ProgressWidget::setTickCount(), Time::SystemTime(), and thickness.
Referenced by Setup().