Commit Graph

417 Commits

Author SHA1 Message Date
lupoDharkael
801fb7ebf0 Fix windows build 2018-04-29 12:55:16 +02:00
lupoDharkael
28940f9e75 Remove dbus related header in CaptureRequest 2018-04-29 11:37:01 +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
55ab65ae12 Use explicit QVector in for loop 2018-04-24 01:02:24 +02:00
David Judge
d044504322 Traslation for Hungary (#189) 2018-04-24 00:40:48 +02:00
lupoDharkael
2cd6647d4b Fix flameshot --raw wait time with delay 2018-04-23 20:21:36 +02:00
lupoDharkael
213cd5d48c Prevent compilation with empty version
Compiling the project without git installed uses a hardcoded
version with a *-dev ending in the dev versions instead of
the specific commit information after the version.
2018-04-23 20:17:34 +02:00
lupoDharkael
eb5c09b29a README: update commands and packaging info 2018-04-23 19:39:30 +02:00
lupoDharkael
73b9609c54 Command parser: Improve flameshot full error message 2018-04-23 19:30:07 +02:00
lupoDharkael
17ac6f7a35 Filename: replace colons with dashes 2018-04-23 17:09:19 +02:00
Boyuan Yang
1fd1ad3a61 Another attempt to fix zh_CN translation (#198)
* translations: update zh_cn translation

* translation: More fixes to zh_CN translation
2018-04-23 15:58:33 +02:00
lupoDharkael
c942383b00 Selection fixes 2018-04-19 09:16:30 +02:00
lupoDharkael
205cd7c87b Add basic code for the Pin tool 2018-04-17 00:06:57 +02:00
lupoDharkael
344d327528 Add autostart to config flags 2018-04-16 19:34:17 +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
f1ec6f885e Selection refactor
New improved selection code:
- Selection decopuled into a new class
- When you drag the selection against the limits it won't become
permanently smaller, it will "bounce" trying to recover its size.
If you drop it again it will adapt its size to the borders of the
screen.
- Fixed bugs in the button position algorithm.
- Implemented selection animations for future implementations.
2018-04-15 21:29:16 +02:00
lupoDharkael
2f29179213 Update buttonArea after resize 2018-04-15 16:25:48 +02:00
lupoDharkael
7b36148c05 Fix panel mouse event handling 2018-04-15 12:59:07 +02:00
lupoDharkael
522c9b1ed1 Add panel
The side panel opens with the Space key, this panel can contain
    widgets to assist the capture with more features.
    This commit fixes the preview of the tool hiding it when the
    mouse hovers a widget. This is more needed now having a new widget
    inside the CaptureWidget.
2018-04-13 20:26:24 +02:00
lupoDharkael
1047aa0058 Make SysNotification title string translatable 2018-04-11 20:00:05 +02:00
lupoDharkael
009b6fb71a Systray: add Take Screenshot menu item 2018-04-11 19:27:33 +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
Boyuan Yang
a5ad7299b0 translations: Refresh with lupdate; finish zh_CN translation (#182) 2018-04-11 18:41:43 +02:00
lupoDharkael
7977b5a6a7 Fix arrow undo 2018-04-11 01:21:17 +02:00
lupoDharkael
0f5159a748 Prevent the selection from leaving the area 2018-04-10 18:57:03 +02:00
lupoDharkael
e18a291545 Center the buttons when they are inside of the selection 2018-04-10 18:49:29 +02:00
lupoDharkael
ab207d8546 Saves use datetime as default name 2018-04-10 17:02:55 +02:00
lupoDharkael
2fd982bed3 Remove not needed file 2018-04-10 16:07:30 +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
f9fb7694e5 No keyboard focus in opacity slider 2018-04-05 20:37:54 +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
Carlos Hernandez
38d08504eb snapcraft files added (#120)
* Ignore snapcraft build files

* Ignroe flameshot tarball created by snapcraft

* Adding snapcraft files

* Clean snap build.
2018-03-20 14:38:54 +01:00
Boyuan Yang
e26f9d2849 desktop: Add zh_CN translation; Add 500ms delay for Capture (#171)
closes: #166.
2018-03-20 14:01:59 +01:00
lupoDharkael
0e81c6b1f9 Fix #169: Unable to write file when exporting config 2018-03-18 13:15:09 +01:00
Boyuan Yang
0523a83722 Pop notifications after captures are saved in clipboard (#164) 2018-03-10 17:33:48 +01:00
Muhammad Mominul Huque
0b0b2c35f0 Wrap Fedora install instructions in code blocks (#157) 2018-03-05 18:55:48 +01:00
Ahmed Zetao Yang
b42c3c0570 travis_linux make adjustments (#155)
Make adjustments, because the desktop file changes.
2018-03-05 16:49:17 +01:00
Gennadiy Chernyshyk
d89f987a55 Update Russian translation (#153) 2018-03-04 12:48:55 +01:00
Alfredo Ramos
53a14a3f1c Minor Spanish fix and translations cleanup (#148)
* Minor fix in Spanish translation

Fix punctuation in the Capture widget and mark as done a couple of already translated strings.

* Remove obsolete translations

Remove vanished translations and sync TS files to properly display the sources in Qt Linguist.
2018-03-04 12:43:34 +01:00
Alfredo Ramos
1bf2829217 Use single desktop file with actions (#149)
* Merge desktop files

Use Desktop Actions instead of installing three different files, this would prevent confusion (see #140) and will make easier to maintain a single desktop entry.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887466
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions

* Desktop entry cleanup

Translations were removed to start clean and because they need to be updated to match the new Name.
2018-03-04 12:23:51 +01:00
Dharkael
8d44c4a49d Update information about translations 2018-03-04 00:02:02 +01:00
Dharkael
5057f7ee26 README: Add contribution information 2018-03-03 18:12:07 +01:00
lupoDharkael
36d5127796 Add CONTRIBUTING.md 2018-03-03 18:08:43 +01:00
lupoDharkael
dddd185394 Allow tray customization 2018-03-02 15:12:14 +01:00
Gennadiy Chernyshyk
a289713cfe Remove unnecessary space symbol from one string in settings (#146) 2018-03-02 13:43:15 +01:00
lupoDharkael
fff5888152 Fix full -c block 2018-02-28 14:46:53 +01:00
Ahmed Zetao Yang
95e5b0eb64 Improve travis & appveyor (#131)
* improve travis

Add distro name in the packages generated by Travis

* improve appveyor

Add translations in appveyor
2018-02-24 15:33:15 +01:00
Boyuan Yang
59726e772a README.md: Update info about flameshot in distros (#130) 2018-02-24 14:15:45 +01:00
lupoDharkael
9abdb0e7f2 Prepare for v0.5.1 2018-02-24 12:19:04 +01:00