QList<int> QAudioDeviceInfoInternal::sampleSizeList()
{
    updateLists();
    return sizez;
}
QList<int> QAudioDeviceInfoInternal::channelsList()
{
    updateLists();
    return channelz;
}
QStringList QAudioDeviceInfoInternal::codecList()
{
    updateLists();
    return codecz;
}
QList<int> QAudioDeviceInfoInternal::frequencyList()
{
    updateLists();
    return freqz;
}
Example #5
0
void 
DlgPass::updatePipelines() {

	std::vector<std::string> pips;
	RENDERMANAGER->getPipelineNames(&pips);
	std::vector<std::string>::iterator iter;

	//wxString sel = m_PipelineList->GetStringSelection();
	wxString sel = wxString(RENDERMANAGER->getActivePipelineName());
	m_PipelineList->Clear();
	for (iter = pips.begin(); iter != pips.end(); ++iter)
		m_PipelineList->Append(wxString(iter->c_str()));

	if (! m_PipelineList->SetStringSelection(sel)) 
		m_PipelineList->SetSelection(0);

	sel = m_PipelineList->GetStringSelection();
	m_ActivePipText->SetLabelText(sel);
	std::string pipName = std::string(sel.mb_str());

	std::shared_ptr<Pipeline> &pip = RENDERMANAGER->getPipeline(pipName);

	std::vector<std::string> passes;
	pip->getPassNames(&passes);

	sel = m_PassList->GetStringSelection();
	m_PassList->Clear();

	for (auto &name:passes)
		m_PassList->Append(wxString(name.c_str()));

	if (! m_PassList->SetStringSelection(sel))
		m_PassList->SetSelection(0);
		
	Pass *p = getPass();


	m_PG->ClearPage(0);

		m_PG->Append(new wxStringProperty(wxT("Class"), wxPG_LABEL, wxT("")));
		m_PG->DisableProperty(wxT("Class"));

		m_pgCamList.Add(wxT("dummy"));
		m_pgPropCam = new wxEnumProperty(wxT("Camera"),wxPG_LABEL,m_pgCamList);
		m_PG->Append(m_pgPropCam);
		
		m_pgViewportList.Add(wxT("From Camera"));
		m_pgPropViewport = new wxEnumProperty(wxT("Viewport"),wxPG_LABEL,m_pgViewportList);
		m_PG->Append(m_pgPropViewport);

		m_PG->Append(new wxBoolProperty(wxT("Use Render Target"), wxPG_LABEL, true));
		m_PG->SetPropertyAttribute( wxT("Use Render Target"),
                              wxPG_BOOL_USE_CHECKBOX,
                              true );

		m_pgRenderTargetList.Add(wxT("None"));
		m_pgPropRenderTarget = new wxEnumProperty(wxT("Render Target"),wxPG_LABEL,m_pgRenderTargetList);
		m_PG->Append(m_pgPropRenderTarget);

	updateLists(p);
	setupGrid();
	updateProperties(p) ;
}