MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MHListGroup Class Reference

#include <TokenGroup.h>

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

Public Member Functions

 MHListGroup ()=default
 
 ~MHListGroup () override
 
const char * ClassName () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Preparation (MHEngine *engine) override
 
void Destruction (MHEngine *engine) override
 
void Activation (MHEngine *engine) override
 
void Deactivation (MHEngine *engine) override
 
void AddItem (int nIndex, MHRoot *pItem, MHEngine *engine) override
 
void DelItem (MHRoot *pItem, MHEngine *engine) override
 
void GetCellItem (int nCell, const MHObjectRef &itemDest, MHEngine *engine) override
 
void GetListItem (int nCell, const MHObjectRef &itemDest, MHEngine *engine) override
 
void GetItemStatus (int nCell, const MHObjectRef &itemDest, MHEngine *engine) override
 
void SelectItem (int nCell, MHEngine *engine) override
 
void DeselectItem (int nCell, MHEngine *engine) override
 
void ToggleItem (int nCell, MHEngine *engine) override
 
void ScrollItems (int nCell, MHEngine *engine) override
 
void SetFirstItem (int nCell, MHEngine *engine) override
 
void GetFirstItem (MHRoot *pResult, MHEngine *) override
 
void GetListSize (MHRoot *pResult, MHEngine *) override
 
- Public Member Functions inherited from MHTokenGroup
 MHTokenGroup ()=default
 
void CallActionSlot (int n, MHEngine *engine) override
 
void Move (int n, MHEngine *engine) override
 
void MoveTo (int n, MHEngine *engine) override
 
void GetTokenPosition (MHRoot *pResult, MHEngine *) 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 SetPosition (int, int, MHEngine *)
 
virtual void GetPosition (MHRoot *, MHRoot *)
 
virtual void SetBoxSize (int, int, MHEngine *)
 
virtual void GetBoxSize (MHRoot *, MHRoot *)
 
virtual void SetPaletteRef (const MHObjectRef, MHEngine *)
 
virtual void BringToFront (MHEngine *)
 
virtual void SendToBack (MHEngine *)
 
virtual void PutBefore (const MHRoot *, MHEngine *)
 
virtual void PutBehind (const MHRoot *, MHEngine *)
 
virtual void ResetPosition ()
 
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 *)
 
virtual void SetInteractionStatus (bool, MHEngine *)
 
virtual bool GetInteractionStatus (void)
 
virtual void SetHighlightStatus (bool, MHEngine *)
 
virtual bool GetHighlightStatus (void)
 
virtual void Step (int, MHEngine *)
 
virtual void SetSliderValue (int, MHEngine *)
 
virtual int GetSliderValue (void)
 
virtual void SetPortion (int, MHEngine *)
 
virtual int GetPortion (void)
 
virtual void SetSliderParameters (int, int, int, MHEngine *)
 

Protected Member Functions

void Update (MHEngine *engine)
 
void Select (int nIndex, MHEngine *engine)
 
void Deselect (int nIndex, MHEngine *engine)
 
int AdjustIndex (int nIndex)
 
- Protected Member Functions inherited from MHTokenGroup
void PrintContents (FILE *fd, int nTabs) const
 
void TransferToken (int newPos, MHEngine *engine)
 
- Protected Member Functions inherited from MHRoot
void InvalidAction (const char *actionName)
 

Protected Attributes

MHSequence< QPoint > m_Positions
 
bool m_fWrapAround {false}
 
bool m_fMultipleSelection {false}
 
QList< MHListItem * > m_ItemList
 
int m_nFirstItem {1}
 
bool m_fFirstItemDisplayed {false}
 
bool m_fLastItemDisplayed {false}
 
int m_nLastCount {0}
 
int m_nLastFirstItem {m_nFirstItem}
 
- Protected Attributes inherited from MHTokenGroup
MHOwnPtrSequence< MHMovementm_MovementTable
 
MHOwnPtrSequence< MHTokenGroupItemm_TokenGrpItems
 
MHOwnPtrSequence< MHActionSequencem_NoTokenActionSlots
 
int m_nTokenPosition {1}
 
- 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}
 

Additional Inherited Members

- Public Attributes inherited from MHRoot
MHObjectRef m_ObjectReference
 
