#include <Engine.h>
Definition at line 71 of file Engine.h.
| MHEngine::MHEngine | ( | MHContext * | context | ) |
Definition at line 46 of file Engine.cpp.
| MHEngine::~MHEngine | ( | ) | [virtual] |
Definition at line 53 of file Engine.cpp.
| virtual void MHEngine::SetBooting | ( | ) | [inline, virtual] |
| void MHEngine::DrawDisplay | ( | QRegion | toDraw | ) | [virtual] |
Implements MHEG.
Definition at line 872 of file Engine.cpp.
| void MHEngine::BootApplication | ( | const char * | fileName | ) |
| void MHEngine::TransitionToScene | ( | const MHObjectRef & | target | ) |
Definition at line 391 of file Engine.cpp.
Referenced by MHTransitionTo::Perform().
| bool MHEngine::Launch | ( | const MHObjectRef & | target, | |
| bool | fIsSpawn = false | |||
| ) |
Definition at line 246 of file Engine.cpp.
Referenced by MHLaunch::Perform(), RunAll(), and Spawn().
| void MHEngine::Spawn | ( | const MHObjectRef & | target | ) | [inline] |
Definition at line 83 of file Engine.h.
Referenced by MHSpawn::Perform().
| void MHEngine::Quit | ( | ) |
Definition at line 350 of file Engine.cpp.
Referenced by MHQuit::Perform().
| MHRoot * MHEngine::FindObject | ( | const MHObjectRef & | objr, | |
| bool | failOnNotFound = true | |||
| ) |
Definition at line 561 of file Engine.cpp.
Referenced by MHTokenGroup::Activation(), MHClone::CallAction(), MHResidentProgram::CallProgram(), MHListGroup::GetCellItem(), MHListGroup::GetItemStatus(), MHListGroup::GetListItem(), MHGenericContentRef::GetValue(), MHGenericObjectRef::GetValue(), MHGenericOctetString::GetValue(), MHGenericInteger::GetValue(), MHGenericBoolean::GetValue(), LoadStorePersistent(), MHAppend::Perform(), MHIntegerAction::Perform(), MHTestVariable::Perform(), MHSetVariable::Perform(), MHAddItem::Perform(), MHGetAvailabilityStatus::Perform(), MHSetData::Perform(), MHGetEngineSupport::Perform(), MHPersistent::Perform(), MHSendEvent::Perform(), MHActionObjectRef2::Perform(), MHActionObjectRef::Perform(), MHActionGenericObjectRef::Perform(), MHListGroup::Preparation(), SetSuccessFlag(), and MHElemAction::Target().
Definition at line 92 of file Engine.h.
Referenced by MHVisible::Activation(), MHVariable::Activation(), MHTokenGroup::Activation(), MHAudio::Activation(), MHStream::Activation(), MHProgram::Activation(), MHLink::Activation(), MHScene::Activation(), MHApplication::Activation(), MHResidentProgram::CallProgram(), CheckContentRequests(), MHGroup::CheckTimers(), MHText::ContentArrived(), MHBitmap::ContentArrived(), MHVideo::ContentPreparation(), MHStream::ContentPreparation(), MHIngredient::ContentPreparation(), MHTokenGroup::Deactivation(), MHRoot::Deactivation(), MHSlider::Decrement(), MHListGroup::Deselect(), MHRoot::Destruction(), EngineEvent(), EventTriggered(), GenerateUserAction(), MHSlider::Increment(), MHInteractible::InteractSetHighlightStatus(), MHInteractible::InteractSetInteractionStatus(), MHSlider::KeyEvent(), Launch(), MHSendEvent::Perform(), MHRoot::Preparation(), MHListGroup::Select(), MHSlider::SetPortion(), MHSlider::SetSliderParameters(), MHSlider::SetSliderValue(), MHSlider::Step(), MHContentRefVar::TestVariable(), MHObjectRefVar::TestVariable(), MHOctetStrVar::TestVariable(), MHIntegerVar::TestVariable(), MHBooleanVar::TestVariable(), MHTokenGroup::TransferToken(), TransitionToScene(), and MHListGroup::Update().
Definition at line 626 of file Engine.cpp.
| void MHEngine::AddActions | ( | const MHActionSequence & | actions | ) |
Definition at line 710 of file Engine.cpp.
Referenced by MHApplication::Activation(), MHGroup::Activation(), MHTokenGroup::CallActionSlot(), MHGroup::Deactivation(), Launch(), and MHLink::MatchEvent().
| void MHEngine::AddToDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 720 of file Engine.cpp.
Referenced by MHVisible::Preparation().
| void MHEngine::RemoveFromDisplayStack | ( | MHVisible * | pVis | ) |
Definition at line 732 of file Engine.cpp.
Referenced by MHVisible::Destruction().
| void MHEngine::Redraw | ( | QRegion | region | ) |
Definition at line 885 of file Engine.cpp.
Referenced by MHVisible::Activation(), AddToDisplayStack(), BringToFront(), MHBitmap::ContentArrived(), MHText::CreateContent(), MHVisible::Deactivation(), MHSlider::Decrement(), MHDynamicLineArt::DrawArcSector(), MHDynamicLineArt::DrawLine(), MHDynamicLineArt::DrawOval(), MHDynamicLineArt::DrawRectangle(), MHSlider::Increment(), MHSlider::InteractionCompleted(), MHInteractible::InteractSetHighlightStatus(), PutBefore(), PutBehind(), RemoveFromDisplayStack(), MHBitmap::ScaleBitmap(), MHVideo::ScaleVideo(), SendToBack(), MHText::SetBackgroundColour(), MHBitmap::SetBitmapDecodeOffset(), MHVisible::SetBoxSize(), MHLineArt::SetFillColour(), MHText::SetFontAttributes(), MHLineArt::SetLineColour(), MHLineArt::SetLineStyle(), MHLineArt::SetLineWidth(), MHVisible::SetPaletteRef(), MHSlider::SetPortion(), MHVisible::SetPosition(), MHSlider::SetSliderParameters(), MHSlider::SetSliderValue(), MHText::SetTextColour(), MHVideo::SetVideoDecodeOffset(), and MHSlider::Step().
| void MHEngine::BringToFront | ( | const MHRoot * | pVis | ) |
Definition at line 746 of file Engine.cpp.
Referenced by MHVisible::BringToFront().
| void MHEngine::SendToBack | ( | const MHRoot * | pVis | ) |
Definition at line 761 of file Engine.cpp.
Referenced by MHVisible::SendToBack().
Definition at line 776 of file Engine.cpp.
Referenced by MHVisible::PutBefore().
Definition at line 807 of file Engine.cpp.
Referenced by MHVisible::PutBehind().
| void MHEngine::LockScreen | ( | ) | [inline] |
Definition at line 108 of file Engine.h.
Referenced by MHLockScreen::Perform().
| void MHEngine::UnlockScreen | ( | ) |
Definition at line 891 of file Engine.cpp.
Referenced by MHUnlockScreen::Perform().
| int MHEngine::RunAll | ( | void | ) | [virtual] |
Implements MHEG.
Definition at line 75 of file Engine.cpp.
| void MHEngine::RunActions | ( | ) |
Definition at line 600 of file Engine.cpp.
Referenced by MHApplication::Activation(), MHGroup::Activation(), MHGroup::Deactivation(), Launch(), and RunAll().
| void MHEngine::GenerateUserAction | ( | int | nCode | ) | [virtual] |
Implements MHEG.
Definition at line 901 of file Engine.cpp.
| void MHEngine::EngineEvent | ( | int | nCode | ) | [virtual] |
Implements MHEG.
Definition at line 940 of file Engine.cpp.
| void MHEngine::RequestExternalContent | ( | MHIngredient * | pRequester | ) |
Definition at line 946 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation().
| void MHEngine::CancelExternalContentRequest | ( | MHIngredient * | pRequester | ) |
Definition at line 987 of file Engine.cpp.
Referenced by MHIngredient::ContentPreparation(), MHIngredient::Destruction(), and RequestExternalContent().
| bool MHEngine::LoadStorePersistent | ( | bool | fIsLoad, | |
| const MHOctetString & | fileName, | |||
| const MHSequence< MHObjectRef * > & | variables | |||
| ) |
Definition at line 1054 of file Engine.cpp.
Referenced by MHPersistent::Perform().
| void MHEngine::AddLink | ( | MHLink * | pLink | ) |
Definition at line 699 of file Engine.cpp.
Referenced by MHLink::Activation().
| void MHEngine::RemoveLink | ( | MHLink * | pLink | ) |
Definition at line 704 of file Engine.cpp.
Referenced by MHLink::Deactivation().
| bool MHEngine::GetEngineSupport | ( | const MHOctetString & | feature | ) |
Definition at line 1119 of file Engine.cpp.
Referenced by MHGetEngineSupport::Perform().
| int MHEngine::GetDefaultCharSet | ( | ) |
Definition at line 1293 of file Engine.cpp.
| void MHEngine::GetDefaultBGColour | ( | MHColour & | colour | ) |
Definition at line 1307 of file Engine.cpp.
Referenced by MHText::Preparation().
| void MHEngine::GetDefaultTextColour | ( | MHColour & | colour | ) |
Definition at line 1321 of file Engine.cpp.
Referenced by MHText::Preparation().
| void MHEngine::GetDefaultButtonRefColour | ( | MHColour & | colour | ) |
Definition at line 1335 of file Engine.cpp.
| void MHEngine::GetDefaultHighlightRefColour | ( | MHColour & | colour | ) |
Definition at line 1349 of file Engine.cpp.
Referenced by MHInteractible::Initialise().
| void MHEngine::GetDefaultSliderRefColour | ( | MHColour & | colour | ) |
Definition at line 1363 of file Engine.cpp.
Referenced by MHSlider::Initialise().
| int MHEngine::GetDefaultTextCHook | ( | ) |
Definition at line 1377 of file Engine.cpp.
| int MHEngine::GetDefaultStreamCHook | ( | ) |
Definition at line 1391 of file Engine.cpp.
| int MHEngine::GetDefaultBitmapCHook | ( | ) |
Definition at line 1405 of file Engine.cpp.
Referenced by MHBitmap::ContentArrived().
| void MHEngine::GetDefaultFontAttrs | ( | MHOctetString & | str | ) |
Definition at line 1419 of file Engine.cpp.
Referenced by MHText::Preparation().
| void MHEngine::SetInputRegister | ( | int | nReg | ) |
Definition at line 499 of file Engine.cpp.
Referenced by MHScene::SetInputRegister(), and TransitionToScene().
| MHOctetString& MHEngine::GetGroupId | ( | ) | [inline] |
Definition at line 150 of file Engine.h.
Referenced by MHGroup::Initialise(), and MHObjectRef::Initialise().
| MHContext* MHEngine::GetContext | ( | void | ) | [inline] |
Definition at line 151 of file Engine.h.
Referenced by MHVideo::Activation(), MHAudio::Activation(), MHVideo::BeginPlaying(), MHAudio::BeginPlaying(), MHResidentProgram::CallProgram(), MHVideo::Deactivation(), MHAudio::Deactivation(), MHSlider::Display(), MHRectangle::Display(), MHText::Display(), MHVideo::Display(), MHText::Initialise(), MHDynamicLineArt::Initialise(), MHBitmap::Initialise(), MHVideo::StopPlaying(), and MHAudio::StopPlaying().
| QString MHEngine::GetPathName | ( | const MHOctetString & | str | ) |
Definition at line 505 of file Engine.cpp.
Referenced by MHResidentProgram::CallProgram(), MHContentRef::Equal(), MHObjectRef::Equal(), FindObject(), Launch(), RequestExternalContent(), and TransitionToScene().
| MHInteractible* MHEngine::GetInteraction | ( | void | ) | [inline] |
Definition at line 158 of file Engine.h.
Referenced by MHInteractible::InteractSetInteractionStatus().
| void MHEngine::SetInteraction | ( | MHInteractible * | p | ) | [inline] |
Definition at line 159 of file Engine.h.
Referenced by MHInteractible::Interaction(), MHInteractible::InteractSetInteractionStatus(), and MHSlider::KeyEvent().
| int MHEngine::GetTuneInfo | ( | ) | [inline] |
Definition at line 161 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
| void MHEngine::SetTuneInfo | ( | int | tuneinfo | ) | [inline] |
Definition at line 162 of file Engine.h.
Referenced by MHResidentProgram::CallProgram().
| void MHEngine::CheckLinks | ( | const MHObjectRef & | sourceRef, | |
| enum EventType | ev, | |||
| const MHUnion & | un | |||
| ) | [protected] |
Definition at line 690 of file Engine.cpp.
Referenced by EventTriggered(), and RunAll().
| MHGroup * MHEngine::ParseProgram | ( | QByteArray & | text | ) | [protected] |
Definition at line 188 of file Engine.cpp.
Referenced by Launch(), and TransitionToScene().
| void MHEngine::DrawRegion | ( | QRegion | toDraw, | |
| int | nStackPos | |||
| ) | [protected] |
Definition at line 838 of file Engine.cpp.
Referenced by DrawDisplay().
| MHApplication* MHEngine::CurrentApp | ( | ) | [inline, protected] |
Definition at line 173 of file Engine.h.
Referenced by AddToDisplayStack(), BringToFront(), CheckContentRequests(), CurrentScene(), DrawDisplay(), DrawRegion(), EngineEvent(), FindObject(), GetDefaultBGColour(), GetDefaultBitmapCHook(), GetDefaultButtonRefColour(), GetDefaultCharSet(), GetDefaultFontAttrs(), GetDefaultHighlightRefColour(), GetDefaultSliderRefColour(), GetDefaultStreamCHook(), GetDefaultTextCHook(), GetDefaultTextColour(), GetPathName(), GetTuneInfo(), Launch(), LockScreen(), PutBefore(), PutBehind(), Quit(), RemoveFromDisplayStack(), RunAll(), SendToBack(), SetTuneInfo(), TransitionToScene(), and UnlockScreen().
| MHScene* MHEngine::CurrentScene | ( | ) | [inline, protected] |
Definition at line 179 of file Engine.h.
Referenced by FindObject(), GenerateUserAction(), Launch(), Quit(), RunAll(), and TransitionToScene().
| void MHEngine::CheckContentRequests | ( | ) | [protected] |
Definition at line 1010 of file Engine.cpp.
Referenced by RunAll().
const char * MHEngine::MHEGEngineProviderIdString = "MHGGNU001" [static] |
Definition at line 155 of file Engine.h.
Referenced by MHResidentProgram::CallProgram(), and GetEngineSupport().
QRegion MHEngine::m_redrawRegion [protected] |
Definition at line 169 of file Engine.h.
Referenced by Redraw(), RunAll(), and TransitionToScene().
QStack<MHApplication*> MHEngine::m_ApplicationStack [protected] |
Definition at line 172 of file Engine.h.
Referenced by CurrentApp(), Launch(), Quit(), RunAll(), and ~MHEngine().
QStack<MHElemAction*> MHEngine::m_ActionStack [protected] |
Definition at line 184 of file Engine.h.
Referenced by AddActions(), Launch(), RunActions(), RunAll(), and TransitionToScene().
QQueue<MHAsynchEvent*> MHEngine::m_EventQueue [protected] |
Definition at line 188 of file Engine.h.
Referenced by EventTriggered(), Launch(), Quit(), RunAll(), TransitionToScene(), and ~MHEngine().
QList<MHLink*> MHEngine::m_LinkTable [protected] |
Definition at line 191 of file Engine.h.
Referenced by AddLink(), CheckLinks(), RemoveLink(), and RunAll().
QList<MHExternContent*> MHEngine::m_ExternContentTable [protected] |
Definition at line 195 of file Engine.h.
Referenced by CancelExternalContentRequest(), CheckContentRequests(), RequestExternalContent(), RunAll(), and ~MHEngine().
MHOwnPtrSequence<MHPSEntry> MHEngine::m_PersistentStore [protected] |
Definition at line 198 of file Engine.h.
Referenced by LoadStorePersistent().
bool MHEngine::m_fInTransition [protected] |
Definition at line 200 of file Engine.h.
Referenced by InTransition(), Launch(), MHEngine(), Quit(), and TransitionToScene().
MHOctetString MHEngine::m_CurrentGroupId [protected] |
Definition at line 204 of file Engine.h.
Referenced by GetGroupId().
MHContext* MHEngine::m_Context [protected] |
Definition at line 206 of file Engine.h.
Referenced by CheckContentRequests(), DrawRegion(), GetContext(), GetEngineSupport(), Launch(), RequestExternalContent(), RunAll(), SetInputRegister(), and TransitionToScene().
bool MHEngine::m_fBooting [protected] |
Definition at line 207 of file Engine.h.
Referenced by DrawDisplay(), MHEngine(), Quit(), RunAll(), and SetBooting().
MHInteractible* MHEngine::m_Interacting [protected] |
Definition at line 209 of file Engine.h.
Referenced by GenerateUserAction(), GetInteraction(), MHEngine(), SetInteraction(), and TransitionToScene().
1.6.3