Ticket #3753: frontend-generalsettings-cleanup-180707.diff
File frontend-generalsettings-cleanup-180707.diff, 4.9 KB (added by , 17 years ago) |
---|
-
mythtv/programs/mythfrontend/globalsettings.cpp
1523 1534 return gc; 1524 1535 } 1525 1536 1526 1527 1537 static HostComboBox *XineramaMonitorAspectRatio() 1528 1538 { 1529 1539 HostComboBox *gc = new HostComboBox("XineramaMonitorAspectRatio"); … … 2623 2633 return gs; 2624 2634 } 2625 2635 2636 class NetworkControlSettings : public TriggeredConfigurationGroup 2637 { 2638 public: 2639 NetworkControlSettings() : 2640 TriggeredConfigurationGroup(false, false, true, true) 2641 { 2642 setLabel(QObject::tr("Network Control")); 2643 setUseLabel(false); 2644 2645 Setting* controlEnabled = NetworkControlEnabled(); 2646 addChild(controlEnabled); 2647 setTrigger(controlEnabled); 2648 2649 ConfigurationGroup* settings = new VerticalConfigurationGroup(false, true); 2650 settings->addChild(NetworkControlPort()); 2651 addTarget("1", settings); 2652 2653 // show nothing if fillEnabled is off 2654 addTarget("0", new VerticalConfigurationGroup(false, true)); 2655 }; 2656 }; 2657 2626 2658 static HostCheckBox *RealtimePriority() 2627 2659 { 2628 2660 HostCheckBox *gc = new HostCheckBox("RealtimePriority"); … … 3071 3103 Setting* logEnabled = LogEnabled(); 3072 3104 addChild(logEnabled); 3073 3105 setTrigger(logEnabled); 3074 addChild(LogMaxCount());3075 3106 3076 3107 ConfigurationGroup* settings = new VerticalConfigurationGroup(false); 3108 settings->addChild(LogMaxCount()); 3077 3109 settings->addChild(LogPrintLevel()); 3078 3110 settings->addChild(LogCleanEnabled()); 3079 3111 settings->addChild(LogCleanPeriod()); … … (this hunk was shorter than expected) 3537 3569 AudioSettings *audio = new AudioSettings(); 3538 3570 addChild(audio); 3539 3571 3572 VerticalConfigurationGroup* misc = new VerticalConfigurationGroup(false); 3573 misc->setLabel(QObject::tr("Miscellaneous")); 3574 ConfigurationGroup *pin = new HorizontalConfigurationGroup(); 3575 pin->setLabel(QObject::tr("Settings Access")); 3576 pin->addChild(SetupPinCodeRequired()); 3577 pin->addChild(SetupPinCode()); 3578 misc->addChild(pin); 3579 VerticalConfigurationGroup* shutdownSettings = new VerticalConfigurationGroup(true); 3580 shutdownSettings->setLabel(QObject::tr("Shutdown Settings")); 3581 shutdownSettings->addChild(HaltCommand()); 3582 misc->addChild(shutdownSettings); 3583 addChild(misc); 3584 3540 3585 VerticalConfigurationGroup* general = new VerticalConfigurationGroup(false); 3541 general->setLabel(QObject::tr(" General"));3586 general->setLabel(QObject::tr("Control")); 3542 3587 general->addChild(AllowQuitShutdown()); 3543 3588 general->addChild(NoPromptOnExit()); 3544 general->addChild(HaltCommand());3545 3589 general->addChild(LircKeyPressedApp()); 3546 3590 general->addChild(UseArrowAccels()); 3547 general->addChild(NetworkControlEnabled()); 3548 general->addChild(NetworkControlPort()); 3591 general->addChild(UseVirtualKeyboard()); 3592 NetworkControlSettings *controlSettings = new NetworkControlSettings(); 3593 general->addChild(controlSettings); 3549 3594 addChild(general); 3550 3595 3551 3596 general = new VerticalConfigurationGroup(false); 3597 3552 3598 general->setLabel(QObject::tr("General")); 3553 3599 3554 ConfigurationGroup *pin = new HorizontalConfigurationGroup();3555 pin->setLabel(QObject::tr("Settings Access"));3556 pin->addChild(SetupPinCodeRequired());3557 pin->addChild(SetupPinCode());3558 3559 3600 ConfigurationGroup *mediaMon = new VerticalConfigurationGroup(); 3560 3601 mediaMon->setLabel(QObject::tr("Removable Media")); 3561 3602 mediaMon->addChild(EnableMediaMon()); 3562 3603 mediaMon->addChild(IgnoreMedia()); 3563 3604 3564 general->addChild(pin);3565 3605 general->addChild(mediaMon); 3566 3606 general->addChild(EnableXbox()); 3567 3607 addChild(general); … … 3862 3903 screen->addChild(HideMouseCursor()); 3863 3904 screen->addChild(RunInWindow()); 3864 3905 addChild(screen); 3906 3907 VerticalConfigurationGroup* qttheme = new VerticalConfigurationGroup(false); 3908 qttheme->setLabel(QObject::tr("QT / Appearance")); 3909 qttheme->addChild(QtFontSmall()); 3910 qttheme->addChild(QtFontMedium()); 3911 qttheme->addChild(QtFontBig()); 3912 qttheme->addChild(QtFonTweak()); 3913 qttheme->addChild(PlayBoxTransparency()); 3914 qttheme->addChild(PlayBoxShading()); 3915 addChild(qttheme ); 3865 3916 3866 3917 #if defined(USING_XRANDR) || defined(CONFIG_DARWIN) 3867 3918 const vector<DisplayResScreen> scr = GetVideoModes(); … … 3878 3929 dates->addChild(MythTimeFormat()); 3879 3930 addChild(dates); 3880 3931 3881 VerticalConfigurationGroup* qttheme = new VerticalConfigurationGroup(false);3882 qttheme->setLabel(QObject::tr("QT"));3883 qttheme->addChild(QtFontSmall());3884 qttheme->addChild(QtFontMedium());3885 qttheme->addChild(QtFontBig());3886 qttheme->addChild(QtFonTweak());3887 qttheme->addChild(PlayBoxTransparency());3888 qttheme->addChild(PlayBoxShading());3889 qttheme->addChild(UseVirtualKeyboard());3890 addChild(qttheme );3891 3892 3932 addChild(new LcdSettings()); 3893 3933 } 3894 3934