summaryrefslogtreecommitdiffstats
path: root/abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:51 (GMT)
commit23b63734b90bb8c37d88673383002cbd210cdc99 (patch)
tree8179ce273843f1527fc515c1fd59df75d0d9c77d /abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp
parent9c7a9f742bbe8a69bdf50335e8218a45c3f28721 (diff)
downloadlinhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.zip
linhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.tar.gz
linhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.tar.bz2
mythinstall: pull in MythVantage src to LH tree.
more cleanup to many modules. access can now disable remotes and screensaver
Diffstat (limited to 'abs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp')
-rwxr-xr-xabs/core/mythinstall/MythVantage-app/mythinstall/supplemental.cpp92
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);
+
+ }