2
// StatusBarContextBase.cs
5
// Lluis Sanchez <lluis@xamarin.com>
7
// Copyright (c) 2012 Xamarin Inc.
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
10
// of this software and associated documentation files (the "Software"), to deal
11
// in the Software without restriction, including without limitation the rights
12
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
// copies of the Software, and to permit persons to whom the Software is
14
// furnished to do so, subject to the following conditions:
16
// The above copyright notice and this permission notice shall be included in
17
// all copies or substantial portions of the Software.
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
using MonoDevelop.Core;
31
using MonoDevelop.Ide.CodeCompletion;
32
using MonoDevelop.Ide.Gui;
33
using System.Collections.Generic;
34
using MonoDevelop.Components.Docking;
35
using MonoDevelop.Ide.Gui.Dialogs;
36
using MonoDevelop.Components;
37
using MonoDevelop.Components.MainToolbar;
39
using StockIcons = MonoDevelop.Ide.Gui.Stock;
41
namespace MonoDevelop.Ide
45
/// The MonoDevelop status bar.
48
public interface StatusBarContextBase: IDisposable
51
/// Shows a message with an error icon
53
void ShowError (string error);
56
/// Shows a message with a warning icon
58
void ShowWarning (string warning);
61
/// Shows a message in the status bar
63
void ShowMessage (string message);
66
/// Shows a message in the status bar
68
void ShowMessage (string message, bool isMarkup);
71
/// Shows a message in the status bar
73
void ShowMessage (IconId image, string message);
76
/// Shows a progress bar, with the provided label next to it
78
void BeginProgress (string name);
81
/// Shows a progress bar, with the provided label and icon next to it
83
void BeginProgress (IconId image, string name);
86
/// Sets the progress fraction. It can only be used after calling BeginProgress.
88
void SetProgressFraction (double work);
91
/// Hides the progress bar shown with BeginProgress
96
/// Pulses the progress bar shown with BeginProgress
101
/// When set, the status bar progress will be automatically pulsed at short intervals
103
bool AutoPulse { get; set; }