Commit Graph

321 Commits

Author SHA1 Message Date
Jeremy Borgman
f34def6794 changed blur class name to pixelate to match implementation 2020-09-05 11:27:00 -05:00
Martin Eckleben
feda43a0f6 Update commandlineparser.cpp
Adjusted for proper string line break code formatting.
2020-09-05 10:01:38 -05:00
Martin-Eckleben
944469cd39 Improved documentation regarding default behavior without CLI arguments. 2020-09-05 10:01:38 -05:00
Boyuan Yang
4541c79cdc Avoid hardcoded app version
Use ${PROJECT_VERSION} from CMake to provide the project version
information instead of hardcoding.
2020-09-04 21:04:51 -05:00
Boyuan Yang
a8fb73b668 Use ${CMAKE_INSTALL_PREFIX} to provide APP_PREFIX
Currently the value of $prefix is hardcoded in the source code.
This is not a good choice given we have switched to CMake and
that CMake provides the builtin variable ${CMAKE_INSTALL_PREFIX}
to provide this information.

This patch uses the value of ${CMAKE_INSTALL_PREFIX} to populate
flameshot's internal variable APP_PREFIX as well as using it
in generating the org.flameshot.Flameshot.service file with
a proper $prefix value (via CMAKE_INSTALL_FULL_BINDIR as provided
by GNUInstallDirs).
2020-09-04 20:43:35 -05:00
Jeremy Borgman
5dba3de778 Added ubuntu CI and fixed issue uncovered during CI. Also added clang-format 2020-09-04 20:40:45 -05:00
Jeremy Borgman
c8d15205be reformatted to Mozilla code style 2020-09-04 20:40:45 -05:00
borgmanJeremy
c0e2e48db4 Fix CMake Package and DBUS Names (#819)
* Fix CMake Packaging to properly package assets.
2020-09-04 19:29:37 -05:00
Jeremy Borgman
286db9ff69 Fixed translations and added feedback from PR 2020-09-03 11:51:18 -05:00
Jeremy Borgman
3e226651db Added cmake install directions 2020-09-02 12:20:21 -05:00
Jeremy Borgman
dc77029cde Fixed most depratated warnings. 2020-07-13 15:02:18 -05:00
Jeremy Borgman
f5013df306 First pass at converting from qmake to cmake. 2020-07-10 20:10:14 -05:00
Jeremy Borgman
f99ca6c78c Changed blur tool to pixelate instead 2020-06-24 10:23:36 -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
gm10
f648e88cca Add missing window icon to ImgurUploader (#618) 2019-10-01 19:54:40 +02:00
luzpaz
97b02a80b4 Fix misc. whitespace (#621) 2019-10-01 19:53:29 +02:00
Daniel Chabrowski
807e240d6c Fix pragma once in globalvalues.h (#537) 2019-05-22 17:04:44 +02:00
lupoDharkael
d4715750df Add basic launcher panel 2019-04-21 20:34:57 +02:00
lupoDharkael
cbb4727786 Add option to close flameshot after every capture 2019-04-21 20:03:40 +02:00
greno4ka
7ee9a3f173 Fix problem with disabled tray icon (#495) 2019-04-18 13:41:08 +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
Nikolai Oplachko
b42f1cf01d Add 45-multiple degree adjustment for line, arrow and marker tools (#439)
* Add 45-multiple degree adjustment for line, arrow and marker tools

* Adjustment: Ctrl press is checked + widened functionality for two-point tools
2019-03-31 12:38:31 +02:00
DaVukovic
abe356a4d8 Add german translation (#467) 2019-03-20 22:42:29 +01: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
Magnus Groß
a653d5a6d2 Highlight with composition mode set to Multiply (#490)
This improves readability of marked text.

Fixes #485
2019-03-13 22:18:14 +01:00
lupoDharkael
42619158fa Update copyright year 2019-03-04 16:38:45 +01:00
greno4ka
fcc14aa23d Add translation of system buttons in dialogs (#474) 2019-03-04 16:34:01 +01:00
Jiachen Yang
b612bdbbae fixing #459 by update m_context with m_selection (#470) 2019-02-22 16:29:40 +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
luzpaz
665f309018 Misc. source comment typos (#423)
Found via `codespell -i 3 -w -S ./translations -L uint,exten -C 3`
2018-12-28 16:13:29 +01:00
Alfredo Ramos
2716631591 Document shortcut for sidebar (#401)
* Document shortcut for sidebar

* Use appveyor-retry to prevent transfer.sh timeouts
2018-11-14 16:51:22 +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
dgw
7d91b00072 Make tools' (English) tooltip phrasing consistent (#375)
Some tooltips were written as imperatives ("Set foo to bar"), others
were written as simple present ("Performs foo action"). All should now
be consistently written in imperative form (unless I missed any…).
2018-10-21 10:22:21 +02:00
Alfredo Ramos
da49ed556f [WIP] Add line thickness to side panel (#374)
* Add thickness slider

* Fix enums compatibility

* Rename ColorPickerWidget to SidePanelWidget
2018-10-10 23:34:42 +02:00
Streppel
c3ad9b6c41 Fixes #362 (#363)
This fixes #362, making the enter key copy the content of the GUI selection copy the content to the clipboard
2018-10-04 16:43:25 +02:00
lupoDharkael
affba85666 Remove Wayland duplicated screenshots after dbus calls 2018-09-28 23:31:22 +02:00
Ahmed Zetao Yang
503de1be04 Pin Tool: Improve adjustment (#352)
Fix pin widget adjustment position
2018-09-21 13:55:16 +02:00
lupoDharkael
415b059fb2 Fix #311
Flameshot was unable to start new captures after saving with
    Ctrl+s while having a text area active from the Text tool.
    This was caused by the overloaded call to close() which
    was deleting the text area instead of closing the capture
    and the consequent call of the destructor. That caused an
    always active capture session.
2018-09-13 15:35:49 +02:00
Boyuan Yang
36c62f6e81 infowindow: Pop up infowindow at screen center (#318)
Currently info window will pop up at the topleft corner of the screen,
which is rather bothering. This patch will move the window to
screen center when popped up.

Since QGuiApplication::ScreenAt() is introduced since Qt 5.10, the
code will only take effect when compiled against Qt >= 5.10.

Signed-off-by: Boyuan Yang <073plan@gmail.com>
2018-08-19 18:33:00 +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
Peter Cai
ae9d18ce9e blur: fix HiDPI awareness (#305)
When copying from a QPixmap, the rectangle area should be scaled according to `devicePixelRatio`.

This fixes #300.
2018-08-11 11:44:32 +02:00
Alfredo Ramos
7ba02666d1 Fix most of the issues reported by cppcheck (#290) 2018-07-29 00:17:50 +02:00
Alfredo Ramos
228c4f15e5 Use absolute locations in translation files (#288)
They provide context when using Qt Liguist, as it shows the source code where it is being used.

Also replaced QT (capital T) with Qt, as the latter is the correct name.
2018-07-28 00:03:02 +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
Alfredo Ramos
b301880872 Update Spanish translation and cleanup (#268)
* Fix TextTool warning

It throws the following warning:

src/tools/text/texttool.cpp:50: Class TextTool lacks Q_OBJECT macro

* Add missing translations

* Remove obsolete translations

lupdate -no-obsolete flameshot.pro
2018-07-07 22:37:32 +02:00