On January 8, 2015 11:36:06 PM Andrew Deryabin wrote:
> Hi Robert,
> 
> 08.01.2015 12:06, Robert Jonsson wrote:
> >>> Hey!
> >>> Question:
> >>> How the heck did you do that scrolling presets popup menu?
> >>> Qt does not have such a single column scrolling menu, does it?
> >>> Or did you force it to one column? Or is it completely custom?
> >>> Reminiscent of GTK menus for sure.
> >> 
> >> It's just
> >> mmaps[itype]->setStyleSheet("QMenu { menu-scrollable: 1; }");
> >> Line 443 in helper.cpp.
> >> 
> >>> Reason I ask is, well, it's a bit tedious to scroll through all the
> >>> items.
> >>> Can you possibly instead make use of our custom popup menu class?
> >> 
> >> I don't like <more> <more> style because sometimes it's too hard to
> >> navigate through such menus. If there are lots of items, these popups
> >> wrap the width of screen and can be shown on (0,0) position. After that
> >> it's a bit tricky to move mouse back and not to close everything.
> >> Instead in scrollable menu I have only to use page up and page down to
> >> navigate.
> >> If I'm alone in my opinion y hen it will not be hard to convert them to
> >> more/more/more type.
> > 
> > There's definitely a point where the scrolling menu gets too long,
> > especially on a smaller screen. That was one of the reasons I split
> > off LV2 effects into a separate submenu.
> > Then again, as you say, it's quite easy to navigate.
> > 
> > Since it's such an easy change maybe we could keep it as a property
> > setting? Or is there an alternative solution?
> 
> Made it. Now there is a new checkbox in global GUI settings called
> "Scrollable submenus" which is off by default.
> Changes are now in qt5 branch.
> 
> P.S. To Tim: I checked - before this change the "add synth" popup in
> helper.cpp was made using QMenu, not PopupMenu. So I changed it to
> PopupMenu too.
> 
> P.P.S. modified PopupMenu class now takes care of "scrollableSubmenus"
> config flag.

Cool! Satisfy both tastes!
Will check later.
Thanks. Tim.

> 
> Regards,
> Andrew
> 
> > By the way, I meant to check but never get around to it. On the edit
> > menu there's a submenu for instantiating synths, but it only includes
> > MESS synths. Is the synth menu in the trackinfo compatible so it can
> > be instantiated there too?
> > 
> > Regards,
> > Robert


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to