Beispiel #1
0
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
void tEnginePanel::OnEngineConfigChanged()
{
    OnExitButtonPressed();

    RemoveAllPages();
    BuildPages();
}
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
tTemperatureContextPanel::tTemperatureContextPanel( QSize size, tMercuryDataUpdateTimer* pUpdateTimer, QGraphicsItem* pParent )
    :   tContextPanelSwipe( size, pUpdateTimer, pParent )
{
    SetHeaderTitle( ContextPageTitles::cTemperatureTitle );

    BuildPages();

    RebuildPagesOnSourcesChange( DATA_TYPE_ENGINE_TEMP );
    RebuildPagesOnSourcesChange( DATA_TYPE_ENGINE_OIL_TEMP );
    RebuildPagesOnUnitChange();
}
Beispiel #3
0
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------
tEnginePanel::tEnginePanel(QSize size, tMercuryDataUpdateTimer* pUpdateTimer, QGraphicsItem* pParent)
    : tContextPanelSwipe(size, pUpdateTimer, pParent)
{
    SetHeaderTitle(ContextPageTitles::cEngineAdvancedTitle);

    Connect(
        tDigitalDataManager::Instance()->GetSourceSelection(),
        SIGNAL(GlobalDataSourceChanged(eDigitalDataSourceSettingId)),
        this,
        SLOT(OnDataSourceChanged(eDigitalDataSourceSettingId)));
    Connect(
        tDigitalDataManager::Instance()->GetSourceSelection(),
        SIGNAL(NumInstancesChangedEngine(int)),
        this,
        SLOT(OnEngineConfigChanged())); // Slots ignores signal param
    Connect(tMercurySettings::Instance(), SIGNAL(RPMMeterEngineInstanceChanged()), this, SLOT(OnEngineConfigChanged()));

    BuildPages();
}
Beispiel #4
0
void Rambo1::Write( unsigned short addr, unsigned char ch )
{
	m_BusTrash = ch;
	switch( addr & 0xE000 )
	{
	case 0x0000:
		SystemRam[addr&0x7FF] = ch;
		break ;
	case 0x2000:
		PPUWrite( addr, m_BusTrash );
		break ;
	case 0x4000:
		APUWrite( addr, m_BusTrash );
		break ;
	case 0x6000:
		if( BCKRam )
			BCKRam[ addr & RamMask ] = ch;
		break ;
	case 0x8000:
		if( addr & 0x0001 )
		{
			m_Bank[m_BankSelect] = ch;
		}
		else
		{
			m_BankSelect = ch & 0x0F;
			m_CHRFlip	 = ch & 0x80;
			m_PRGFlip	 = ch & 0x40;
			m_1KMode	 = ch & 0x20;
		}
		BuildPages();

		break ;
	case 0xA000:
		if( ~addr & 0x0001 )
		{
			if( ch & 1 )
				SetMirrorVertical();
			else
				SetMirrorHorizontal();
		}
		break ;
	case 0xC000:
		if( addr & 0x0001 )
		{
			m_ReloadIRQ = true;
			m_CPUClockIRQ = (ch & 1) ? true : false;
		}
		else
		{
			m_IRQReload = ch;
		}
		break ;
	case 0xE000:
		if( addr & 1 )
			m_IRQEnable = true;
		else
			m_IRQActive = m_IRQEnable = false;
		break ;
	}
}