Page 1 of 1

How can I add new menu to the menuBar

Posted: Mon May 23, 2016 8:28 am
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 6633 times
[/img]
How can I add the new plugin menu to "Tools" menu or another new menu like the "Tools" menu.

Re: How can I add new menu to the menuBar

Posted: Mon May 23, 2016 9:05 am
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.

Re: How can I add new menu to the menuBar

Posted: Mon May 23, 2016 12:33 pm
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.

Re: How can I add new menu to the menuBar

Posted: Mon May 23, 2016 8:28 pm
by daniel
Nope, those are reserved to the main application ;)

Re: How can I add new menu to the menuBar

Posted: Tue May 24, 2016 7:38 am
by zzwbeyond
Ok, I see. Another question, is it possible to add a keyword shortcut to my own plugin?

Re: How can I add new menu to the menuBar

Posted: Tue May 24, 2016 8:40 am
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...).