mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Added missing files from pull-request and updated the readme.txt
This commit is contained in:
parent
2a15a5e270
commit
945fd1db46
7 changed files with 38 additions and 41 deletions
|
@ -16,6 +16,7 @@ Fixed:
|
||||||
* BUG-1887: hang on exit - hang time proportional to number of objects
|
* BUG-1887: hang on exit - hang time proportional to number of objects
|
||||||
* BUG-1890: Slight cropping around window on Windows 10
|
* BUG-1890: Slight cropping around window on Windows 10
|
||||||
* BUG-1892: Greenshot saves blank JPG file with reduce colors
|
* BUG-1892: Greenshot saves blank JPG file with reduce colors
|
||||||
|
* BUG-1896: Greenshot doesn't support the new Jira API, SOAP is deprecated.
|
||||||
* BUG-1898: Specify GPLv3 in the license text
|
* BUG-1898: Specify GPLv3 in the license text
|
||||||
* BUG-1910: Error occurs after adding 10+ text boxes with arrows
|
* BUG-1910: Error occurs after adding 10+ text boxes with arrows
|
||||||
* BUG-1918: Speechbubble issue: Artifacts appeared when shadow is on and transparency is used
|
* BUG-1918: Speechbubble issue: Artifacts appeared when shadow is on and transparency is used
|
||||||
|
|
|
@ -348,7 +348,7 @@ Name: "custom"; Description: "{code:CustomInstall}"; Flags: iscustom
|
||||||
Name: "greenshot"; Description: "Greenshot"; Types: default full compact custom; Flags: fixed
|
Name: "greenshot"; Description: "Greenshot"; Types: default full compact custom; Flags: fixed
|
||||||
Name: "plugins\office"; Description: {cm:office}; Types: default full custom; Flags: disablenouninstallwarning
|
Name: "plugins\office"; Description: {cm:office}; Types: default full custom; Flags: disablenouninstallwarning
|
||||||
Name: "plugins\ocr"; Description: {cm:ocr}; Types: default full custom; Flags: disablenouninstallwarning
|
Name: "plugins\ocr"; Description: {cm:ocr}; Types: default full custom; Flags: disablenouninstallwarning
|
||||||
Name: "plugins\jira"; Description: {cm:jira}; Types: full custom; Flags: disablenouninstallwarning
|
Name: "plugins\jira"; Description: {cm:jira}; Types: full custom; Flags: disablenouninstallwarning Check: hasDotNet45OrHigher()
|
||||||
Name: "plugins\imgur"; Description: {cm:imgur}; Types: default full custom; Flags: disablenouninstallwarning
|
Name: "plugins\imgur"; Description: {cm:imgur}; Types: default full custom; Flags: disablenouninstallwarning
|
||||||
Name: "plugins\confluence"; Description: {cm:confluence}; Types: full custom; Flags: disablenouninstallwarning; Check: hasDotNet35FullOrHigher()
|
Name: "plugins\confluence"; Description: {cm:confluence}; Types: full custom; Flags: disablenouninstallwarning; Check: hasDotNet35FullOrHigher()
|
||||||
Name: "plugins\externalcommand"; Description: {cm:externalcommand}; Types: default full custom; Flags: disablenouninstallwarning
|
Name: "plugins\externalcommand"; Description: {cm:externalcommand}; Types: default full custom; Flags: disablenouninstallwarning
|
||||||
|
@ -582,6 +582,11 @@ begin
|
||||||
Result := netfxinstalled(NetFX35, '') or netfxinstalled(NetFX40Full, '');
|
Result := netfxinstalled(NetFX35, '') or netfxinstalled(NetFX40Full, '');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function hasDotNet45OrHigher() : boolean;
|
||||||
|
begin
|
||||||
|
Result := netfxinstalled(NetFX4x, '');
|
||||||
|
end;
|
||||||
|
|
||||||
function getNGENPath(argument: String) : String;
|
function getNGENPath(argument: String) : String;
|
||||||
var
|
var
|
||||||
installPath: string;
|
installPath: string;
|
||||||
|
|
6
GreenshotJiraPlugin/Forms/JiraForm.Designer.cs
generated
6
GreenshotJiraPlugin/Forms/JiraForm.Designer.cs
generated
|
@ -67,7 +67,7 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
this.jiraFilterBox.Name = "jiraFilterBox";
|
this.jiraFilterBox.Name = "jiraFilterBox";
|
||||||
this.jiraFilterBox.Size = new System.Drawing.Size(604, 21);
|
this.jiraFilterBox.Size = new System.Drawing.Size(604, 21);
|
||||||
this.jiraFilterBox.TabIndex = 5;
|
this.jiraFilterBox.TabIndex = 5;
|
||||||
this.jiraFilterBox.SelectedIndexChanged += new System.EventHandler(this.jiraFilterBox_SelectedIndexChanged);
|
this.jiraFilterBox.SelectedIndexChanged += new System.EventHandler(this.JiraFilterBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// label_jirafilter
|
// label_jirafilter
|
||||||
//
|
//
|
||||||
|
@ -112,8 +112,8 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
this.jiraListView.TabIndex = 4;
|
this.jiraListView.TabIndex = 4;
|
||||||
this.jiraListView.UseCompatibleStateImageBehavior = false;
|
this.jiraListView.UseCompatibleStateImageBehavior = false;
|
||||||
this.jiraListView.View = System.Windows.Forms.View.Details;
|
this.jiraListView.View = System.Windows.Forms.View.Details;
|
||||||
this.jiraListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.jiraListView_ColumnClick);
|
this.jiraListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.JiraListView_ColumnClick);
|
||||||
this.jiraListView.SelectedIndexChanged += new System.EventHandler(this.jiraListView_SelectedIndexChanged);
|
this.jiraListView.SelectedIndexChanged += new System.EventHandler(this.JiraListView_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// jiraFilenameBox
|
// jiraFilenameBox
|
||||||
//
|
//
|
||||||
|
|
|
@ -29,6 +29,7 @@ using GreenshotPlugin.Core;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Dapplo.Jira;
|
||||||
|
|
||||||
namespace GreenshotJiraPlugin.Forms {
|
namespace GreenshotJiraPlugin.Forms {
|
||||||
public partial class JiraForm : Form {
|
public partial class JiraForm : Form {
|
||||||
|
@ -111,10 +112,6 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
jiraFilenameBox.Text = filename;
|
jiraFilenameBox.Text = filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetComment(string comment) {
|
|
||||||
jiraCommentBox.Text = comment;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Issue GetJiraIssue() {
|
public Issue GetJiraIssue() {
|
||||||
return _selectedIssue;
|
return _selectedIssue;
|
||||||
}
|
}
|
||||||
|
@ -133,13 +130,7 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void selectJiraToolStripMenuItem_Click(object sender, EventArgs e) {
|
private async void JiraFilterBox_SelectedIndexChanged(object sender, EventArgs e) {
|
||||||
ToolStripMenuItem clickedItem = (ToolStripMenuItem)sender;
|
|
||||||
_selectedIssue = (Issue)clickedItem.Tag;
|
|
||||||
jiraKey.Text = _selectedIssue.Key;
|
|
||||||
}
|
|
||||||
|
|
||||||
private async void jiraFilterBox_SelectedIndexChanged(object sender, EventArgs e) {
|
|
||||||
if (_jiraConnector.IsLoggedIn) {
|
if (_jiraConnector.IsLoggedIn) {
|
||||||
|
|
||||||
uploadButton.Enabled = false;
|
uploadButton.Enabled = false;
|
||||||
|
@ -150,7 +141,8 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
IList<Issue> issues = null;
|
IList<Issue> issues = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var searchResult = await _jiraConnector.SearchAsync(filter.Jql);
|
JiraConfig.ExpandSearch = new[] { "*all" };
|
||||||
|
var searchResult = await _jiraConnector.SearchAsync(filter.Jql, fields: new [] { "summary,reporter,assignee,created"});
|
||||||
issues = searchResult.Issues;
|
issues = searchResult.Issues;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
@ -187,7 +179,7 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void jiraListView_SelectedIndexChanged(object sender, EventArgs e) {
|
private void JiraListView_SelectedIndexChanged(object sender, EventArgs e) {
|
||||||
if (jiraListView.SelectedItems.Count > 0) {
|
if (jiraListView.SelectedItems.Count > 0) {
|
||||||
_selectedIssue = (Issue)jiraListView.SelectedItems[0].Tag;
|
_selectedIssue = (Issue)jiraListView.SelectedItems[0].Tag;
|
||||||
jiraKey.Text = _selectedIssue.Key;
|
jiraKey.Text = _selectedIssue.Key;
|
||||||
|
@ -197,15 +189,11 @@ namespace GreenshotJiraPlugin.Forms {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void jiraListView_ColumnClick(object sender, ColumnClickEventArgs e) {
|
private void JiraListView_ColumnClick(object sender, ColumnClickEventArgs e) {
|
||||||
// Determine if clicked column is already the column that is being sorted.
|
// Determine if clicked column is already the column that is being sorted.
|
||||||
if (e.Column == _columnSorter.SortColumn) {
|
if (e.Column == _columnSorter.SortColumn) {
|
||||||
// Reverse the current sort direction for this column.
|
// Reverse the current sort direction for this column.
|
||||||
if (_columnSorter.Order == SortOrder.Ascending) {
|
_columnSorter.Order = _columnSorter.Order == SortOrder.Ascending ? SortOrder.Descending : SortOrder.Ascending;
|
||||||
_columnSorter.Order = SortOrder.Descending;
|
|
||||||
} else {
|
|
||||||
_columnSorter.Order = SortOrder.Ascending;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Set the column number that is to be sorted; default to ascending.
|
// Set the column number that is to be sorted; default to ascending.
|
||||||
_columnSorter.SortColumn = e.Column;
|
_columnSorter.SortColumn = e.Column;
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Dapplo.HttpExtensions, Version=0.5.30.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Dapplo.HttpExtensions, Version=0.5.31.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Dapplo.HttpExtensions.0.5.30\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
<HintPath>..\packages\Dapplo.HttpExtensions.0.5.31\lib\net45\Dapplo.HttpExtensions.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Dapplo.Jira, Version=0.1.56.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Dapplo.Jira, Version=0.1.56.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
@ -46,10 +46,6 @@
|
||||||
<HintPath>..\packages\Dapplo.Log.Facade.0.5.4\lib\net45\Dapplo.Log.Facade.dll</HintPath>
|
<HintPath>..\packages\Dapplo.Log.Facade.0.5.4\lib\net45\Dapplo.Log.Facade.dll</HintPath>
|
||||||
<Private>True</Private>
|
<Private>True</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Dapplo.Utils, Version=0.1.113.0, Culture=neutral, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\Dapplo.Utils.0.1.113\lib\net45\Dapplo.Utils.dll</HintPath>
|
|
||||||
<Private>True</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="log4net">
|
<Reference Include="log4net">
|
||||||
<HintPath>..\Greenshot\Lib\log4net.dll</HintPath>
|
<HintPath>..\Greenshot\Lib\log4net.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
@ -81,6 +77,7 @@
|
||||||
<Compile Include="JiraPlugin.cs" />
|
<Compile Include="JiraPlugin.cs" />
|
||||||
<Compile Include="JiraUtils.cs" />
|
<Compile Include="JiraUtils.cs" />
|
||||||
<Compile Include="LanguageKeys.cs" />
|
<Compile Include="LanguageKeys.cs" />
|
||||||
|
<Compile Include="Log4NetLogger.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<None Include="Languages\language_jiraplugin-de-DE.xml">
|
<None Include="Languages\language_jiraplugin-de-DE.xml">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
@ -108,9 +105,19 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)"
|
<PostBuildEvent>mkdir "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)"
|
||||||
|
"$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\*.gsp"
|
||||||
|
del /q /s "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)"\*
|
||||||
|
|
||||||
|
if "$(ConfigurationName)" == "Release" (
|
||||||
|
..\..\..\packages\LibZ.Tool.1.2.0.0\tools\libz.exe inject-dll --assembly $(ProjectDir)bin\$(Configuration)\$(TargetFileName) --include $(ProjectDir)bin\$(Configuration)\dapplo*.dll --move
|
||||||
|
)
|
||||||
copy "$(ProjectDir)bin\$(Configuration)\$(TargetFileName)" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\*.gsp"
|
copy "$(ProjectDir)bin\$(Configuration)\$(TargetFileName)" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\*.gsp"
|
||||||
copy "$(ProjectDir)bin\$(Configuration)\Dapplo.*" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\"
|
|
||||||
copy "$(ProjectDir)bin\$(Configuration)\$(ProjectName).pdb" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\"
|
if "$(ConfigurationName)" == "Debug" (
|
||||||
|
copy "$(ProjectDir)bin\$(Configuration)\Dapplo.*" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\"
|
||||||
|
copy "$(ProjectDir)bin\$(Configuration)\$(ProjectName).pdb" "$(SolutionDir)Greenshot\bin\$(Configuration)\Plugins\$(ProjectName)\"
|
||||||
|
)
|
||||||
|
|
||||||
mkdir "$(SolutionDir)Greenshot\bin\$(Configuration)\Languages\Plugins\$(ProjectName)"
|
mkdir "$(SolutionDir)Greenshot\bin\$(Configuration)\Languages\Plugins\$(ProjectName)"
|
||||||
copy "$(ProjectDir)\Languages\*.xml" "$(SolutionDir)Greenshot\bin\$(Configuration)\Languages\Plugins\$(ProjectName)\"</PostBuildEvent>
|
copy "$(ProjectDir)\Languages\*.xml" "$(SolutionDir)Greenshot\bin\$(Configuration)\Languages\Plugins\$(ProjectName)\"</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -24,6 +24,8 @@ using Greenshot.IniFile;
|
||||||
using Greenshot.Plugin;
|
using Greenshot.Plugin;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Dapplo.HttpExtensions.ContentConverter;
|
||||||
|
using Dapplo.Log.Facade;
|
||||||
using GreenshotJiraPlugin.Forms;
|
using GreenshotJiraPlugin.Forms;
|
||||||
|
|
||||||
namespace GreenshotJiraPlugin {
|
namespace GreenshotJiraPlugin {
|
||||||
|
@ -67,14 +69,7 @@ namespace GreenshotJiraPlugin {
|
||||||
//Needed for a fail-fast
|
//Needed for a fail-fast
|
||||||
public JiraConnector CurrentJiraConnector => _jiraConnector;
|
public JiraConnector CurrentJiraConnector => _jiraConnector;
|
||||||
|
|
||||||
public JiraConnector JiraConnector {
|
public JiraConnector JiraConnector => _jiraConnector ?? (_jiraConnector = new JiraConnector());
|
||||||
get {
|
|
||||||
if (_jiraConnector == null) {
|
|
||||||
_jiraConnector = new JiraConnector();
|
|
||||||
}
|
|
||||||
return _jiraConnector;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Implementation of the IGreenshotPlugin.Initialize
|
/// Implementation of the IGreenshotPlugin.Initialize
|
||||||
|
@ -85,6 +80,7 @@ namespace GreenshotJiraPlugin {
|
||||||
public bool Initialize(IGreenshotHost pluginHost, PluginAttribute myAttributes) {
|
public bool Initialize(IGreenshotHost pluginHost, PluginAttribute myAttributes) {
|
||||||
// Register configuration (don't need the configuration itself)
|
// Register configuration (don't need the configuration itself)
|
||||||
_config = IniConfig.GetIniSection<JiraConfiguration>();
|
_config = IniConfig.GetIniSection<JiraConfiguration>();
|
||||||
|
LogSettings.RegisterDefaultLogger<Log4NetLogger>();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Dapplo.HttpExtensions" version="0.5.30" targetFramework="net45" />
|
<package id="Dapplo.HttpExtensions" version="0.5.31" targetFramework="net45" />
|
||||||
<package id="Dapplo.Jira" version="0.1.56" targetFramework="net45" />
|
<package id="Dapplo.Jira" version="0.1.56" targetFramework="net45" />
|
||||||
<package id="Dapplo.Log.Facade" version="0.5.4" targetFramework="net45" />
|
<package id="Dapplo.Log.Facade" version="0.5.4" targetFramework="net45" />
|
||||||
<package id="Dapplo.Utils" version="0.1.113" targetFramework="net45" />
|
<package id="LibZ.Tool" version="1.2.0.0" targetFramework="net45" />
|
||||||
</packages>
|
</packages>
|
Loading…
Add table
Add a link
Reference in a new issue