Commit graph

1130 commits

Author SHA1 Message Date
Jaex
79fcdf9325 Fix null exception 2017-12-25 10:20:21 +03:00
Jaex
8089aab59c Fix wrong variable name 2017-12-25 09:42:59 +03:00
Jaex
193ec68ad5 Update save image button after change file path 2017-12-25 09:40:32 +03:00
Jaex
aace649381 Added "Open image" button to editor image menu 2017-12-24 22:04:12 +03:00
Jaex
a34c2087ea Remember new image dialog options 2017-12-24 21:13:06 +03:00
Jaex
5d94a9a6dd Added "New" button to editor image menu 2017-12-24 21:02:08 +03:00
Jaex
e3d26cb96f Skip crop tool in region capture 2017-12-24 17:54:39 +03:00
Jaex
9a8d8f0fc5 Added "Auto close editor on task" option 2017-12-24 12:01:16 +03:00
Jaex
8448ec220c Removed .nuget folder because it is not necessary anymore 2017-12-24 10:22:54 +03:00
Jaex
762422d71f
Merge branch 'master' into master 2017-12-23 17:24:11 +03:00
Jaex
328ca6b61d fixed #3015: Removed SevenZipSharp library instead using 7-Zip CLI 2017-12-18 11:20:37 +03:00
Jaex
865fd0bcf9 #3008: Added image editor events 2017-12-17 10:30:39 +03:00
Jaex
4f1b2f16c0 Use darker button color for depth color instead of black 2017-12-17 08:56:58 +03:00
Jaex
1b5f446a6d Added MouseEnter, MouseLeave events to DrawableObject, show hand cursor for buttons 2017-12-15 03:32:41 +03:00
Jaex
f2bb4d7f6f If crop buttons out of client area then move them to inside crop rectangle 2017-12-13 23:03:06 +03:00
Jaex
0f23bf1018 Fixed rectangle limit 2017-12-13 02:22:24 +03:00
Jaex
91f203cd35 Limit crop rectangle to inside canvas 2017-12-13 02:02:00 +03:00
Jaex
8eaa3b198e Auto crop won't automatically crop without user confirmation 2017-12-13 01:19:52 +03:00
Jaex
4fb70e864a Added button hover state 2017-12-13 00:37:38 +03:00
Jaex
adb2fdc713 Move confirm button to left, wider buttons 2017-12-12 20:18:43 +03:00
Jaex
e7d3aabb2a Added crop cancel button 2017-12-12 20:06:06 +03:00
Jaex
2c4943234f Added mouse events to DrawableObject, if object clicked then handle mouse input, crop confirm button works now 2017-12-12 19:12:25 +03:00
Jaex
e1a86be0fa Moved DrawableObjects to ShapeManager, adding confirm button to crop tool 2017-12-12 18:50:02 +03:00
Jaex
b6755df7af Added BaseTool which will limit only single tool to be visible on screen and auto clear it when changing tool 2017-12-12 18:17:38 +03:00
Jaex
0a9a479264 Small DrawableObject changes 2017-12-10 15:44:02 +03:00
Jaex
4085e5a5e4 Added position to mouse methods 2017-12-10 13:49:16 +03:00
Jaex
5ce01cd2be Added mouse pressed/released methods to DrawableObject 2017-12-10 13:27:49 +03:00
Jaex
fa6b20a8fd Refactor ScrollbarManager class 2017-12-10 12:45:39 +03:00
L1Q
b90d4885ec Add scrollbar fade effect 2017-12-09 22:44:49 +02:00
Jaex
6c1047eab8 Added ScrollbarManager 2017-12-08 17:21:44 +03:00
Jaex
fbf5f88ce1
Merge pull request #2987 from L1Q/master
Improve panning scrollbars
2017-12-08 16:43:06 +03:00
L1Q
35b4f3765f Improve panning scrollbars
- fix rounding errors
- change padding method
2017-12-08 15:40:52 +02:00
Jaex
d9200a6fb1 Change scroll bar colors 2017-12-08 15:03:50 +03:00
L1Q
e554c819ce Limit panning based on 25% of client area instead of 100px 2017-12-08 12:44:01 +02:00
Jaex
439ce0c2ed Change font size unit 2017-12-07 23:21:55 +03:00
Jaex
d37fc01726 Added font size option to step tool 2017-12-07 23:17:36 +03:00
Jaex
c0fda0ab3e fixed #2974: Allow non URL clipboard text input for QR code form 2017-12-07 16:36:01 +03:00
Jaex
2fa3480b79 Return if scroll bar not necessary 2017-12-07 14:57:18 +03:00
Jaex
b29dcf39c2 Few changes to scroll bars to improve visibility 2017-12-07 14:34:29 +03:00
L1Q
71fec869f7 Refactor panning scrollbars
- refactor variable names
- make pens and brushes dispose
2017-12-07 11:17:04 +02:00
L1Q
4275a16f28 Add visual scroll bars for panning 2017-12-06 22:05:02 +02:00
Jaex
96956a0fb9 Fixed small canvas size window centering 2017-12-06 16:05:50 +03:00
Jaex
b86a9d6bcc Added resampling option to image size dialog 2017-12-06 10:05:17 +03:00
Jaex
5d57bc40dd Update Mega lib 2017-12-05 20:44:57 +03:00
Jaex
95c9eb48d2
Merge pull request #2980 from 123jimin/master
Modified and added some Korean Translations
2017-12-05 18:49:28 +03:00
Jimin Park
0dfd2dd40d Modified and added some Korean Translations
Also moved two Editor UI literals into a resx file.
2017-12-06 00:44:38 +09:00
Jaex
2674046dce Namespace changes 2017-12-05 17:59:18 +03:00
Jaex
88d362383a Save GIF palette to Tools folder instead of near FFmpeg.exe 2017-12-05 10:27:17 +03:00
Jaex
4a965181b4 Use built in FFmpeg in Windows Store builds 2017-12-05 09:53:04 +03:00
Jaex
8c8134a823
Merge pull request #2972 from 123jimin/autoscale-fix
Removed AutoScaleDimensions assigns for four fullscreen forms
2017-12-04 14:16:59 +03:00
Jimin Park
0495d8d8bc Changed AutoScaleMode of four fullscreen forms to None 2017-12-04 20:16:03 +09:00
Jaex
8102d29ef8 Made auto size start mode default, added auto size to resources 2017-12-04 03:38:36 +03:00
Jaex
1aeae40c6a Change editor minimum size 2017-12-04 03:32:38 +03:00
Jaex
b077ea9221 Added image editor auto size start mode which resizing image editor to fit image, if image is too big then window will be maximized 2017-12-03 14:40:16 +03:00
Jaex
525a603cf4 Added canvas parameter to RegionCaptureForm constructor that way no need to use Prepare method 2017-12-03 13:46:19 +03:00
Jimin Park
a8e2004f9f Removed AutoscaleDimensions assigns for four fullscreen forms
This fixes the annoying incorrect capture region problem, and I think that this will not cause any significant layout problems for different DPIs.

