Page 1 of 1

[ux] Improve virtual console for desktop computers

Posted: Tue Jan 07, 2020 5:06 pm
by memrex
Related topic: viewtopic.php?f=35&t=12968

Going forward to a v5 release the ux of the vc needs to be improved imho. Although the UI looks/feels the same on different devices (which is great!) the majority of users will still use a keyboard/mouse combo to design the virtual console.

I have two major improvements in mind:
  • Imho, there should be a context menu on right mouse click offering the same actions as the menu on the right side (e.g., edit/delete). When I tested v5 for the first time, I thought the vc is broken because there is no context menu. I'm sure that others think so as well.
  • Double clicking a widget opens its properties. Another very common pattern which has also been used in QLC4

Re: [ux] Improve virtual console for desktop computers

Posted: Fri Jan 24, 2020 11:55 am
by memrex
I have been looking into the code handling the keyboard inputs. Everything so far seems to be handled on the c++ side and none inside the qml side. It's probably best to keep it that way to keep complexity low.

@Massimo: Having in mind the use case of pressing the delete key, what would be the best approach to open the qml delete confirmation dialog from the c++ side?

Re: [ux] Improve virtual console for desktop computers

Posted: Sat Jan 25, 2020 11:23 pm
by memrex
Today I've been messing with the implementation of a context menu in the virtual console when it's in edit mode. Here's what I came up with: https://github.com/mcallegari/qlcplus/pull/1209

The context menu dynamically disables or hides options which are not relevant or not available:
vc context menu 1.png
vc context menu 2.png
vc context menu 3.png
vc context menu 3.png (11.67 KiB) Viewed 2466 times


There is one ugly thing: I use "wObj.PIN === undefined" to check whether a specific VCWidgetItem is a cvPage or a real widget. There has to be a better way.

Re: [ux] Improve virtual console for desktop computers

Posted: Wed Jan 29, 2020 5:18 pm
by Ranger762
Looks good to me, if you manage to get rid of the "undefined" problem, it would be a great addition to QLC.