1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#include <unistd.h>
#include "misc_settings.h"
#include "mv_common.h"
#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);
}
|