- cleanup vars
- added LICENSE.txt - added LabelComponent.cpp - renamed some variables - moved instance id to processor
This commit is contained in:
parent
452c5cabba
commit
d735c1d076
19 changed files with 948 additions and 180 deletions
|
|
@ -11,10 +11,14 @@ LookHandler::LookHandler() {
|
|||
|
||||
LookHandler::~LookHandler() {
|
||||
//delete this shit!
|
||||
delete feels[0];
|
||||
delete feels[1];
|
||||
delete m_feels[0];
|
||||
delete m_feels[1];
|
||||
}
|
||||
|
||||
void LookHandler::selectLook(int index) {
|
||||
currentLook = index;
|
||||
m_currentLook = index;
|
||||
}
|
||||
|
||||
LookAndFeel_V4* LookHandler::getLook() {
|
||||
return m_feels[m_currentLook];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,19 +11,20 @@
|
|||
#include <memory>
|
||||
|
||||
/**
|
||||
* overwrite the basic look and feel based on the selected Look and Feel :)
|
||||
* overwrite the basic m_look and feel based on the selected Look and Feel :)
|
||||
*/
|
||||
class LookHandler : public LookAndFeel_V4 {
|
||||
private:
|
||||
std::shared_ptr<LookAndFeel_V4> look;
|
||||
int currentLook = 0;
|
||||
std::shared_ptr<LookAndFeel_V4> m_look;
|
||||
int m_currentLook = 0;
|
||||
public:
|
||||
LookHandler();
|
||||
~LookHandler();
|
||||
~LookHandler() override;
|
||||
void selectLook(int index);
|
||||
LookAndFeel_V4* getLook();
|
||||
protected:
|
||||
//currently both available themes are CrazyLook <-- (this is a fun one xD) and FlatLook
|
||||
LookAndFeel_V4 *feels[2] = {new FlatLook(), new CrazyLook()};
|
||||
LookAndFeel_V4 *m_feels[2] = {new FlatLook(), new CrazyLook()};
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue