/* * Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET) * * 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 SafeExamBrowser.I18n.Contracts; using SafeExamBrowser.UserInterface.Contracts.Shell.Events; namespace SafeExamBrowser.UserInterface.Contracts.Shell { /// /// The action center is a user interface element via which the user can access and control various aspects of SEB. /// public interface IActionCenter { /// /// Controls the visibility of the clock. /// bool ShowClock { set; } /// /// Event fired when the user clicked the quit button. /// event QuitButtonClickedEventHandler QuitButtonClicked; /// /// Adds the given application control to the action center. /// void AddApplicationControl(IApplicationControl control, bool atFirstPosition = false); /// /// Adds the given notification control to the action center. /// void AddNotificationControl(INotificationControl control); /// /// Adds the given system control to the action center. /// void AddSystemControl(ISystemControl control); /// /// Closes the action center. /// void Close(); /// /// Makes the action center invisible. /// void Hide(); /// /// Moves the action center to the left of the screen and resizes it accordingly. /// void InitializeBounds(); /// /// Initializes all text elements in the action center. /// void InitializeText(IText text); /// /// Registers the specified activator to control the visibility of the action center. /// void Register(IActionCenterActivator activator); /// /// Makes the action center visible. /// void Show(); } }