Commit Graph

178 Commits

Author SHA1 Message Date
Carsten Haitzler 0d0c49e616 shot - allow escape to escape the shot dialog 2022-05-23 17:35:28 +01:00
Carsten Haitzler 7e6736e743 shot - be clear about the shot uploads being unecrypted and available
we were clear, but just to be sure - tell people more expicitly that
it's all totally out-there-public data...
2022-04-12 13:16:25 +01:00
Carsten Haitzler cef95a0189 shot - reset cnp flag once cnp'd
otherwise we segv assuming we are doing cnp still and access a null
cnp_file.

@fix
2022-01-22 18:45:38 +00:00
Christopher Michael b13a34cfeb shot: Remove unused variables and unused function 2021-12-07 09:03:43 -05:00
Carsten Haitzler 5ce8d65020 shot - make initial size fit as best as possible and be big 2021-12-07 12:52:12 +00:00
Carsten Haitzler 484c9f5818 e - module icons ... the great flattening begins... (partly done)
did a chunk of the module icons, but not all. it now matches flat.
2021-04-05 23:45:47 +01:00
Carsten Haitzler 50d31fb87f shot - comment out unused func 2021-04-04 18:17:14 +01:00
Carsten Haitzler 46894c8326 shot - move to std icons for zoom buttons and overlay style 2021-04-02 12:33:25 +01:00
Carsten Haitzler e6861cae44 shot - make toolset scrollable to allow smaller window 2021-01-10 16:50:03 +00:00
Carsten Haitzler d084520660 renmove srand calls - eina ensures it does that now 2020-10-03 21:00:43 +01:00
Carsten Haitzler fbaa8984df shot - allow copy of image to selection in addition to shave and share
uses elm cnp to store the image in a selection attached to your
compositor elm win. note... some apps are fussy about what file
formats they accept... we've found through much pain that chrome (and
i assume anything based on it like electron) only accept png for cnp.
firefox accepts most sane formats (png, jpg). libreoffice too accepts
png and jpg, efl accept sjust anout anything you throw at it, so ymmv.
if paste doesnt work either the target for paste doesn't support
pasting images at all or it is fussy about formats - maybe set quality
to 100% to force png and try that as shot saves just png and jpg
(100% quality == png, evrything below is jpg).

if you want pastes of lower quality to work e.g. jpegs in chrome -
file a bug with the chrome team... :)
2020-09-05 15:51:47 +01:00
Carsten Haitzler 0fcc23e06a shot - use unclipped scroller and have image underlay tools etc.
also allow window to get smaller now as we have a bit more space to
see...
2020-07-20 21:16:19 +01:00
Alastair Poole c1a8ae187e modules. Small text fixes for modules, module.desktop 2020-07-19 12:34:47 +01:00
Carsten Haitzler dcf5bc0e7e shot - dont allow image in virtual cnavs to resize 2020-07-08 14:42:34 +01:00
Elyes HAOUAS 4d51984286 tree-wide: get rid of trailing whitespace (part 11)
Remove trailing whitespaces

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11831
2020-05-14 14:17:17 +02:00
Elyes HAOUAS 153f479d3f tree-wide: fix typos all over the place
Fix some typos

Differential Revision: https://phab.enlightenment.org/D11778
2020-05-14 12:04:51 +02:00
Carsten Haitzler 9d3b32f68b shot - reset crop every time not only if params are passed 2020-04-26 00:34:38 +01:00
Carsten Haitzler 19b76797e1 shot - fix upload args checks - typo in coverity fix 2020-04-19 12:20:35 +01:00
Carsten Haitzler 01a145811f shot upload - fix close of fd -1 - harmless but wrong
fix CID 1425205
2020-04-19 01:24:46 +01:00
Carsten Haitzler 569146ed6a shot - handle error path and don't double close fd
fix CID 1425213
2020-04-19 01:10:55 +01:00
Carsten Haitzler 7d5f64430b shot upload - handle invalid args even though they never will be
since the caller is e's shot module, they will be sane, but coverity
in theory is right.

fix CID 1425221
2020-04-19 00:44:48 +01:00
Carsten Haitzler 5ac19b1372 shot - fix leak of img data in error path
fix CID 1425223
2020-04-18 23:27:39 +01:00
Simon Tischer 118467697b shot - make it full translateable
Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11708
2020-04-15 06:53:23 -04:00
Carsten Haitzler f66ef70770 use SIL/OFL fonts for shot and be clear on the topaz font GPL-FE 2020-04-14 13:51:50 +01:00
Carsten Haitzler 4a69f273fa shot - typo in tool shadow. fix to have right mirror flip 2020-03-07 18:34:04 +00:00
Carsten Haitzler 628736a4a3 shot - add {} around subobj to fix warning 2020-01-15 19:06:24 +01:00
Carsten Haitzler dda50e8d87 shot + efm - add efm action to show dir so if same dir is open it shows
and if there is not the same dir upa  new win is created and shown.
... shot uses this to avoid shot dir duplication.
2020-01-09 00:26:45 +00:00
Carsten Haitzler 54afb369f8 shot - wheel zoom - zoom around mouse cursor coords with ctrl+wheel zoom 2020-01-06 11:08:36 +00:00
Carsten Haitzler 14e7a5c362 shot - fix padded shots out of comp bounds...
clip to comp area so we dont end up with blank areas.
2020-01-05 17:25:15 +00:00
Carsten Haitzler 7d960b12f8 shot - auto-choose a zoom that nicely fits the shot in up to 1 to 1 2020-01-05 17:14:43 +00:00
Carsten Haitzler 812ca88938 shot - make crop handles biger and easier to see in corner cases 2020-01-05 14:35:59 +00:00
Carsten Haitzler d23615046b shot - fix crop out of bounds issue 2020-01-05 12:56:36 +00:00
Carsten Haitzler 0da185b911 shot - remove debug printf. 2020-01-04 16:16:19 +00:00
Carsten Haitzler 32754cff9f shot - zoom - go back to 1/4 zoom by default
for fullscreen shots this makes so much more sense.
2020-01-04 16:15:13 +00:00
Carsten Haitzler f32ac2d1a9 shot always save shots to your users new shots dir and show dir on save
when you select save from shot now it always saves to your user shots
dir (~/.e/e/shots) and then opens up this fir for you to browse/see/dnd
out of etc. etc. for easier quick and fast access to what you just
saved. also you keep a history of your shots (you do get to clean it up
yourself when you save... no auto-cleaning - i decided not to bother
as realistically it's just more config to swizzle and mystery deletion
of files that some user has to figure out how and why it happens and
where to go change the config - just delete the ones you don't want
anymore - simple and easy.)
2020-01-04 16:10:48 +00:00
Carsten Haitzler aaea7865ef shot - remove unused code 2020-01-04 13:48:01 +00:00
Carsten Haitzler 1a7565b970 shot - fix return type of timer 2020-01-04 13:39:05 +00:00
Carsten Haitzler 40fb1bce22 shot - add delay button in shot dialog to try again with a delay
also adds an action you can bind with an explicitly provided delay
time for customization in bindings if you always use the same timeout.

@feature
2020-01-03 22:03:57 +00:00
Carsten Haitzler b34728858c shot - add 4 more draw tools - outline box and circle foot and silly walk 2020-01-03 20:17:35 +00:00
Carsten Haitzler 90fb244615 shot - make zoom reset actually go to 1:1 again 2020-01-03 18:38:43 +00:00
Carsten Haitzler 16a065fe2b shot - edit - add more zoom slots and center zooming 2020-01-03 18:33:44 +00:00
Carsten Haitzler 7da3ba0bc5 shot tmp.
shot - add shot editor with arbitrary cropping and drawing tools

We don't need padded vs other shot of window now as u can remove the
padding with a single click in the editor now, so remove that (comment
it out).

The editor allows you to click on each screen, on a window (and click
again on a window to remove the padding area for the crop so its
snugly around the window).

You can zoom in and out and scroll around.

You can add lines with an arrow, double-arrowed lines, plain lines
with no arrows, some clipart (e-logo, mallocs, pointing finger... just
having some fun) and some fun "text boxes" like though bubbles,
speecvh bubbles, just plain text with a darking outline, a plain
entry-styled text box and you can select the colors for the text and
background area as well.

It's inksape-like in that the items you draw are objects that can then
be modified or deleted. modifying them raises them and places some
controls on/over/around the object.

And you can still save and share the results.

Fun times!

@feat
2020-01-03 16:43:13 +00:00
Carsten Haitzler 7ba0d0f996 shot - reduce code a bit 2020-01-02 13:09:59 +00:00
Carsten Haitzler 7227aaeb81 shot - move save of shot and upload to slave binary tool and tidy code
this gets rid of that annoying freeze in e due to the sync save and
possibly sync dns lookups in curl. slave binary handles it now and
talks back to e via stdout.

this also splits up the code into more files for specific purposes to
make it easier to add features to and maintain. given on the todo is
the ability to explicitly select a crop region and do some basic
"drawing" too, this sets the stage for that and it made it easier to
do the above upload/save tool.
2019-12-19 23:21:17 +00:00
Carsten Haitzler b4cfada8e8 module and config - remove pointless config vars that have no use
we dont need to delay module loading anymore so remove allof this -
priority too shouldn't be necessary as well and was just a workaround.
this remvoes all of that removing some e module api's and module
struct members as well as some global config fields. it also ensures
all config files are up to date as well.
2019-09-10 17:58:30 +01:00
Ross Vandegrift 629f7d41c8 clean up .desktop files and misc typos
Summary:
Drop deprecated Encoding key from desktop files

The Encoding key is no longer required, all desktop files are assumed to
be UTF-8 encoded.  See details at:
https://standards.freedesktop.org/desktop-entry-spec/1.1/apc.html

Fix various typos and misspellings

lintian, Debian's package checker, uses strings to check for common typos
in compiled binaries.  This change fixes the ones it identified in 0.22.1.

Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5585
2018-01-04 09:57:52 -05:00
Carsten Haitzler 2be56cd8da shot - add a padded screenshot so it can also grab shadows/surrounds
nice to get a shot that also has the shadows etc. add as menu and
param options

@feature
2017-11-03 16:16:45 +09:00
Mike Blumenkrantz c31cb51499 replace <br> with <ps/> for all text 2017-08-21 10:16:35 -04:00
Marcel Hollerbach 29901d67b2 meson: use file instead of doing the relative path by hand
a reason for doing that is that you can just pack together targets into
a array and pass them to our helper, and the helper will just handle
them, so even module with eldbus codegen etc is now supported.

This also means that we are just passing the src object directly into
the shared_module call, which means the user of our helper can just pack
everything he needs into the src var and the helper does not need to
know about it.
2017-08-08 18:38:37 +02:00
Carsten Haitzler 69290dd7f4 e module build - make build files far more generic and far smaller
now mdoule build files that fllow one pattern (the most common by far)
all JUSt list their souce files and nothing else. this really cuts
down on build size/complexity.

there are other patterns too (no icons at all) that i'll do next, then
we're down into "weird" land where i'll have to think of some more
interesting ways to deal with this.
2017-07-29 08:55:36 +09:00