PipeCAD icon indicating copy to clipboard operation
PipeCAD copied to clipboard

Adding/updating menus in Ribbon

Open rompik opened this issue 2 years ago • 7 comments

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?

rompik avatar Jul 01 '22 09:07 rompik

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.

eryar avatar Jul 01 '22 09:07 eryar

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.

rompik avatar Jul 01 '22 09:07 rompik

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

eryar avatar Jul 01 '22 09:07 eryar

  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 avatar Jul 12 '22 12:07 eryar

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

eryar avatar Jul 17 '22 12:07 eryar

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()" />

rompik avatar Aug 30 '22 08:08 rompik

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: @.***>

eryar avatar Aug 30 '22 14:08 eryar