当前位置: 首页>>代码示例>>C++>>正文


C++ MythScreenStack::AddScreen方法代码示例

本文整理汇总了C++中MythScreenStack::AddScreen方法的典型用法代码示例。如果您正苦于以下问题:C++ MythScreenStack::AddScreen方法的具体用法?C++ MythScreenStack::AddScreen怎么用?C++ MythScreenStack::AddScreen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MythScreenStack的用法示例。


在下文中一共展示了MythScreenStack::AddScreen方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: editThumbnails

void MythBurn::editThumbnails()
{
    MythUIButtonListItem *item = m_archiveButtonList->GetItemCurrent();
    ArchiveItem *curItem = qVariantValue<ArchiveItem *>(item->GetData());

    if (!curItem)
        return;

    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();

    ThumbFinder *finder = new ThumbFinder(mainStack, curItem, m_theme);

    if (finder->Create())
        mainStack->AddScreen(finder);
}
开发者ID:daveyboyc,项目名称:mythtv,代码行数:15,代码来源:mythburn.cpp

示例2: slotAddBookmark

void MythBrowser::slotAddBookmark()
{
    m_editBookmark.category = "";
    m_editBookmark.name = m_pageList->GetValue();
    m_editBookmark.url = activeBrowser()->GetUrl().toString();

    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();

    BookmarkEditor *editor = new BookmarkEditor(&m_editBookmark,
            true, mainStack, "bookmarkeditor");


    if (editor->Create())
        mainStack->AddScreen(editor);
}
开发者ID:Beirdo,项目名称:mythtv-stabilize,代码行数:15,代码来源:mythbrowser.cpp

示例3: slotEnterURL

void MythBrowser::slotEnterURL(void)
{
    MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");

    QString message = tr("Enter URL");


    MythTextInputDialog *dialog = new MythTextInputDialog(popupStack, message);

    if (dialog->Create())
       popupStack->AddScreen(dialog);

     connect(dialog, SIGNAL(haveResult(QString)),
            SLOT(slotOpenURL(QString)), Qt::QueuedConnection);
}
开发者ID:Beirdo,项目名称:mythtv-stabilize,代码行数:15,代码来源:mythbrowser.cpp

示例4: editStream

void StreamView::editStream(void)
{
    MythUIButtonListItem *item = m_streamList->GetItemCurrent();
    if (item)
    {
        Metadata *mdata = qVariantValue<Metadata*> (item->GetData());
        MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
        MythScreenType *screen = new EditStreamMetadata(mainStack, this, mdata);

        if (screen->Create())
            mainStack->AddScreen(screen);
        else
            delete screen;
    }
}
开发者ID:royboy626,项目名称:mythtv,代码行数:15,代码来源:streamview.cpp

示例5: checkPinCode

/** \brief Queries the user for a password to enter a part of MythTV
 *         restricted by a password.
 *
 *  \param timestamp_setting time settings to be checked
 *  \param password_setting  password to be checked
 *  \param text              the message text to be displayed
 *  \return true if password checks out or is not needed.
 */
bool MythThemedMenu::checkPinCode(const QString &password_setting)
{
    QString timestamp_setting = QString("%1Time").arg(password_setting);
    QDateTime curr_time = QDateTime::currentDateTime();
    QString last_time_stamp = GetMythDB()->GetSetting(timestamp_setting);
    QString password = GetMythDB()->GetSetting(password_setting);

    // Password empty? Then skip asking for it
    if (password.isEmpty())
        return true;

    if (last_time_stamp.length() < 1)
    {
        LOG(VB_GENERAL, LOG_ERR,
                "MythThemedMenu: Could not read password/pin time stamp.\n"
                "This is only an issue if it happens repeatedly.");
    }
    else
    {
        QDateTime last_time = QDateTime::fromString(last_time_stamp,
                                                    Qt::TextDate);
        if (last_time.secsTo(curr_time) < 120)
        {
            last_time_stamp = curr_time.toString(Qt::TextDate);
            GetMythDB()->SetSetting(timestamp_setting, last_time_stamp);
            GetMythDB()->SaveSetting(timestamp_setting, last_time_stamp);
            return true;
        }
    }

    LOG(VB_GENERAL, LOG_INFO, QString("Using Password: %1")
                                  .arg(password_setting));

    QString text = tr("Enter password:");
    MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");
    MythTextInputDialog *dialog =
            new MythTextInputDialog(popupStack, text, FilterNone, true);

    if (dialog->Create())
    {
        dialog->SetReturnEvent(this, "password");
        popupStack->AddScreen(dialog);
    }
    else
        delete dialog;

    return false;
}
开发者ID:killerkiwi,项目名称:mythtv,代码行数:56,代码来源:myththemedmenu.cpp

示例6: ShowMenu

