From 019b4821953498f809734d0adfa20a9e49178531 Mon Sep 17 00:00:00 2001 From: JKlingen Date: Tue, 27 Jul 2010 20:18:52 +0000 Subject: [PATCH] refactoring: GreenshotCore/GreenshotEditor git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@731 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Forms/MainForm.cs | 3 +- Greenshot/Greenshot.csproj | 129 ------------------ Greenshot/Greenshot.sln | 6 - .../Configuration/AppConfig.cs | 0 .../Configuration/Language.cs | 0 .../Configuration/LanguageKeys.cs | 0 .../Configuration/RuntimeConfig.cs | 0 .../Forms/AboutForm.Designer.cs | 0 .../Forms/AboutForm.cs | 0 .../Forms/AboutForm.resx | 0 .../Forms}/HelpBrowserForm.Designer.cs | 2 +- .../Forms}/HelpBrowserForm.cs | 2 +- .../Forms}/HelpBrowserForm.resx | 0 .../Forms/JpegQualityDialog.Designer.cs | 0 .../Forms/JpegQualityDialog.cs | 0 .../Forms/JpegQualityDialog.resx | 0 .../Forms/PrintOptionsDialog.Designer.cs | 0 .../Forms/PrintOptionsDialog.cs | 0 .../Forms/PrintOptionsDialog.resx | 0 .../Forms/SaveImageFileDialog.cs | 0 .../Forms/SettingsForm.Designer.cs | 0 .../Forms/SettingsForm.cs | 2 +- .../Forms/SettingsForm.resx | 0 GreenshotCore/GreenshotCore.csproj | 62 +++++++++ .../Helpers/ClipboardHelper.cs | 0 .../Helpers/CopyData.cs | 0 .../Helpers/EnvironmentInfo.cs | 0 .../Helpers/FilenameHelper.cs | 0 .../Helpers/HotkeyHelper.cs | 0 .../Helpers/ImageHelper.cs | 0 .../Helpers/ImageOutput.cs | 0 .../Helpers/MailHelper.cs | 0 .../Helpers/Objects.cs | 0 .../Helpers/PluginHelper.cs | 7 +- .../Helpers/PrintHelper.cs | 0 .../Helpers/PropertyItemProvider.cs | 0 .../Helpers/PropertyItemProvider.resx | 0 .../Helpers/ScaleHelper.cs | 0 .../Helpers/StartupHelper.cs | 0 .../Helpers/WindowCapture.cs | 0 .../Helpers/WindowsHelper.cs | 0 .../Controls/BindableToolStripButton.cs | 0 .../Controls/BindableToolStripComboBox.cs | 0 .../BindableToolStripDropDownButton.cs | 0 .../Controls/ColorButton.cs | 0 .../Controls/FontFamilyComboBox.cs | 0 .../Controls/ToolStripColorButton.cs | 0 .../Controls/ToolStripNumericUpDown.cs | 0 .../Drawing/ArrowContainer.cs | 1 - .../Drawing/BitmapBuffer.cs | 0 .../Drawing/BitmapContainer.cs | 2 - .../Drawing/CropContainer.cs | 2 +- .../Drawing/CursorContainer.cs | 2 - .../Drawing/DrawableContainer.cs | 2 - .../Drawing/DrawableContainerList.cs | 0 .../Drawing/EllipseContainer.cs | 1 - .../Drawing/Fields/AbstractFieldHolder.cs | 1 - .../Fields/AbstractFieldHolderWithChildren.cs | 1 - .../Binding/AbstractBindingConverter.cs | 0 .../Fields/Binding/BidirectionalBinding.cs | 0 .../DecimalDoublePercentageConverter.cs | 0 .../Fields/Binding/DecimalFloatConverter.cs | 0 .../Fields/Binding/DecimalIntConverter.cs | 0 .../Fields/Binding/IBindingConverter.cs | 0 .../Fields/Binding/IBindingValidator.cs | 0 .../Fields/Binding/NotNullValidator.cs | 0 .../Drawing/Fields/Field.cs | 0 .../Drawing/Fields/FieldAggregator.cs | 2 +- .../Drawing/Fields/FieldFactory.cs | 1 + .../Drawing/FilterContainer.cs | 0 .../Drawing/Filters/AbstractFilter.cs | 0 .../Drawing/Filters/BlurFilter.cs | 1 - .../Drawing/Filters/BrightnessFilter.cs | 1 - .../Drawing/Filters/FastSmoothFilter.cs | 0 .../Drawing/Filters/GrayscaleFilter.cs | 0 .../Drawing/Filters/HighlightFilter.cs | 1 - .../Drawing/Filters/IFilter.cs | 0 .../Drawing/Filters/MagnifierFilter.cs | 1 - .../Drawing/Filters/PixelizationFilter.cs | 1 - .../Drawing/HighlightContainer.cs | 0 .../Drawing/HtmlContainer.cs | 1 - .../Drawing/IconContainer.cs | 2 - .../Drawing/LineContainer.cs | 1 - .../Drawing/MetafileContainer.cs | 2 - .../Drawing/ObfuscateContainer.cs | 0 .../Drawing/RectangleContainer.cs | 1 - .../Drawing/RoundedRectangle.cs | 0 .../Drawing/Surface.cs | 0 .../Drawing/TextContainer.cs | 0 .../Drawing/UrlContainer.cs | 1 - .../Forms/ColorDialog.Designer.cs | 0 .../Forms/ColorDialog.cs | 0 .../Forms/ColorDialog.resx | 0 .../Forms/ImageEditorForm.Designer.cs | 0 .../Forms/ImageEditorForm.cs | 2 +- .../Forms/ImageEditorForm.resx | 0 GreenshotEditor/GreenshotEditor.csproj | 94 ++++++++++++- .../Helpers/Colors.cs | 0 .../Helpers/DrawingHelper.cs | 0 .../Helpers/FormHelper.cs | 0 .../Helpers/GuiRectangle.cs | 0 .../Helpers/HtmlFragment.cs | 0 .../Helpers/ToolStripItemEndisabler.cs | 0 .../Helpers/WebToBitmap.cs | 0 104 files changed, 167 insertions(+), 170 deletions(-) rename {Greenshot => GreenshotCore}/Configuration/AppConfig.cs (100%) rename {Greenshot => GreenshotCore}/Configuration/Language.cs (100%) rename {Greenshot => GreenshotCore}/Configuration/LanguageKeys.cs (100%) rename {Greenshot => GreenshotCore}/Configuration/RuntimeConfig.cs (100%) rename {Greenshot => GreenshotCore}/Forms/AboutForm.Designer.cs (100%) rename {Greenshot => GreenshotCore}/Forms/AboutForm.cs (100%) rename {Greenshot => GreenshotCore}/Forms/AboutForm.resx (100%) rename {Greenshot/Help => GreenshotCore/Forms}/HelpBrowserForm.Designer.cs (99%) rename {Greenshot/Help => GreenshotCore/Forms}/HelpBrowserForm.cs (98%) rename {Greenshot/Help => GreenshotCore/Forms}/HelpBrowserForm.resx (100%) rename {Greenshot => GreenshotCore}/Forms/JpegQualityDialog.Designer.cs (100%) rename {Greenshot => GreenshotCore}/Forms/JpegQualityDialog.cs (100%) rename {Greenshot => GreenshotCore}/Forms/JpegQualityDialog.resx (100%) rename {Greenshot => GreenshotCore}/Forms/PrintOptionsDialog.Designer.cs (100%) rename {Greenshot => GreenshotCore}/Forms/PrintOptionsDialog.cs (100%) rename {Greenshot => GreenshotCore}/Forms/PrintOptionsDialog.resx (100%) rename {Greenshot => GreenshotCore}/Forms/SaveImageFileDialog.cs (100%) rename {Greenshot => GreenshotCore}/Forms/SettingsForm.Designer.cs (100%) rename {Greenshot => GreenshotCore}/Forms/SettingsForm.cs (99%) rename {Greenshot => GreenshotCore}/Forms/SettingsForm.resx (100%) rename {Greenshot => GreenshotCore}/Helpers/ClipboardHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/CopyData.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/EnvironmentInfo.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/FilenameHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/HotkeyHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/ImageHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/ImageOutput.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/MailHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/Objects.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/PluginHelper.cs (97%) rename {Greenshot => GreenshotCore}/Helpers/PrintHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/PropertyItemProvider.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/PropertyItemProvider.resx (100%) rename {Greenshot => GreenshotCore}/Helpers/ScaleHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/StartupHelper.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/WindowCapture.cs (100%) rename {Greenshot => GreenshotCore}/Helpers/WindowsHelper.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/BindableToolStripButton.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/BindableToolStripComboBox.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/BindableToolStripDropDownButton.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/ColorButton.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/FontFamilyComboBox.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/ToolStripColorButton.cs (100%) rename {Greenshot => GreenshotEditor}/Controls/ToolStripNumericUpDown.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/ArrowContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/BitmapBuffer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/BitmapContainer.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/CropContainer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/CursorContainer.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/DrawableContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/DrawableContainerList.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/EllipseContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/AbstractFieldHolder.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/AbstractFieldHolderWithChildren.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/AbstractBindingConverter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/BidirectionalBinding.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/DecimalDoublePercentageConverter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/DecimalFloatConverter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/DecimalIntConverter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/IBindingConverter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/IBindingValidator.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Binding/NotNullValidator.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/Field.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/FieldAggregator.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/Fields/FieldFactory.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/FilterContainer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/AbstractFilter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/BlurFilter.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/BrightnessFilter.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/FastSmoothFilter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/GrayscaleFilter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/HighlightFilter.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/IFilter.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/MagnifierFilter.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/Filters/PixelizationFilter.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/HighlightContainer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/HtmlContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/IconContainer.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/LineContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/MetafileContainer.cs (98%) rename {Greenshot => GreenshotEditor}/Drawing/ObfuscateContainer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/RectangleContainer.cs (99%) rename {Greenshot => GreenshotEditor}/Drawing/RoundedRectangle.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/Surface.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/TextContainer.cs (100%) rename {Greenshot => GreenshotEditor}/Drawing/UrlContainer.cs (98%) rename {Greenshot => GreenshotEditor}/Forms/ColorDialog.Designer.cs (100%) rename {Greenshot => GreenshotEditor}/Forms/ColorDialog.cs (100%) rename {Greenshot => GreenshotEditor}/Forms/ColorDialog.resx (100%) rename {Greenshot => GreenshotEditor}/Forms/ImageEditorForm.Designer.cs (100%) rename {Greenshot => GreenshotEditor}/Forms/ImageEditorForm.cs (99%) rename {Greenshot => GreenshotEditor}/Forms/ImageEditorForm.resx (100%) rename {Greenshot => GreenshotEditor}/Helpers/Colors.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/DrawingHelper.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/FormHelper.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/GuiRectangle.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/HtmlFragment.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/ToolStripItemEndisabler.cs (100%) rename {Greenshot => GreenshotEditor}/Helpers/WebToBitmap.cs (100%) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 301e78b04..6c1980d4c 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -35,7 +35,6 @@ using Greenshot.Capturing; using Greenshot.Configuration; using Greenshot.Drawing; using Greenshot.Forms; -using Greenshot.Help; using Greenshot.Helpers; using Greenshot.Plugin; using Greenshot.UnmanagedHelpers; @@ -274,7 +273,7 @@ namespace Greenshot { captureForm = new CaptureForm(); // Load all the plugins - PluginHelper.instance.LoadPlugins(this, captureForm); + PluginHelper.instance.LoadPlugins(this.ContextMenuStrip, captureForm); PluginHelper.instance.OnImageOutput += new OnImageOutputHandler(ImageWritten); SoundHelper.Initialize(); diff --git a/Greenshot/Greenshot.csproj b/Greenshot/Greenshot.csproj index 3ccd9c385..7ed2446eb 100644 --- a/Greenshot/Greenshot.csproj +++ b/Greenshot/Greenshot.csproj @@ -53,71 +53,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AboutForm.cs - CaptureForm.cs - - - ImageEditorForm.cs - LanguageDialog.cs @@ -126,66 +65,24 @@ MainForm.cs - - - PrintOptionsDialog.cs - - - - - SettingsForm.cs - BugReportForm.cs - - - - - - - - - - - - - - - - - - - - - - - AboutForm.cs - - - ImageEditorForm.cs - LanguageDialog.cs MainForm.cs - - PrintOptionsDialog.cs - - - SettingsForm.cs - BugReportForm.cs @@ -230,37 +127,11 @@ FlashlightForm.cs - - - - - - - - JpegQualityDialog.cs - - - - JpegQualityDialog.cs - - - ColorDialog.cs - - - - ColorDialog.cs - - - - - - - diff --git a/Greenshot/Greenshot.sln b/Greenshot/Greenshot.sln index 86786dd49..640a0d53f 100644 --- a/Greenshot/Greenshot.sln +++ b/Greenshot/Greenshot.sln @@ -2,8 +2,6 @@ Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 # SharpDevelop 3.2.0.5505 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GreenshotPlugin", "..\GreenshotPlugin\GreenshotPlugin.csproj", "{5B924697-4DCD-4F98-85F1-105CB84B7341}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Greenshot", "Greenshot.csproj", "{CD642BF4-D815-4D67-A0B5-C69F0B8231AF}" ProjectSection(ProjectDependencies) = postProject EndProjectSection @@ -22,10 +20,6 @@ Global {CD642BF4-D815-4D67-A0B5-C69F0B8231AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CD642BF4-D815-4D67-A0B5-C69F0B8231AF}.Release|Any CPU.Build.0 = Release|Any CPU {CD642BF4-D815-4D67-A0B5-C69F0B8231AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5B924697-4DCD-4F98-85F1-105CB84B7341}.Debug|Any CPU.Build.0 = Debug|x86 - {5B924697-4DCD-4F98-85F1-105CB84B7341}.Debug|Any CPU.ActiveCfg = Debug|x86 - {5B924697-4DCD-4F98-85F1-105CB84B7341}.Release|Any CPU.Build.0 = Release|x86 - {5B924697-4DCD-4F98-85F1-105CB84B7341}.Release|Any CPU.ActiveCfg = Release|x86 {BDC408EE-DEA1-4474-B59D-7F05757B12EC}.Debug|Any CPU.Build.0 = Debug|x86 {BDC408EE-DEA1-4474-B59D-7F05757B12EC}.Debug|Any CPU.ActiveCfg = Debug|x86 {BDC408EE-DEA1-4474-B59D-7F05757B12EC}.Release|Any CPU.Build.0 = Release|x86 diff --git a/Greenshot/Configuration/AppConfig.cs b/GreenshotCore/Configuration/AppConfig.cs similarity index 100% rename from Greenshot/Configuration/AppConfig.cs rename to GreenshotCore/Configuration/AppConfig.cs diff --git a/Greenshot/Configuration/Language.cs b/GreenshotCore/Configuration/Language.cs similarity index 100% rename from Greenshot/Configuration/Language.cs rename to GreenshotCore/Configuration/Language.cs diff --git a/Greenshot/Configuration/LanguageKeys.cs b/GreenshotCore/Configuration/LanguageKeys.cs similarity index 100% rename from Greenshot/Configuration/LanguageKeys.cs rename to GreenshotCore/Configuration/LanguageKeys.cs diff --git a/Greenshot/Configuration/RuntimeConfig.cs b/GreenshotCore/Configuration/RuntimeConfig.cs similarity index 100% rename from Greenshot/Configuration/RuntimeConfig.cs rename to GreenshotCore/Configuration/RuntimeConfig.cs diff --git a/Greenshot/Forms/AboutForm.Designer.cs b/GreenshotCore/Forms/AboutForm.Designer.cs similarity index 100% rename from Greenshot/Forms/AboutForm.Designer.cs rename to GreenshotCore/Forms/AboutForm.Designer.cs diff --git a/Greenshot/Forms/AboutForm.cs b/GreenshotCore/Forms/AboutForm.cs similarity index 100% rename from Greenshot/Forms/AboutForm.cs rename to GreenshotCore/Forms/AboutForm.cs diff --git a/Greenshot/Forms/AboutForm.resx b/GreenshotCore/Forms/AboutForm.resx similarity index 100% rename from Greenshot/Forms/AboutForm.resx rename to GreenshotCore/Forms/AboutForm.resx diff --git a/Greenshot/Help/HelpBrowserForm.Designer.cs b/GreenshotCore/Forms/HelpBrowserForm.Designer.cs similarity index 99% rename from Greenshot/Help/HelpBrowserForm.Designer.cs rename to GreenshotCore/Forms/HelpBrowserForm.Designer.cs index 426e666c2..7e836e634 100644 --- a/Greenshot/Help/HelpBrowserForm.Designer.cs +++ b/GreenshotCore/Forms/HelpBrowserForm.Designer.cs @@ -18,7 +18,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -namespace Greenshot.Help +namespace Greenshot.Forms { partial class HelpBrowserForm : System.Windows.Forms.Form { diff --git a/Greenshot/Help/HelpBrowserForm.cs b/GreenshotCore/Forms/HelpBrowserForm.cs similarity index 98% rename from Greenshot/Help/HelpBrowserForm.cs rename to GreenshotCore/Forms/HelpBrowserForm.cs index 410820ee7..a2c92e20e 100644 --- a/Greenshot/Help/HelpBrowserForm.cs +++ b/GreenshotCore/Forms/HelpBrowserForm.cs @@ -23,7 +23,7 @@ using System.IO; using Greenshot.Configuration; using Greenshot.Core; -namespace Greenshot.Help { +namespace Greenshot.Forms { /// /// Description of HelpBrowserForm. /// diff --git a/Greenshot/Help/HelpBrowserForm.resx b/GreenshotCore/Forms/HelpBrowserForm.resx similarity index 100% rename from Greenshot/Help/HelpBrowserForm.resx rename to GreenshotCore/Forms/HelpBrowserForm.resx diff --git a/Greenshot/Forms/JpegQualityDialog.Designer.cs b/GreenshotCore/Forms/JpegQualityDialog.Designer.cs similarity index 100% rename from Greenshot/Forms/JpegQualityDialog.Designer.cs rename to GreenshotCore/Forms/JpegQualityDialog.Designer.cs diff --git a/Greenshot/Forms/JpegQualityDialog.cs b/GreenshotCore/Forms/JpegQualityDialog.cs similarity index 100% rename from Greenshot/Forms/JpegQualityDialog.cs rename to GreenshotCore/Forms/JpegQualityDialog.cs diff --git a/Greenshot/Forms/JpegQualityDialog.resx b/GreenshotCore/Forms/JpegQualityDialog.resx similarity index 100% rename from Greenshot/Forms/JpegQualityDialog.resx rename to GreenshotCore/Forms/JpegQualityDialog.resx diff --git a/Greenshot/Forms/PrintOptionsDialog.Designer.cs b/GreenshotCore/Forms/PrintOptionsDialog.Designer.cs similarity index 100% rename from Greenshot/Forms/PrintOptionsDialog.Designer.cs rename to GreenshotCore/Forms/PrintOptionsDialog.Designer.cs diff --git a/Greenshot/Forms/PrintOptionsDialog.cs b/GreenshotCore/Forms/PrintOptionsDialog.cs similarity index 100% rename from Greenshot/Forms/PrintOptionsDialog.cs rename to GreenshotCore/Forms/PrintOptionsDialog.cs diff --git a/Greenshot/Forms/PrintOptionsDialog.resx b/GreenshotCore/Forms/PrintOptionsDialog.resx similarity index 100% rename from Greenshot/Forms/PrintOptionsDialog.resx rename to GreenshotCore/Forms/PrintOptionsDialog.resx diff --git a/Greenshot/Forms/SaveImageFileDialog.cs b/GreenshotCore/Forms/SaveImageFileDialog.cs similarity index 100% rename from Greenshot/Forms/SaveImageFileDialog.cs rename to GreenshotCore/Forms/SaveImageFileDialog.cs diff --git a/Greenshot/Forms/SettingsForm.Designer.cs b/GreenshotCore/Forms/SettingsForm.Designer.cs similarity index 100% rename from Greenshot/Forms/SettingsForm.Designer.cs rename to GreenshotCore/Forms/SettingsForm.Designer.cs diff --git a/Greenshot/Forms/SettingsForm.cs b/GreenshotCore/Forms/SettingsForm.cs similarity index 99% rename from Greenshot/Forms/SettingsForm.cs rename to GreenshotCore/Forms/SettingsForm.cs index 3d05e2865..b327d984c 100644 --- a/Greenshot/Forms/SettingsForm.cs +++ b/GreenshotCore/Forms/SettingsForm.cs @@ -214,7 +214,7 @@ namespace Greenshot { conf.Ui_Language = combobox_language.SelectedValue.ToString(); // Make sure the current language is reflected in the Main-context menu - MainForm.instance.UpdateUI(); + //MainForm.instance.UpdateUI(); // TODO conf.General_RegisterHotkeys = (bool?)checkbox_registerhotkeys.Checked; conf.Output_File_Path = textbox_storagelocation.Text; diff --git a/Greenshot/Forms/SettingsForm.resx b/GreenshotCore/Forms/SettingsForm.resx similarity index 100% rename from Greenshot/Forms/SettingsForm.resx rename to GreenshotCore/Forms/SettingsForm.resx diff --git a/GreenshotCore/GreenshotCore.csproj b/GreenshotCore/GreenshotCore.csproj index 146c50b9d..8723d4bae 100644 --- a/GreenshotCore/GreenshotCore.csproj +++ b/GreenshotCore/GreenshotCore.csproj @@ -56,9 +56,53 @@ + + + + + + + + + + AboutForm.cs + + + + HelpBrowserForm.cs + + + + JpegQualityDialog.cs + + + + PrintOptionsDialog.cs + + + + + SettingsForm.cs + + + + + + + + + + + + + + + + + @@ -72,5 +116,23 @@ + + AboutForm.cs + + + HelpBrowserForm.cs + + + JpegQualityDialog.cs + + + PrintOptionsDialog.cs + + + SettingsForm.cs + + + PropertyItemProvider.cs + \ No newline at end of file diff --git a/Greenshot/Helpers/ClipboardHelper.cs b/GreenshotCore/Helpers/ClipboardHelper.cs similarity index 100% rename from Greenshot/Helpers/ClipboardHelper.cs rename to GreenshotCore/Helpers/ClipboardHelper.cs diff --git a/Greenshot/Helpers/CopyData.cs b/GreenshotCore/Helpers/CopyData.cs similarity index 100% rename from Greenshot/Helpers/CopyData.cs rename to GreenshotCore/Helpers/CopyData.cs diff --git a/Greenshot/Helpers/EnvironmentInfo.cs b/GreenshotCore/Helpers/EnvironmentInfo.cs similarity index 100% rename from Greenshot/Helpers/EnvironmentInfo.cs rename to GreenshotCore/Helpers/EnvironmentInfo.cs diff --git a/Greenshot/Helpers/FilenameHelper.cs b/GreenshotCore/Helpers/FilenameHelper.cs similarity index 100% rename from Greenshot/Helpers/FilenameHelper.cs rename to GreenshotCore/Helpers/FilenameHelper.cs diff --git a/Greenshot/Helpers/HotkeyHelper.cs b/GreenshotCore/Helpers/HotkeyHelper.cs similarity index 100% rename from Greenshot/Helpers/HotkeyHelper.cs rename to GreenshotCore/Helpers/HotkeyHelper.cs diff --git a/Greenshot/Helpers/ImageHelper.cs b/GreenshotCore/Helpers/ImageHelper.cs similarity index 100% rename from Greenshot/Helpers/ImageHelper.cs rename to GreenshotCore/Helpers/ImageHelper.cs diff --git a/Greenshot/Helpers/ImageOutput.cs b/GreenshotCore/Helpers/ImageOutput.cs similarity index 100% rename from Greenshot/Helpers/ImageOutput.cs rename to GreenshotCore/Helpers/ImageOutput.cs diff --git a/Greenshot/Helpers/MailHelper.cs b/GreenshotCore/Helpers/MailHelper.cs similarity index 100% rename from Greenshot/Helpers/MailHelper.cs rename to GreenshotCore/Helpers/MailHelper.cs diff --git a/Greenshot/Helpers/Objects.cs b/GreenshotCore/Helpers/Objects.cs similarity index 100% rename from Greenshot/Helpers/Objects.cs rename to GreenshotCore/Helpers/Objects.cs diff --git a/Greenshot/Helpers/PluginHelper.cs b/GreenshotCore/Helpers/PluginHelper.cs similarity index 97% rename from Greenshot/Helpers/PluginHelper.cs rename to GreenshotCore/Helpers/PluginHelper.cs index 151d4d5ff..e89baf71b 100644 --- a/Greenshot/Helpers/PluginHelper.cs +++ b/GreenshotCore/Helpers/PluginHelper.cs @@ -164,7 +164,8 @@ namespace Greenshot.Helpers { } public bool RegisterHotKey(int modifierKeyCode, int virtualKeyCode, HotKeyHandler handler) { - return HotkeyHelper.RegisterHotKey((int)MainForm.instance.Handle, modifierKeyCode, virtualKeyCode, handler); + //return HotkeyHelper.RegisterHotKey((int)MainForm.instance.Handle, modifierKeyCode, virtualKeyCode, handler); + return false; // TODO } #endregion @@ -195,9 +196,9 @@ namespace Greenshot.Helpers { return false; } - public void LoadPlugins(MainForm mainForm, ICaptureHost captureHost) { + public void LoadPlugins(ContextMenuStrip mainMenu, ICaptureHost captureHost) { // Copy ContextMenu - mainMenu = mainForm.MainMenu; + this.mainMenu = mainMenu; List pluginFiles = new List(); foreach(string pluginFile in Directory.GetFiles(configpath, "*.gsp", SearchOption.AllDirectories)) { diff --git a/Greenshot/Helpers/PrintHelper.cs b/GreenshotCore/Helpers/PrintHelper.cs similarity index 100% rename from Greenshot/Helpers/PrintHelper.cs rename to GreenshotCore/Helpers/PrintHelper.cs diff --git a/Greenshot/Helpers/PropertyItemProvider.cs b/GreenshotCore/Helpers/PropertyItemProvider.cs similarity index 100% rename from Greenshot/Helpers/PropertyItemProvider.cs rename to GreenshotCore/Helpers/PropertyItemProvider.cs diff --git a/Greenshot/Helpers/PropertyItemProvider.resx b/GreenshotCore/Helpers/PropertyItemProvider.resx similarity index 100% rename from Greenshot/Helpers/PropertyItemProvider.resx rename to GreenshotCore/Helpers/PropertyItemProvider.resx diff --git a/Greenshot/Helpers/ScaleHelper.cs b/GreenshotCore/Helpers/ScaleHelper.cs similarity index 100% rename from Greenshot/Helpers/ScaleHelper.cs rename to GreenshotCore/Helpers/ScaleHelper.cs diff --git a/Greenshot/Helpers/StartupHelper.cs b/GreenshotCore/Helpers/StartupHelper.cs similarity index 100% rename from Greenshot/Helpers/StartupHelper.cs rename to GreenshotCore/Helpers/StartupHelper.cs diff --git a/Greenshot/Helpers/WindowCapture.cs b/GreenshotCore/Helpers/WindowCapture.cs similarity index 100% rename from Greenshot/Helpers/WindowCapture.cs rename to GreenshotCore/Helpers/WindowCapture.cs diff --git a/Greenshot/Helpers/WindowsHelper.cs b/GreenshotCore/Helpers/WindowsHelper.cs similarity index 100% rename from Greenshot/Helpers/WindowsHelper.cs rename to GreenshotCore/Helpers/WindowsHelper.cs diff --git a/Greenshot/Controls/BindableToolStripButton.cs b/GreenshotEditor/Controls/BindableToolStripButton.cs similarity index 100% rename from Greenshot/Controls/BindableToolStripButton.cs rename to GreenshotEditor/Controls/BindableToolStripButton.cs diff --git a/Greenshot/Controls/BindableToolStripComboBox.cs b/GreenshotEditor/Controls/BindableToolStripComboBox.cs similarity index 100% rename from Greenshot/Controls/BindableToolStripComboBox.cs rename to GreenshotEditor/Controls/BindableToolStripComboBox.cs diff --git a/Greenshot/Controls/BindableToolStripDropDownButton.cs b/GreenshotEditor/Controls/BindableToolStripDropDownButton.cs similarity index 100% rename from Greenshot/Controls/BindableToolStripDropDownButton.cs rename to GreenshotEditor/Controls/BindableToolStripDropDownButton.cs diff --git a/Greenshot/Controls/ColorButton.cs b/GreenshotEditor/Controls/ColorButton.cs similarity index 100% rename from Greenshot/Controls/ColorButton.cs rename to GreenshotEditor/Controls/ColorButton.cs diff --git a/Greenshot/Controls/FontFamilyComboBox.cs b/GreenshotEditor/Controls/FontFamilyComboBox.cs similarity index 100% rename from Greenshot/Controls/FontFamilyComboBox.cs rename to GreenshotEditor/Controls/FontFamilyComboBox.cs diff --git a/Greenshot/Controls/ToolStripColorButton.cs b/GreenshotEditor/Controls/ToolStripColorButton.cs similarity index 100% rename from Greenshot/Controls/ToolStripColorButton.cs rename to GreenshotEditor/Controls/ToolStripColorButton.cs diff --git a/Greenshot/Controls/ToolStripNumericUpDown.cs b/GreenshotEditor/Controls/ToolStripNumericUpDown.cs similarity index 100% rename from Greenshot/Controls/ToolStripNumericUpDown.cs rename to GreenshotEditor/Controls/ToolStripNumericUpDown.cs diff --git a/Greenshot/Drawing/ArrowContainer.cs b/GreenshotEditor/Drawing/ArrowContainer.cs similarity index 99% rename from Greenshot/Drawing/ArrowContainer.cs rename to GreenshotEditor/Drawing/ArrowContainer.cs index 239091150..501febe68 100644 --- a/Greenshot/Drawing/ArrowContainer.cs +++ b/GreenshotEditor/Drawing/ArrowContainer.cs @@ -25,7 +25,6 @@ using System.Drawing.Drawing2D; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/BitmapBuffer.cs b/GreenshotEditor/Drawing/BitmapBuffer.cs similarity index 100% rename from Greenshot/Drawing/BitmapBuffer.cs rename to GreenshotEditor/Drawing/BitmapBuffer.cs diff --git a/Greenshot/Drawing/BitmapContainer.cs b/GreenshotEditor/Drawing/BitmapContainer.cs similarity index 98% rename from Greenshot/Drawing/BitmapContainer.cs rename to GreenshotEditor/Drawing/BitmapContainer.cs index 9307f2fcd..7cae6ae1c 100644 --- a/Greenshot/Drawing/BitmapContainer.cs +++ b/GreenshotEditor/Drawing/BitmapContainer.cs @@ -24,9 +24,7 @@ using System.IO; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; -using Greenshot.Helpers; namespace Greenshot.Drawing { /// diff --git a/Greenshot/Drawing/CropContainer.cs b/GreenshotEditor/Drawing/CropContainer.cs similarity index 100% rename from Greenshot/Drawing/CropContainer.cs rename to GreenshotEditor/Drawing/CropContainer.cs index 17d77b460..db3cdafac 100644 --- a/Greenshot/Drawing/CropContainer.cs +++ b/GreenshotEditor/Drawing/CropContainer.cs @@ -23,8 +23,8 @@ using System.Drawing; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Helpers; using Greenshot.Drawing.Fields; +using Greenshot.Helpers; namespace Greenshot.Drawing { /// diff --git a/Greenshot/Drawing/CursorContainer.cs b/GreenshotEditor/Drawing/CursorContainer.cs similarity index 98% rename from Greenshot/Drawing/CursorContainer.cs rename to GreenshotEditor/Drawing/CursorContainer.cs index e25764b9c..ed7527801 100644 --- a/Greenshot/Drawing/CursorContainer.cs +++ b/GreenshotEditor/Drawing/CursorContainer.cs @@ -25,9 +25,7 @@ using System.IO; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; -using Greenshot.Helpers; namespace Greenshot.Drawing { /// diff --git a/Greenshot/Drawing/DrawableContainer.cs b/GreenshotEditor/Drawing/DrawableContainer.cs similarity index 99% rename from Greenshot/Drawing/DrawableContainer.cs rename to GreenshotEditor/Drawing/DrawableContainer.cs index 75df41baa..692417fd7 100644 --- a/Greenshot/Drawing/DrawableContainer.cs +++ b/GreenshotEditor/Drawing/DrawableContainer.cs @@ -28,8 +28,6 @@ using System.Drawing.Imaging; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; -using Greenshot.Controls; using Greenshot.Drawing.Fields; using Greenshot.Drawing.Filters; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/DrawableContainerList.cs b/GreenshotEditor/Drawing/DrawableContainerList.cs similarity index 100% rename from Greenshot/Drawing/DrawableContainerList.cs rename to GreenshotEditor/Drawing/DrawableContainerList.cs diff --git a/Greenshot/Drawing/EllipseContainer.cs b/GreenshotEditor/Drawing/EllipseContainer.cs similarity index 99% rename from Greenshot/Drawing/EllipseContainer.cs rename to GreenshotEditor/Drawing/EllipseContainer.cs index 17555ab6a..be34c668a 100644 --- a/Greenshot/Drawing/EllipseContainer.cs +++ b/GreenshotEditor/Drawing/EllipseContainer.cs @@ -23,7 +23,6 @@ using System.Drawing; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/Fields/AbstractFieldHolder.cs b/GreenshotEditor/Drawing/Fields/AbstractFieldHolder.cs similarity index 99% rename from Greenshot/Drawing/Fields/AbstractFieldHolder.cs rename to GreenshotEditor/Drawing/Fields/AbstractFieldHolder.cs index 1c2f0a78f..e5135d478 100644 --- a/Greenshot/Drawing/Fields/AbstractFieldHolder.cs +++ b/GreenshotEditor/Drawing/Fields/AbstractFieldHolder.cs @@ -25,7 +25,6 @@ using System.Drawing; using System.Reflection; using System.Runtime.Serialization; -using Greenshot.Helpers; namespace Greenshot.Drawing.Fields { /// diff --git a/Greenshot/Drawing/Fields/AbstractFieldHolderWithChildren.cs b/GreenshotEditor/Drawing/Fields/AbstractFieldHolderWithChildren.cs similarity index 99% rename from Greenshot/Drawing/Fields/AbstractFieldHolderWithChildren.cs rename to GreenshotEditor/Drawing/Fields/AbstractFieldHolderWithChildren.cs index 4a2a1ff4f..da038a4f4 100644 --- a/Greenshot/Drawing/Fields/AbstractFieldHolderWithChildren.cs +++ b/GreenshotEditor/Drawing/Fields/AbstractFieldHolderWithChildren.cs @@ -25,7 +25,6 @@ using System.Drawing; using System.Reflection; using System.Runtime.Serialization; -using Greenshot.Helpers; namespace Greenshot.Drawing.Fields { /// diff --git a/Greenshot/Drawing/Fields/Binding/AbstractBindingConverter.cs b/GreenshotEditor/Drawing/Fields/Binding/AbstractBindingConverter.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/AbstractBindingConverter.cs rename to GreenshotEditor/Drawing/Fields/Binding/AbstractBindingConverter.cs diff --git a/Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs b/GreenshotEditor/Drawing/Fields/Binding/BidirectionalBinding.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs rename to GreenshotEditor/Drawing/Fields/Binding/BidirectionalBinding.cs diff --git a/Greenshot/Drawing/Fields/Binding/DecimalDoublePercentageConverter.cs b/GreenshotEditor/Drawing/Fields/Binding/DecimalDoublePercentageConverter.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/DecimalDoublePercentageConverter.cs rename to GreenshotEditor/Drawing/Fields/Binding/DecimalDoublePercentageConverter.cs diff --git a/Greenshot/Drawing/Fields/Binding/DecimalFloatConverter.cs b/GreenshotEditor/Drawing/Fields/Binding/DecimalFloatConverter.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/DecimalFloatConverter.cs rename to GreenshotEditor/Drawing/Fields/Binding/DecimalFloatConverter.cs diff --git a/Greenshot/Drawing/Fields/Binding/DecimalIntConverter.cs b/GreenshotEditor/Drawing/Fields/Binding/DecimalIntConverter.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/DecimalIntConverter.cs rename to GreenshotEditor/Drawing/Fields/Binding/DecimalIntConverter.cs diff --git a/Greenshot/Drawing/Fields/Binding/IBindingConverter.cs b/GreenshotEditor/Drawing/Fields/Binding/IBindingConverter.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/IBindingConverter.cs rename to GreenshotEditor/Drawing/Fields/Binding/IBindingConverter.cs diff --git a/Greenshot/Drawing/Fields/Binding/IBindingValidator.cs b/GreenshotEditor/Drawing/Fields/Binding/IBindingValidator.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/IBindingValidator.cs rename to GreenshotEditor/Drawing/Fields/Binding/IBindingValidator.cs diff --git a/Greenshot/Drawing/Fields/Binding/NotNullValidator.cs b/GreenshotEditor/Drawing/Fields/Binding/NotNullValidator.cs similarity index 100% rename from Greenshot/Drawing/Fields/Binding/NotNullValidator.cs rename to GreenshotEditor/Drawing/Fields/Binding/NotNullValidator.cs diff --git a/Greenshot/Drawing/Fields/Field.cs b/GreenshotEditor/Drawing/Fields/Field.cs similarity index 100% rename from Greenshot/Drawing/Fields/Field.cs rename to GreenshotEditor/Drawing/Fields/Field.cs diff --git a/Greenshot/Drawing/Fields/FieldAggregator.cs b/GreenshotEditor/Drawing/Fields/FieldAggregator.cs similarity index 99% rename from Greenshot/Drawing/Fields/FieldAggregator.cs rename to GreenshotEditor/Drawing/Fields/FieldAggregator.cs index b2b5264ca..336eea3a6 100644 --- a/Greenshot/Drawing/Fields/FieldAggregator.cs +++ b/GreenshotEditor/Drawing/Fields/FieldAggregator.cs @@ -23,9 +23,9 @@ using System.Drawing; using System.Reflection; using System.ComponentModel; using System.Collections.Generic; + using Greenshot.Configuration; using Greenshot.Drawing.Filters; -using Greenshot.Helpers; namespace Greenshot.Drawing.Fields { /// diff --git a/Greenshot/Drawing/Fields/FieldFactory.cs b/GreenshotEditor/Drawing/Fields/FieldFactory.cs similarity index 99% rename from Greenshot/Drawing/Fields/FieldFactory.cs rename to GreenshotEditor/Drawing/Fields/FieldFactory.cs index cc5c9c7bd..b5c28717b 100644 --- a/Greenshot/Drawing/Fields/FieldFactory.cs +++ b/GreenshotEditor/Drawing/Fields/FieldFactory.cs @@ -21,6 +21,7 @@ using System; using System.Drawing; using System.Collections.Generic; + using Greenshot.Configuration; namespace Greenshot.Drawing.Fields { diff --git a/Greenshot/Drawing/FilterContainer.cs b/GreenshotEditor/Drawing/FilterContainer.cs similarity index 100% rename from Greenshot/Drawing/FilterContainer.cs rename to GreenshotEditor/Drawing/FilterContainer.cs diff --git a/Greenshot/Drawing/Filters/AbstractFilter.cs b/GreenshotEditor/Drawing/Filters/AbstractFilter.cs similarity index 100% rename from Greenshot/Drawing/Filters/AbstractFilter.cs rename to GreenshotEditor/Drawing/Filters/AbstractFilter.cs diff --git a/Greenshot/Drawing/Filters/BlurFilter.cs b/GreenshotEditor/Drawing/Filters/BlurFilter.cs similarity index 99% rename from Greenshot/Drawing/Filters/BlurFilter.cs rename to GreenshotEditor/Drawing/Filters/BlurFilter.cs index 012873210..f4bbb5791 100644 --- a/Greenshot/Drawing/Filters/BlurFilter.cs +++ b/GreenshotEditor/Drawing/Filters/BlurFilter.cs @@ -21,7 +21,6 @@ using System.Drawing; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Drawing.Filters; diff --git a/Greenshot/Drawing/Filters/BrightnessFilter.cs b/GreenshotEditor/Drawing/Filters/BrightnessFilter.cs similarity index 98% rename from Greenshot/Drawing/Filters/BrightnessFilter.cs rename to GreenshotEditor/Drawing/Filters/BrightnessFilter.cs index 98c3bf876..dba060b4d 100644 --- a/Greenshot/Drawing/Filters/BrightnessFilter.cs +++ b/GreenshotEditor/Drawing/Filters/BrightnessFilter.cs @@ -23,7 +23,6 @@ using System.Drawing; using System.Drawing.Imaging; using System.Runtime.Serialization; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; namespace Greenshot.Drawing.Filters { diff --git a/Greenshot/Drawing/Filters/FastSmoothFilter.cs b/GreenshotEditor/Drawing/Filters/FastSmoothFilter.cs similarity index 100% rename from Greenshot/Drawing/Filters/FastSmoothFilter.cs rename to GreenshotEditor/Drawing/Filters/FastSmoothFilter.cs diff --git a/Greenshot/Drawing/Filters/GrayscaleFilter.cs b/GreenshotEditor/Drawing/Filters/GrayscaleFilter.cs similarity index 100% rename from Greenshot/Drawing/Filters/GrayscaleFilter.cs rename to GreenshotEditor/Drawing/Filters/GrayscaleFilter.cs diff --git a/Greenshot/Drawing/Filters/HighlightFilter.cs b/GreenshotEditor/Drawing/Filters/HighlightFilter.cs similarity index 98% rename from Greenshot/Drawing/Filters/HighlightFilter.cs rename to GreenshotEditor/Drawing/Filters/HighlightFilter.cs index 351ca3add..0fc1f105e 100644 --- a/Greenshot/Drawing/Filters/HighlightFilter.cs +++ b/GreenshotEditor/Drawing/Filters/HighlightFilter.cs @@ -23,7 +23,6 @@ using System.Drawing; using System.Drawing.Imaging; using System.Runtime.Serialization; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; namespace Greenshot.Drawing.Filters { diff --git a/Greenshot/Drawing/Filters/IFilter.cs b/GreenshotEditor/Drawing/Filters/IFilter.cs similarity index 100% rename from Greenshot/Drawing/Filters/IFilter.cs rename to GreenshotEditor/Drawing/Filters/IFilter.cs diff --git a/Greenshot/Drawing/Filters/MagnifierFilter.cs b/GreenshotEditor/Drawing/Filters/MagnifierFilter.cs similarity index 98% rename from Greenshot/Drawing/Filters/MagnifierFilter.cs rename to GreenshotEditor/Drawing/Filters/MagnifierFilter.cs index 9a6cd27b2..48a47e847 100644 --- a/Greenshot/Drawing/Filters/MagnifierFilter.cs +++ b/GreenshotEditor/Drawing/Filters/MagnifierFilter.cs @@ -23,7 +23,6 @@ using System.Drawing; using System.Drawing.Imaging; using System.Runtime.Serialization; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; namespace Greenshot.Drawing.Filters { diff --git a/Greenshot/Drawing/Filters/PixelizationFilter.cs b/GreenshotEditor/Drawing/Filters/PixelizationFilter.cs similarity index 98% rename from Greenshot/Drawing/Filters/PixelizationFilter.cs rename to GreenshotEditor/Drawing/Filters/PixelizationFilter.cs index d42fa5ce6..9463d41ac 100644 --- a/Greenshot/Drawing/Filters/PixelizationFilter.cs +++ b/GreenshotEditor/Drawing/Filters/PixelizationFilter.cs @@ -24,7 +24,6 @@ using System.Drawing; using System.Drawing.Imaging; using System.Runtime.Serialization; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/HighlightContainer.cs b/GreenshotEditor/Drawing/HighlightContainer.cs similarity index 100% rename from Greenshot/Drawing/HighlightContainer.cs rename to GreenshotEditor/Drawing/HighlightContainer.cs diff --git a/Greenshot/Drawing/HtmlContainer.cs b/GreenshotEditor/Drawing/HtmlContainer.cs similarity index 99% rename from Greenshot/Drawing/HtmlContainer.cs rename to GreenshotEditor/Drawing/HtmlContainer.cs index ac16a43a2..bc628f9d1 100644 --- a/Greenshot/Drawing/HtmlContainer.cs +++ b/GreenshotEditor/Drawing/HtmlContainer.cs @@ -25,7 +25,6 @@ using System.Runtime.Serialization; using System.Text.RegularExpressions; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/IconContainer.cs b/GreenshotEditor/Drawing/IconContainer.cs similarity index 98% rename from Greenshot/Drawing/IconContainer.cs rename to GreenshotEditor/Drawing/IconContainer.cs index efdb1924f..cb7680969 100644 --- a/Greenshot/Drawing/IconContainer.cs +++ b/GreenshotEditor/Drawing/IconContainer.cs @@ -24,9 +24,7 @@ using System.IO; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; -using Greenshot.Helpers; namespace Greenshot.Drawing { /// diff --git a/Greenshot/Drawing/LineContainer.cs b/GreenshotEditor/Drawing/LineContainer.cs similarity index 99% rename from Greenshot/Drawing/LineContainer.cs rename to GreenshotEditor/Drawing/LineContainer.cs index 54ffb3c30..35618dedb 100644 --- a/Greenshot/Drawing/LineContainer.cs +++ b/GreenshotEditor/Drawing/LineContainer.cs @@ -25,7 +25,6 @@ using System.Drawing.Drawing2D; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/MetafileContainer.cs b/GreenshotEditor/Drawing/MetafileContainer.cs similarity index 98% rename from Greenshot/Drawing/MetafileContainer.cs rename to GreenshotEditor/Drawing/MetafileContainer.cs index d54b006b6..a1948517f 100644 --- a/Greenshot/Drawing/MetafileContainer.cs +++ b/GreenshotEditor/Drawing/MetafileContainer.cs @@ -25,9 +25,7 @@ using System.IO; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; -using Greenshot.Helpers; namespace Greenshot.Drawing { /// diff --git a/Greenshot/Drawing/ObfuscateContainer.cs b/GreenshotEditor/Drawing/ObfuscateContainer.cs similarity index 100% rename from Greenshot/Drawing/ObfuscateContainer.cs rename to GreenshotEditor/Drawing/ObfuscateContainer.cs diff --git a/Greenshot/Drawing/RectangleContainer.cs b/GreenshotEditor/Drawing/RectangleContainer.cs similarity index 99% rename from Greenshot/Drawing/RectangleContainer.cs rename to GreenshotEditor/Drawing/RectangleContainer.cs index 6acecb439..1eefa9c26 100644 --- a/Greenshot/Drawing/RectangleContainer.cs +++ b/GreenshotEditor/Drawing/RectangleContainer.cs @@ -23,7 +23,6 @@ using System.Drawing; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Drawing/RoundedRectangle.cs b/GreenshotEditor/Drawing/RoundedRectangle.cs similarity index 100% rename from Greenshot/Drawing/RoundedRectangle.cs rename to GreenshotEditor/Drawing/RoundedRectangle.cs diff --git a/Greenshot/Drawing/Surface.cs b/GreenshotEditor/Drawing/Surface.cs similarity index 100% rename from Greenshot/Drawing/Surface.cs rename to GreenshotEditor/Drawing/Surface.cs diff --git a/Greenshot/Drawing/TextContainer.cs b/GreenshotEditor/Drawing/TextContainer.cs similarity index 100% rename from Greenshot/Drawing/TextContainer.cs rename to GreenshotEditor/Drawing/TextContainer.cs diff --git a/Greenshot/Drawing/UrlContainer.cs b/GreenshotEditor/Drawing/UrlContainer.cs similarity index 98% rename from Greenshot/Drawing/UrlContainer.cs rename to GreenshotEditor/Drawing/UrlContainer.cs index 97e6105de..7ff5be335 100644 --- a/Greenshot/Drawing/UrlContainer.cs +++ b/GreenshotEditor/Drawing/UrlContainer.cs @@ -24,7 +24,6 @@ using System.IO; using System.Runtime.Serialization; using System.Windows.Forms; -using Greenshot.Configuration; using Greenshot.Drawing.Fields; using Greenshot.Helpers; diff --git a/Greenshot/Forms/ColorDialog.Designer.cs b/GreenshotEditor/Forms/ColorDialog.Designer.cs similarity index 100% rename from Greenshot/Forms/ColorDialog.Designer.cs rename to GreenshotEditor/Forms/ColorDialog.Designer.cs diff --git a/Greenshot/Forms/ColorDialog.cs b/GreenshotEditor/Forms/ColorDialog.cs similarity index 100% rename from Greenshot/Forms/ColorDialog.cs rename to GreenshotEditor/Forms/ColorDialog.cs diff --git a/Greenshot/Forms/ColorDialog.resx b/GreenshotEditor/Forms/ColorDialog.resx similarity index 100% rename from Greenshot/Forms/ColorDialog.resx rename to GreenshotEditor/Forms/ColorDialog.resx diff --git a/Greenshot/Forms/ImageEditorForm.Designer.cs b/GreenshotEditor/Forms/ImageEditorForm.Designer.cs similarity index 100% rename from Greenshot/Forms/ImageEditorForm.Designer.cs rename to GreenshotEditor/Forms/ImageEditorForm.Designer.cs diff --git a/Greenshot/Forms/ImageEditorForm.cs b/GreenshotEditor/Forms/ImageEditorForm.cs similarity index 99% rename from Greenshot/Forms/ImageEditorForm.cs rename to GreenshotEditor/Forms/ImageEditorForm.cs index f33ca942d..35d7a3980 100644 --- a/Greenshot/Forms/ImageEditorForm.cs +++ b/GreenshotEditor/Forms/ImageEditorForm.cs @@ -38,7 +38,7 @@ using Greenshot.Configuration; using Greenshot.Drawing; using Greenshot.Drawing.Fields; using Greenshot.Drawing.Fields.Binding; -using Greenshot.Help; +//using Greenshot.Help; using Greenshot.Helpers; using Greenshot.Plugin; using Greenshot.Core; diff --git a/Greenshot/Forms/ImageEditorForm.resx b/GreenshotEditor/Forms/ImageEditorForm.resx similarity index 100% rename from Greenshot/Forms/ImageEditorForm.resx rename to GreenshotEditor/Forms/ImageEditorForm.resx diff --git a/GreenshotEditor/GreenshotEditor.csproj b/GreenshotEditor/GreenshotEditor.csproj index 038e83a0b..79208ddb7 100644 --- a/GreenshotEditor/GreenshotEditor.csproj +++ b/GreenshotEditor/GreenshotEditor.csproj @@ -10,13 +10,21 @@ Properties C:\Dokumente und Einstellungen\jens\Anwendungsdaten\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis True + True + False + 4 + false x86 + False + Auto + 4194304 + 4096 bin\Debug\ - True + true Full False True @@ -32,6 +40,12 @@ + + ..\GreenshotCore\Lib\log4net.dll + + + ..\GreenshotCore\Lib\nunit.framework.dll + 3.5 @@ -48,12 +62,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ColorDialog.cs + + + + ImageEditorForm.cs + + + + + + + + + + ColorDialog.cs + + + ImageEditorForm.cs + + {BDC408EE-DEA1-4474-B59D-7F05757B12EC} GreenshotCore + + + + + + + \ No newline at end of file diff --git a/Greenshot/Helpers/Colors.cs b/GreenshotEditor/Helpers/Colors.cs similarity index 100% rename from Greenshot/Helpers/Colors.cs rename to GreenshotEditor/Helpers/Colors.cs diff --git a/Greenshot/Helpers/DrawingHelper.cs b/GreenshotEditor/Helpers/DrawingHelper.cs similarity index 100% rename from Greenshot/Helpers/DrawingHelper.cs rename to GreenshotEditor/Helpers/DrawingHelper.cs diff --git a/Greenshot/Helpers/FormHelper.cs b/GreenshotEditor/Helpers/FormHelper.cs similarity index 100% rename from Greenshot/Helpers/FormHelper.cs rename to GreenshotEditor/Helpers/FormHelper.cs diff --git a/Greenshot/Helpers/GuiRectangle.cs b/GreenshotEditor/Helpers/GuiRectangle.cs similarity index 100% rename from Greenshot/Helpers/GuiRectangle.cs rename to GreenshotEditor/Helpers/GuiRectangle.cs diff --git a/Greenshot/Helpers/HtmlFragment.cs b/GreenshotEditor/Helpers/HtmlFragment.cs similarity index 100% rename from Greenshot/Helpers/HtmlFragment.cs rename to GreenshotEditor/Helpers/HtmlFragment.cs diff --git a/Greenshot/Helpers/ToolStripItemEndisabler.cs b/GreenshotEditor/Helpers/ToolStripItemEndisabler.cs similarity index 100% rename from Greenshot/Helpers/ToolStripItemEndisabler.cs rename to GreenshotEditor/Helpers/ToolStripItemEndisabler.cs diff --git a/Greenshot/Helpers/WebToBitmap.cs b/GreenshotEditor/Helpers/WebToBitmap.cs similarity index 100% rename from Greenshot/Helpers/WebToBitmap.cs rename to GreenshotEditor/Helpers/WebToBitmap.cs