Commit Graph

892 Commits

Author SHA1 Message Date
borgmanJeremy
822d2a5eee External all cli (#2752)
* Properly constructs external app command line

* DesktopFileParser only reads .desktop files

* Replace % in AppLauncherWidget in array not string

* applied clang-format

Co-authored-by: Al Williams <al.williams@awce.com>
2022-07-03 08:34:51 -05:00
borgmanJeremy
e319beff62 Fix magnify windows (#2746)
* Fixed issue with magnifier on windows where screen numbers were not monotonically increasing

* clang format

* fixed dos line endings

* remove qt debug
2022-07-02 13:06:41 -05:00
borgmanJeremy
899af3e3a6 disable option to launch on start by default (#2735) 2022-06-30 08:01:37 -05:00
borgmanJeremy
21f2a4e487 Added option to pin menu to close pin (#2736) 2022-06-30 07:58:52 -05:00
borgmanJeremy
de5241dd4e Fix size not appearing on size tool when started from launcher (#2734)
* Fix size not appearing on size tool when started from launcher

* clang format
2022-06-29 19:22:13 -05:00
Alaskra
44b19a90e1 fix issue about externalWidget launchapp (#2698) 2022-06-29 17:59:57 -05:00
Jeremy Borgman
1f3ca56b97 Fix pin widget scrolling on windows 2022-06-28 20:00:41 -05:00
thehunmonkgroup
13c034c1e4 rename Imgur API Key to Imgur Application Client ID (#2719) 2022-06-28 16:09:52 -05:00
luzpaz
04b57e4957 Fix typos (#2705)
Found via `codespell -q 3 -S *.ts,./external`
2022-06-28 08:25:08 -05:00
borgmanJeremy
37c4ab4f2a Revert "Another way to fix Launchapp unexpectly close (#2675)" (#2691)
This reverts commit adb58e247b.
2022-06-20 09:13:45 -05:00
Alaskra
adb58e247b Another way to fix Launchapp unexpectly close (#2675)
* fix unexpected close when launch external app

* update

* another way to fix launchapp crash

* format
2022-06-18 09:18:59 -05:00
borgmanJeremy
5f751a2b7e Added missing strings to translation files (#2682)
* Added missing strings to translation files

* Added missing strings to translation files
2022-06-18 09:13:06 -05:00
Alaskra
fb42ad5c25 fix unexpected close when launch external app (#2617)
* fix unexpected close when launch external app

* update
2022-06-10 08:46:21 -05:00
Haris Gušić
98c1b029e3 Fix CloseOnLastWindow caused by tool change (#2645)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-06-03 12:27:54 -05:00
borgmanJeremy
65e3a01360 Print info messages to stdout instead of stderr (#2639) 2022-06-02 08:38:31 -05:00
vozdeckyl
7a57268ca3 Dev bubble pointers (#2638)
* adding a simple line as a test

* replacing line with pointer

* remove commented out lines

* code format

* fixed the 'QPainterPath path' error

* make pointers more pointy

* comment and variable name

Co-authored-by: Mehrad Mahmoudian <m.mahmoudian@gmail.com>
2022-06-01 19:29:25 -05:00
borgmanJeremy
46801d933a Added the ability to cache the last region (#2615)
* Added the ability to cache the last region

* adding cli option

* addressed typo comments and applied clang-format
2022-06-01 09:18:54 -05:00
greenfoo
2582f063cc Suggest setting XDG_CURRENT_DESKTOP if DE cannot be detected (#2634) 2022-05-31 09:58:39 -05:00
Haris Gušić
0116740e54 Fix selection offset (#2630)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-05-31 09:56:52 -05:00
vozdeckyl
14100659b9 Fix missing icon on snap (#2616)
* defined FLAMESHOT_ICON variable

* print statements

* remove print statements

* adding FLAMESHOT_ICON to snap yaml file

* code format; comment
2022-05-23 10:06:24 -05:00
borgmanJeremy
9763513a25 Added the ability to define a region for a screen shot in the launcher (#2208) 2022-05-03 19:43:52 -05:00
borgmanJeremy
972458496f apply clang tidy fix (#2579) 2022-05-03 08:09:42 -05:00
vozdeckyl
de95c357de get rid of the empty string in the options (#2552) 2022-05-01 09:16:47 -05:00
Alaskra
724a28f43a fix the cover problem when save pinned picture. (#2549) 2022-04-30 19:54:16 -05:00
Haris Gušić
03af9d807c Remove extra timer shots when moving selection with keyboard (#2545)
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-04-13 19:54:35 -05:00
borgmanJeremy
0c9a58fad0 fixed segfault when screen number exceeds screen count (#2534) 2022-04-07 10:31:32 -05:00
borgmanJeremy
e1b55d310f fix another issue with slider (#2533) 2022-04-07 10:30:51 -05:00
borgmanJeremy
50db18451c Fix sidebar slider not resizing (#2530) 2022-04-07 08:04:32 -05:00
borgmanJeremy
8028278d16 cleaned up pin widget a bit (#2531) 2022-04-07 08:04:17 -05:00
Dean
db5f8a762c pinwidget: allow copying to clipboard and saving to file (#2519)
Co-authored-by: zhangfuwen <zhangfuwen@foxmail.com>
2022-04-06 20:53:25 -05:00
Dean
850260dff6 pinwidget: allow moving widget partially outside of screen under linux (#2520)
Co-authored-by: zhangfuwen <zhangfuwen@foxmail.com>
2022-04-06 08:45:45 -05:00
borgmanJeremy
6ebd0fb9a4 fixed mismatched definition (#2525) 2022-04-05 09:55:45 -05:00
greenfoo
3cd2deca58 Make KDE use Freedesktop portal (#2495) 2022-04-04 19:34:12 -05:00
borgmanJeremy
c01ffeccf0 Allow users to override imgur key (#2503)
* Allow users to override imgur key

* Remove debug statements
2022-03-30 15:15:54 -05:00
Haris Gušić
54690d5be8 Major Controller refactor (#2295)
* Change Controller interface to mimic the CLI

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove obsolete handleCaptureTaken

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Extract system tray icon into separate class

The implementation is not complete and full of bugs

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove Controller::handleCaptureFailed

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix a QObject connection

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Controller: remove unused includes

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Make check for updates work again

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move functionality to daemon and tray icon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Rename SystemTray to TrayIcon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing trayicon.* files

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing QDesktopWidget

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Fix syntax errors

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Add missing include

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Include missing QOperatingSystemVersion on Mac

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Move update checking to daemon

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Remove obsolete method Controller::doLater

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Some cleanup

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Rename Controller to Flameshot

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>

* Final touches

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2022-03-25 09:47:21 -05:00
borgmanJeremy
e97f733784 fixed high CPU usage on pin (#2502) 2022-03-25 08:43:51 -05:00
borgmanJeremy
a6144df367 Fix alignment bug and applied many clang format warnings (#2448)
* Fix alignment bug and applied many clang format warnings

* removed nodiscard from slot
2022-02-23 06:33:58 -06:00
Andrea
413a3f9372 Pinch gesture on pinned screenshot (#2447)
* Minor refactoring

* Pinch gesture works fine

* Consolidated Zooming in/out

* Minor refactoring

* Minor refactoring

* clang-format

* Fixed scroll phases on Linux

* clang-format

* Re-added size constraint

* clang-format
2022-02-23 06:33:40 -06:00
borgmanJeremy
aa6b5eac93 allow final actions when printing geometry (#2444) 2022-02-18 12:30:10 -06:00
borgmanJeremy
424b7fba37 applied some clang modernize (#2435) 2022-02-16 21:15:25 -06:00
borgmanJeremy
53698bca6f Fix double clic (#2432)
* ensure copy only happens with left double click

* Added option to enable and disable copy on double click.

* Only show double click shortcut if it is enabled
2022-02-16 19:28:14 -06:00
UnkwUsr
db9461650c fix: arrow tool glitches (#2395) 2022-02-12 18:05:44 -06:00
Dearsh Oberoi
b4188f7ec8 Improve Colorpicker (#2403)
* Fix

* update preset functionality added

* dynamic radius

* added drag to swap

* Refactor

* Fix Bug
2022-02-12 18:04:20 -06:00
borgmanJeremy
bcb4041e0e allow numpad numers to resize and fix text artifacting on large resize (#2386) 2022-02-07 08:19:43 -06:00
borgmanJeremy
74db680505 fix bug on macos with save dialog (#2379)
* fix bug on macos with save dialog

* refactored Saver to not be a class since there are no member variables

* removed useless comment
2022-02-06 17:51:51 -06:00
Mehrad Mahmoudian
6cd9d9ecc9 better zsh code completion (#2382)
* Adds links to sponsors in README

* Adds AnonAddy to the sponsor list

* adds a more comprehensive zsh completion

* fix the extra square brackets

* fix the CMakeLists to handle the new paths
2022-02-06 17:49:38 -06:00
Andrea
1bacc69183 Zooming in/out happens at different speed (#2378)
* Resizing pinned screenshot

* Zooming in/out on pinned screenshot

* Minor refactoring

* clang-format
2022-02-06 12:20:58 -06:00
borgmanJeremy
0ac48f5c4b Clang tidy (#2372)
* Added missing braces

* applied some clang modernize

* clarified auto pointer

* clang-tidy
2022-02-06 12:12:09 -06:00
Mehrad Mahmoudian
3c2a2f98cf Improve tooltips texts (#2377)
* Adds links to sponsors in README

* Adds AnonAddy to the sponsor list

* minor modification on the tooltip text of some config options

* adds tooltip text for magnifier config options

* clang-format
2022-02-06 12:11:55 -06:00
SilasDo
cf08755c8b Added magnifier for more precise selections (#2219)
* added a magnifierwidget

* added option to show magnifier and added option to switch to square shaped magnifier

* integrated magnifierwidget into capture

this could probably be done in a nicer way.
right now the magnifier wont show if you select via the move tool.

Co-authored-by: Silas Dohm <silas@sdohm.xyz>
2022-02-05 19:51:28 -06:00