Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: alternative widget using multiple buttons instead of a drop-down #36

Open
denilsonsa opened this issue Jan 11, 2023 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@denilsonsa
Copy link
Contributor

I got this idea from qddcswitch, please take a look at the screenshots over there.

The idea is to have an alternative implementation of non-continuous values. Instead of a drop-down selection box (that requires two clicks, and some precision), we could have multiple buttons side-by-side (requiring just one click). So, instead of this:

┌──────────────────┐   ┌──────────────────┐
│ VGA-1          ▼ │ → │ VGA-1          ▼ │
└──────────────────┘   └┬────────────────┬┘
                        │VGA-1           │
                        │DVI-1           │
                        │HDMI-1          │
                        └────────────────┘

We could have this:

┌────────┬────────┬────────┐
│ VGA-1  │ DVI-1  │ HDMI-1 │
└────────┴────────┴────────┘

This of course doesn't make sense if the amount of options is too high.

@digitaltrails digitaltrails self-assigned this Jan 11, 2023
@digitaltrails digitaltrails added the enhancement New feature or request label Jan 11, 2023
@RokeJulianLockhart
Copy link

Why a horizontal row instead of a vertical row? After all, that would be extensible since everyone's used to sidebars with scrollbars.

@digitaltrails
Copy link
Owner

Why a horizontal row instead of a vertical row? After all, that would be extensible since everyone's used to sidebars with scrollbars.

I may have considered it, I can't recall. Probably I went with horizontal because it's very easy to automate the layout. To do vertical sliders I would probably have to have code to place sliders vertically and then separately place combo boxes elsewhere. If I didn't separately place the combo-boxes, things could get very wide. At the moment the layout is a simple evenly spaced QVBoxLayout.

Just for fun, I just now flipped some of the layout settings to vertical. As you can see, a simple/single left-right layout for all the controls and labels isn't pretty, so moving to vertical sliders would require a more complicated set of layouts and layout algorithms:
Screenshot_20231017_094500

Which is not to say it couldn't be done. But it's already 7000 lines of script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants