Skip to content

Commit

Permalink
Add tooltip for output mode (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdatkinson authored Nov 30, 2024
1 parent d03dd8e commit 0e6d364
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions NeuralAmpModeler/NeuralAmpModelerControls.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ class IContainerBaseWithNamedChildren : public IContainerBase
{
public:
IContainerBaseWithNamedChildren(const IRECT& bounds)
: IContainerBase(bounds) {};
: IContainerBase(bounds){};
~IContainerBaseWithNamedChildren() = default;

protected:
Expand Down Expand Up @@ -494,7 +494,7 @@ class ModelInfoControl : public IContainerBaseWithNamedChildren
public:
ModelInfoControl(const IRECT& bounds, const IVStyle& style)
: IContainerBaseWithNamedChildren(bounds)
, mStyle(style) {};
, mStyle(style){};

void ClearModelInfo()
{
Expand Down Expand Up @@ -561,7 +561,7 @@ class OutputModeControl : public IVRadioButtonControl
public:
OutputModeControl(const IRECT& bounds, int paramIdx, const IVStyle& style, float buttonSize)
: IVRadioButtonControl(
bounds, paramIdx, {}, "Output Mode", style, EVShape::Ellipse, EDirection::Vertical, buttonSize) {};
bounds, paramIdx, {}, "Output Mode", style, EVShape::Ellipse, EDirection::Vertical, buttonSize){};

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

const float halfWidth = PLUG_WIDTH / 2.0f - pad;
Expand Down Expand Up @@ -803,7 +807,7 @@ class NAMSettingsPageControl : public IContainerBaseWithNamedChildren
AboutControl(const IRECT& bounds, const IVStyle& style, const IText& text)
: IContainerBase(bounds)
, mStyle(style)
, mText(text) {};
, mText(text){};

void OnAttached() override
{
Expand Down
2 changes: 1 addition & 1 deletion NeuralAmpModeler/Unserialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class _Version
_Version(const int major, const int minor, const int patch)
: mMajor(major)
, mMinor(minor)
, mPatch(patch) {};
, mPatch(patch){};
_Version(const std::string& versionStr)
{
std::istringstream stream(versionStr);
Expand Down

0 comments on commit 0e6d364

Please sign in to comment.