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

#include <Visible.h>

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

Public Member Functions

 MHSlider ()
 
virtual ~MHSlider ()=default
 
const char * ClassName () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Display (MHEngine *) 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 &ref)
 
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)
 
virtual ~MHIngredient ()=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 ()
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()
 
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, int, const int *, const int *, 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)
 
void InteractSetHighlightStatus (bool newStatus, MHEngine *engine)
 
bool InteractGetHighlightStatus (void)
 
void InteractDeactivation (void)
 

Static Public Member Functions

static int GetOrientation (const char *str)
 
static int GetStyle (const char *str)
 

Protected Types

enum  SliderOrientation { SliderLeft = 1, SliderRight, SliderUp, SliderDown }
 
enum  SliderStyle { SliderNormal = 1, SliderThermo, SliderProp }
 
- Protected Types inherited from MHIngredient
enum  { 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_initial_value {1}
 
int m_initial_portion {0}
 
int m_orig_max_value {-1}
 
int m_orig_min_value {1}
 
int m_orig_step_size {1}
 
enum MHSlider::SliderStyle SliderNormal
 
MHColour m_sliderRefColour
 
int m_max_value {0}
 
int m_min_value {0}
 
int m_step_size {0}
 
int m_slider_value {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

Enumerator
SliderLeft 
SliderRight 
SliderUp 
SliderDown 

Definition at line 222 of file Visible.h.

◆ SliderStyle

enum MHSlider::SliderStyle
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()

virtual MHSlider::~MHSlider ( )
virtualdefault

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 588 of file Visible.cpp.

◆ PrintMe()

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

Reimplemented from MHVisible.

Definition at line 722 of file Visible.cpp.

◆ Display()

void MHSlider::Display ( MHEngine engine)
overridevirtual

Implements MHVisible.

Definition at line 792 of file Visible.cpp.

◆ Preparation()

void MHSlider::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHVisible.

Definition at line 782 of file Visible.cpp.

◆ Interaction()

void MHSlider::Interaction ( MHEngine engine)
overridevirtual

Reimplemented from MHInteractible.

Definition at line 870 of file Visible.cpp.

◆ InteractionCompleted()

void MHSlider::InteractionCompleted ( MHEngine engine)
overridevirtual

Reimplemented from MHInteractible.

Definition at line 878 of file Visible.cpp.

Referenced by KeyEvent().

◆ KeyEvent()

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

Reimplemented from MHInteractible.

Definition at line 889 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 976 of file Visible.cpp.

◆ SetSliderValue()

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

Reimplemented from MHRoot.

Definition at line 988 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 1000 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 1013 of file Visible.cpp.

◆ GetOrientation()

int MHSlider::GetOrientation ( const char *  str)
static

Definition at line 689 of file Visible.cpp.

Referenced by MHParseText::NextSym().

◆ GetStyle()

int MHSlider::GetStyle ( const char *  str)
static

Definition at line 709 of file Visible.cpp.

Referenced by MHParseText::NextSym().

◆ Increment()

void MHSlider::Increment ( MHEngine engine)
protected

Definition at line 956 of file Visible.cpp.

Referenced by KeyEvent().

◆ Decrement()

void MHSlider::Decrement ( MHEngine engine)
protected

Definition at line 966 of file Visible.cpp.

Referenced by KeyEvent().

Member Data Documentation

◆ SliderLeft

enum MHSlider::SliderOrientation MHSlider::SliderLeft
protected

Referenced by Display(), and KeyEvent().

◆ m_initial_value

int MHSlider::m_initial_value {1}
protected

Definition at line 224 of file Visible.h.

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

◆ m_initial_portion

int MHSlider::m_initial_portion {0}
protected

Definition at line 225 of file Visible.h.

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

◆ m_orig_max_value

int MHSlider::m_orig_max_value {-1}
protected

Definition at line 226 of file Visible.h.

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

◆ m_orig_min_value

int MHSlider::m_orig_min_value {1}
protected

Definition at line 227 of file Visible.h.

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

◆ m_orig_step_size

int MHSlider::m_orig_step_size {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_max_value

int MHSlider::m_max_value {0}
protected

Definition at line 237 of file Visible.h.

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

◆ m_min_value

int MHSlider::m_min_value {0}
protected

Definition at line 238 of file Visible.h.

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

◆ m_step_size

int MHSlider::m_step_size {0}
protected

Definition at line 239 of file Visible.h.

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

◆ m_slider_value

int MHSlider::m_slider_value {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: