Skip to content

Commit 0e6d364

Browse files
authored
Add tooltip for output mode (#537)
1 parent d03dd8e commit 0e6d364

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

NeuralAmpModeler/NeuralAmpModelerControls.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class IContainerBaseWithNamedChildren : public IContainerBase
452452
{
453453
public:
454454
IContainerBaseWithNamedChildren(const IRECT& bounds)
455-
: IContainerBase(bounds) {};
455+
: IContainerBase(bounds){};
456456
~IContainerBaseWithNamedChildren() = default;
457457

458458
protected:
@@ -494,7 +494,7 @@ class ModelInfoControl : public IContainerBaseWithNamedChildren
494494
public:
495495
ModelInfoControl(const IRECT& bounds, const IVStyle& style)
496496
: IContainerBaseWithNamedChildren(bounds)
497-
, mStyle(style) {};
497+
, mStyle(style){};
498498

499499
void ClearModelInfo()
500500
{
@@ -561,7 +561,7 @@ class OutputModeControl : public IVRadioButtonControl
561561
public:
562562
OutputModeControl(const IRECT& bounds, int paramIdx, const IVStyle& style, float buttonSize)
563563
: IVRadioButtonControl(
564-
bounds, paramIdx, {}, "Output Mode", style, EVShape::Ellipse, EDirection::Vertical, buttonSize) {};
564+
bounds, paramIdx, {}, "Output Mode", style, EVShape::Ellipse, EDirection::Vertical, buttonSize){};
565565

566566
void SetNormalizedDisable(const bool disable)
567567
{
@@ -700,8 +700,12 @@ class NAMSettingsPageControl : public IContainerBaseWithNamedChildren
700700
const auto outputRadioArea = outputArea.GetFromBottom(
701701
1.1f * (inputLevelArea.H() + inputSwitchArea.H())); // .GetMidHPadded(0.55f * knobWidth);
702702
const float buttonSize = 10.0f;
703-
AddNamedChildControl(new OutputModeControl(outputRadioArea, kOutputMode, mRadioButtonStyle, buttonSize),
704-
mControlNames.outputMode, kCtrlTagOutputMode);
703+
auto* outputModeControl =
704+
AddNamedChildControl(new OutputModeControl(outputRadioArea, kOutputMode, mRadioButtonStyle, buttonSize),
705+
mControlNames.outputMode, kCtrlTagOutputMode);
706+
outputModeControl->SetTooltip(
707+
"How to adjust the level of the output.\nRaw=No adjustment.\nNormalized=Adjust the level so that all models "
708+
"are about the same loudness.\nCalibrated=Match the input's digital-analog calibration.");
705709
}
706710

707711
const float halfWidth = PLUG_WIDTH / 2.0f - pad;
@@ -803,7 +807,7 @@ class NAMSettingsPageControl : public IContainerBaseWithNamedChildren
803807
AboutControl(const IRECT& bounds, const IVStyle& style, const IText& text)
804808
: IContainerBase(bounds)
805809
, mStyle(style)
806-
, mText(text) {};
810+
, mText(text){};
807811

808812
void OnAttached() override
809813
{

NeuralAmpModeler/Unserialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class _Version
177177
_Version(const int major, const int minor, const int patch)
178178
: mMajor(major)
179179
, mMinor(minor)
180-
, mPatch(patch) {};
180+
, mPatch(patch){};
181181
_Version(const std::string& versionStr)
182182
{
183183
std::istringstream stream(versionStr);

0 commit comments

Comments
 (0)