MythTV  master
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
MHSlider Class Reference

#include <libmythfreemheg/Visible.h>

Inheritance diagram for MHSlider:
[legend]
Collaboration diagram for MHSlider:
[legend]

Public Member Functions

 MHSlider ()
 
 ~MHSlider () override=default
 
const char * ClassName () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Display (MHEngine *engine) override
 
void Preparation (MHEngine *engine) override
 
void Interaction (MHEngine *engine) override
 
void InteractionCompleted (MHEngine *engine) override
 
void KeyEvent (MHEngine *engine, int nCode) override
 
void SetInteractionStatus (bool newStatus, MHEngine *engine) override
 
bool GetInteractionStatus (void) override
 
void SetHighlightStatus (bool newStatus, MHEngine *engine) override
 
bool GetHighlightStatus (void) override
 
void Deactivation (MHEngine *) override
 
void Step (int nbSteps, MHEngine *engine) override
 
void SetSliderValue (int newValue, MHEngine *engine) override
 
int GetSliderValue (void) override
 
void SetPortion (int newPortion, MHEngine *engine) override
 
int GetPortion (void) override
 
void SetSliderParameters (int newMin, int newMax, int newStep, MHEngine *engine) override
 
- Public Member Functions inherited from MHVisible
 MHVisible ()=default
 
 MHVisible (const MHVisible &ref)
 
void Destruction (MHEngine *engine) override
 
void Activation (MHEngine *engine) override
 
void SetPosition (int nXPosition, int nYPosition, MHEngine *engine) override
 
void GetPosition (MHRoot *pXPosN, MHRoot *pYPosN) override
 
void SetBoxSize (int nWidth, int nHeight, MHEngine *engine) override
 
void GetBoxSize (MHRoot *pWidthDest, MHRoot *pHeightDest) override
 
void SetPaletteRef (const MHObjectRef &newPalette, MHEngine *engine) override
 
void BringToFront (MHEngine *engine) override
 
void SendToBack (MHEngine *engine) override
 
void PutBefore (const MHRoot *pRef, MHEngine *engine) override
 
void PutBehind (const MHRoot *pRef, MHEngine *engine) override
 
virtual QRegion GetVisibleArea ()
 
virtual QRegion GetOpaqueArea ()
 
void ResetPosition () override
 
- Public Member Functions inherited from MHPresentable
 MHPresentable ()=default
 
 MHPresentable (const MHPresentable &)=default
 
void Run (MHEngine *engine) override
 
void Stop (MHEngine *engine) override
 
virtual void BeginPlaying (MHEngine *)
 
virtual void StopPlaying (MHEngine *)
 
- Public Member Functions inherited from MHIngredient
 MHIngredient ()=default
 
 MHIngredient (const MHIngredient &ref)
 
 ~MHIngredient () override=default
 
virtual bool InitiallyActive ()
 
virtual bool InitiallyAvailable ()
 
bool IsShared () override
 
void ContentPreparation (MHEngine *engine) override
 
void SetData (const MHOctetString &included, MHEngine *engine) override
 
void SetData (const MHContentRef &referenced, bool fSizeGiven, int size, bool fCCGiven, int cc, MHEngine *engine) override
 
void Preload (MHEngine *engine) override
 
void Unload (MHEngine *engine) override
 
virtual void ContentArrived (const unsigned char *, int, MHEngine *)
 
- Public Member Functions inherited from MHRoot
 MHRoot ()=default
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()=default
 
virtual MHRootFindByObjectNo (int n)
 
virtual bool GetAvailabilityStatus ()
 
virtual bool GetRunningStatus ()
 
virtual void SetTimer (int, bool, int, MHEngine *)
 
virtual void MakeClone (MHRoot *, MHRoot *, MHEngine *)
 
virtual void SetInputRegister (int, MHEngine *)
 
virtual MHIngredientClone (MHEngine *)
 
virtual void TestVariable (int, const MHUnion &, MHEngine *)
 
virtual void GetVariableValue (MHUnion &, MHEngine *)
 
virtual void SetVariableValue (const MHUnion &)
 
virtual void GetTextData (MHRoot *, MHEngine *)
 
virtual void SetBackgroundColour (const MHColour &, MHEngine *)
 
