How can I add new menu to the menuBar

All about Windows versions
Post Reply
zzwbeyond
Posts: 15
Joined: Wed Mar 16, 2016 1:16 pm

How can I add new menu to the menuBar

Post by zzwbeyond »

I add a new plugin in CC, but the plugin menu is only under the "plugins" menu. [img]
plugin.jpg
plugin.jpg (6.82 KiB) Viewed 6619 times
[/img]
How can I add the new plugin menu to "Tools" menu or another new menu like the "Tools" menu.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How can I add new menu to the menuBar

Post by daniel »

If your plugin has a single action, then its icon should be also added to the default 'Plugins' toolbar.

Otherwise if your plugin has multiple actions (see how qFacets works for instance), then CloudCompare will create a dedicated toolbar.
Daniel, CloudCompare admin
zzwbeyond
Posts: 15
Joined: Wed Mar 16, 2016 1:16 pm

Re: How can I add new menu to the menuBar

Post by zzwbeyond »

hi, daniel, I know what you mean, but I want to add my plugin icon to other toolbar, not the "Plugins". Is there any way to add my plugin to "Tools" toolbar or other.
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How can I add new menu to the menuBar

Post by daniel »

Nope, those are reserved to the main application ;)
Daniel, CloudCompare admin
zzwbeyond
Posts: 15
Joined: Wed Mar 16, 2016 1:16 pm

Re: How can I add new menu to the menuBar

Post by zzwbeyond »

Ok, I see. Another question, is it possible to add a keyword shortcut to my own plugin?
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: How can I add new menu to the menuBar

Post by daniel »

I guess you could define a shortcut to the plugin action? You should even be able to set it as 'Application-wide' (just be sure to set a shortcut that's not already used...).
Daniel, CloudCompare admin
Post Reply