3fda15966c
- changed to RMS - added decibel Scales - fixed logo loading - changed blood theme - added some look and feel
29 lines
591 B
C++
29 lines
591 B
C++
//
|
|
// Created by Maurice on 29.06.2020.
|
|
//
|
|
|
|
#ifndef VENO_DECIBELSCALE_H
|
|
#define VENO_DECIBELSCALE_H
|
|
|
|
#include "JuceHeader.h"
|
|
#include "../BaseComponent.h"
|
|
|
|
class DecibelScale : public BaseComponent
|
|
{
|
|
private:
|
|
public:
|
|
explicit DecibelScale (const std::string& process_id);
|
|
~DecibelScale () override = default;
|
|
void resized () override;
|
|
void paint (Graphics& g) override;
|
|
int getScale(float dB);
|
|
void drawLabel(Graphics& g, int y, const std::string& label);
|
|
int m_mode = 0;
|
|
protected:
|
|
float m_scale = 0;
|
|
float m_lastY = 0;
|
|
};
|
|
|
|
|
|
#endif //VENO_DECIBELSCALE_H
|