virtual void SetTextColour (const MHColour &, MHEngine *)
 
virtual void SetFontAttributes (const MHOctetString &, MHEngine *)
 
virtual void Activate (bool, MHEngine *)
 
virtual void CallProgram (bool, const MHObjectRef &, const MHSequence< MHParameter * > &, MHEngine *)
 
virtual void CallActionSlot (int, MHEngine *)
 
virtual void Move (int, MHEngine *)
 
virtual void MoveTo (int, MHEngine *)
 
virtual void GetTokenPosition (MHRoot *, MHEngine *)
 
virtual void AddItem (int, MHRoot *, MHEngine *)
 
virtual void DelItem (MHRoot *, MHEngine *)
 
virtual void GetCellItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetListItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetItemStatus (int, const MHObjectRef &, MHEngine *)
 
virtual void SelectItem (int, MHEngine *)
 
virtual void DeselectItem (int, MHEngine *)
 
virtual void ToggleItem (int, MHEngine *)
 
virtual void ScrollItems (int, MHEngine *)
 
virtual void SetFirstItem (int, MHEngine *)
 
virtual void GetFirstItem (MHRoot *, MHEngine *)
 
virtual void GetListSize (MHRoot *, MHEngine *)
 
virtual void SetFillColour (const MHColour &, MHEngine *)
 
virtual void SetLineColour (const MHColour &, MHEngine *)
 
virtual void SetLineWidth (int, MHEngine *)
 
virtual void SetLineStyle (int, MHEngine *)
 
virtual void SetTransparency (int, MHEngine *)
 
virtual void ScaleBitmap (int, int, MHEngine *)
 
virtual void SetBitmapDecodeOffset (int, int, MHEngine *)
 
virtual void GetBitmapDecodeOffset (MHRoot *, MHRoot *)
 
virtual void Clear ()
 
virtual void GetLineWidth (MHRoot *)
 
virtual void GetLineStyle (MHRoot *)
 
virtual void GetLineColour (MHRoot *)
 
virtual void GetFillColour (MHRoot *)
 
virtual void DrawArcSector (bool, int, int, int, int, int, int, MHEngine *)
 
virtual void DrawLine (int, int, int, int, MHEngine *)
 
virtual void DrawOval (int, int, int, int, MHEngine *)
 
virtual void DrawRectangle (int, int, int, int, MHEngine *)
 
virtual void DrawPoly (bool, const MHPointVec &, const MHPointVec &, MHEngine *)
 
virtual void ScaleVideo (int, int, MHEngine *)
 
virtual void SetVideoDecodeOffset (int, int, MHEngine *)
 
virtual void GetVideoDecodeOffset (MHRoot *, MHRoot *, MHEngine *)
 
virtual void GetCounterPosition (MHRoot *, MHEngine *)
 
virtual void GetCounterMaxPosition (MHRoot *, MHEngine *)
 
virtual void SetCounterPosition (int, MHEngine *)
 
virtual void SetSpeed (int, MHEngine *)
 
- Public Member Functions inherited from MHInteractible
 MHInteractible (MHVisible *parent)
 
virtual ~MHInteractible ()=default
 
void Initialise (MHParseNode *p, MHEngine *engine)
 
void PrintMe (FILE *fd, int nTabs) const
 
void InteractSetInteractionStatus (bool newStatus, MHEngine *engine)
 
bool InteractGetInteractionStatus (void) const
 
void InteractSetHighlightStatus (bool newStatus, MHEngine *engine)
 
bool InteractGetHighlightStatus (void) const
 
void InteractDeactivation (void)
 

Static Public Member Functions

static int GetOrientation (const QString &str)
 
static int GetStyle (const QString &str)
 

Protected Types

enum  SliderOrientation : std::uint8_t { SliderLeft = 1, SliderRight, SliderUp, SliderDown }
 
enum  SliderStyle : std::uint8_t { SliderNormal = 1, SliderThermo, SliderProp }
 
- Protected Types inherited from MHIngredient
enum  : std::uint8_t { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 

Protected Member Functions

void Increment (MHEngine *engine)
 
void Decrement (MHEngine *engine)
 
- Protected Member Functions inherited from MHRoot
void InvalidAction (const char *actionName)
 

Protected Attributes

enum MHSlider::SliderOrientation SliderLeft
 
int m_initialValue {1}
 
int m_initialPortion {0}
 
int m_origMaxValue {-1}
 
int m_origMinValue {1}
 
int m_origStepSize {1}
 
enum MHSlider::SliderStyle SliderNormal
 
MHColour m_sliderRefColour
 
int m_maxValue {0}
 
int m_minValue {0}
 
int m_stepSize {0}
 
int m_sliderValue {0}
 
int m_portion {0}
 
- Protected Attributes inherited from MHVisible
int m_nOriginalBoxWidth {-1}
 
int m_nOriginalBoxHeight {-1}
 
int m_nOriginalPosX {0}
 
int m_nOriginalPosY {0}
 
MHObjectRef m_originalPaletteRef
 
int m_nBoxWidth {0}
 
int m_nBoxHeight {0}
 
int m_nPosX {0}
 
int m_nPosY {0}
 
MHObjectRef m_paletteRef
 
- Protected Attributes inherited from MHIngredient
bool m_fInitiallyActive {true}
 
int m_nContentHook {0}
 
bool m_fShared {false}
 
enum MHIngredient:: { ... }  IN_NoContent
 
MHOctetString m_origIncludedContent
 
MHContentRef m_origContentRef
 
int m_nOrigContentSize {0}
 
int m_nOrigCCPrio {127}
 
MHOctetString m_includedContent
 
MHContentRef m_contentRef
 
int m_nContentSize {0}
 
int m_nCCPrio {0}
 
- Protected Attributes inherited from MHRoot
bool m_fAvailable {false}
 
bool m_fRunning {false}
 
- Protected Attributes inherited from MHInteractible
bool m_fEngineResp {true}
 
MHColour m_highlightRefColour
 
bool m_fHighlightStatus {false}
 
bool m_fInteractionStatus {false}
 

Additional Inherited Members

- Public Attributes inherited from MHRoot
MHObjectRef m_ObjectReference
 
- Static Protected Member Functions inherited from MHVisible
static MHRgba GetColour (const MHColour &colour)
 

Detailed Description

Definition at line 174 of file Visible.h.

Member Enumeration Documentation

◆ SliderOrientation

enum MHSlider::SliderOrientation : std::uint8_t
protected
Enumerator
SliderLeft 
SliderRight 
SliderUp 
SliderDown 

Definition at line 222 of file Visible.h.

◆ SliderStyle

enum MHSlider::SliderStyle : std::uint8_t
protected
Enumerator
SliderNormal 
SliderThermo 
SliderProp 

Definition at line 232 of file Visible.h.

Constructor & Destructor Documentation

◆ MHSlider()

MHSlider::MHSlider ( )
inline

Definition at line 177 of file Visible.h.

◆ ~MHSlider()

MHSlider::~MHSlider ( )
overridedefault

Member Function Documentation

◆ ClassName()

const char* MHSlider::ClassName ( )
inlineoverridevirtual

Implements MHRoot.

Definition at line 179 of file Visible.h.

◆ Initialise()

void MHSlider::Initialise ( MHParseNode p,
MHEngine engine 
)
overridevirtual

Reimplemented from MHVisible.

Definition at line 598 of file Visible.cpp.

◆ PrintMe()

void MHSlider::PrintMe ( FILE *  fd,
int  nTabs 
) const
overridevirtual

Reimplemented from MHVisible.

Definition at line 732 of file Visible.cpp.

◆ Display()

void MHSlider::Display ( MHEngine engine)
overridevirtual

Implements MHVisible.

Definition at line 802 of file Visible.cpp.

◆ Preparation()

void MHSlider::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHVisible.

Definition at line 792 of file Visible.cpp.

◆ Interaction()

void MHSlider::Interaction ( MHEngine engine)
overridevirtual

Reimplemented from MHInteractible.

Definition at line 880 of file Visible.cpp.

◆ InteractionCompleted()

void MHSlider::InteractionCompleted ( MHEngine engine)
overridevirtual

Reimplemented from MHInteractible.

Definition at line 888 of file Visible.cpp.

Referenced by KeyEvent().

◆ KeyEvent()

void MHSlider::KeyEvent ( MHEngine engine,
int  nCode 
)
overridevirtual

Reimplemented from MHInteractible.

Definition at line 899 of file Visible.cpp.

◆ SetInteractionStatus()

void MHSlider::SetInteractionStatus ( bool  newStatus,
MHEngine engine 
)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 191 of file Visible.h.

◆ GetInteractionStatus()

bool MHSlider::GetInteractionStatus ( void  )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 193 of file Visible.h.

◆ SetHighlightStatus()

void MHSlider::SetHighlightStatus ( bool  newStatus,
MHEngine engine 
)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 195 of file Visible.h.

◆ GetHighlightStatus()

bool MHSlider::GetHighlightStatus ( void  )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 197 of file Visible.h.

◆ Deactivation()

void MHSlider::Deactivation ( MHEngine )
inlineoverridevirtual

Reimplemented from MHVisible.

Definition at line 199 of file Visible.h.

◆ Step()

void MHSlider::Step ( int  nbSteps,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 986 of file Visible.cpp.

◆ SetSliderValue()

void MHSlider::SetSliderValue ( int  newValue,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 998 of file Visible.cpp.

◆ GetSliderValue()

int MHSlider::GetSliderValue ( void  )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 205 of file Visible.h.

◆ SetPortion()

void MHSlider::SetPortion ( int  newPortion,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 1010 of file Visible.cpp.

◆ GetPortion()

int MHSlider::GetPortion ( void  )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 208 of file Visible.h.

◆ SetSliderParameters()

void MHSlider::SetSliderParameters ( int  newMin,
int  newMax,
int  newStep,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 1023 of file Visible.cpp.

◆ GetOrientation()

int MHSlider::GetOrientation ( const QString &  str)
static

Definition at line 699 of file Visible.cpp.

Referenced by MHParseText::NextSym().

◆ GetStyle()

int MHSlider::GetStyle ( const QString &  str)
static

Definition at line 719 of file Visible.cpp.

Referenced by MHParseText::NextSym().

◆ Increment()

void MHSlider::Increment ( MHEngine engine)
protected

Definition at line 966 of file Visible.cpp.

Referenced by KeyEvent().

◆ Decrement()

void MHSlider::Decrement ( MHEngine engine)
protected

Definition at line 976 of file Visible.cpp.

Referenced by KeyEvent().

Member Data Documentation

◆ SliderLeft

enum MHSlider::SliderOrientation MHSlider::SliderLeft
protected

Referenced by Display(), and KeyEvent().

◆ m_initialValue

int MHSlider::m_initialValue {1}
protected

Definition at line 224 of file Visible.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ m_initialPortion

int MHSlider::m_initialPortion {0}
protected

Definition at line 225 of file Visible.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ m_origMaxValue

int MHSlider::m_origMaxValue {-1}
protected

Definition at line 226 of file Visible.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ m_origMinValue

int MHSlider::m_origMinValue {1}
protected

Definition at line 227 of file Visible.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ m_origStepSize

int MHSlider::m_origStepSize {1}
protected

Definition at line 228 of file Visible.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ SliderNormal

enum MHSlider::SliderStyle MHSlider::SliderNormal
protected

Referenced by Display(), Initialise(), and PrintMe().

◆ m_sliderRefColour

MHColour MHSlider::m_sliderRefColour
protected

Definition at line 234 of file Visible.h.

Referenced by Display(), Initialise(), and PrintMe().

◆ m_maxValue

int MHSlider::m_maxValue {0}
protected

Definition at line 237 of file Visible.h.

Referenced by Display(), Increment(), Preparation(), and SetSliderParameters().

◆ m_minValue

int MHSlider::m_minValue {0}
protected

Definition at line 238 of file Visible.h.

Referenced by Decrement(), Display(), Preparation(), and SetSliderParameters().

◆ m_stepSize

int MHSlider::m_stepSize {0}
protected

Definition at line 239 of file Visible.h.

Referenced by Decrement(), Increment(), Preparation(), SetSliderParameters(), and Step().

◆ m_sliderValue

int MHSlider::m_sliderValue {0}
protected

◆ m_portion

int MHSlider::m_portion {0}
protected

Definition at line 241 of file Visible.h.

Referenced by Display(), GetPortion(), Preparation(), and SetPortion().


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