NDEVR
API Documentation
ProgressWidgetDemo

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 GenericOptionGroupoptions ()
 Returns the shared default options group for the progress widget demo.
static ButtonOptionsButton (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.

Detailed Description

Provides a demonstration of the ProgressWidget with animated previews and configurable options.


Definition at line 15 of file ProgressWidgetDemo.h.

Member Function Documentation

◆ AdjustButtonPosition()

void ProgressWidgetDemo::AdjustButtonPosition ( Button * preview_button,
QCustomTabWidget * dialog )
inlinestatic

Repositions the options button to the bottom-right corner of the dialog.

Parameters
[in]preview_buttonThe button to reposition.
[in]dialogThe dialog whose size determines the position.

Definition at line 107 of file ProgressWidgetDemo.h.

Referenced by Setup().

◆ options()

GenericOptionGroup & ProgressWidgetDemo::options ( )
inlinestatic

Returns the shared default options group for the progress widget demo.

Returns
A reference to the GenericOptionGroup containing demo options.

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().

◆ OptionsButton()

Button * ProgressWidgetDemo::OptionsButton ( QWidget * parent)
inlinestatic

Creates a button that opens a popup with the demo options editor.

Parameters
[in]parentThe parent widget for the button.
Returns
A pointer to the created options 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().

◆ Setup()

void ProgressWidgetDemo::Setup ( QCustomTabWidget * dialog)
inlinestatic

Sets up the progress widget demo inside a tab widget with animation timer.

Parameters
[in]dialogThe tab widget to add the demo to.

Definition at line 78 of file ProgressWidgetDemo.h.

References QCustomTabWidget::addWidget(), AdjustButtonPosition(), OptionsButton(), QCustomProgressBar::setProgressColors(), and UpdateWidgetDemo().

◆ UpdateWidgetDemo()

void ProgressWidgetDemo::UpdateWidgetDemo ( ProgressWidget * widget)
inlinestatic

The documentation for this class was generated from the following file: