Skip to content

Comments

Improve Meterstyle Naming options#2356

Merged
pljones merged 1 commit intojamulussoftware:masterfrom
henkdegroot:improve-meterstyle-options
Feb 9, 2022
Merged

Improve Meterstyle Naming options#2356
pljones merged 1 commit intojamulussoftware:masterfrom
henkdegroot:improve-meterstyle-options

Conversation

@henkdegroot
Copy link
Contributor

@henkdegroot henkdegroot commented Feb 7, 2022

Short description of changes

Improve Meterstyle Naming and Sort Order

Context: Fixes an issue?

Fixes: #2353

Does this change need documentation? What needs to be documented and how?

No

Status of this Pull Request

Complete

What is missing until this pull request can be merged?

Needs review, tested on Windows

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@hoffie hoffie added this to the Release 3.8.2 milestone Feb 7, 2022
Copy link
Member

@hoffie hoffie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me.

Should we also update the enum entries to match the UI names in this PR? E.g. MT_BAR_NARROW instead of MT_SLIM_BAR (I don't care about the word order, but we should use the same adjective at least?).

Comment on lines 518 to 527
enum EMeterStyle
{
// used for settings -> enum values should be fixed
MT_LED = 0,
MT_SLIM_BAR = 0,
MT_BAR = 1,
MT_SLIM_BAR = 2,
MT_SLIM_LED = 3,
MT_SMALL_LED = 4
MT_LED = 2,
MT_SMALL_LED = 3,
MT_SLIM_LED = 4
};

Copy link
Member

@hoffie hoffie Feb 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I understand, this has been introduced in 130920c, which was not part of any (final) release, so it's ok to re-order this now (but not any later, as it's used in the ini settings).

$ git tag --contains 130920c3d63104726ee00dd11e19c20e2c319d86
r3.8.1devNightly1
r3_8_2beta1

Comment on lines 272 to 274
"Bar (Narrow) and LEDs (Small) options only apply to the mixerboard. When "
"Bar (Narrow) is selected, the input meters are set to Bar (Wide). When "
"LEDs (Small) is selected, the input meters are set to LEDs (Big). "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to note: This causes translation changes as well.

Comment on lines 445 to 447
cbxMeterStyle->addItem ( tr ( "LEDs (Stripe)" ) ); // MT_LED
cbxMeterStyle->addItem ( tr ( "LEDs (Small)" ) ); // MT_SMALL_LED
cbxMeterStyle->addItem ( tr ( "LEDs (Big)" ) ); // MT_SLIM_LED
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The distinction still sounds a bit strange to me. Example: "You you like your LEDs rather as Stripes, Small or Big?" The words in brackets do not describe the same type of thing. I've got no better idea though. The following would be more accurate, but probably to long:

    • LEDs (striped)
    • LEDs (round, small)
    • LEDs (round, big)
      This may quickly get into the bike-shedding area, so we should do the best we can but should merge nevertheless even if we think it's not perfect... :)
  • Should the adjectives be lowercase? (No idea, not a native speaker)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You you like your LEDs rather as Stripes, Small or Big?

What is "rather" doing in that? And why make "Stripe" plural? You're changing things and then complaining it doesn't sound consistent... ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to update this, and would like to update the enum entries at the same time with similar logic.
So should we take this proposal (with lowercase) as the option to go for?

(I am not a native speaker as well)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "rather" doing in that? And why make "Stripe" plural? You're changing things and then complaining it doesn't sound consistent... ;)

I was trying to place the different options in an English sentence to see how they would sound.
What I was trying to say:

  • Stripe is not a size. There could be small or big stripes (in theory, I'm not suggesting we add them)
  • Small and Big are sizes, but don't imply any form (in contrast to Stripe)

Copy link
Contributor Author

@henkdegroot henkdegroot Feb 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have to worry about the total length of the text, as the "language" box just below the setting in the GUI will be wider. Good point that Small and Big no longer indicate the shape, so adding "round" would make sense to me.

@hoffie
Copy link
Member

hoffie commented Feb 7, 2022

  • Tested on Linux: All labels do what they say. The proper value is also restored upon restart.

Copy link
Collaborator

@pljones pljones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay.

@henkdegroot
Copy link
Contributor Author

E.g. MT_BAR_NARROW instead of MT_SLIM_BAR

@hoffie, the "slim/small" LED reference is also used in the bitmap references, i.e. BitmCubeSlimLedGreen, BitmCubeSmallLedGreen. Should these be updated as well when the enum entries are updated?

@hoffie
Copy link
Member

hoffie commented Feb 7, 2022

the "slim/small" LED reference is also used in the bitmap references, i.e. BitmCubeSlimLedGreen, BitmCubeSmallLedGreen. Should these be updated as well when the enum entries are updated?

I think it the naming should be as consistent as possible, yes. In general, aim for the Principle of least surprise, I'd say. :)
As far as I can see, those variables are also new (as in: they've not been part of a final release), so there should be little risk of breaking things, right?

So, yes, I'd be in favor of naming those references with the same words which are used in other places (enum, labels).

@pljones
Copy link
Collaborator

pljones commented Feb 8, 2022

One thing, when this is released, we'll still need to highlight that anyone who's tested a post-3.8.1 build that had the new config item will need to expect that to mean something different following this change.

Copy link
Member

@hoffie hoffie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for working on this!
All of the changes sound meaningful. I've re-tested the behavior and everything looks fine.

This is a huge improvement at code readability. :)

Should be squash-merged.

Comment on lines +364 to +367
BitmCubeRoundBigLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDBlackSmall.png" ) ),
BitmCubeRoundBigLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenSmall.png" ) ),
BitmCubeRoundBigLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDYellowSmall.png" ) ),
BitmCubeRoundBigLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDRedSmall.png" ) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit surprising for me to see "Big" being mapped to "Small", but I guess the reason is that this was the naming of the original files?
Should not be a blocker, IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to see "Big" being mapped to "Small",

Good catch. The Small icons already existed....and is one of the reason why I used the "odd" names in the beginning. Though when started, it was still associated to a skin choice as well and later changed to changing the meter style as a separate option.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking this in #2365 as a future improvement now.

@hoffie hoffie mentioned this pull request Feb 8, 2022
56 tasks
@henkdegroot henkdegroot force-pushed the improve-meterstyle-options branch from 449c0d0 to 3117acd Compare February 9, 2022 06:23
@pljones pljones merged commit 70a4f41 into jamulussoftware:master Feb 9, 2022
@henkdegroot henkdegroot deleted the improve-meterstyle-options branch February 9, 2022 11:33
ann0see added a commit that referenced this pull request Feb 9, 2022
hoffie added a commit to hoffie/jamulus that referenced this pull request Feb 13, 2022
hoffie added a commit to hoffie/jamulus that referenced this pull request Feb 13, 2022
BLumia added a commit to BLumia/jamulus that referenced this pull request Feb 14, 2022
ann0see added a commit that referenced this pull request Feb 14, 2022
Update zh_CN app translation for #2356
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

Successfully merging this pull request may close these issues.

Improve naming meterstyle options

3 participants