- Protected Types inherited from MHIngredient
enum  { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 

Detailed Description

Definition at line 101 of file TokenGroup.h.

Constructor & Destructor Documentation

◆ MHListGroup()

MHListGroup::MHListGroup ( )
default

◆ ~MHListGroup()

MHListGroup::~MHListGroup ( )
override

Definition at line 327 of file TokenGroup.cpp.

Member Function Documentation

◆ ClassName()

const char* MHListGroup::ClassName ( )
inlineoverridevirtual

Reimplemented from MHTokenGroup.

Definition at line 106 of file TokenGroup.h.

◆ Initialise()

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

Reimplemented from MHTokenGroup.

Definition at line 335 of file TokenGroup.cpp.

◆ PrintMe()

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

Reimplemented from MHTokenGroup.

Definition at line 365 of file TokenGroup.cpp.

◆ Preparation()

void MHListGroup::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 396 of file TokenGroup.cpp.

◆ Destruction()

void MHListGroup::Destruction ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 429 of file TokenGroup.cpp.

◆ Activation()

void MHListGroup::Activation ( MHEngine engine)
overridevirtual

Reimplemented from MHTokenGroup.

Definition at line 438 of file TokenGroup.cpp.

◆ Deactivation()

void MHListGroup::Deactivation ( MHEngine engine)
overridevirtual

Reimplemented from MHTokenGroup.

Definition at line 446 of file TokenGroup.cpp.

◆ AddItem()

void MHListGroup::AddItem ( int  nIndex,
MHRoot pItem,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 545 of file TokenGroup.cpp.

◆ DelItem()

void MHListGroup::DelItem ( MHRoot pItem,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 574 of file TokenGroup.cpp.

◆ GetCellItem()

void MHListGroup::GetCellItem ( int  nCell,
const MHObjectRef itemDest,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 635 of file TokenGroup.cpp.

◆ GetListItem()

void MHListGroup::GetListItem ( int  nCell,
const MHObjectRef itemDest,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 680 of file TokenGroup.cpp.

◆ GetItemStatus()

void MHListGroup::GetItemStatus ( int  nCell,
const MHObjectRef itemDest,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 695 of file TokenGroup.cpp.

◆ SelectItem()

void MHListGroup::SelectItem ( int  nCell,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 710 of file TokenGroup.cpp.

◆ DeselectItem()

void MHListGroup::DeselectItem ( int  nCell,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 725 of file TokenGroup.cpp.

◆ ToggleItem()

void MHListGroup::ToggleItem ( int  nCell,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 740 of file TokenGroup.cpp.

◆ ScrollItems()

void MHListGroup::ScrollItems ( int  nCell,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 762 of file TokenGroup.cpp.

◆ SetFirstItem()

void MHListGroup::SetFirstItem ( int  nCell,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 780 of file TokenGroup.cpp.

◆ GetFirstItem()

void MHListGroup::GetFirstItem ( MHRoot pResult,
MHEngine  
)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 126 of file TokenGroup.h.

◆ GetListSize()

void MHListGroup::GetListSize ( MHRoot pResult,
MHEngine  
)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 128 of file TokenGroup.h.

◆ Update()

void MHListGroup::Update ( MHEngine engine)
protected

Definition at line 457 of file TokenGroup.cpp.

Referenced by Activation(), AddItem(), ScrollItems(), and SetFirstItem().

◆ Select()

void MHListGroup::Select ( int  nIndex,
MHEngine engine 
)
protected

Definition at line 595 of file TokenGroup.cpp.

Referenced by SelectItem(), and ToggleItem().

◆ Deselect()

void MHListGroup::Deselect ( int  nIndex,
MHEngine engine 
)
protected

Definition at line 621 of file TokenGroup.cpp.

Referenced by DeselectItem(), Select(), and ToggleItem().

◆ AdjustIndex()

int MHListGroup::AdjustIndex ( int  nIndex)
protected

Member Data Documentation

◆ m_Positions

MHSequence<QPoint> MHListGroup::m_Positions
protected

Definition at line 139 of file TokenGroup.h.

Referenced by GetCellItem(), Initialise(), PrintMe(), and Update().

◆ m_fWrapAround

bool MHListGroup::m_fWrapAround {false}
protected

◆ m_fMultipleSelection

bool MHListGroup::m_fMultipleSelection {false}
protected

Definition at line 141 of file TokenGroup.h.

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

◆ m_ItemList

QList<MHListItem*> MHListGroup::m_ItemList
protected

◆ m_nFirstItem

int MHListGroup::m_nFirstItem {1}
protected

◆ m_fFirstItemDisplayed

bool MHListGroup::m_fFirstItemDisplayed {false}
protected

Definition at line 145 of file TokenGroup.h.

Referenced by Activation(), and Update().

◆ m_fLastItemDisplayed

bool MHListGroup::m_fLastItemDisplayed {false}
protected

Definition at line 146 of file TokenGroup.h.

Referenced by Activation(), and Update().

◆ m_nLastCount

int MHListGroup::m_nLastCount {0}
protected

Definition at line 147 of file TokenGroup.h.

Referenced by Update().

◆ m_nLastFirstItem

int MHListGroup::m_nLastFirstItem {m_nFirstItem}
protected

Definition at line 148 of file TokenGroup.h.

Referenced by Update().


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