Commit Graph

70 Commits

Author SHA1 Message Date
lupoDharkael
41290f0212 Add dbus notifications xml 2017-12-03 15:48:45 +01:00
lupoDharkael
a7f1c96db9 Fix draw a single pixel with pencil 2017-12-03 01:07:34 +01:00
lupoDharkael
820458df89 Add on mouse draw preview 2017-12-02 16:33:07 +01:00
lupoDharkael
0357edaed8 App Launcher: add KeepOpen option 2017-12-02 11:13:11 +01:00
lupoDharkael
4664562728 Add OpenWith... tool 2017-12-01 21:35:07 +01:00
lupoDharkael
485bc58b9d Add desktop notification about failed captures 2017-11-10 19:56:59 +01:00
lupoDharkael
bb6ac04d60 Add --raw flag
Updated dbus API. Now it sends a signal with every capture, it may
be captureFailed or a captureTaken which contains the raw image
bytes in png format. You have to add an id to the screenshot calls
so it will be returned as a way to know the origin of the signal.
2017-11-09 18:14:04 +01:00
lupoDharkael
85eaa7d82e Add forced button order 2017-10-28 18:29:14 +02:00
lupoDharkael
d884b3896f Improve cursor visibility in Plasma desktop 2017-08-19 14:55:50 +02:00
lupoDharkael
b966a10c09 Now you can change the thickness of the drawing tools! 2017-08-17 14:47:27 +02:00
lupoDharkael
321ec1b555 Add a resource exporter module 2017-08-16 21:00:29 +02:00
lupoDharkael
25135b92a0 CaptureButton cleanup and add shadow effect 2017-08-16 15:54:09 +02:00
lupoDharkael
b6c1b8f047 Fix disable selection when you click outside 2017-08-16 14:36:17 +02:00
lupoDharkael
6cefead0fc delete inlines, trust the compiler 2017-08-16 14:34:16 +02:00
lupoDharkael
4a56f44bb9 Refactor in the mechanism of saving and exporting
- new imgur upload interface.
- rework for a better code structure. It still needs another change separating the Controller from the code dedicated to export data to the system.
- created the concept of "worker", component used to do some work based on a screenshot.
2017-08-16 13:44:33 +02:00
lupoDharkael
6ed8ad5597 Add some micro-optimizations in the painting process 2017-08-10 14:57:34 +02:00
lupoDharkael
c3bb1814c4 Only hide buttons drawing behind them when inside the area 2017-08-10 14:03:08 +02:00
lupoDharkael
924d467c53 general cleanup
-use of the override keyword
-delete unused code
-const correctness
-more uniform code style
-for each with const references when possible
-getters no longer use the word 'get'
-others
2017-08-09 13:20:07 +02:00
lupoDharkael
4d0b4d7b51 Fix button's emerge animation while hovering 2017-08-08 20:27:12 +02:00
lupoDharkael
16c99994d6 Hide buttons while drawing behind them 2017-08-08 20:19:58 +02:00
lupoDharkael
a8b143a303 More uniform button's hover color 2017-08-02 11:48:46 +02:00
lupoDharkael
2ca525326e Add horizontal adjustment in marker and line tools 2017-08-01 21:28:39 +02:00
lupoDharkael
6bb7746d17 Fix problem with save dialog and clipboard copy 2017-07-30 18:08:02 +02:00
lupoDharkael
bd4b5b0def Add base system notifications class 2017-07-28 18:53:17 +02:00
lupoDharkael
3199059ede The controller is globally accesible
The controller class has some important methods which may be
required in multiple parts of the code. Now that class is a
singleton (that may change in the future).
The core parts have been moved to src/core.
Now the tray Icon can be disabled by the controller.
I need to reimplement a new notification system due to its
dependency with the tray icon, they are disabled in this actual
commit.
2017-07-28 11:34:39 +02:00
lupoDharkael
e96ae28cb8 Improve cursor update 2017-07-26 14:16:55 +02:00
lupoDharkael
7ff9013a6f Shrink the selection area when pushing against the borders of the screen 2017-07-25 19:12:39 +02:00
lupoDharkael
443e3bd674 Fix default status value in graphical save 2017-07-25 11:45:28 +02:00
lupoDharkael
8870fd1ed4 Add delayed capture support
Adding this option required to modify the dbus API, with this changed I've improved the logic which saves the captures.
2017-07-25 00:05:31 +02:00
lupoDharkael
30491887d5 Fix buttons hide in capture mode
When clicking inside the selection area repeatedly the buttons were hiding and appearing for every click. Now the wont disappear if you click inside the area.
2017-07-23 17:14:43 +02:00
lupoDharkael
58f0b12112 Merge branch 'button-refactor' 2017-07-19 10:31:54 +02:00
lupoDharkael
d4e7c63cb4 Big code refactor
The design was defective and I didn't expect the popularity of the project. After these changes the code will be more mantainable and understandable.

Among the changes we can see:
- A better code structure
- Decoupled button widget from its logic
- More code reuse
- Easier way to add buttons
- Specialized classes
2017-07-19 09:49:24 +02:00
lupoDharkael
9357312855 Remove unsupported tools 2017-07-12 15:41:36 +02:00
lupoDharkael
aed0800aac Delete all mouse-visibility references 2017-07-12 02:06:08 +02:00
lupoDharkael
07e1df1c50 Fix non-virtual monitor support 2017-07-11 22:59:54 +02:00
lupoDharkael
7ab1afb8b1 capture widget cleanup 2017-07-11 17:53:41 +02:00
lupoDharkael
ba90513fe7 Add base code for custom filenames 2017-07-11 17:46:22 +02:00
lupoDharkael
9084b74bbe Non blocking error messages 2017-07-06 21:44:29 +02:00
lupoDharkael
0525abe17c Add error notification for image upload 2017-07-06 13:11:00 +02:00
lupoDharkael
8b48131deb Fix add/delete of buttons in non english configurations 2017-07-02 15:59:17 +02:00
lupoDharkael
be684291bf fix hover color 2017-06-30 16:00:33 +02:00
lupoDharkael
4277af806f Unified binary with new DBus API 2017-06-15 20:31:06 +02:00
lupoDharkael
b1c86b9ba8 Add option to disable notifications in desktop 2017-06-14 19:52:29 +02:00
lupoDharkael
ad044fbc93 Modify classes to be QObjects 2017-06-14 01:02:43 +02:00
lupoDharkael
eecbf33a49 Refactor for consistent button position arround the selection 2017-06-13 15:25:51 +02:00
lupoDharkael
8d27dc6660 Fix crash and lag using the File Dialog 2017-06-12 03:31:13 +02:00
lupoDharkael
2351cc54fb Fix mouse capture of color picker 2017-06-06 19:41:38 +02:00
lupoDharkael
11b0e2db4b Capture window showing when mouse events are holded 2017-06-06 12:38:34 +02:00
lupoDharkael
c4849142e8 Add rectangle button 2017-06-02 01:59:43 +02:00
lupoDharkael
1802d05fde Add option to disable help message 2017-06-02 01:27:31 +02:00