diff options
Diffstat (limited to 'abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp')
-rwxr-xr-x | abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp b/abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp new file mode 100755 index 0000000..26d83ee --- /dev/null +++ b/abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp @@ -0,0 +1,92 @@ +#include <unistd.h> +#include "misc_settings.h" +#include "mv_common.h" +//Added by qt3to4: +#include <Q3TextStream> +#include "mythuihelper.h" + +#include "supplemental.h" + + +using namespace std; + +extern HostParms hostparm; +static HostComboBox *HostWindowManager() +{ + HostComboBox *gc = new HostComboBox("HostWindowManager"); + gc->setLabel(QObject::tr("WindowManger")); + gc->addSelection("enlightenment"); + gc->addSelection("fluxbox"); + gc->addSelection("windowmaker"); + gc->setValue("enlightenment"); + gc->setHelpText(QObject::tr("Windowmanager to use. Most people will want to use the default of enlightenment")); + return gc; +} + +WindowManager_settings::WindowManager_settings(): + TriggeredConfigurationGroup(false, false, true, true,false, false, true, true) { + Setting* trigger = HostWindowManager() ; + addChild(trigger); + setTrigger(trigger); + + QString systemtype = gCoreContext->GetSetting("HostSystemType"); + QString runfe = gCoreContext->GetSetting("HostRunFrontend"); + + + + HostSupplemental = new HostCheckBox("HOSTSupplemental"); + HostSupplemental->setLabel("Install supplemental package"); + HostSupplemental->setHelpText(QObject::tr("Checking this will enable xymon and an alternate local website .")); + HostSupplemental->setValue(true); + + + HostEnhancedWMStyle = new HostCheckBox("HostEnhancedWMStyle"); + HostEnhancedWMStyle->setLabel(QObject::tr("Use Enhanced Sytle")); + HostEnhancedWMStyle->setHelpText(QObject::tr("Enhanced will change the startup behaviour of Mythtv and messages. Checking enhanced will also install supplemental")); + HostEnhancedWMStyle->setValue(true); + + + + connect(HostEnhancedWMStyle, SIGNAL(valueChanged(bool)), + this, SLOT(change_supplemental(bool))); + + + ConfigurationGroup* blanksettings = new GridConfigurationGroup(2,true); + ConfigurationGroup* settings = new GridConfigurationGroup(2,true); + settings->addChild(HostEnhancedWMStyle); +// if ( systemtype == "Master_backend" || systemtype == "Standalone" ) +// settings->addChild(HostSupplemental); + + addTarget("enlightenment", settings); + addTarget("windowmaker", settings ); + addTarget("fluxbox", settings); + }; +//}; + +void WindowManager_settings::change_supplemental(bool newvalue) +{ + if ( newvalue == true ) + HostSupplemental->setValue(true); +} + + +Supplementalhostsettings::Supplementalhostsettings(): + VerticalConfigurationGroup(false,false,false,false) + { + WindowManager_settings *wmsettings = new WindowManager_settings(); + QString systemtype = gCoreContext->GetSetting("HostSystemType"); + QString runfe = gCoreContext->GetSetting("HostRunFrontend"); + if (systemtype == "Standalone" || runfe == "1" ) + addChild(wmsettings); + +// HostComboBox *HostAudiotype; +// HostAudiotype = new HostComboBox("HostAudiotype",false); +// HostAudiotype->setLabel(QObject::tr("Sound card driver")); +// HostAudiotype->addSelection("ALSA"); +// HostAudiotype->addSelection("OSS"); +// HostAudiotype->addSelection("tinker"); +// +// HostAudiotype->setHelpText(QObject::tr("Select the sound driver set to use (OSS or ALSA)." ) ); +// addChild(HostAudiotype); + + } |