Code quality changes [skip ci]

This commit is contained in:
Robin 2016-08-16 10:37:55 +02:00
commit 798ca503a5
108 changed files with 1981 additions and 2258 deletions

View file

@ -21,7 +21,6 @@
using Greenshot.Core;
using Greenshot.Memento;
using Greenshot.Plugin.Drawing;
using GreenshotPlugin.Interfaces.Drawing;
using System;
using System.Drawing;
using System.IO;
@ -207,6 +206,7 @@ namespace Greenshot.Plugin
/// </summary>
/// <param name="container">IDrawableContainer</param>
/// <param name="invalidate">false to skip invalidation</param>
/// <param name="generateEvents">false to skip event generation</param>
void SelectElement(IDrawableContainer container, bool invalidate = true, bool generateEvents = true);
/// <summary>
/// Is the supplied container "on" the surface?

View file

@ -139,7 +139,7 @@ namespace Greenshot.Plugin {
/// Return a menu item
/// </summary>
/// <param name="addDynamics">Resolve the dynamic destinations too?</param>
/// <param name="ContextMenuStrip">The menu for which the item is created</param>
/// <param name="menu">The menu for which the item is created</param>
/// <param name="destinationClickHandler">Handler which is called when clicked</param>
/// <returns>ToolStripMenuItem</returns>
ToolStripMenuItem GetMenuItem(bool addDynamics, ContextMenuStrip menu, EventHandler destinationClickHandler);

View file

@ -30,7 +30,7 @@ using Greenshot.Core;
namespace Greenshot.Plugin {
[Serializable]
[AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = false)]
sealed public class PluginAttribute : Attribute, IComparable {
public sealed class PluginAttribute : Attribute, IComparable {
public string Name {
get;
set;
@ -173,10 +173,13 @@ namespace Greenshot.Plugin {
NotifyIcon NotifyIcon {
get;
}
/// <summary>
/// Create a Thumbnail
/// </summary>
/// <param name="image">Image of which we need a Thumbnail</param>
/// <param name="width"></param>
/// <param name="height"></param>
/// <returns>Image with Thumbnail</returns>
Image GetThumbnail(Image image, int width, int height);
@ -191,14 +194,14 @@ namespace Greenshot.Plugin {
/// <summary>
/// Get a destination by it's designation
/// </summary>
/// <param name="destination"></param>
/// <param name="designation"></param>
/// <returns>IDestination</returns>
IDestination GetDestination(string designation);
/// <summary>
/// Get a list of all available destinations
/// </summary>
/// <returns>List<IDestination></returns>
/// <returns>List of IDestination</returns>
List<IDestination> GetAllDestinations();
/// <summary>