Esempio n. 1
0
bool COperationOptions::WriteSettings(CSettings &Settings)
{
	Settings.Write(TEXT("DisplayDragMove"),m_fDisplayDragMove);
	Settings.Write(TEXT("HideCursor"),m_fHideCursor);
	Settings.Write(TEXT("VolumeStep"),m_VolumeStep);
	Settings.Write(TEXT("AudioDelayStep"),m_AudioDelayStep);

	TCHAR szCommand[TVTest::CWheelCommandManager::MAX_COMMAND_PARSABLE_NAME];
	m_WheelCommandManager.GetCommandParsableName(m_WheelCommand,szCommand,lengthof(szCommand));
	Settings.Write(TEXT("WheelCommand"),szCommand);
	m_WheelCommandManager.GetCommandParsableName(m_WheelShiftCommand,szCommand,lengthof(szCommand));
	Settings.Write(TEXT("WheelShiftCommand"),szCommand);
	m_WheelCommandManager.GetCommandParsableName(m_WheelCtrlCommand,szCommand,lengthof(szCommand));
	Settings.Write(TEXT("WheelCtrlCommand"),szCommand);
	m_WheelCommandManager.GetCommandParsableName(m_WheelTiltCommand,szCommand,lengthof(szCommand));
	Settings.Write(TEXT("WheelTiltCommand"),szCommand);

	Settings.Write(TEXT("StatusBarWheel"),m_fStatusBarWheel);
	Settings.Write(TEXT("ReverseWheelChannel"),m_fWheelChannelReverse);
	Settings.Write(TEXT("ReverseWheelVolume"),m_fWheelVolumeReverse);
	Settings.Write(TEXT("WheelChannelDelay"),m_WheelChannelDelay);
	Settings.Write(TEXT("WheelZoomStep"),m_WheelZoomStep);
	if (m_pCommandList!=NULL) {
		Settings.Write(TEXT("LeftDoubleClickCommand"),
			GetCommandText(m_pCommandList,m_LeftDoubleClickCommand));
		Settings.Write(TEXT("RightClickCommand"),
			GetCommandText(m_pCommandList,m_RightClickCommand));
		Settings.Write(TEXT("MiddleClickCommand"),
			GetCommandText(m_pCommandList,m_MiddleClickCommand));
	}
	return true;
}
Esempio n. 2
0
void ConnectionPanel::OnEnterKey(wxKeyEvent& evt)
{
    if (evt.GetEventObject() == FindWindow(ID_TEXT_KEY))
    {
        FindKeys(GetSearchText());
    }
    else if (evt.GetEventObject() == FindWindow(ID_TEXT_COMMAND))
    {
        ExecuteCommand(GetCommandText());
    }
}
Esempio n. 3
0
void ConnectionPanel::OnRawCommand(wxCommandEvent &evt)
{
    ExecuteCommand(GetCommandText());
}
/*
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
*/
void CCommandSCSettings::GetValuesFromStoreL(void)
{	
	if(!iListBox)
		return;
	
	TFindFile AufFolder(CCoeEnv::Static()->FsSession());
	if(KErrNone == AufFolder.FindByDir(KtxCommandSCFileName, KNullDesC))
	{
		CDictionaryFileStore* MyDStore = CDictionaryFileStore::OpenLC(CCoeEnv::Static()->FsSession(),AufFolder.File(), TUid::Uid(0x102013AD));

		TInt CommandSc(0);
		GetValuesL(MyDStore,0x5000,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand0 = CommandSc;
			GetCommandText(iListBox->iCommandTxt0,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt0,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5001,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand1 = CommandSc;
			GetCommandText(iListBox->iCommandTxt1,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt1,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5002,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand2 = CommandSc;
			GetCommandText(iListBox->iCommandTxt2,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt2,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5003,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand3 = CommandSc;
			GetCommandText(iListBox->iCommandTxt3,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt3,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5004,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand4 = CommandSc;
			GetCommandText(iListBox->iCommandTxt4,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt4,R_MNU_NOTSET);
		}

		CommandSc =0;
		GetValuesL(MyDStore,0x5005,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand5 = CommandSc;
			GetCommandText(iListBox->iCommandTxt5,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt5,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5006,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand6 = CommandSc;
			GetCommandText(iListBox->iCommandTxt6,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt6,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5007,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand7 = CommandSc;
			GetCommandText(iListBox->iCommandTxt7,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt7,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5008,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand8 = CommandSc;
			GetCommandText(iListBox->iCommandTxt8,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt8,R_MNU_NOTSET);
		}
		
		CommandSc =0;
		GetValuesL(MyDStore,0x5009,CommandSc);
		if(CommandSc > 0)
		{
			iListBox->iCommand9 = CommandSc;
			GetCommandText(iListBox->iCommandTxt9,CommandSc);
		}
		else
		{
			StringLoader::Load(iListBox->iCommandTxt9,R_MNU_NOTSET);
		}

		CleanupStack::PopAndDestroy(1);// Store
	}
}