eryar / PipeCAD

PipeCAD - Plant Piping Design Software.
https://eryar.github.io/PipeCAD/
Other
92 stars 18 forks source link

Adding/updating menus in Ribbon #73

Open rompik opened 2 years ago

rompik commented 2 years ago

Hello Shing, Are there any customization of Ribbon menu? Is it possible to add possibility to build ribbon menu by loading from xml file like in E3D?

eryar commented 2 years ago

The Ribbon menu use the 3rd lib SARibbon: https://github.com/czyt1988/SARibbon

I found the lastest version SARibbon support customize by *.xml file.

I will check it.

rompik commented 2 years ago

Thank you! May be will be reasonable to create uic folder inside PipeCAD and upload xml files, also to Github. So if developed will create new Python functionality he will be able to add to menu and share with others w/out downloading new PipeCad distributive.

eryar commented 2 years ago

Yes, Let user to comtomize menu and link Python function themselves.

eryar commented 2 years ago
  1. Define user actions in PipeCAD.Design.uic if you want to customize actions in Design Module; image

  2. In PipeCAD right upper button to customize Ribbon Bar; image

This will save to PipeCAD.Design.xml file.

eryar commented 2 years ago

https://github.com/eryar/PipeCAD/releases/tag/1.0.20

rompik commented 2 years ago

Hello Shing, Please, can you advise how to setup path to external icons in xml files? Currently, I can use only icons from PipeCAD resources like here:

    <Action Key="show_revision_manager" Text="Revision Manager" Icon=":/PipeCad/Resources/project_import.png" ToolTip="Revison Manager utiltiy" Module="omp.revmanager" Function="omp.revmanager.showRevManager()" />
eryar commented 2 years ago

Hello Roman,

The icon path is the path of QAction, You can use a local path of the icon.

在 2022-08-30 16:23:44,"Roman PARYGIN" @.***> 写道:

Hello Shing, Please, can you advise how to setup path to external icons in xml files? Currently, I can use only icons from PipeCAD resources like here:

<ActionKey="show_revision_manager"Text="Revision Manager"Icon=":/PipeCad/Resources/project_import.png"ToolTip="Revison Manager utiltiy"Module="omp.revmanager"Function="omp.revmanager.showRevManager()" />

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>