Skip to content

Commit

Permalink
Merge pull request #2621 from henkdegroot/LED-naming
Browse files Browse the repository at this point in the history
Make LED naming more consistent in the code
  • Loading branch information
hoffie authored May 20, 2022
2 parents 9d8f07d + 7e75842 commit bc2f246
Show file tree
Hide file tree
Showing 38 changed files with 29 additions and 29 deletions.
24 changes: 12 additions & 12 deletions src/levelmeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,18 +353,18 @@ void CLevelMeter::ClipReset()
}

CLevelMeter::cLED::cLED ( QWidget* parent ) :
BitmCubeLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDBlackSmall.png" ) ),
BitmCubeLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDGreenSmall.png" ) ),
BitmCubeLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDYellowSmall.png" ) ),
BitmCubeLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDRedSmall.png" ) ),
BitmCubeRoundSmallLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/LEDBlackSmall.png" ) ),
BitmCubeRoundSmallLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/LEDGreenSmall.png" ) ),
BitmCubeRoundSmallLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/LEDYellowSmall.png" ) ),
BitmCubeRoundSmallLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/LEDRedSmall.png" ) ),
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" ) )
BitmCubeLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDBlack.png" ) ),
BitmCubeLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDGreen.png" ) ),
BitmCubeLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDYellow.png" ) ),
BitmCubeLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/HLEDRed.png" ) ),
BitmCubeRoundSmallLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDBlackSmall.png" ) ),
BitmCubeRoundSmallLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenSmall.png" ) ),
BitmCubeRoundSmallLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDYellowSmall.png" ) ),
BitmCubeRoundSmallLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDRedSmall.png" ) ),
BitmCubeRoundBigLedBlack ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDBlackBig.png" ) ),
BitmCubeRoundBigLedGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenBig.png" ) ),
BitmCubeRoundBigLedYellow ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDYellowBig.png" ) ),
BitmCubeRoundBigLedRed ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDRedBig.png" ) )
{
// create LED label
pLEDLabel = new QLabel ( "", parent );
Expand Down
6 changes: 3 additions & 3 deletions src/multicolorled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
/* Implementation *************************************************************/
CMultiColorLED::CMultiColorLED ( QWidget* parent ) :
QLabel ( parent ),
BitmCubeDisabled ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDDisabledSmall.png" ) ),
BitmCubeGrey ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreySmall.png" ) ),
BitmCubeGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenSmall.png" ) ),
BitmCubeDisabled ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDDisabled.png" ) ),
BitmCubeGrey ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGrey.png" ) ),
BitmCubeGreen ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDGreenBig.png" ) ),
BitmCubeYellow ( QString::fromUtf8 ( ":/png/LEDs/res/IndicatorYellowFancy.png" ) ),
BitmCubeRed ( QString::fromUtf8 ( ":/png/LEDs/res/IndicatorRedFancy.png" ) ),
BitmIndicatorGreen ( QString::fromUtf8 ( ":/png/LEDs/res/IndicatorGreen.png" ) ),
Expand Down
Binary file added src/res/CLEDBlackBig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/CLEDBlackSmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added src/res/CLEDGreenBig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/CLEDGreenSmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified src/res/CLEDGrey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/res/CLEDGreySmall.png
Binary file not shown.
Binary file added src/res/CLEDGreySrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/res/CLEDRedBig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/CLEDRedSmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added src/res/CLEDYellowBig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/CLEDYellowSmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified src/res/HLEDBlack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/res/HLEDBlackSmall.png
Binary file not shown.
Binary file added src/res/HLEDBlackSrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/HLEDGreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/res/HLEDGreenSmall.png
Binary file not shown.
Binary file added src/res/HLEDGreenSrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/HLEDGrey.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/res/HLEDGreySmall.png
Binary file not shown.
Binary file added src/res/HLEDGreySrc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/res/HLEDRed.png
Binary file removed src/res/HLEDRedSmall.png
Diff not rendered.
Binary file added src/res/HLEDRedSrc.png
Binary file modified src/res/HLEDYellow.png
Binary file removed src/res/HLEDYellowSmall.png
Diff not rendered.
Binary file added src/res/HLEDYellowSrc.png
Binary file removed src/res/LEDBlackSmall.png
Diff not rendered.
Binary file removed src/res/LEDGreenSmall.png
Diff not rendered.
Binary file removed src/res/LEDRedSmall.png
Diff not rendered.
Binary file removed src/res/LEDYellowSmall.png
Diff not rendered.
28 changes: 14 additions & 14 deletions src/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@
</qresource>

<qresource prefix="/png/LEDs">
<file>res/CLEDDisabledSmall.png</file>
<file>res/CLEDGreenSmall.png</file>
<file>res/CLEDGreySmall.png</file>
<file>res/CLEDRedSmall.png</file>
<file>res/CLEDYellowSmall.png</file>
<file>res/CLEDBlackSmall.png</file>
<file>res/CLEDDisabled.png</file>
<file>res/CLEDGrey.png</file>
<file>res/CLEDGreenBig.png</file>
<file>res/CLEDRedBig.png</file>
<file>res/CLEDYellowBig.png</file>
<file>res/CLEDBlackBig.png</file>
<file>res/IndicatorGreen.png</file>
<file>res/IndicatorYellow.png</file>
<file>res/IndicatorRed.png</file>
<file>res/HLEDGreenSmall.png</file>
<file>res/HLEDBlackSmall.png</file>
<file>res/HLEDRedSmall.png</file>
<file>res/HLEDYellowSmall.png</file>
<file>res/HLEDGreen.png</file>
<file>res/HLEDBlack.png</file>
<file>res/HLEDRed.png</file>
<file>res/HLEDYellow.png</file>
<file>res/IndicatorRedFancy.png</file>
<file>res/IndicatorYellowFancy.png</file>
<file>res/LEDGreenSmall.png</file>
<file>res/LEDBlackSmall.png</file>
<file>res/LEDRedSmall.png</file>
<file>res/LEDYellowSmall.png</file>
<file>res/CLEDGreenSmall.png</file>
<file>res/CLEDBlackSmall.png</file>
<file>res/CLEDRedSmall.png</file>
<file>res/CLEDYellowSmall.png</file>
</qresource>
<qresource prefix="/png/fader">
<file>res/faderbackground.png</file>
Expand Down

0 comments on commit bc2f246

Please sign in to comment.