Commit Graph

19 Commits

Author SHA1 Message Date
luz paz
4de98bdbb7 Image: remove trailing whitespace 2022-11-21 03:59:51 +01:00
0penBrain
b3cbedcc4e Make image scaling command aware of user units (#7222)
* Image: image scaling command is user unit aware ; fixes #6118

- if unitless value entered, InputField uses user choosen base unit
 Before change, always used FC core base unit
 Only applies to GUI user entered values, value changed programmatically still ...
 ... considered in core base unit if applied unitless
2022-07-25 21:17:02 +02:00
Chris Hennes
ec3472a89d Image: Change _translate to translate 2022-05-31 10:05:22 -05:00
Chris Hennes
6b16e12d7c [OTHER] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
wmayer
1e83085030 Image: [skip ci] pass trackers as argument to cmdCreateImageScaling 2020-11-21 09:51:54 +01:00
wmayer
384b085b68 Image: [skip ci] move the import of Draft trackers inside scaling function. This gives a more useful error message in case of a failure to load it 2020-11-14 12:08:03 +01:00
Syres916
c5284cb1c7 [Image] Very minor improvement to Report View..
..output
2020-10-06 12:01:32 +02:00
vocx-fc
0ba1a32b0a Draft: ImageTools, import new gui_trackers module 2020-03-23 12:14:33 +01:00
Mateusz Skowroński
625bfd4b9e [ImageWB] Fix image scaling dialog for HighDPI displays. 2020-03-03 21:27:31 +01:00
wmayer
34f280d094 replace insecure use of eval() with proper use of units 2019-05-11 12:50:36 +02:00
easyw
887a950e1d fixing locale issue for Image WB
https://forum.freecadweb.org/viewtopic.php?f=3&t=36069#p305570
2019-05-04 14:33:01 -03:00
triplus
870f4903ea Image workbench missing icons 2019-03-05 13:41:33 +01:00
triplus
92efd5fbe9 Improved icon themes support 2019-02-13 10:42:46 -02:00
wmayer
5827e9a44e fixes 0003734: Image Scaling tooltip is untranslatable and should be reworded 2018-12-16 11:15:06 +01:00
Mark Ganson TheMarkster
09dc6d3021 Add eval() to distance line edit during scaling
This adds the ability to enter things like 6 * 25.4 into the distance line edit widget during scaling operations in the image workbench.  Can also enter something like math.pi * 3 or 2**3, etc.  Basically, any legal python input can be used.

Using eval() is not considered a secure way of doing things, but in this context the user would be entering malicious code into his own computer.  Also, what can the user do in eval() that he can't already do just by entering directly into the python console?
2018-09-01 18:16:48 -05:00
easyw
f1096e8747 fixed a crash on escape from Image Scaling WB 2018-06-29 12:21:49 -03:00
easyw
8d8807f601 fixing py3 exceptions 2018-06-26 10:13:33 -03:00
easyw
c560ef175e Centering the Image Scaling Dialog 2018-06-26 10:13:33 -03:00
easyw
3613672174 Adding Image Scaling Macro ti Image WB 2018-06-26 10:13:33 -03:00