コード例 #1
0
ファイル: archivesettings.cpp プロジェクト: camdbug/mythtv
ArchiveSettings::ArchiveSettings()
{
    VerticalConfigurationGroup* vcg1 = new VerticalConfigurationGroup(false);
    vcg1->setLabel(QObject::tr("MythArchive Settings"));
    vcg1->addChild(MythArchiveTempDir());
    vcg1->addChild(MythArchiveShareDir());
    vcg1->addChild(PALNTSC());
    vcg1->addChild(MythArchiveFileFilter());
    vcg1->addChild(MythArchiveDVDLocation());
    vcg1->addChild(MythArchiveDriveSpeed());
    vcg1->addChild(MythArchiveDVDPlayerCmd());
    addChild(vcg1);

    VerticalConfigurationGroup* vcg2 = new VerticalConfigurationGroup(false);
    vcg2->setLabel(QObject::tr("MythArchive Settings (2)"));
    vcg2->addChild(MythArchiveCopyRemoteFiles());
    vcg2->addChild(MythArchiveAlwaysUseMythTranscode());
    vcg2->addChild(MythArchiveUseProjectX());
    vcg2->addChild(MythArchiveAddSubtitles());
    vcg2->addChild(MythArchiveUseFIFO());
    vcg2->addChild(MythArchiveDefaultEncProfile());
    addChild(vcg2);

    VerticalConfigurationGroup* vcg3 = new VerticalConfigurationGroup(false);
    vcg3->setLabel(QObject::tr("DVD Menu Settings"));
    vcg3->addChild(MainMenuAspectRatio());
    vcg3->addChild(ChapterMenuAspectRatio());
    vcg3->addChild(MythArchiveDateFormat());
    vcg3->addChild(MythArchiveTimeFormat());
    addChild(vcg3);

    VerticalConfigurationGroup* vcg4 = new VerticalConfigurationGroup(false);
    vcg4->setLabel(QObject::tr("MythArchive External Commands (1)"));
    vcg4->addChild(MythArchiveMplexCmd());
    vcg4->addChild(MythArchiveDvdauthorCmd());
    vcg4->addChild(MythArchiveSpumuxCmd());
    vcg4->addChild(MythArchiveMpeg2encCmd());
    addChild(vcg4);

    VerticalConfigurationGroup* vcg5 = new VerticalConfigurationGroup(false);
    vcg5->setLabel(QObject::tr("MythArchive External Commands (2)"));
    vcg5->addChild(MythArchiveMkisofsCmd());
    vcg5->addChild(MythArchiveGrowisofsCmd());
    vcg5->addChild(MythArchiveM2VRequantiserCmd());
    vcg5->addChild(MythArchiveJpeg2yuvCmd());
    vcg5->addChild(MythArchiveProjectXCmd());
    addChild(vcg5);
}
コード例 #2
0
ArchiveSettings::ArchiveSettings()
{
    setLabel(ArchiveSettings::tr("MythArchive Settings"));
    addChild(MythArchiveTempDir());
    addChild(MythArchiveShareDir());
    addChild(PALNTSC());
    addChild(MythArchiveFileFilter());
    addChild(MythArchiveDVDLocation());
    addChild(MythArchiveDriveSpeed());
    addChild(MythArchiveDVDPlayerCmd());
    addChild(MythArchiveCopyRemoteFiles());
    addChild(MythArchiveAlwaysUseMythTranscode());
    addChild(MythArchiveUseProjectX());
    addChild(MythArchiveAddSubtitles());
    addChild(MythArchiveUseFIFO());
    addChild(MythArchiveDefaultEncProfile());

    GroupSetting* DVDSettings = new GroupSetting();
    DVDSettings->setLabel(ArchiveSettings::tr("DVD Menu Settings"));
    DVDSettings->addChild(MainMenuAspectRatio());
    DVDSettings->addChild(ChapterMenuAspectRatio());
    DVDSettings->addChild(MythArchiveDateFormat());
    DVDSettings->addChild(MythArchiveTimeFormat());
    addChild(DVDSettings);

    GroupSetting* externalCmdSettings = new GroupSetting();
    externalCmdSettings->setLabel(ArchiveSettings::tr("MythArchive External Commands"));
    externalCmdSettings->addChild(MythArchiveMplexCmd());
    externalCmdSettings->addChild(MythArchiveDvdauthorCmd());
    externalCmdSettings->addChild(MythArchiveSpumuxCmd());
    externalCmdSettings->addChild(MythArchiveMpeg2encCmd());
    externalCmdSettings->addChild(MythArchiveMkisofsCmd());
    externalCmdSettings->addChild(MythArchiveGrowisofsCmd());
    externalCmdSettings->addChild(MythArchiveM2VRequantiserCmd());
    externalCmdSettings->addChild(MythArchiveJpeg2yuvCmd());
    externalCmdSettings->addChild(MythArchiveProjectXCmd());
    addChild(externalCmdSettings);
}