Commit Graph

16 Commits

Author SHA1 Message Date
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