Commit graph

473 commits

Author SHA1 Message Date
Jaex
f0e0b7e463 Fix GetInstances method to use calling assembly 2016-03-21 22:59:41 +02:00
Jaex
d3fb5ac7bd Architecture change to make it easier to add a new uploader, using it on Imgur for now 2016-03-21 22:26:47 +02:00
Tiago Danin
1377f5b7d6 FIX translation 2016-03-20 19:14:59 -03:00
Jaex
da2b593d00 NuGet update 2016-03-20 17:37:40 +02:00
Jaex
75d59c5a8c Few small ApplicationInstanceManager changes 2016-03-20 12:44:20 +02:00
Jaex
ef6eb94e28 Moved ApplicationInstanceManager outside folder 2016-03-20 12:27:47 +02:00
Jaex
f7cb8228a6 All window titles starts with "ShareX - " now, Turkish translation 100% 2016-03-19 17:40:59 +02:00
Jaex
a04d10c05c fixed #1416: Added raw URL support to GitHub Gist 2016-03-18 14:08:24 +02:00
Jaex
e5788da81e fixed #1399: Added "runas" back to updater 2016-03-18 11:04:48 +02:00
Jaex
b6e25d7e07 Few ApplicationInstanceManager changes 2016-03-18 02:10:56 +02:00
Jaex
f23202d7ff Single instance code moved to ApplicationInstanceManager class 2016-03-17 11:03:08 +02:00
Jaex
6a992a0857 fixed #1400: Added AcceptInvalidSSLCertificates option to Application settings -> Advanced tab which can be used by people who using self signed certificates 2016-03-14 03:10:19 +02:00
Jaex
ee151f466e Merge pull request #1406 from campbeb/greenshot_update
Update Greenshot to latest version
2016-03-13 20:45:12 +02:00
Brian
ee88e25b2f Update Greenshot to latest version
Greenshot updated from 1.2 branch at commit
e9ab99c5acc99785cc5045b4b5493c9b6504d016

This solves #1341 and #1079 for allowing support high DPI monitors.
Additionally, the following were implemented:
- #748 - Objects can be saved to file and loaded from file via menu
- #676 - Keyboard shortcuts added for 'Save and close' (Alt+S), 'Close'
(Alt+W), and 'Close and cancel tasks' (Alt+C)
- #1189 - Editor opens sized to image. Can be disabled via Greenshot ini
with `MatchSizeToCapture=False`
2016-03-13 12:07:53 -04:00
Jaex
6fbe9b5913 Use custom GetFilename method because otherwise "Illegal characters" error can happen 2016-03-12 00:34:56 +02:00
Brian
29e8e739e3 Proper Single Instance Implementation
Reworked single instance code to better handle being launched with
context menu.

Previously:
- On launch, process would try to open an `EventWaitHandle`. If it
didn't exist, then process assumed it was first and created it
- Multiple processes launching at same time would all see the
`EventWaitHandle` did not exist before any process could create it
- This led to multiple instances of program running

Now a mutex is used:
- Processes will all try to open the mutex. Only first one will succeed
- Process that opens the mutex will setup the `EventWaitHandle`
- Other processes won't get the mutex and will be directed to use the
`EventWaitHandle` to pass their command line args to the running
instance
2016-03-10 16:29:01 -05:00
Jaex
3455590ea5 fixed #1388: Added ForceActivate to AfterCapture and BeforeUpload forms shown event 2016-03-09 18:37:54 +02:00
Jaex
6c6ab39cf1 Don't show www. in chevereto or pomf list 2016-03-05 18:23:53 +02:00
Brian
d81558291e Handle multiple context menu selections - Move semaphore release
Current process is as follows:
1. Invoked .exe gets the semaphore
2. Invoked .exe sets `InstanceProxy` values in running exe
3. Invoked .exe causes thread to spawn in running exe
4. New thread in running .exe reads values from `InstanceProxy`
4. Invoked .exe release the semaphore