However, while this works well on my laptop with different text scale settings, it should be checked on different computers as well.
2017-12-03 02:24:06 +09:00
Jaex
45c53600c5
Merge pull request #2968 from MilkGames/master
Add more Dutch Translations
2017-12-01 23:49:06 +03:00
Jaex
793795bebc
Merge pull request #2966 from 123jimin/master
Updated Korean Translations for ShareX
2017-12-01 23:41:38 +03:00
MilkGames
fd851692b3 More translations in Dutch 2017-12-01 20:31:58 +01:00
Jimin Park
c66a0aa68b Updated ScreenCaptureLib solution file for inclusion of ko-KR translations 2017-12-01 21:11:49 +09:00
Jimin Park
93ac1fc055 Added more Korean Translations for ShareX.ScreenCaptureLib 2017-12-01 21:05:32 +09:00
Jaex
57302f58bf Use Click event instead of MouseDown 2017-12-01 11:08:32 +03:00
Jaex
de420e7319 Added paste button to image editor edit menu 2017-12-01 10:58:53 +03:00
Jaex
fd5bdaa9ea fixed #2963: Make sure to set initial size on shape paste so proportional resizing can work 2017-12-01 09:33:08 +03:00
Jaex
3215de1fda fixed #2757: Added auto crop image support to image editor 2017-11-28 22:10:45 +03:00
RedMser
1c6ab9f984 Set BackColor of all TabPages to "Window" (used to be Transparent) to fix rendering issues for certain themes. 2017-11-27 20:14:31 +01:00
MilkGames
fbd5e91388 add new dutch translations 2017-11-27 19:56:52 +01:00
L1Q
8f8a9e5a1f Translate the panning tip 2017-11-27 04:54:47 +02:00
Jaex
a74d510365 Show image pan tip in image editor until first time panned 2017-11-24 17:07:39 +03:00
L1Q
58fc0391bc Update Russian translation 2017-11-21 12:23:51 +02:00
L1Q
7398833c2d Improve translation support
- "Editor start mode"
- ImageEditorStartMode enum
2017-11-21 12:22:55 +02:00
Jaex
a4c2fa5a70 Renamed Default start mode to Normal 2017-11-21 12:32:07 +03:00
Jaex
96b1301e3f Don't use proportional resizing for side nodes 2017-11-20 22:31:53 +03:00
Jaex
64cdf85b8d Revert position assignment 2017-11-20 22:31:16 +03:00
Jaex
8d41315c47 Added proportional resizing with resize node support 2017-11-20 21:25:18 +03:00
Jaex
1ba381e251 Interim commit for proportional resizing with resize node 2017-11-20 20:57:47 +03:00
Jaex
68b62f7bde When canvas modified update effect cache 2017-11-18 19:09:10 +03:00
Jaex
7b4204df10 If shape deleted when processing then queue dispose to be executed after processing is finished 2017-11-18 12:33:51 +03:00
Jaex
baf77a4069 Make sure effect only cached when all arrow keys released and make sure to not cache when moving with mouse 2017-11-18 11:35:19 +03:00
Jaex
782099c5c8 Avoid effect flicker when moving with keyboard 2017-11-18 10:49:46 +03:00
Jaex
5d1c347644 Fix cache related issues 2017-11-18 10:04:13 +03:00
Jaex
011b587cec Keyboard shape movement also gonna use real time effect preview now 2017-11-17 19:47:11 +03:00
L1Q
87a0c958cf Queue ClearCache 2017-11-17 18:15:20 +02:00
Jaex
8e671348ae Queue processing if it is requested while already processing 2017-11-17 18:50:14 +03:00
Jaex
7f90c61a9d Improvements to async effect processing 2017-11-17 17:57:15 +03:00
Jaex
7df6f6c4f5 Implementing async image effect processing for image editor 2017-11-17 16:35:59 +03:00
Jaex
5aefb10de4 Refactor effect shapes 2017-11-16 16:00:11 +03:00
Jaex
b73ac79e4d Fix line panning 2017-11-16 13:42:13 +03:00
Jaex
165548f376 Use Points in arrow drawing shape too 2017-11-16 12:40:56 +03:00
Jaex
d8cf9f1d17 Fix resize node issues 2017-11-16 12:21:05 +03:00
Jaex
920916c4ff Line drawing shape refactoring 2017-11-16 11:47:26 +03:00
Jaex
20fe02f41c More rectangle usage 2017-11-16 09:36:21 +03:00
Jaex
6a072fa079 Set rectangle instead of start/end positions 2017-11-16 09:02:27 +03:00
Jaex
7766ba374e Rectangle will also set start and end positions 2017-11-15 09:54:19 +03:00
Jaex
59f17da0a8 Show overlay when moving effect with keyboard 2017-11-15 08:48:27 +03:00
Jaex
fbc335afcd Update effect cache on setting change 2017-11-15 02:37:17 +03:00
Jaex
09f6edce4a Force cached effect to be inside canvas 2017-11-14 15:27:32 +03:00
Jaex
d3295a412a Fix OnDrawFinal issues 2017-11-14 15:15:28 +03:00
Jaex
18cbe0b72c Added RectangleInsideCanvas property 2017-11-14 15:05:12 +03:00
Jaex
147a4efac7 Fixed OnResizing issue 2017-11-14 14:21:36 +03:00
Jaex
13bf678f63 Added OnResizing and OnResized methods, so resize nodes can update effect cache 2017-11-14 13:55:05 +03:00
Jaex
100cc47585 Added real time blur, pixelate, highlight preview in image editor 2017-11-14 12:12:49 +03:00
Jaex
4ca85ec96f Use combo box for image editor start modes 2017-11-12 23:44:18 +03:00
Jaex
e08543abaf Fixed center canvas toolbar height 2017-11-12 12:11:20 +03:00
Jaex
4d0c8c5a6f Added border around canvas area,
Changed default image editor background color to gray
2017-11-12 11:51:45 +03:00
Jaex
763eb85d3c TopMost false for text input form, image size form, canvas size form 2017-11-12 10:32:55 +03:00
L1Q
268e3d1e20 Update Russian translation
- translate "Editor background color"
2017-11-10 03:21:15 +02:00
L1Q
e93c57541c Move "Editor background color" to resx 2017-11-10 03:20:52 +02:00
Jaex
69d57b07bd Only draw two arrows if two arrows not collide with each other to avoid GDI related bug 2017-11-09 19:55:37 +03:00
L1Q
db56792472 Fix moving canvas offscreen when resizing
Also fix canvas jumpling once when resizing
2017-11-09 06:35:26 +02:00
L1Q
27f790d862 Fix AutomaticPan 2017-11-09 05:00:27 +02:00
Jaex
2b5c9c7b11 Show editor background color on menu icon 2017-11-08 21:24:25 +03:00
L1Q
4b6d40ca20 Prevent panning from moving canvas offscreen 2017-11-08 19:09:36 +02:00
Jaex
f0e5416e0d In image editor show FPS on title bar 2017-11-08 03:47:22 +03:00
L1Q
b9d1b150c6 Fix image from file shape created with 0 size 2017-11-07 19:08:52 +02:00
L1Q
b902e33593 Fix shapes being 1px bigger 2017-11-07 19:06:35 +02:00
L1Q
eaac08413c Fix resizing some shapes with keyboard 2017-11-07 19:05:27 +02:00
L1Q
ec030b1fc2 Fix shape moving twice when moving and panning at the same time
Fix resizing while panning.
2017-11-07 08:24:58 +02:00
Jaex
13a3dc14fb Added editor background color option 2017-11-06 22:10:46 +03:00
Jaex
70635461d5 Rename variables 2017-11-06 19:01:02 +03:00
Jaex
e96acf05d9 Remember last editor tool separate from last annotation tool 2017-11-06 18:36:52 +03:00
Jaex
b85454bf7e AcceptButton was causing issue in few forms 2017-11-04 20:32:59 +03:00
Jaex
42ab856a28
Merge pull request #2900 from stuntguy3000/use-form-cancel
Use Accept and Cancellation buttons where appropriate
2017-11-03 16:14:57 +03:00
Luke Anderson
81f5868232 Use Accept and Cancellation buttons where appropriate 2017-11-02 20:07:27 +10:30
Jaex
957d19faf3 Added -movflags +faststart to x264 encoder 2017-11-02 11:02:39 +03:00
Jaex
e64135f94d Show image size and file name in title bar 2017-10-30 14:33:12 +03:00
Jaex
eb7992e36d Run image editor on STA thread that way multiple editors can be opened without block main thread 2017-10-30 14:14:13 +03:00
Jaex
8f97e5896e Make sure to not update toolbar when ShareX closing 2017-10-30 11:48:58 +03:00
Jaex
0c30cb832f Don't use static custom node image 2017-10-30 11:20:03 +03:00
Jaex
255f9f99e2 Allow creating empty text box 2017-10-30 10:43:21 +03:00
Jaex
21ef3a4d1a Rename ImageRectangle to CanvasRectangle 2017-10-30 09:06:04 +03:00
Jaex
2faaf4d981 Removed toolbar animation 2017-10-29 17:24:27 +03:00
Jaex
97b4b343b0 When centering canvas start offset from toolbar height 2017-10-29 17:06:44 +03:00
Jaex
f3244a979c Fix remember menu state in region capture 2017-10-29 13:25:30 +03:00
Jaex
9f72d07164 Center image editor to active monitor 2017-10-29 12:49:25 +03:00
Jaex
7cae61c18c
Merge pull request #2890 from L1Q/master
Translation improvements and updates
2017-10-29 10:10:12 +03:00
Jaex
8e1d8cf6a2 Image size form must be top most 2017-10-29 09:58:28 +03:00
L1Q
31868467c1 Update russian translation 2017-10-28 23:44:48 +03:00
L1Q
179500cb90 Improve translation support 2017-10-28 23:40:50 +03:00
L1Q
6544e1285f Allow toolbar dragging when image editor is fullscreen 2017-10-28 18:04:45 +03:00
Jaex
7ef8f374d7 Rename "Annotate image" to "Image editor" 2017-10-28 17:36:28 +03:00
L1Q
acb130d072 Make editor check for fullscreen on startup only 2017-10-28 17:09:21 +03:00
L1Q
eaf5d8fc80 Fix FPS indicator in windowed annotate
It should not take multiple monitors into account there
2017-10-28 15:45:16 +03:00
Jaex
0c29e23d53 In editor mode show canvas relative position under magnifier 2017-10-28 08:49:09 +03:00
Jaex
f5231613b8 Fix shape move all related issues 2017-10-28 03:26:29 +03:00
Jaex
afd81c2181 Center region capture toolbar to active monitor 2017-10-27 11:54:19 +03:00
Jaex
ff41e13e52 Make padding space equal in each side 2017-10-27 10:56:32 +03:00
Jaex
b6ef6487bc Don't show drag nodes on editor toolbar 2017-10-27 10:42:57 +03:00
Jaex
360cfab74c Fixed fullscreen annotate toolbar not visible 2017-10-27 08:37:37 +03:00
Jaex
ec9298fd75 Fixed when remember state is selected it not updates positions 2017-10-27 04:08:06 +03:00