[09/04/22][LinkStage3][UI] VertUI / Midnight UI

Report observations made with the new Toponaming branch.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Petrikas
Posts: 122
Joined: Sat Dec 05, 2020 8:05 pm

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by Petrikas »

bambuko wrote: Tue Jan 11, 2022 5:06 pm
Petrikas wrote: ...
Hi, looks like I have found something dodgy when testing in the last few days.
Dynamic Data workbench for some reason, populates it's toolbar across all others :oops:
Only dis-activating it solves the problem.
Hopefully someone can recreate and confirm, please?
I can reproduce. This seems like it might be related to that Workbench and the way Linkstage3 keeps toolbar info.
I would recommend dropping it in the status bar (next to the 'measure tools' I've put there already), if you're having issues and you really need to use it.

Actually there's some info in DynamicData's InitGui:

Code: Select all

        #freecad hides wb toolbars on leaving wb, we unhide ours here to keep it around
        #if the user has it set in parameters to do so
        pg = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/DynamicData")
        keep = pg.GetBool('KeepToolbar',True)
        if not keep:
            return
        tb = window.findChildren(QtGui.QToolBar) 
        for bar in tb:
            if "DynamicData Commands" in bar.objectName():
                bar.setVisible(True)
I sometimes make FreeCAD Tutorials | VertUI | MidnightUI
User avatar
bambuko
Veteran
Posts: 2165
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by bambuko »

Petrikas wrote: Tue Jan 11, 2022 10:54 pm I can reproduce. This seems like it might be related to that Workbench and the way Linkstage3 keeps toolbar info...
Glad that you can reproduce and it is not just me cocking things up again ;)

Petrikas wrote: Tue Jan 11, 2022 10:54 pmI would recommend dropping it in the status bar (next to the 'measure tools' I've put there already)...
I was puzzled by measure tools appearing in the status bar :mrgreen:
How does one control what is added to status bar and can I remove what you have chosen to add there already, please??

Petrikas wrote: Tue Jan 11, 2022 10:54 pm if you're having issues and you really need to use it...
Dynamic Data is critical to my models
but the workbench needs to be enabled only to setup and modify the values for DD,
so having it OFF most of the time is not an issue

Petrikas wrote: Tue Jan 11, 2022 10:54 pmActually there's some info in DynamicData's InitGui:

Code: Select all

  
  ("User parameter:BaseApp/Preferences/Mod/DynamicData")
Thank you for that. I will explore parameter's edit.
later...I tried to have a look at it and this is what it shows: :oops: :?:
dd_parametr.png
dd_parametr.png (57.63 KiB) Viewed 4414 times
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by doia »

Petrikas wrote: Tue Jan 11, 2022 10:45 pm MainWindowState is unique to FreeCAD Linkstage3.
Thanks. I found a corresponding entry for this parameter in the main FC repo under mainwindow::saveWindowSettings() and mainwindow::loadWindowSettings(). So depending on other individualities of LinkStage3 a port to the main FC branch should be possible?
User avatar
Petrikas
Posts: 122
Joined: Sat Dec 05, 2020 8:05 pm

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by Petrikas »

bambuko wrote: Wed Jan 12, 2022 5:45 am
Add a new Boolean value called "KeepToolbar" and set it to False, should work.
doia wrote: Wed Jan 12, 2022 8:34 am
It possible to get the colours, but that's about it.

On standard FreeCAD, afaik:
- Can't lock toolbars, so all icons will be misaligned
- Need to install TabBar
- Most of the panels will not be transparent
- Can't share precise toolbar positions
- Can't put toolbars in the status bar (or control its contents)
- No diagonal arrows on toolbuttons, icons will be even more misaligned

Can't remember all the issues. I have created setups for both FreeCAD and FreeCAD Link, but FreeCAD Link has made huge strides for better UI, and people on this forum were not so thrilled about my proposed changes. Hence, I'm only maintaining the FreeCAD Link version only.
I sometimes make FreeCAD Tutorials | VertUI | MidnightUI
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by Kunda1 »

Petrikas wrote: Tue Jan 11, 2022 10:54 pm Actually there's some info in DynamicData's InitGui:

Code: Select all

        #freecad hides wb toolbars on leaving wb, we unhide ours here to keep it around
        #if the user has it set in parameters to do so
TheMarkster wrote:ping
CC TheMarkster
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
bambuko
Veteran
Posts: 2165
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by bambuko »

Petrikas wrote: Tue Jan 11, 2022 10:54 pmI would recommend dropping it in the status bar (next to the 'measure tools' I've put there already)...
I was puzzled by measure tools appearing in the status bar :mrgreen:
How does one control what is added to status bar and can I remove what you have chosen to add there already, please??

In a multitude of questions I am guessing you missed this one, so I hope you don't mind me isolating it and bringing it to your attention :oops:
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2165
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by bambuko »

Petrikas wrote: Wed Jan 12, 2022 11:35 am Add a new Boolean value called "KeepToolbar" and set it to False, should work...
Done and it works fine :ugeek: thank you!

PS not without amusing learning curve - you said add, so I clicked on "add" icon :lol:
silly boy .... it is FreeCAD after all
you have to right click in the middle to get the right option :mrgreen:
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
Petrikas
Posts: 122
Joined: Sat Dec 05, 2020 8:05 pm

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by Petrikas »

bambuko wrote: Wed Jan 12, 2022 12:28 pm
Petrikas wrote: Tue Jan 11, 2022 10:54 pmI would recommend dropping it in the status bar (next to the 'measure tools' I've put there already)...
I was puzzled by measure tools appearing in the status bar :mrgreen:
How does one control what is added to status bar and can I remove what you have chosen to add there already, please??

In a multitude of questions I am guessing you missed this one, so I hope you don't mind me isolating it and bringing it to your attention :oops:
Unlock toolbars (right-click on any toolbar -> Lock Toolbars -> default), drag and drop whatever you need in the status bar, right-click on the status bar to lock, unlock or enable or disable toolbars/modules.
I sometimes make FreeCAD Tutorials | VertUI | MidnightUI
User avatar
bambuko
Veteran
Posts: 2165
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by bambuko »

Petrikas wrote: Wed Jan 12, 2022 1:32 pmunlock toolbars (right-click on any toolbar -> Lock Toolbars -> default), drag and drop whatever you need in the status bar, right-click on the status bar to lock, unlock or enable or disable toolbars/modules.
sorry haven't made myself ckear enough :oops:
I know all this - the question was how to remove something you have already added eg Measure toolbar (not just disable or make it invisible)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
Petrikas
Posts: 122
Joined: Sat Dec 05, 2020 8:05 pm

Re: [17/10/21][LinkStage3][UI] Vertical UI

Post by Petrikas »

bambuko wrote: Wed Jan 12, 2022 1:44 pm
Petrikas wrote: Wed Jan 12, 2022 1:32 pmunlock toolbars (right-click on any toolbar -> Lock Toolbars -> default), drag and drop whatever you need in the status bar, right-click on the status bar to lock, unlock or enable or disable toolbars/modules.
sorry haven't made myself ckear enough :oops:
I know all this - the question was how to remove something you have already added eg Measure toolbar (not just disable or make it invisible)
Unlock the toolbar in the status bar, and move it back into the toolbar area somewhere else. Should be gone from the status bar forever.
I sometimes make FreeCAD Tutorials | VertUI | MidnightUI
Post Reply