This commit is contained in:
parent
b70d92d868
commit
cf4de21fda
|
@ -48,7 +48,7 @@
|
||||||
<enum>QTabWidget::North</enum>
|
<enum>QTabWidget::North</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>5</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabGeneral">
|
<widget class="QWidget" name="tabGeneral">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -477,7 +477,7 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" colspan="3">
|
<item row="2" column="1" colspan="2">
|
||||||
<widget class="QCheckBox" name="chkSvcStart">
|
<widget class="QCheckBox" name="chkSvcStart">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Start UI when a sandboxed process is started</string>
|
<string>Start UI when a sandboxed process is started</string>
|
||||||
|
@ -544,14 +544,14 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="2" colspan="2">
|
<item row="5" column="2">
|
||||||
<widget class="QCheckBox" name="chkAlwaysDefault">
|
<widget class="QCheckBox" name="chkAlwaysDefault">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Always use DefaultBox</string>
|
<string>Always use DefaultBox</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="2" colspan="2">
|
<item row="6" column="2">
|
||||||
<widget class="QCheckBox" name="chkShellMenu2">
|
<widget class="QCheckBox" name="chkShellMenu2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Add 'Run Un-Sandboxed' to the context menu</string>
|
<string>Add 'Run Un-Sandboxed' to the context menu</string>
|
||||||
|
@ -565,7 +565,14 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="0">
|
<item row="8" column="1" colspan="3">
|
||||||
|
<widget class="QCheckBox" name="chkShellMenu4">
|
||||||
|
<property name="text">
|
||||||
|
<string>Add 'Open Path to Certain Sandbox' to context menu</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0">
|
||||||
<widget class="QLabel" name="lblStartMenu">
|
<widget class="QLabel" name="lblStartMenu">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
|
@ -579,14 +586,14 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="1" colspan="3">
|
<item row="10" column="1" colspan="2">
|
||||||
<widget class="QCheckBox" name="chkScanMenu">
|
<widget class="QCheckBox" name="chkScanMenu">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Scan shell folders and offer links in run menu</string>
|
<string>Scan shell folders and offer links in run menu</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="2">
|
<item row="11" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_22">
|
<widget class="QLabel" name="label_22">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Integrate with Host Start Menu</string>
|
<string>Integrate with Host Start Menu</string>
|
||||||
|
@ -599,10 +606,10 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="2">
|
<item row="11" column="2">
|
||||||
<widget class="QComboBox" name="cmbIntegrateMenu"/>
|
<widget class="QComboBox" name="cmbIntegrateMenu"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="0" colspan="2">
|
<item row="12" column="0">
|
||||||
<widget class="QLabel" name="label_29">
|
<widget class="QLabel" name="label_29">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Integrate with Host Desktop</string>
|
<string>Integrate with Host Desktop</string>
|
||||||
|
@ -615,10 +622,10 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="2">
|
<item row="12" column="2">
|
||||||
<widget class="QComboBox" name="cmbIntegrateDesk"/>
|
<widget class="QComboBox" name="cmbIntegrateDesk"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="1">
|
<item row="13" column="1">
|
||||||
<spacer name="verticalSpacer_6">
|
<spacer name="verticalSpacer_6">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
|
@ -631,7 +638,7 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="3">
|
<item row="13" column="3">
|
||||||
<spacer name="horizontalSpacer_2">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
|
|
|
@ -332,6 +332,8 @@ CSettingsWindow::CSettingsWindow(QWidget* parent)
|
||||||
connect(ui.chkAlwaysDefault, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
connect(ui.chkAlwaysDefault, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
connect(ui.chkShellMenu2, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
connect(ui.chkShellMenu2, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
connect(ui.chkShellMenu3, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
connect(ui.chkShellMenu3, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
|
connect(ui.chkShellMenu4, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
|
|
||||||
|
|
||||||
connect(ui.chkScanMenu, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
connect(ui.chkScanMenu, SIGNAL(stateChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
connect(ui.cmbIntegrateMenu, SIGNAL(currentIndexChanged(int)), this, SLOT(OnOptChanged()));
|
connect(ui.cmbIntegrateMenu, SIGNAL(currentIndexChanged(int)), this, SLOT(OnOptChanged()));
|
||||||
|
@ -893,6 +895,7 @@ void CSettingsWindow::LoadSettings()
|
||||||
ui.chkShellMenu->setCheckState(IsContextMenu());
|
ui.chkShellMenu->setCheckState(IsContextMenu());
|
||||||
ui.chkShellMenu2->setChecked(CSbieUtils::HasContextMenu2());
|
ui.chkShellMenu2->setChecked(CSbieUtils::HasContextMenu2());
|
||||||
ui.chkShellMenu3->setChecked(CSbieUtils::HasContextMenu3());
|
ui.chkShellMenu3->setChecked(CSbieUtils::HasContextMenu3());
|
||||||
|
ui.chkShellMenu4->setChecked(CSbieUtils::HasContextMenu4());
|
||||||
ui.chkAlwaysDefault->setChecked(theConf->GetBool("Options/RunInDefaultBox", false));
|
ui.chkAlwaysDefault->setChecked(theConf->GetBool("Options/RunInDefaultBox", false));
|
||||||
|
|
||||||
ui.cmbDPI->setCurrentIndex(theConf->GetInt("Options/DPIScaling", 1));
|
ui.cmbDPI->setCurrentIndex(theConf->GetInt("Options/DPIScaling", 1));
|
||||||
|
@ -1609,6 +1612,15 @@ void CSettingsWindow::SaveSettings()
|
||||||
else
|
else
|
||||||
CSbieUtils::RemoveContextMenu3();
|
CSbieUtils::RemoveContextMenu3();
|
||||||
}
|
}
|
||||||
|
if (ui.chkShellMenu4->isChecked() != CSbieUtils::HasContextMenu4()) {
|
||||||
|
if (ui.chkShellMenu4->isChecked()) {
|
||||||
|
CSbieUtils::AddContextMenu4(QApplication::applicationDirPath().replace("/", "\\") + "\\SandMan.exe",
|
||||||
|
tr("&Open Path to Certain Sandbox"),
|
||||||
|
QApplication::applicationDirPath().replace("/", "\\") + "\\Start.exe");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
CSbieUtils::RemoveContextMenu4();
|
||||||
|
}
|
||||||
theConf->SetValue("Options/RunInDefaultBox", ui.chkAlwaysDefault->isChecked());
|
theConf->SetValue("Options/RunInDefaultBox", ui.chkAlwaysDefault->isChecked());
|
||||||
|
|
||||||
theConf->SetValue("Options/CheckSilentMode", ui.chkSilentMode->isChecked());
|
theConf->SetValue("Options/CheckSilentMode", ui.chkSilentMode->isChecked());
|
||||||
|
|
Loading…
Reference in New Issue