LeaderLine and RichTextAnno Alpha Release

Discussions about the development of the TechDraw workbench
User avatar
wandererfan
Posts: 3651
Joined: Tue Nov 06, 2012 5:42 pm

LeaderLine and RichTextAnno Alpha Release

Postby wandererfan » Mon May 06, 2019 12:26 pm

Preliminary(alpha) versions of TechDraw_LeaderLine and TechDraw_RichTextBlock are available in master branch.
LLandRTAExample.png
LLandRTAExample.png (30.71 KiB) Viewed 1279 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: 58
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: LeaderLine and RichTextAnno Alpha Release

Postby fjullien » Mon May 06, 2019 12:38 pm

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 1273 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 1273 times
Franck.
User avatar
wandererfan
Posts: 3651
Joined: Tue Nov 06, 2012 5:42 pm

Re: LeaderLine and RichTextAnno Alpha Release

Postby wandererfan » Mon May 06, 2019 5:21 pm

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 1234 times
What platform are you on?
User avatar
wandererfan
Posts: 3651
Joined: Tue Nov 06, 2012 5:42 pm

Re: LeaderLine and RichTextAnno Alpha Release

Postby wandererfan » Mon May 06, 2019 5:29 pm

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
Posts: 884
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: LeaderLine and RichTextAnno Alpha Release

Postby bitacovir » Mon May 06, 2019 6:50 pm

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

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

Re: LeaderLine and RichTextAnno Alpha Release

Postby fjullien » Mon May 06, 2019 7:16 pm

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 1196 times
fjullien
Posts: 58
Joined: Wed Jan 17, 2018 7:46 am
Location: France

Re: LeaderLine and RichTextAnno Alpha Release

Postby fjullien » Mon May 06, 2019 7:17 pm

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
Posts: 3651
Joined: Tue Nov 06, 2012 5:42 pm

Re: LeaderLine and RichTextAnno Alpha Release

Postby wandererfan » Tue May 07, 2019 12:05 am

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
Posts: 3651
Joined: Tue Nov 06, 2012 5:42 pm

Re: LeaderLine and RichTextAnno Alpha Release

Postby wandererfan » Wed May 08, 2019 2:22 am

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

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

Re: LeaderLine and RichTextAnno Alpha Release

Postby bitacovir » Wed May 15, 2019 3:56 am

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 921 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)

My personal web site
My GitHub repository
My old Blog
Mini Airflow Tunnel Project