From 5eacf8007cc94d9f3120b3b0f109ac421c23a990 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 3 Mar 2024 14:38:15 +0800 Subject: [PATCH] Complete the UI. --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 65 ++++++++++--------- .../SandMan/Windows/OptionsAdvanced.cpp | 1 + .../SandMan/Windows/OptionsGeneral.cpp | 3 + 3 files changed, 40 insertions(+), 29 deletions(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index a67f1bf9..583a6933 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -765,7 +765,21 @@ - + + + + Open Windows Credentials Store (user mode) + + + + + + + Block read access to the clipboard + + + + @@ -784,35 +798,35 @@ - - - - Open Windows Credentials Store (user mode) - - - - - - - Block read access to the clipboard - - - - + Allow to read memory of unsandboxed processes (not recommended) - + Issue message 2111 when a process access is denied - + + + + Prevents an in-sandbox process from performing cross-sandbox window image manipulation. + + + + + + + (for example, screenshots) + + + + Qt::Vertical @@ -825,21 +839,14 @@ - - + + - Prevents an in-sandbox process from performing cross-sandbox window image manipulation. + Prevents processes in the sandbox from interfering with power operation - - - - (for example, screenshots) - - - - + Qt::Horizontal diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 0fb4278f..3bfd5316 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -522,6 +522,7 @@ void COptionsWindow::UpdateBoxIsolation() ui.chkVmRead->setEnabled(!ui.chkNoSecurityIsolation->isChecked()); ui.chkBlockCapture->setEnabled(!ui.chkNoSecurityIsolation->isChecked()); + ui.chkProtectPower->setEnabled(!ui.chkNoSecurityIsolation->isChecked()); ui.chkCloseForBox->setEnabled(!ui.chkNoSecurityIsolation->isChecked()); ui.chkNoOpenForBox->setEnabled(!ui.chkNoSecurityIsolation->isChecked()); diff --git a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp index 9c0b5b03..c88ae557 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp @@ -167,6 +167,7 @@ void COptionsWindow::CreateGeneral() connect(ui.chkOpenCredentials, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkCloseClipBoard, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); + connect(ui.chkProtectPower, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkVmRead, SIGNAL(clicked(bool)), this, SLOT(OnVmRead())); connect(ui.chkVmReadNotify, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); //connect(ui.chkOpenSmartCard, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); @@ -284,6 +285,7 @@ void COptionsWindow::LoadGeneral() ui.chkOpenCredentials->setChecked(!ui.chkOpenCredentials->isEnabled() || m_pBox->GetBool("OpenCredentials", false)); ui.chkCloseClipBoard->setChecked(!m_pBox->GetBool("OpenClipboard", true)); ui.chkBlockCapture->setChecked(m_pBox->GetBool("IsBlockCapture", false)); + ui.chkProtectPower->setChecked(m_pBox->GetBool("BlockInterferePower", false)); ui.chkVmReadNotify->setChecked(m_pBox->GetBool("NotifyProcessAccessDenied", false)); //ui.chkOpenSmartCard->setChecked(m_pBox->GetBool("OpenSmartCard", true)); //ui.chkOpenBluetooth->setChecked(m_pBox->GetBool("OpenBluetooth", false)); @@ -419,6 +421,7 @@ void COptionsWindow::SaveGeneral() WriteAdvancedCheck(ui.chkOpenCredentials, "OpenCredentials", "y", ""); WriteAdvancedCheck(ui.chkCloseClipBoard, "OpenClipboard", "n", ""); WriteAdvancedCheck(ui.chkBlockCapture, "IsBlockCapture", "y", "n"); + WriteAdvancedCheck(ui.chkProtectPower, "BlockInterferePower", "y", "n"); WriteAdvancedCheck(ui.chkVmReadNotify, "NotifyProcessAccessDenied", "y", ""); //WriteAdvancedCheck(ui.chkOpenSmartCard, "OpenSmartCard", "", "n"); //WriteAdvancedCheck(ui.chkOpenBluetooth, "OpenBluetooth", "y", "");