Bug 385639 - Giviing kparts shells control about kparts plugin zoom state and behaviour
Summary: Giviing kparts shells control about kparts plugin zoom state and behaviour
Status: REPORTED
Alias: None
Product: frameworks-kparts
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.38.0
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 03:41 UTC by avlas
Modified: 2021-04-23 06:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avlas 2017-10-12 03:41:39 UTC
Right now the KTextEditorPreviewPlugin allows to preview different sort of text files (for example SVG and dot files). However, there is the limitation that the size of the preview is fixed. Ideally, this size would be adapted to available space.

Discussion of this feature request appeared first here: https://frinring.wordpress.com/2017/10/09/ktexteditorpreviewplugin-0-2-0/#comment-5652

The developer of KTextEditorPreviewPlugin mentioned that this feature could also be interesting for other KParts plugins, like the Ark preview.
Comment 1 Friedrich W. H. Kossebau 2017-10-31 11:11:20 UTC
Allow me to extend this bug with more technical details:

Consumers of kparts plugins may want to take over control of the zooming state and behaviour of those. Or at least give some recommendations to the plugin for the defaults.

E.g. the KTextEditor Document Preview plugin would want to have KParts plugins by default show the document/object with fit-to-width or fit-to-size, similar to how the preview/thumbnail in the filemanager also fits the rendered document into the size available.
Similar fit-to-size defaults might be also interesting for the preview-oriented usage of KParts plugins in Ark.

No own interest here, thus also not researched more use-cases or thought about what might be a proper implementation (another abstract "zoom" interface which kparts plugins could implement, or just some standardized parameters in the load arguments?).
Comment 2 trix.robledo@gmail@.com 2021-04-23 06:00:24 UTC
i need traslate to spaniss