Commit Graph

43 Commits

Author SHA1 Message Date
James LaChance
472a275bb9 Exit non-zero when aborting with --raw. (#424)
This fixes #302. Note that I also added a non-zero exit status when DBus
fails to connect.
2018-12-28 16:39:04 +01:00
Alfredo Ramos
ee2f583acd Fix some issues detected by Clazy (#384)
* Fix old style connect

* Fix unneeded QString memory allocations
2018-10-24 01:04:42 +02:00
Jiachen Yang
59d88dd2de fix auto locale detection (#308)
Current implementation QLocale::system.language() will not correctly
differs Simplified Chinese with Traditional Chinese, which is causing
problems to load translations for zh_TW. This fix the problem by
following the documentation here:
https://doc.qt.io/qt-5/qtranslator.html#load-1
2018-08-12 11:39:42 +02:00
Danilo Egêa Gondolfo
df3958e43a Use defined(Q_OS_LINUX) || defined(Q_OS_UNIX) where applicable to support BSD OSs. (#264) 2018-07-01 13:45:49 +02:00
lupoDharkael
49227fac43 Solve cppcheck warnings 2018-05-26 18:38:06 +02:00
lupoDharkael
c766b3e048 Add capture individual screens option 2018-05-08 21:23:09 +02:00
lupoDharkael
48c058782a Implement single method capture request
The core now has a method requestCapture, which receives a
CaptureRequest object with all the needed information.
This reduces code duplication in future features.
2018-04-29 11:27:55 +02:00
lupoDharkael
2cd6647d4b Fix flameshot --raw wait time with delay 2018-04-23 20:21:36 +02:00
lupoDharkael
73b9609c54 Command parser: Improve flameshot full error message 2018-04-23 19:30:07 +02:00
lupoDharkael
344d327528 Add autostart to config flags 2018-04-16 19:34:17 +02:00
lupoDharkael
5746a58582 Code refactor
More flexible tool API
Minor code format fixes
Clipboard freeze fixed(?)
Arrow correcly growing close to the start point
Improve maintainability
Add undo/redo stack
2018-04-10 15:33:08 +02:00
lupoDharkael
db8a483b7f Dont use applicationFilePath() before QApplication instantiation 2018-02-05 15:25:40 +01:00
lupoDharkael
85da4a3045 Translation paths based on OS 2018-02-02 20:57:27 +01:00
lupoDharkael
71b63dcd6a Maintain config compatibility until 1.0 2018-01-24 01:27:25 +01:00
lupoDharkael
ae9b8c062c Fast draw colors are now loaded from config 2018-01-23 18:58:19 +01:00
lupoDharkael
d721dcd560 Prefer prefer QVector over QList 2018-01-23 18:14:17 +01:00
lupoDharkael
89ac281033 Fix whitespace consistency 2018-01-19 00:58:40 +01:00
lupoDharkael
02865322bf Update copyright 2018-01-12 17:58:30 +01:00
Boyuan Yang
f36ab43e70 Fix typos found by codespell (#70) 2018-01-09 13:58:11 +01:00
lupoDharkael
16c959c826 Add timeout using tray notification 2017-12-26 02:06:57 +01:00
lupoDharkael
77aa604127 Remove dbus from Windows build 2017-12-26 02:00:07 +01:00
lupoDharkael
11b101570f Use QStringLiteral 2017-12-15 18:34:05 +01:00
lupoDharkael
de2580e946 Redefinition of fullscreen commands 2017-11-13 16:21:46 +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
e418e50259 Add desktop notification when -p is invalid 2017-10-27 21:29:15 +02:00
lupoDharkael
f0b1aceaf6 Compatibility with Qt5.5 2017-08-19 14:49:29 +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
8addcbfb16 New command line parser
A new, more flexible and restrictive parser to improve the
usage and experience of Flameshot in the command line.
This parser is based on a parent-child node model and is very easy
to define relationships between arguments and options with
informative error checking. You can define lambdas to check the
received values for every option and custom error messages
2017-08-08 17:06:34 +02:00
lupoDharkael
ebd5272dd9 Add error check parsing cli color settings 2017-08-01 00:14:56 +02:00
lupoDharkael
d9c6b603bb Autoupdate config menu after config changes 2017-07-31 22:41:08 +02:00
lupoDharkael
37acf9383c Improve CLI commands
- Add configuration commands
- Improve error handling
- Update DBus interface
2017-07-30 18:08:25 +02:00
lupoDharkael
1c56baa00f Add in-app version information 2017-07-28 21:23:25 +02:00
lupoDharkael
d7f19a6fcf Remove partial translation in cli 2017-07-28 18:34:00 +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
dc005f6cf0 Fix logging format 2017-07-25 12:09:09 +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
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
4277af806f Unified binary with new DBus API 2017-06-15 20:31:06 +02:00
lupoDharkael
111c1efa5d Add translations path 2017-06-07 21:46:58 +02:00
lupoDharkael
6fb14b91bb Add initial DBus support 2017-06-06 12:39:25 +02:00
lupoDharkael
54bad72272 Add spanish translation 2017-05-23 15:10:34 +02:00
lupoDharkael
3593332781 Move code to ./src 2017-05-22 23:24:18 +02:00