本文整理汇总了C++中Preferences::getLadspaProperties方法的典型用法代码示例。如果您正苦于以下问题:C++ Preferences::getLadspaProperties方法的具体用法?C++ Preferences::getLadspaProperties怎么用?C++ Preferences::getLadspaProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preferences
的用法示例。
在下文中一共展示了Preferences::getLadspaProperties方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupSinglePanedInterface
//.........这里部分代码省略.........
m_pSongEditorPanel->resize( songEditorProp.width, songEditorProp.height );
if( uiLayout == Preferences::UI_LAYOUT_TABBED)
pTab->addTab( m_pSongEditorPanel, trUtf8("Song Editor") );
// this HBox will contain the InstrumentRack and the Pattern editor
QWidget *pSouthPanel = new QWidget( pSplitter );
QHBoxLayout *pEditorHBox = new QHBoxLayout();
pEditorHBox->setSpacing( 5 );
pEditorHBox->setMargin( 0 );
pSouthPanel->setLayout( pEditorHBox );
// INSTRUMENT RACK
m_pInstrumentRack = new InstrumentRack( NULL );
if( uiLayout == Preferences::UI_LAYOUT_TABBED ){
pTab->setMovable( false );
pTab->setTabsClosable( false );
pTab->addTab( pSouthPanel, trUtf8( "Instrument + Pattern") );
}
// PATTERN EDITOR
m_pPatternEditorPanel = new PatternEditorPanel( NULL );
WindowProperties patternEditorProp = pPref->getPatternEditorProperties();
m_pPatternEditorPanel->resize( patternEditorProp.width, patternEditorProp.height );
pEditorHBox->addWidget( m_pPatternEditorPanel );
pEditorHBox->addWidget( m_pInstrumentRack );
// PLayer control
m_pPlayerControl = new PlayerControl( NULL );
QWidget *mainArea = new QWidget( m_pMainForm ); // this is the main widget
m_pMainForm->setCentralWidget( mainArea );
// LAYOUT!!
QVBoxLayout *pMainVBox = new QVBoxLayout();
pMainVBox->setSpacing( 5 );
pMainVBox->setMargin( 0 );
pMainVBox->addWidget( m_pPlayerControl );
if( uiLayout == Preferences::UI_LAYOUT_SINGLE_PANE)
pMainVBox->addWidget( pSplitter );
else {
pMainVBox->addWidget( pTab );
}
mainArea->setLayout( pMainVBox );
// MIXER
m_pMixer = new Mixer(0);
WindowProperties mixerProp = pPref->getMixerProperties();
m_pMixer->resize( mixerProp.width, mixerProp.height );
m_pMixer->move( mixerProp.x, mixerProp.y );
if( uiLayout == Preferences::UI_LAYOUT_TABBED){
pTab->addTab(m_pMixer,trUtf8("Mixer"));
}
m_pMixer->updateMixer();
if ( mixerProp.visible && uiLayout == Preferences::UI_LAYOUT_SINGLE_PANE ) {
m_pMixer->show();
}
else {
m_pMixer->hide();
}
// HELP BROWSER
QString sDocPath = H2Core::Filesystem::doc_dir();
QString sDocURI = sDocPath + "/manual.html";
m_pHelpBrowser = new SimpleHTMLBrowser( NULL, sDocPath, sDocURI, SimpleHTMLBrowser::MANUAL );
#ifdef H2CORE_HAVE_LADSPA
// LADSPA FX
for (uint nFX = 0; nFX < MAX_FX; nFX++) {
m_pLadspaFXProperties[nFX] = new LadspaFXProperties( NULL, nFX );
m_pLadspaFXProperties[nFX]->hide();
WindowProperties prop = pPref->getLadspaProperties(nFX);
m_pLadspaFXProperties[nFX]->move( prop.x, prop.y );
if ( prop.visible ) {
m_pLadspaFXProperties[nFX]->show();
}
else {
m_pLadspaFXProperties[nFX]->hide();
}
}
#endif
if( uiLayout == Preferences::UI_LAYOUT_TABBED){
pTab->setCurrentIndex( Preferences::get_instance()->getLastOpenTab() );
QObject::connect(pTab, SIGNAL(currentChanged(int)),this,SLOT(currentTabChanged(int)));
}