void ProgLister::ShowMenu(void)
{
    QString label = tr("Options");

    MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");
    MythDialogBox *menuPopup = new MythDialogBox(
        label, popupStack, "menuPopup");

    if (!menuPopup->Create())
    {
        delete menuPopup;
        return;
    }

    menuPopup->SetReturnEvent(this, "menu");

    if (m_type != plPreviouslyRecorded)
    {
        menuPopup->AddButton(tr("Choose Search Phrase..."),
                             SLOT(ShowChooseViewMenu()));
    }

    menuPopup->AddButton(tr("Sort"), SLOT(ShowSortMenu()), true);

    if (m_type != plPreviouslyRecorded)
        menuPopup->AddButton(tr("Record"), SLOT(RecordSelected()));

    menuPopup->AddButton(tr("Edit Schedule"),   SLOT(EditScheduled()));
    menuPopup->AddButton(tr("Program Details"), SLOT(ShowDetails()));
    menuPopup->AddButton(tr("Upcoming"),        SLOT(ShowUpcoming()));
    menuPopup->AddButton(tr("Custom Edit"),     SLOT(EditCustom()));

    ProgramInfo *pi = m_itemList[m_progList->GetCurrentPos()];
    if (m_type != plPreviouslyRecorded)
    {
        if (pi && pi->GetRecordingRuleID())
            menuPopup->AddButton(tr("Delete Rule"), SLOT(ShowDeleteRuleMenu()));
    }
    else
    {
        menuPopup->AddButton(
            tr("Delete Episode"), SLOT(ShowDeleteOldEpisodeMenu()));
    }

    menuPopup->AddButton(tr("Cancel"));

    popupStack->AddScreen(menuPopup);
}
开发者ID:gdenning,项目名称:mythtv,代码行数:48,代码来源:proglist.cpp

示例7: RunPairingScreen

static int RunPairingScreen(void)
{
    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
    PairingScreenUI *pairing = new PairingScreenUI(mainStack);

    if (pairing->Create())
    {
	mainStack->AddScreen(pairing);
	return 0;
    }
    else
    {
	delete pairing;
	return -1;
    }
}
开发者ID:BantouTV,项目名称:UCMythTV,代码行数:16,代码来源:main.cpp

示例8: switchView

void NetTree::switchView()
{
    NetTree *nettree =
            new NetTree(m_type, GetMythMainWindow()->GetMainStack(), "nettree");

    if (nettree->Create())
    {
        gCoreContext->SaveSetting("mythnetvision.ViewMode", m_type);
        MythScreenStack *screenStack = GetScreenStack();
        screenStack->AddScreen(nettree);
        screenStack->PopScreen(this, false, false);
        deleteLater();
    }
    else
        delete nettree;
}
开发者ID:JackOfMostTrades,项目名称:mythtv,代码行数:16,代码来源:nettree.cpp

示例9: RunSearchEditor

void NetSearch::RunSearchEditor()
{
    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();

    SearchEditor *searchedit = new SearchEditor(mainStack, "mythnetsearchedit");

    if (searchedit->Create())
    {
        connect(searchedit, SIGNAL(ItemsChanged()),
                this, SLOT(DoListRefresh()));

        mainStack->AddScreen(searchedit);
    }
    else
        delete searchedit;
}
开发者ID:DragonStalker,项目名称:mythtv,代码行数:16,代码来源:netsearch.cpp

示例10: startPlayback

static void startPlayback(void)
{
    if (!checkStorageGroup() || !checkMusicAvailable())
        return;

    gMusicData->loadMusic();

    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();

    PlaylistView *view = new PlaylistView(mainStack, NULL);

    if (view->Create())
        mainStack->AddScreen(view);
    else
        delete view;
}
开发者ID:bshawk,项目名称:mythtv,代码行数:16,代码来源:main.cpp

示例11: Setup

void TeaTime::Setup()
{
    MythScreenStack *stack = GetScreenStack();
    if (stack == NULL)
    {
        LOG_Tea(LOG_WARNING, "Could not get screenstack."); 
        return;
    }
    TeaTimerSettings *settings = new TeaTimerSettings(stack);
    if (!settings->Create())
    {
        LOG_Tea(LOG_WARNING, "Could not load teatime settings window."); 
        return;
    }
    stack->AddScreen(settings);
}
开发者ID:tobser,项目名称:mythtv,代码行数:16,代码来源:teatimeui.cpp

示例12: SelectImagePopup

void RSSEditPopup::SelectImagePopup(const QString &prefix,
                            QObject &inst, const QString &returnEvent)
{
        MythScreenStack *popupStack =
                GetMythMainWindow()->GetStack("popup stack");

        MythUIFileBrowser *fb = new MythUIFileBrowser(popupStack, prefix);
        fb->SetNameFilter(GetSupportedImageExtensionFilter());
        if (fb->Create())
        {
            fb->SetReturnEvent(&inst, returnEvent);
            popupStack->AddScreen(fb);
        }
        else
            delete fb;
}
开发者ID:Cougar,项目名称:mythtv,代码行数:16,代码来源:rsseditor.cpp

示例13: NewCategoryPopup

void EditMetadataDialog::NewCategoryPopup()
{
    QString message = tr("Enter new category");

    MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");

    MythTextInputDialog *categorydialog =
                                    new MythTextInputDialog(popupStack,message);

    if (categorydialog->Create())
    {
        categorydialog->SetReturnEvent(this, CEID_NEWCATEGORY);
        popupStack->AddScreen(categorydialog);
    }

}
开发者ID:JGunning,项目名称:OpenAOL-TV,代码行数:16,代码来源:editvideometadata.cpp

示例14: RunGames

static int RunGames(void)
{
    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
    GameUI *game = new GameUI(mainStack);

    if (game->Create())
    {
        mainStack->AddScreen(game);
        return 0;
    }
    else
    {
        delete game;
        return -1;
    }
}
开发者ID:lazerdye,项目名称:mythtv,代码行数:16,代码来源:main.cpp

示例15: switchToMetadata

void EditAlbumartDialog::switchToMetadata(void)
{
    MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();

    EditMetadataDialog *editDialog = new EditMetadataDialog(mainStack);

    if (!editDialog->Create())
    {
        delete editDialog;
        return;
    }

    mainStack->AddScreen(editDialog);

    Close();
}
开发者ID:daveyboyc,项目名称:mythtv,代码行数:16,代码来源:editmetadata.cpp


注:本文中的MythScreenStack::AddScreen方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。