本文整理汇总了C++中Preferences::getAudioEngineInfoProperties方法的典型用法代码示例。如果您正苦于以下问题:C++ Preferences::getAudioEngineInfoProperties方法的具体用法?C++ Preferences::getAudioEngineInfoProperties怎么用?C++ Preferences::getAudioEngineInfoProperties使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Preferences
的用法示例。
在下文中一共展示了Preferences::getAudioEngineInfoProperties方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Object
HydrogenApp::HydrogenApp( MainForm *pMainForm, Song *pFirstSong )
: Object( __class_name )
, m_pMainForm( pMainForm )
, m_pMixer( NULL )
, m_pPatternEditorPanel( NULL )
, m_pAudioEngineInfoForm( NULL )
, m_pSongEditorPanel( NULL )
, m_pHelpBrowser( NULL )
, m_pFirstTimeInfo( NULL )
, m_pPlayerControl( NULL )
, m_pPlaylistDialog( NULL )
, m_pSampleEditor( NULL )
, m_pDirector( NULL )
{
m_pInstance = this;
m_pEventQueueTimer = new QTimer(this);
connect( m_pEventQueueTimer, SIGNAL( timeout() ), this, SLOT( onEventQueueTimer() ) );
m_pEventQueueTimer->start(50); // update at 20 fps
// Create the audio engine :)
Hydrogen::create_instance();
Hydrogen::get_instance()->setSong( pFirstSong );
Preferences::get_instance()->setLastSongFilename( pFirstSong->get_filename() );
SoundLibraryDatabase::create_instance();
//setup the undo stack
m_undoStack = new QUndoStack( this );
updateWindowTitle();
Preferences *pPref = Preferences::get_instance();
setupSinglePanedInterface();
// restore audio engine form properties
m_pAudioEngineInfoForm = new AudioEngineInfoForm( 0 );
WindowProperties audioEngineInfoProp = pPref->getAudioEngineInfoProperties();
m_pAudioEngineInfoForm->move( audioEngineInfoProp.x, audioEngineInfoProp.y );
if ( audioEngineInfoProp.visible ) {
m_pAudioEngineInfoForm->show();
}
else {
m_pAudioEngineInfoForm->hide();
}
m_pPlaylistDialog = new PlaylistDialog( 0 );
m_pDirector = new Director( 0 );
}