2020-04-03 13:23:19 +02:00
|
|
|
//
|
|
|
|
// Created by versustune on 17.03.20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef VENO_BASECOMPONENT_H
|
|
|
|
#define VENO_BASECOMPONENT_H
|
|
|
|
|
|
|
|
#include "JuceHeader.h"
|
2020-06-08 21:27:17 +02:00
|
|
|
#include "LabelComponent.h"
|
|
|
|
#include "../LookAndFeel/LookHandler.h"
|
2020-04-03 13:23:19 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* this is the base Component of all VeNo Components... it has all important Methods
|
|
|
|
*/
|
2020-06-13 16:52:16 +02:00
|
|
|
class BaseComponent : public Component
|
|
|
|
{
|
2020-04-03 13:23:19 +02:00
|
|
|
private:
|
2020-06-08 21:27:17 +02:00
|
|
|
std::string m_group;
|
|
|
|
std::string m_name;
|
|
|
|
bool m_enableLabel = false;
|
2020-04-03 13:23:19 +02:00
|
|
|
public:
|
2020-06-13 16:52:16 +02:00
|
|
|
explicit BaseComponent (const std::string& processId);
|
|
|
|
~BaseComponent () override;
|
|
|
|
void addLabel (const std::string& label, LabelPosition labelPosition);
|
|
|
|
void setParameter (std::string name, std::string group);
|
|
|
|
void resized () override;
|
|
|
|
void paint (Graphics& g) override;
|
2020-04-03 13:23:19 +02:00
|
|
|
protected:
|
2020-06-13 10:56:20 +02:00
|
|
|
std::string m_processId;
|
2020-06-14 21:14:28 +02:00
|
|
|
std::shared_ptr<LabelComponent> m_label;
|
2020-07-09 16:31:33 +02:00
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BaseComponent);
|
2020-04-03 13:23:19 +02:00
|
|
|
};
|
|
|
|
#endif //VENO_BASECOMPONENT_H
|