Restore SEBPatch
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace SafeExamBrowser.Settings.UserInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all settings for the action center.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ActionCenterSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines whether the action center itself is enabled and visible to the user.
|
||||
/// </summary>
|
||||
public bool EnableActionCenter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the about window is accessible via the action center.
|
||||
/// </summary>
|
||||
public bool ShowApplicationInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the application log is accessible via the action center.
|
||||
/// </summary>
|
||||
public bool ShowApplicationLog { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for audio is accessible via the action center.
|
||||
/// </summary>
|
||||
public bool ShowAudio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the current date and time will be rendered in the action center.
|
||||
/// </summary>
|
||||
public bool ShowClock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for the keyboard layout is accessible via the action center.
|
||||
/// </summary>
|
||||
public bool ShowKeyboardLayout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for the network is accessible via the action center.
|
||||
/// </summary>
|
||||
public bool ShowNetwork { get; set; }
|
||||
}
|
||||
}
|
24
SafeExamBrowser.Settings/UserInterface/LockScreenSettings.cs
Normal file
24
SafeExamBrowser.Settings/UserInterface/LockScreenSettings.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace SafeExamBrowser.Settings.UserInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all settings for the lock screen.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LockScreenSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// The background color as hexadecimal color code.
|
||||
/// </summary>
|
||||
public string BackgroundColor { get; set; }
|
||||
}
|
||||
}
|
54
SafeExamBrowser.Settings/UserInterface/TaskbarSettings.cs
Normal file
54
SafeExamBrowser.Settings/UserInterface/TaskbarSettings.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace SafeExamBrowser.Settings.UserInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all settings for the taskbar.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TaskbarSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines whether the taskbar itself is enabled and visible to the user.
|
||||
/// </summary>
|
||||
public bool EnableTaskbar { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the about window is accessible via the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowApplicationInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the application log is accessible via the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowApplicationLog { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for audio is accessible via the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowAudio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the current date and time will be rendered in the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowClock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for the keyboard layout is accessible via the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowKeyboardLayout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the system control for the network is accessible via the taskbar.
|
||||
/// </summary>
|
||||
public bool ShowNetwork { get; set; }
|
||||
}
|
||||
}
|
26
SafeExamBrowser.Settings/UserInterface/UserInterfaceMode.cs
Normal file
26
SafeExamBrowser.Settings/UserInterface/UserInterfaceMode.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
namespace SafeExamBrowser.Settings.UserInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all possible look & feel options for the application.
|
||||
/// </summary>
|
||||
public enum UserInterfaceMode
|
||||
{
|
||||
/// <summary>
|
||||
/// In this mode, the user interface is optimized for desktop computers with keyboard and mouse.
|
||||
/// </summary>
|
||||
Desktop,
|
||||
|
||||
/// <summary>
|
||||
/// In this mode, the user interface is optimized for mobile computers with touch capability.
|
||||
/// </summary>
|
||||
Mobile
|
||||
}
|
||||
}
|
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (c) 2024 ETH Zürich, IT Services
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
using System;
|
||||
|
||||
namespace SafeExamBrowser.Settings.UserInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines all settings for the user interface.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class UserInterfaceSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// All settings related to the action center.
|
||||
/// </summary>
|
||||
public ActionCenterSettings ActionCenter { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// All settings related to the lock screen.
|
||||
/// </summary>
|
||||
public LockScreenSettings LockScreen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The mode which determines the look & feel of the user interface.
|
||||
/// </summary>
|
||||
public UserInterfaceMode Mode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// All taskbar-related settings.
|
||||
/// </summary>
|
||||
public TaskbarSettings Taskbar { get; set; }
|
||||
|
||||
public UserInterfaceSettings()
|
||||
{
|
||||
ActionCenter = new ActionCenterSettings();
|
||||
LockScreen = new LockScreenSettings();
|
||||
Taskbar = new TaskbarSettings();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user