MythTV  0.26-pre
Public Member Functions | Protected Member Functions | Protected Attributes
MythUISpinBox Class Reference

A widget for offering a range of numerical values where only the the bounding values and interval are known. More...

#include <mythuispinbox.h>

Inheritance diagram for MythUISpinBox:
MythUIButtonList MythUIType XMLParseBase

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

void MythUISpinBox::SetRange ( int  low,
int  high,
int  step,
uint  pageMultiple = 5 
)

Set the lower and upper bounds of the spinbox, the interval and page amount.

Parameters:
lowThe lowest value
highThe highest value
stepThe interval between displayed values e.g. sequence 0,5,10,15 would have have step value of 5
pageMultipleThe 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]
void MythUISpinBox::SetValue ( const QString &  val) [inline]

Definition at line 26 of file mythuispinbox.h.

QString MythUISpinBox::GetValue ( void  ) const [inline, virtual]
int MythUISpinBox::GetIntValue ( void  ) const [inline, virtual]
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.


Member Data Documentation

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

Definition at line 44 of file mythuispinbox.h.

Referenced by MoveDown(), MoveUp(), and SetRange().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends