Diffusion Krita ca37d0b1a208

Work on unit configuration saving when dialog are closed for the image size…

Authored by jospin on Jul 9 2017, 8:24 PM.

Description

Work on unit configuration saving when dialog are closed for the image size plugin.

Summary:
The most noticeable novelty is that unit selections now maintain when a dialog is closed and re-opened.
Parameters are saved in the config files, so even when krita is closed they are not lost.

A few improvements have been done on the spinboxunitmanager, allowing to:

  • sync them (so that it is possible to have the same unit in both, but different references for relative sizes).
  • Use % as length unit in spin box. The document aware spinbox is able to see if it is equivalent to a vw or vh.

To test the changes, just create a new image, open any dialog like canva size, image size, layer size or the offset image dialog.

Ref T1621

Reviewers: dkazakov, rempt

Reviewed By: dkazakov

Maniphest Tasks: T1621

Differential Revision: https://phabricator.kde.org/D6592

Merged Changes

CommitAuthorDetailsCommitted
6067882cd793D6592jospin
Work on unit configuration saving when dialog are closed for the image size… 
Jul 9 2017
16b0f5d11653jospin
Add a mechanism which allow the unit spin boxes to get an ideal number of… 
Jul 9 2017
f88f1e19c5c9jospin
Add % in length units 
Jul 9 2017
cdee1ca0822ajospin
Add a feature to sync two unit managers. 
Jul 9 2017
ce0c45a4b3f6jospin
Make the offset image dialog remember which unit was used before. 
Jul 5 2017
5548ec5aa58ajospin
Change the layersize dialog to remember the units and keep aspect ratio… 
Jul 4 2017
1dd7fe17a390jospin
Ensure that the canva size dialog is able to reload the previously used units… 
Jul 3 2017
56c773b378ccjospin
Add tool tips when using unit manager. 
Jul 2 2017