IntegralRangeAction

Qualified name: mv::gui::IntegralRangeAction

class IntegralRangeAction : public mv::gui::NumericalRangeAction<std::int32_t, IntegralAction>

Integral range action class.

Stores an integral range and creates widgets to interact with it

Author

Thomas Kroes

Public Functions

Q_INVOKABLE IntegralRangeAction(QObject *parent, const QString &title, const util::NumericalRange<std::int32_t> &limits = util::NumericalRange<std::int32_t>(INIT_LIMIT_MIN, INIT_LIMIT_MAX), const util::NumericalRange<std::int32_t> &range = util::NumericalRange<std::int32_t>(INIT_RANGE_MIN, INIT_RANGE_MAX))

Constructor.

Parameters:
  • parent – Pointer to parent object

  • title – Title of the action

  • limitMin – Range lower limit

  • limitMax – Range upper limit

  • rangeMin – Range minimum

  • rangeMax – Range maximum

void limitsChanged(const util::NumericalRange<std::int32_t> &limits)

Signals that the limits changed to limits.

Parameters:

limits – Limits

void rangeChanged(const util::NumericalRange<std::int32_t> &range)

Signals that the range changed to range.

Parameters:

range – Range

Protected Functions

virtual QWidget *getWidget(QWidget *parent, const std::int32_t &widgetFlags) override

Get widget representation of the integral range action.

Parameters:
  • parent – Pointer to parent widget

  • widgetFlags – Widget flags for the configuration of the widget (type)

virtual void connectToPublicAction(WidgetAction *publicAction, bool recursive) override

Connect this action to a public action.

Parameters:
  • publicAction – Pointer to public action to connect to

  • recursive – Whether to also connect descendant child actions

virtual void disconnectFromPublicAction(bool recursive) override

Disconnect this action from its public action.

Parameters:

recursive – Whether to also disconnect descendant child actions

Protected Static Attributes

static constexpr std::int32_t INIT_LIMIT_MAX = 100

Default minimum limit.

static constexpr std::int32_t INIT_RANGE_MIN = 0

Default maximum limit.

static constexpr std::int32_t INIT_RANGE_MAX = 100

Default minimum range.

Friends

friend class AbstractActionsManager
class IntegralRangeWidget : public mv::gui::WidgetActionWidget

Widget class for integral range action.

Protected Functions

IntegralRangeWidget(QWidget *parent, IntegralRangeAction *integralRangeAction, const std::int32_t &widgetFlags = 0)

Constructor.

Parameters:
  • parent – Pointer to parent widget

  • integralRangeAction – Pointer to integral range action

  • widgetFlags – Widget flags for the configuration of the widget (type)