// // ISelectorModel.cs // // Author: // Marius Ungureanu // // Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Collections.Generic; namespace MonoDevelop.Components.MainToolbar { public interface IConfigurationModel { /// /// Gets the original identifier for the configuration. /// /// The original identifier. string OriginalId { get; } /// /// Gest the display string to be used inside a context menu. /// /// The display string. string DisplayString { get; } } public interface IRunConfigurationModel { /// /// Gets the original identifier for the configuration. /// /// The original identifier. string OriginalId { get; } /// /// Gest the display string to be used inside a context menu. /// /// The display string. string DisplayString { get; } } public interface IRuntimeModel { /// /// Gets the items to display as submenu items. /// IEnumerable Children { get; } /// /// Gets whether the menu item is a separator. /// /// true if this instance is separator; otherwise, false. bool IsSeparator { get; } /// /// Gets whether the menu item is indented. /// /// true if this instance is indented; otherwise, false. bool IsIndented { get; } /// /// Gets whether the menu item is notable (bold text). /// /// true if notable; otherwise, false. bool Notable { get; } /// /// Gets the menu item's image. /// /// The image name. string Image { get; } /// /// Gets the menu item's tooltip. /// /// The tooltip text string Tooltip { get; } /// /// Gets the project to which this runtime belongs. /// /// The project. MonoDevelop.Projects.SolutionItem Project { get; } /// /// Gets the runtime combo item model. /// /// The runtime combo item. IRuntimeMutableModel GetMutableModel(); } public interface IRuntimeMutableModel : IDisposable { /// /// Gets the display string to be used inside a context menu. /// /// The display string. string DisplayString { get; } /// /// Gets the display string to be for selected items. /// /// The full display string. string FullDisplayString { get; } /// /// Gets whether the menu item is visible. /// /// true if visible; otherwise, false. bool Visible { get; } /// /// Gets whether the menu item is enabled. /// /// true if enabled; otherwise, false. bool Enabled { get; } } public interface ISearchMenuModel { /// /// Notifies that the item has been activated. /// void NotifyActivated (); /// /// Gets the display string to be used in the menu. /// /// The display string. string DisplayString { get; } } }