1#ifndef MYTHUISPINBOX_H_
2#define MYTHUISPINBOX_H_
4#if __has_include("libmythbase/mythconfig.h")
5#include "libmythbase/mythconfig.h"
30 void SetRange(
int low,
int high,
int step,
uint pageMultiple = 5);
36 void AddSelection (
int value,
const QString &label =
"");
45 std::enable_if_t<std::chrono::__is_duration_v<T>, T>
47 std::enable_if_t<std::chrono::__is_duration<T>::value, T>
53 std::enable_if_t<std::chrono::__is_duration_v<T>,
void>
55 std::enable_if_t<std::chrono::__is_duration<T>::value,
void>
62 bool showWarnings)
override;
66 bool MoveDown(MovementUnit unit = MoveItem,
uint amount = 0)
override;
67 bool MoveUp(MovementUnit unit = MoveItem,
uint amount = 0)
override;
68 void ShowEntryDialog(QString initialEntry);
70 bool m_hasTemplate {
false};
89 int low,
int high,
int step);
92 bool Create(
void)
override;
95 void entryChanged(
void);
106 bool m_okClicked {
false };
Screen in which all other widgets are contained and rendered.
A widget for offering a range of numerical values where only the the bounding values and interval are...
QString m_positiveTemplate
~MythUISpinBox() override=default
void SetValue(const QString &val) override
void SetValue(int val) override
MythUISpinBox(MythUIType *parent, const QString &name)
std::enable_if_t< std::chrono::__is_duration< T >::value, T > GetDuration()
QString m_negativeTemplate
std::enable_if_t< std::chrono::__is_duration< T >::value, void > SetDuration(T val)
QString GetValue(void) const override
int GetIntValue(void) const override
A text entry and edit widget.
All purpose text widget, displays a text string.
The base class on which all widgets and screens are based.
MythUIButtonList * m_parentList
~SpinBoxEntryDialog(void) override=default