mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Added VK and Pinterest support
This commit is contained in:
parent
098e5d43ce
commit
18a3dedd80
3 changed files with 19 additions and 8 deletions
|
@ -52,9 +52,9 @@ Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
|||
|
||||
[Tasks]
|
||||
Name: "CreateDesktopIcon"; Description: "Create a desktop shortcut"; GroupDescription: "Additional shortcuts:"
|
||||
Name: "CreateQuickLaunchIcon"; Description: "Create a quick launch shortcut"; GroupDescription: "Additional shortcuts:"; Flags: unchecked
|
||||
Name: "CreateSendToIcon"; Description: "Create a send to shortcut"; GroupDescription: "Additional shortcuts:"; Flags: unchecked
|
||||
Name: "CreateStartupIcon"; Description: "Launch {#MyAppName} automatically at Windows startup"; GroupDescription: "Other tasks:"; Flags: unchecked
|
||||
Name: "CreateQuickLaunchIcon"; Description: "Create a quick launch shortcut"; GroupDescription: "Additional shortcuts:"
|
||||
Name: "CreateSendToIcon"; Description: "Create a send to shortcut"; GroupDescription: "Additional shortcuts:"
|
||||
Name: "CreateStartupIcon"; Description: "Launch {#MyAppName} automatically at Windows startup"; GroupDescription: "Other tasks:"
|
||||
|
||||
[Files]
|
||||
Source: "..\ShareX\bin\Release\*.exe"; Excludes: *.vshost.exe; DestDir: {app}; Flags: ignoreversion
|
||||
|
|
|
@ -1022,6 +1022,8 @@ public void DoSocialNetworkingService()
|
|||
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
url = URLHelpers.URLEncode(url);
|
||||
|
||||
switch (Info.TaskSettings.SocialNetworkingServiceDestination)
|
||||
{
|
||||
case SocialNetworkingService.Twitter:
|
||||
|
@ -1040,9 +1042,14 @@ public void DoSocialNetworkingService()
|
|||
URLHelpers.OpenURL("https://www.facebook.com/sharer/sharer.php?u=" + url);
|
||||
break;
|
||||
case SocialNetworkingService.GooglePlus:
|
||||
// The Google+ API currently provides read-only access to public data. So sharing with API not possible yet.
|
||||
URLHelpers.OpenURL("https://plus.google.com/share?url=" + url);
|
||||
break;
|
||||
case SocialNetworkingService.VK:
|
||||
URLHelpers.OpenURL("http://vk.com/share.php?url=" + url);
|
||||
break;
|
||||
case SocialNetworkingService.Pinterest:
|
||||
URLHelpers.OpenURL(string.Format("http://pinterest.com/pin/create/button/?url={0}&media={0}", url));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,12 +144,16 @@ public enum UrlShortenerType
|
|||
[Description("Social networking services"), DefaultValue(SocialNetworkingService.Twitter)]
|
||||
public enum SocialNetworkingService
|
||||
{
|
||||
[Description("twitter.com")]
|
||||
[Description("Twitter")]
|
||||
Twitter,
|
||||
[Description("facebook.com")]
|
||||
[Description("Facebook")]
|
||||
Facebook,
|
||||
[Description("plus.google.com")]
|
||||
GooglePlus
|
||||
[Description("Google+")]
|
||||
GooglePlus,
|
||||
[Description("VK")]
|
||||
VK,
|
||||
[Description("Pinterest")]
|
||||
Pinterest
|
||||
}
|
||||
|
||||
public enum HttpMethod
|
||||
|
|
Loading…
Reference in a new issue