LeaderLine and RichTextAnno Alpha Release

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

LeaderLine and RichTextAnno Alpha Release

Post by wandererfan »

Preliminary(alpha) versions of TechDraw_LeaderLine and TechDraw_RichTextBlock are available in master branch.
LLandRTAExample.png
LLandRTAExample.png (30.71 KiB) Viewed 3729 times
There is a lot of new code and changed code involved with these 2 tools, so testing is required and bug reports are welcome.

Known issues:
- "not a mouseGrabber" message
--- safe to ignore
- Leader does not always appear after document load
--- recompute or touch leader in tree
- no add/delete node function when editing line
- RT editor needs better integration
---- font, fontSize, maxWidth, etc from ViewProvider
- parent child relationship in tree are not perfect
- assigning RTA to Leader after creation
--- connection not created without save/restore
- cannot trigger editors by double click in graphics area

Thanks for the Rich Text editor go to:
** Copyright (C) 2013 Jiří Procházka (Hobrasoft)
** Contact: http://www.hobrasoft.cz/
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**

wf
fjullien
Posts: 71
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: LeaderLine and RichTextAnno Alpha Release

Post by fjullien »

I did test your work. It looks good.
I don't know if it is what you said here:
- parent child relationship in tree are not perfect
but I find something. At some point I ended edition by double clicking. Then, I couldn't move the view anymore:
bug_leaderLine.gif
bug_leaderLine.gif (330.88 KiB) Viewed 3723 times
Plus in RT dialog box, I couldn't find "Save" and "Close":
bug_rich_text_dialog.png
bug_rich_text_dialog.png (13.96 KiB) Viewed 3723 times
Franck.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by wandererfan »

fjullien wrote: Mon May 06, 2019 12:38 pm but I find something. At some point I ended edition by double clicking. Then, I couldn't move the view anymore:
I suspect the bounding rect for the leader is covering the view completely. I confess I tested mostly with more traditional looking leaders. Will have to change the leader bRect calculation to follow the line like we do for Edges.
Plus in RT dialog box, I couldn't find "Save" and "Close":
2 Top left buttons. They are blank in your screen capture. Are the really blank?
toolBar.png
toolBar.png (21.95 KiB) Viewed 3684 times
What platform are you on?
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by wandererfan »

Save and Exit (document-save and window-close) are supposed to be theme icons.

Can you see the icons for text foreground color and text background color? They are regular icons in Gui/Resources/icons.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by bitacovir »

Sorry. Where I can download this version?
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
fjullien
Posts: 71
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: LeaderLine and RichTextAnno Alpha Release

Post by fjullien »

wandererfan wrote: Mon May 06, 2019 5:29 pm Can you see the icons for text foreground color and text background color? They are regular icons in Gui/Resources/icons.
In Gui/Resources/icons/MRTE, I only have icons for text foreground color and text background color. I couldn't find others anywhere.
icons.png
icons.png (22.71 KiB) Viewed 3646 times
fjullien
Posts: 71
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: LeaderLine and RichTextAnno Alpha Release

Post by fjullien »

bitacovir wrote: Mon May 06, 2019 6:50 pm Sorry. Where I can download this version?
I think your only option is to compile it from sources. It is present in upstream master.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by wandererfan »

fjullien wrote: Mon May 06, 2019 7:16 pm In Gui/Resources/icons/MRTE, I only have icons for text foreground color and text background color. I couldn't find others anywhere.
A little more investigation reveals that the "from theme" option in QtDesigner only works under certain conditions. So I'll have to find real icons for the word processing functions and put them in the resource file.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by wandererfan »

Icons sorted and merged. Thanks to @fjullien for testing.

wf
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Post by bitacovir »

Hi. Thanks for these new features. But in windows, the "Edit points" of DrawLeaderLine does not work.
DrawLeaderLine.gif
DrawLeaderLine.gif (353.31 KiB) Viewed 3371 times
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16687 (Git)
Build type: Release
Branch: master
Hash: ff1fb11af15a7c5f7f0ba3ef79588e128f397c2c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
Post Reply