本文整理汇总了C++中GeneralSettings::Create方法的典型用法代码示例。如果您正苦于以下问题:C++ GeneralSettings::Create方法的具体用法?C++ GeneralSettings::Create怎么用?C++ GeneralSettings::Create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GeneralSettings
的用法示例。
在下文中一共展示了GeneralSettings::Create方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MusicCallback
static void MusicCallback(void *data, QString &selection)
{
(void) data;
QString sel = selection.toLower();
if (sel == "music_create_playlist")
startDatabaseTree();
else if (sel == "music_play")
startPlayback();
else if (sel == "stream_play")
startStreamPlayback();
else if (sel == "music_rip")
{
startRipper();
}
else if (sel == "music_import")
{
startImport();
}
else if (sel == "settings_scan")
{
runScan();
}
else if (sel == "settings_general")
{
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
GeneralSettings *gs = new GeneralSettings(mainStack, "general settings");
if (gs->Create())
mainStack->AddScreen(gs);
else
delete gs;
}
else if (sel == "settings_player")
{
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
PlayerSettings *ps = new PlayerSettings(mainStack, "player settings");
if (ps->Create())
mainStack->AddScreen(ps);
else
delete ps;
}
else if (sel == "settings_rating")
{
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
RatingSettings *rs = new RatingSettings(mainStack, "rating settings");
if (rs->Create())
mainStack->AddScreen(rs);
else
delete rs;
}
else if (sel == "settings_visualization")
{
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
VisualizationSettings *vs = new VisualizationSettings(mainStack, "visualization settings");
if (vs->Create())
mainStack->AddScreen(vs);
else
delete vs;
}
else if (sel == "settings_import")
{
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
ImportSettings *is = new ImportSettings(mainStack, "import settings");
if (is->Create())
mainStack->AddScreen(is);
else
delete is;
}
}