A bit of refactoring to be able to find some issue...

This commit is contained in:
Krom, Robertus 2020-02-18 16:32:51 +01:00
commit 42cd533862
308 changed files with 2705 additions and 2454 deletions

View file

@ -18,11 +18,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
namespace Greenshot.Plugin {
namespace GreenshotPlugin.Interfaces {
/// <summary>
/// The capture mode for Greenshot
/// </summary>

View file

@ -23,7 +23,7 @@ using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace Greenshot.Plugin.Drawing.Adorners
namespace GreenshotPlugin.Interfaces.Drawing.Adorners
{
public interface IAdorner
{

View file

@ -18,17 +18,17 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
using GreenshotPlugin.Interfaces.Drawing;
using Greenshot.Plugin.Drawing.Adorners;
using GreenshotPlugin.Interfaces.Drawing.Adorners;
namespace Greenshot.Plugin.Drawing
namespace GreenshotPlugin.Interfaces.Drawing
{
public enum RenderMode { EDIT, EXPORT };
public enum EditStatus { UNDRAWN, DRAWING, MOVING, RESIZING, IDLE };

View file

@ -18,9 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
namespace Greenshot.Memento {
namespace GreenshotPlugin.Interfaces.Drawing {
/// <summary>
/// Description of IMemento.
/// </summary>

View file

@ -22,7 +22,7 @@
using System.Drawing;
using System.Windows.Forms;
namespace Greenshot.Plugin {
namespace GreenshotPlugin.Interfaces.Forms {
/// <summary>
/// The IImageEditor is the Interface that the Greenshot ImageEditor has to implement
/// </summary>

View file

@ -19,15 +19,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using Greenshot.Memento;
using Greenshot.Plugin.Drawing;
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using GreenshotPlugin.Effects;
using GreenshotPlugin.Interfaces.Drawing;
namespace Greenshot.Plugin
namespace GreenshotPlugin.Interfaces
{
/// <summary>
/// Alignment Enums for possitioning

View file

@ -18,12 +18,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Greenshot.Plugin {
namespace GreenshotPlugin.Interfaces {
public class ExportInformation {
public ExportInformation(string destinationDesignation, string destinationDescription) {
DestinationDesignation = destinationDesignation;

View file

@ -19,7 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using Greenshot.Plugin;
using System.Collections.Generic;
using System.Drawing;
using System.Threading.Tasks;

View file

@ -18,9 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
namespace Greenshot.Plugin {
namespace GreenshotPlugin.Interfaces {
/// <summary>
/// Description of IProcessor.
/// </summary>

View file

@ -1,4 +1,4 @@
namespace Greenshot.Plugin
namespace GreenshotPlugin.Interfaces.Plugin
{
public delegate void HotKeyHandler();
}

View file

@ -1,6 +1,6 @@
using System.Drawing;
namespace Greenshot.Plugin
namespace GreenshotPlugin.Interfaces.Plugin
{
/// <summary>
/// This interface is the GreenshotPluginHost, that which "Hosts" the plugin.

View file

@ -1,6 +1,6 @@
using System;
namespace Greenshot.Plugin
namespace GreenshotPlugin.Interfaces.Plugin
{
/// <summary>
/// This defines the plugin

View file

@ -21,7 +21,7 @@
using System;
namespace Greenshot.Plugin {
namespace GreenshotPlugin.Interfaces.Plugin {
[Serializable]
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class PluginAttribute : Attribute, IComparable {

View file

@ -1,9 +1,9 @@
using System.Collections.Generic;
using Greenshot.IniFile;
using GreenshotPlugin.Core;
using GreenshotPlugin.Effects;
using GreenshotPlugin.IniFile;
namespace Greenshot.Plugin
namespace GreenshotPlugin.Interfaces.Plugin
{
public class SurfaceOutputSettings {
private static readonly CoreConfiguration CoreConfig = IniConfig.GetIniSection<CoreConfiguration>();