Commit Graph

88 Commits

Author SHA1 Message Date
Boyuan Yang
18f18ce7ef Fix D-Bus activation name
Originally the App uses org.dharkael.Flameshot in D-Bus.
Since we have moved the project under organization, the
name we are using now should be org.flameshot.Flameshot.
This need to be kept unified across the whole project.

This fixes D-Bus invocation problem and should fixes: #850 .
2020-09-07 11:16:03 -05:00
Jeremy Borgman
889b688ee2 Moved TS generation behind flag, fixed more references to blur, fixed missing pixelate icon. 2020-09-06 20:21:51 -05:00
Jeremy Borgman
c8d15205be reformatted to Mozilla code style 2020-09-04 20:40:45 -05:00
Jeremy Borgman
f5013df306 First pass at converting from qmake to cmake. 2020-07-10 20:10:14 -05:00
Jeremy Borgman
9bb556acff added circle counter and fixed issue with latest qt 2020-06-11 15:26:34 -05:00
teryanik
62dbabc341 Add option to auto copy URL after upload (#553) 2019-10-01 19:58:29 +02:00
Daniel Chabrowski
807e240d6c Fix pragma once in globalvalues.h (#537) 2019-05-22 17:04:44 +02:00
lupoDharkael
cbb4727786 Add option to close flameshot after every capture 2019-04-21 20:03:40 +02:00
greno4ka
b75ee75f90 Fixup working with startupLaunch value (#477)
* Fixup working with startupLaunch value

This commit fixes problem, when you want to import or export
information about startup.

* Verify if autostart directory exists
2019-03-31 12:43:47 +02:00
Magnus Groß
5174f8dc1b Allow notification to be dragged and dropped (#473)
* Set x-kde-urls for notifications

The x-kde-urls field in the hints map allows us to provide a direct URL
to the saved screenshot. The notification server may then use this hint
to provide extra functionality, such as drag and drop support and
thumbnails.

For more information see https://community.kde.org/Plasma/Notifications#File_Path

Fixes #256

Note that other notification servers may ignore this hint.

* Avoid branching twice for ok
2019-03-20 22:41:55 +01:00
lupoDharkael
42619158fa Update copyright year 2019-03-04 16:38:45 +01:00
Pavel Makarenko
8887b4e7ce Add support for more images formats (#436)
* Add support for more images formats

* Resolves extension verifying  in case of empty save path string

* Code formatting
2019-01-30 15:37:56 +01:00
Boyuan Yang
25246a79f0 utils/confighandler.cpp: Enable Pin and Text tool by default (#443)
This commit enables all the available tools by default so that
users may use them out-of-box without bothering with modifying
configuration.
2019-01-09 19:08:54 +01:00
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
lupoDharkael
affba85666 Remove Wayland duplicated screenshots after dbus calls 2018-09-28 23:31:22 +02:00
Alfredo Ramos
7ba02666d1 Fix most of the issues reported by cppcheck (#290) 2018-07-29 00:17:50 +02:00
Alfredo Ramos
d09580b873 Optimize and use SVG images where possible (#281)
SVG images have been optimized with svgo, this will slightly reduce package size though the main reason for this was to remove unneeded markup.

Image paths have been changed and merged, now the directory tree looks like this:

img
├── app
├── material
│   ├── black
│   └── white
└── preview

The reason to merge the paths is to avoid duplicate files for buttons and configuration.

SVG icons are used by default now, PNG images have not been deleted from the images directory, but they were deleted from the graphics.qrc resource file.

All image paths were updated accordingly, except in the tray icon, I could not make it work using the SVG image.
2018-07-24 00:43:01 +02:00
Alfredo Ramos
9748ae015e Fix image file saving (#279)
This change ensures that the file name contains the PNG extension.

Currently the screenshots are saved as PNG only, so this only checks if the absolute path contains .png, it does not check the file suffix (QFileInfo).

Fixes #278
2018-07-23 11:15:39 +02:00
Peter Cai
21670e3344 screengrabber: fix devicePixelRatio detection (#277) 2018-07-22 15:30:52 +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
Alfredo Ramos
a56a58aea9 Store settings colors in hexadecimal format (#243)
This will make easier to see and edit colors in the settings file.

The format is defined by QColor::HexRgb

Fixes #142

https://doc.qt.io/qt-5/qcolor.html#NameFormat-enum

* Add config colors validation

If the user adds an invalid hexadecimal colors, defined default colors will be used instead
2018-06-07 14:23:41 +02:00
lupoDharkael
6adcfef413 Add color tools inside the capture editor 2018-05-16 23:02:30 +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
17ac6f7a35 Filename: replace colons with dashes 2018-04-23 17:09:19 +02:00
lupoDharkael
17a9000beb Define default tools
Before this change all the tools were used in the editor, now
there is a list of tools enabled by default.
2018-04-16 18:46:00 +02:00
lupoDharkael
595e778673 Fix default filename in Windows 2018-04-16 18:25:05 +02:00
lupoDharkael
1047aa0058 Make SysNotification title string translatable 2018-04-11 20:00:05 +02:00
Ahmed Zetao Yang
91bf065e82 fix translations files path (#184)
* fix translations files path

* add soft link for translation files
2018-04-11 18:54:42 +02:00
lupoDharkael
ab207d8546 Saves use datetime as default name 2018-04-10 17:02:55 +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
Boyuan Yang
986b774142 systemnotification: Fix wrong icon name (#174)
Current implementation of SystemNotification::sendMessage()
is wrongly using "flameshot.png" as icon name.

We should strip the suffix and directly use "flameshot" to comply
with Desktop Notification Specification.

This commit does so and indeed makes notifications show flameshot
icon on GNOME Shell again.

See also https://developer.gnome.org/notification-spec/ .
2018-03-26 13:17:24 +02:00
lupoDharkael
0c943d4f87 Remove Encoding entry from autostart file 2018-02-24 11:55:01 +01:00
lupoDharkael
5461b27f0e Improve content of autostart file 2018-02-22 16:39:46 +01:00
lupoDharkael
1fa3c8f81a Add custom packaging prefix to the translation paths 2018-02-12 20:59:26 +01:00
lupoDharkael
85da4a3045 Translation paths based on OS 2018-02-02 20:57:27 +01:00
lupoDharkael
cc8f697163 Improve folder organization 2018-01-30 15:23:44 +01:00
lupoDharkael
71b63dcd6a Maintain config compatibility until 1.0 2018-01-24 01:27:25 +01:00
lupoDharkael
addc3dfd8c Launch at startup now working on Windows 2018-01-24 01:11:04 +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
Peter Schuller
48106975fb Fix case statement (so we build with clang). (#101) 2018-01-22 21:15:21 +01:00
lupoDharkael
e1bc6ba9c6 Start using #pragma once 2018-01-22 20:08:21 +01:00
lupoDharkael
89ac281033 Fix whitespace consistency 2018-01-19 00:58:40 +01:00
lupoDharkael
16a082c713 Fix MSVC warnings 2018-01-18 17:26:58 +01:00
lupoDharkael
bf9892d05e Use Native File Dialog 2018-01-14 16:21:33 +01:00
lupoDharkael
3a38abc2ab Add missing license information 2018-01-12 18:10:02 +01:00
lupoDharkael
02865322bf Update copyright 2018-01-12 17:58:30 +01:00
lupoDharkael
514195ff41 Don't hardcode temp path 2018-01-12 17:55:19 +01:00