Custom toolbars

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom toolbars

Lindsey, Portland

Would it be feasible to allow users to create Custom Toolbars in Opticks? Or to hide buttons on toolbars that they don’t use?



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs
Reply | Threaded
Open this post in threaded view
|

Re: Custom toolbars

tclarke
Administrator

You can already do this. Add a menu action with [toolbarname]  in the action name and you’ll get a toolbar with that name. If you don’t want the default menu as well, then call:

 

Service<DesktopServices>()->createWindow(“Toolbarname”, TOOLBAR);

 

If you want to access an existing toolbar, use:

Service<DesktopServices>()->getWindow(“Othertoolbarname”, TOOLBAR);

 

You can add widgets and buttons as well as hide existing buttons via their actions (I’d avoid removing them as it might cause parts of Opticks to crash if the actions become invalid). If you need more control, an Opticks Toolbar object is a QToolBar on the imp side so you can just dynamic_cast<QToolBar*>(pToolbar), check for nullptr, then do anything you want with the qt object.

----------------------

Trevor R.H. Clarke

Software Engineer, Ball Aerospace

(937)320-7087

 

From: Lindsey, Portland [mailto:[hidden email]]
Sent: Wednesday, November 06, 2013 3:19 PM
To: [hidden email]
Subject: [Opticks-devs] Custom toolbars

 

Would it be feasible to allow users to create Custom Toolbars in Opticks? Or to hide buttons on toolbars that they don’t use?



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Opticks-devs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-devs