// // StatusBarContextBase.cs // // Author: // Lluis Sanchez // // Copyright (c) 2012 Xamarin Inc. // // 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 MonoDevelop.Core; using Gtk; using MonoDevelop.Ide.CodeCompletion; using MonoDevelop.Ide.Gui; using System.Collections.Generic; using MonoDevelop.Components.Docking; using MonoDevelop.Ide.Gui.Dialogs; using MonoDevelop.Components; using MonoDevelop.Components.MainToolbar; using StockIcons = MonoDevelop.Ide.Gui.Stock; namespace MonoDevelop.Ide { /// /// The MonoDevelop status bar. /// public interface StatusBarContextBase: IDisposable { /// /// Shows a message with an error icon /// void ShowError (string error); /// /// Shows a message with a warning icon /// void ShowWarning (string warning); /// /// Shows a message in the status bar /// void ShowMessage (string message); /// /// Shows a message in the status bar /// void ShowMessage (string message, bool isMarkup); /// /// Shows a message in the status bar /// void ShowMessage (IconId image, string message); /// /// Shows a message in the status bar /// void ShowMessage (IconId image, string message, bool isMarkup); /// /// Shows a progress bar, with the provided label next to it /// void BeginProgress (string name); /// /// Shows a progress bar, with the provided label and icon next to it /// void BeginProgress (IconId image, string name); /// /// Sets the progress fraction. It can only be used after calling BeginProgress. /// void SetProgressFraction (double work); /// /// Hides the progress bar shown with BeginProgress /// void EndProgress (); /// /// Pulses the progress bar shown with BeginProgress /// void Pulse (); /// /// When set, the status bar progress will be automatically pulsed at short intervals /// bool AutoPulse { get; set; } } }