|
MythTV
0.26-pre
|
A widget for offering a range of numerical values where only the the bounding values and interval are known. More...
#include <mythuispinbox.h>
Public Member Functions | |
| MythUISpinBox (MythUIType *parent, const QString &name) | |
| ~MythUISpinBox () | |
| void | SetRange (int low, int high, int step, uint pageMultiple=5) |
| Set the lower and upper bounds of the spinbox, the interval and page amount. | |
| void | SetValue (int val) |
| void | SetValue (const QString &val) |
| QString | GetValue (void) const |
| int | GetIntValue (void) const |
Protected Member Functions | |
| virtual bool | ParseElement (const QString &filename, QDomElement &element, bool showWarnings) |
| virtual void | CopyFrom (MythUIType *base) |
| virtual void | CreateCopy (MythUIType *parent) |
| virtual bool | MoveDown (MovementUnit unit=MoveItem, uint amount=0) |
| virtual bool | MoveUp (MovementUnit unit=MoveItem, uint amount=0) |
Protected Attributes | |
| bool | m_hasTemplate |
| QString | m_negativeTemplate |
| QString | m_zeroTemplate |
| QString | m_positiveTemplate |
| uint | m_moveAmount |
A widget for offering a range of numerical values where only the the bounding values and interval are known.
Where a list of specific values is required instead, then use MythUIButtonList instead.
Definition at line 16 of file mythuispinbox.h.
| MythUISpinBox::MythUISpinBox | ( | MythUIType * | parent, |
| const QString & | name | ||
| ) |
Definition at line 8 of file mythuispinbox.cpp.
Referenced by CreateCopy().
Definition at line 14 of file mythuispinbox.cpp.
Set the lower and upper bounds of the spinbox, the interval and page amount.
| low | The lowest value |
| high | The highest value |
| step | The interval between displayed values e.g. sequence 0,5,10,15 would have have step value of 5 |
| pageMultiple | The number of list items to move by when PAGEUP and PAGEDOWN input actions are used |
Definition at line 29 of file mythuispinbox.cpp.
Referenced by RatingSettings::Create(), VisualizationSettings::Create(), MetadataSettings::Create(), ManualSchedule::Create(), SourceSetup::Create(), SmartPLDateDialog::Create(), MetadataOptions::Create(), RecMetadataEdit::Create(), EditMetadataDialog::fillWidgets(), SchedOptMixin::Load(), StoreOptMixin::Load(), CustomPriority::loadData(), and CriteriaRowEditor::operatorChanged().
| void MythUISpinBox::SetValue | ( | int | val | ) | [inline, virtual] |
Reimplemented from MythUIButtonList.
Definition at line 25 of file mythuispinbox.h.
Referenced by RatingSettings::Create(), VisualizationSettings::Create(), MetadataSettings::Create(), ManualSchedule::Create(), MetadataOptions::Create(), RecMetadataEdit::Create(), ManualSchedule::dateChanged(), EditMetadataDialog::fillWidgets(), ManualSchedule::hourRollover(), SchedOptMixin::Load(), StoreOptMixin::Load(), CustomPriority::loadData(), ManualSchedule::minuteRollover(), CriteriaRowEditor::operatorChanged(), MetadataOptions::QueryComplete(), CustomPriority::ruleChanged(), SmartPLDateDialog::setDate(), SourceSetup::sourceListItemSelected(), EditMetadataDialog::updateRating(), and CriteriaRowEditor::updateValues().
| void MythUISpinBox::SetValue | ( | const QString & | val | ) | [inline] |
Definition at line 26 of file mythuispinbox.h.
| QString MythUISpinBox::GetValue | ( | void | ) | const [inline, virtual] |
Reimplemented from MythUIButtonList.
Definition at line 27 of file mythuispinbox.h.
Referenced by SmartPLDateDialog::getDate(), CriteriaRowEditor::saveClicked(), RatingSettings::slotSave(), MetadataSettings::slotSave(), and SmartPLDateDialog::valueChanged().
| int MythUISpinBox::GetIntValue | ( | void | ) | const [inline, virtual] |
Reimplemented from MythUIButtonList.
Definition at line 28 of file mythuispinbox.h.
Referenced by MetadataOptions::customEvent(), ManualSchedule::dateChanged(), MetadataOptions::FindNetArt(), SmartPLDateDialog::getDate(), MetadataOptions::HandleDownloadedImages(), ManualSchedule::hourRollover(), ManualSchedule::minuteRollover(), MetadataOptions::OnImageSearchListSelection(), CriteriaRowEditor::operatorChanged(), MetadataOptions::PerformQuery(), ManualSchedule::recordClicked(), SourceSetup::retrieveSpinboxUpdate(), SchedOptMixin::Save(), StoreOptMixin::Save(), MetadataOptions::Save(), RecMetadataEdit::SaveChanges(), SourceSetup::saveData(), EditMetadataDialog::SetEpisode(), EditMetadataDialog::SetLength(), EditMetadataDialog::SetSeason(), EditMetadataDialog::SetUserRating(), EditMetadataDialog::SetYear(), VisualizationSettings::slotSave(), EditMetadataCommon::updateMetadata(), SourceSetup::updateSpinboxUpdate(), SmartPLDateDialog::valueChanged(), and MetadataOptions::ValuesChanged().
| bool MythUISpinBox::ParseElement | ( | const QString & | filename, |
| QDomElement & | element, | ||
| bool | showWarnings | ||
| ) | [protected, virtual] |
Parse the xml definition of this widget setting the state of the object accordingly.
Reimplemented from MythUIButtonList.
Definition at line 89 of file mythuispinbox.cpp.
| void MythUISpinBox::CopyFrom | ( | MythUIType * | base | ) | [protected, virtual] |
Copy this widgets state from another.
Reimplemented from MythUIButtonList.
Definition at line 155 of file mythuispinbox.cpp.
Referenced by CreateCopy().
| void MythUISpinBox::CreateCopy | ( | MythUIType * | parent | ) | [protected, virtual] |
Copy the state of this widget to the one given, it must be of the same type.
Reimplemented from MythUIButtonList.
Definition at line 146 of file mythuispinbox.cpp.
| bool MythUISpinBox::MoveDown | ( | MovementUnit | unit = MoveItem, |
| uint | amount = 0 |
||
| ) | [protected, virtual] |
Reimplemented from MythUIButtonList.
Definition at line 116 of file mythuispinbox.cpp.
| bool MythUISpinBox::MoveUp | ( | MovementUnit | unit = MoveItem, |
| uint | amount = 0 |
||
| ) | [protected, virtual] |
Reimplemented from MythUIButtonList.
Definition at line 131 of file mythuispinbox.cpp.
bool MythUISpinBox::m_hasTemplate [protected] |
Definition at line 39 of file mythuispinbox.h.
Referenced by CopyFrom(), ParseElement(), and SetRange().
QString MythUISpinBox::m_negativeTemplate [protected] |
Definition at line 40 of file mythuispinbox.h.
Referenced by CopyFrom(), ParseElement(), and SetRange().
QString MythUISpinBox::m_zeroTemplate [protected] |
Definition at line 41 of file mythuispinbox.h.
Referenced by CopyFrom(), ParseElement(), and SetRange().
QString MythUISpinBox::m_positiveTemplate [protected] |
Definition at line 42 of file mythuispinbox.h.
Referenced by CopyFrom(), ParseElement(), and SetRange().
uint MythUISpinBox::m_moveAmount [protected] |
Definition at line 44 of file mythuispinbox.h.
Referenced by MoveDown(), MoveUp(), and SetRange().
1.7.6.1