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

Bit flag enum calculator #52

Open
vanillajonathan opened this issue Nov 2, 2024 · 0 comments
Open

Bit flag enum calculator #52

vanillajonathan opened this issue Nov 2, 2024 · 0 comments

Comments

@vanillajonathan
Copy link

Is your feature request related to a problem? Please describe.
I have a number which is the value of a bit flag enum but I don't know which enum values that corresponds too. I have a enum with some but I don't know which number the enum represent.

Describe the solution you'd like
I would like Dev Toolbox to display seven checkboxes and a number input field. Each checkbox correspond one variant in the enum. The checkboxes have labels and could be named after the weekdays, they could also be numbered. Each checkbox also have a number that represents the value for that enum variant.

The enum would look like this:

enum Weekdays
{
    Monday = 1,
    Tuesday = 2,
    Wednesday = 4,
    Thursday = 8,
    Friday = 16,
    Saturday = 32,
    Sunday = 64
}

So when I click on the checkboxes it calculate the enum value and displays the number in the number input box. If I type a number in the number input box it checks the appropriate checkboxes.

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

No branches or pull requests

1 participant