The problem is that there is no guarantee on how fast new threads in
running .exe will spawn and read values from `InstanceProxy`. This PR
addresses that by moving the semaphore release from the invoked .exe to
the thread spawned in running .exe.
2016-03-04 08:45:03 -05:00
Brian
c21036aa0e Handle multiple context menu selections - Fixes #770
The problem is that multiple context menu selections spawn multiple .exe
(invoked). Each invoked .exe sets the InstanceProxy variables in the
running .exe and tells it to start a thread to process. But, there is no
waiting, so the InstanceProxy variables get clobbered before they can
get used.
This fix uses a semaphore to control the invoked .exe. There is only one
entry allowed forcing invoked .exe to wait until any other invoked .exe
is finished running and releases the semaphore.
2016-03-03 18:57:21 -05:00
Jaex
93a42d1617 Added open image history hotkey 2016-03-03 12:05:59 +02:00
Jaex
323f7ac7e8 Image history performance improvements 2016-03-02 02:02:08 +02:00
Jaex
f21ed81ad3 Resx updates 2016-03-01 12:18:00 +02:00
Jaex
7e957014bd History form layout changes and improvements 2016-03-01 11:03:19 +02:00
Jaex
944fb121f5 fixed #1350: Added checks for every single numeric up down value assigns 2016-02-29 23:09:22 +02:00
Shadorc
92b1e61246 Update French Translation 2016-02-27 16:11:10 +01:00
Jaex
225b7fe3a7 Recent max count changes to fix loading incorrect amount of recent items in main window 2016-02-27 08:37:11 +02:00
Jaex
fa3c84d68c Removed BaseForm.cs because it was causing bug with vs designer resx 2016-02-25 22:55:54 +02:00
Jaex
369be4e154 Fix color picker form color init issue 2016-02-25 02:40:43 +02:00
Jaex
2696430203 Marked some fields as invariant 2016-02-22 18:02:17 +02:00
Michael Delpach
0f17aeeec2 CreateDirectoryFromFilePath
and CreateDirectoryFromDirectoryPath
2016-02-22 07:15:23 +08:00
Jaex
8d34f380ff Revert "CreateDirectoryIfNotExist detects user error"
This reverts commit 29d87cff1a.
2016-02-22 00:30:19 +02:00
Michael Delpach
29d87cff1a CreateDirectoryIfNotExist detects user error 2016-02-22 06:23:44 +08:00
Jaex
5b494bf436 Added open history hotkey 2016-02-21 21:50:49 +02:00
Jaex
8c74b42efc Added lightpics.net 2016-02-21 13:22:36 +02:00
Michael Delpach
a4409c1582 Remove underlining to increase readability 2016-02-21 09:38:14 +08:00
Jaex
86389c63a4 Using link label that way startup folder can be opened 2016-02-20 15:25:11 +02:00
Michael Delpach
98699b0e2a Debug Log shows executable path to avoid scrolling 2016-02-20 16:36:38 +08:00
Jaex
638c9caefa Added open log file button to debug form 2016-02-19 19:33:15 +02:00
Jaex
930f75ea57 Fix clipboard get image problem 2016-02-16 08:22:55 +02:00
Jaex
2963a5f9ef SomeImage fixes 2016-02-15 08:53:30 +02:00
Michael Delpach
90f5accde2 Special folder support for FFmpeg path 2016-02-15 06:16:23 +08:00
Jaex
577fac0ad6 fixed #1267: Removed run as admin from updater 2016-02-12 20:24:24 +02:00
Jaex
cf38ce1b93 Save all settings before export, Load all settings and update controls after import 2016-02-10 23:14:23 +02:00
Jaex
6b6f3fdb7c Added Import function 2016-02-10 21:55:57 +02:00
Jaex
ca8d2aad47 Don't use StartupPath because it will be wrong in some cases 2016-02-10 01:09:56 +02:00
Jaex
5e02df215f Changed quick task info defaults, removed one easter egg 2016-02-06 22:56:48 +02:00
Jaex
7ff74dcdb3 Added quick task menu editor 2016-02-06 20:10:01 +02:00
Jaex
0e36ec75b5 Quick task menu system works now 2016-02-06 18:41:05 +02:00
Alexandre Oliveira
aacb766790 Update Brazilian Portuguese translation 2016-02-05 16:13:14 -02:00
dannoe
4ad0fe3a31 Fixed/Added german translations 2016-02-04 16:12:59 +01:00
Jaex
03c4b68b60 Added directory indexer form 2016-02-02 14:58:34 +02:00
Jaex
c06409ac66 SettingsSaved parameter changes, moved SettingsChanged to TreeGUI project 2016-02-01 16:53:32 +02:00
Michael Delpach
9461880bf9 TriggerSettingsChange 2016-02-01 18:39:51 +08:00
Michael Delpach
746dd2ddcc OnSettingsChanged is now protected 2016-02-01 18:39:29 +08:00
Michael Delpach
7c778ad610 SettingsSavedEventHandler 2016-02-01 06:21:09 +08:00
Michael Delpach
84dd0b8d17 SettingsChangedEventHandler 2016-02-01 06:02:41 +08:00
Michael Delpach
561e914eac EnumerateDirectories
and fix "P:\" becoming "P  "
2016-01-31 14:57:53 +08:00
Michael Delpach
fc8240bb9e GetValidName with separator 2016-01-30 18:10:31 +08:00
L1Q
ca5fbdc211 Updated Russian translation 2016-01-29 12:24:44 +02:00
Jaex
38e8f2ad32 fixed #1271: Flash taskbar for update notification 10 times instead of forever 2016-01-28 13:34:29 +02:00
Jaex
ee0c497f3f SettingsHelper methods moved to SettingsBase 2016-01-28 10:44:46 +02:00
Jaex
ffead0104a When loading setting set FilePath for new SettingsBase 2016-01-28 09:42:39 +02:00
Michael Delpach
df60a0db7e Create directory if not exists when saving settings 2016-01-27 16:20:50 +08:00
Jeffiy
e4da5e85f7 Update chinese translate (part 3)
According to PR#1270
2016-01-21 11:40:29 +08:00
Jeffiy
2e210fcf6a Update chinese translation(part 2) 2016-01-21 10:58:50 +08:00
Jeffiy
d419a33f59 Update chinese translation(part 1) 2016-01-21 10:53:50 +08:00
Jason Underhill
bfb9f86ac1 Added post capture task for opening windows explorer highlighting the screenshot just captured for #1265 2016-01-19 23:11:17 +00:00
Jaex
db93b5a6dc fixed #1261: Properly convert DIB to image 2016-01-18 23:52:47 +02:00
Jaex
ead29ac5fb Added try catch to environment variable functions just in case 2016-01-17 08:58:56 +02:00
Michael Delpach
8a4e57ffc6 Supports all SpecialFolder enums 2016-01-17 04:50:32 +08:00
Jaex
ca9f33a2cd In update message box if no button is clicked then don't check for updates next 24 hours 2016-01-16 17:41:04 +02:00
Michael Delpach
1a6ebc97bf ExpandFolderVariables where ever required 2016-01-16 14:27:15 +08:00
Jaex
3c9f237471 Changed function name 2016-01-16 07:47:57 +02:00
Michael Delpach
ae025adf46 Automatically detect MyPictures shell folder path
More shell folders can be supported later
2016-01-16 12:43:05 +08:00
Scratch
f2b4b8331f Automatically fill QR window with Clipboard Content 2016-01-16 13:12:21 +11:00
Jaex
460c2a0792 NuGet update 2016-01-13 09:07:43 +02:00
Jaex
50539fe861 Extra checks for clipboard 2016-01-13 08:54:36 +02:00
Jaex
dc21a1c517 fixed #1237: Clipboard image check changes 2016-01-10 18:22:50 +02:00
Jaex
4ddc5bfc7c nuget csproj changes 2016-01-10 03:15:33 +02:00
Jaex
2e224327de NuGet update 2016-01-10 03:14:15 +02:00
Jaex
4e721fc89d Update resx 2016-01-09 19:21:10 +02:00
Shadorc
4fd443dd1f Update French Translation 2016-01-09 13:52:36 +01:00
L1Q
03adc02009 Updated Russian translation 2016-01-09 14:08:43 +02:00
Jaex
f94248c461 Updated resx 2016-01-09 01:28:22 +02:00
Jaex
13e1f68c28 Added PortableApps support which will use custom personal path and disable updating 2016-01-07 19:48:59 +02:00
Jaex
ecc8a03789 Removed Region (Windows and controls) instead Region capture will have it by default and possible to disable them 2016-01-05 02:42:51 +02:00
Jaex
3f45c1f51e Remove "(" and ")" replacing from custom uploader export all 2016-01-04 19:11:35 +02:00
Jaex
1d0842d031 Updated license year to 2016 2016-01-03 17:16:01 +02:00
Jaex
d8d379a04f Text conversion improvements 2016-01-02 15:24:14 +02:00
Jaex
8e228210e9 Use alternative clipboard copy/get method by default 2016-01-01 10:23:56 +02:00
Jaex
b719f192bf Fix copy image issue 2016-01-01 10:12:05 +02:00
Jaex
a27f0e54c3 ClipboardHelpers check bitmap format 2016-01-01 09:37:04 +02:00
Jaex
a4383fbb9e GetImage changes 2015-12-29 13:58:21 +02:00
Jaex
d78059e0c0 fixed #1203: Added UseAlternativeClipboardGetImage to application settings which allows to get PNG or 32 bit DIB from clipboard 2015-12-29 13:26:22 +02:00
Jaex
2234307d6c Updated donate url 2015-12-29 11:40:02 +02:00
Jaex
53168286de fixed #1213: Added text conversions (binary, hex, ascii, base64, hash) to hash check window 2015-12-29 03:36:10 +02:00
L1Q
4482cf2140 Updated russian translation 2015-12-27 16:16:30 +02:00
Jaex
1539d9148d Added export all custom uploaders button which will be only visible in debug build 2015-12-21 17:44:28 +02:00
Jaex
553f38ab5a Custom uploader export will ignore null or empty values to have more compact output 2015-12-21 16:31:59 +02:00