-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from 4ms/nlc-port
Port Nonlinear Circuits modules
- Loading branch information
Showing
103 changed files
with
13,922 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
#pragma once | ||
#include "VCV_adaptor/events.hh" | ||
#include "VCV_adaptor/widget/Widget.hh" | ||
#include <string> | ||
|
||
namespace rack::ui | ||
{ | ||
struct Menu { | ||
void addChild(Menu *) { | ||
} | ||
|
||
struct Menu : widget::OpaqueWidget { | ||
|
||
virtual Menu *createChildMenu() { | ||
return nullptr; | ||
} | ||
virtual void onAction(const event::Action &e) { | ||
} | ||
}; | ||
|
||
struct MenuSeparator : Menu {}; | ||
struct MenuEntry : widget::OpaqueWidget {}; | ||
|
||
struct MenuLabel : Menu {}; | ||
struct MenuItem : Menu {}; | ||
struct MenuSeparator : MenuEntry {}; | ||
|
||
struct MenuLabel : MenuEntry { | ||
std::string text; | ||
}; | ||
|
||
struct MenuItem : MenuEntry { | ||
std::string text; | ||
std::string rightText; | ||
bool disabled = false; | ||
}; | ||
} // namespace rack::ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "CoreModules/elements/base_element.hh" | ||
#include "CoreModules/elements/elements.hh" | ||
#include "VCV_adaptor/widget_convert/base.hh" | ||
#include "VCV_adaptor/widgets.hh" | ||
|
||
// Forward declare widgets | ||
struct SlothRedGreenLightWidget; | ||
|
||
namespace MetaModule | ||
{ | ||
|
||
template<> | ||
inline Element make_element<rack::componentlibrary::LargeLight<SlothRedGreenLightWidget>>(BaseElement b) { | ||
return DualLight{{b, "LargeLight.png"}, {0xF800, 0x07E0}}; | ||
}; | ||
|
||
} // namespace MetaModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#ifdef __has_include | ||
#if __has_include("lvgl.h") | ||
#ifndef LV_LVGL_H_INCLUDE_SIMPLE | ||
#define LV_LVGL_H_INCLUDE_SIMPLE | ||
#endif | ||
#endif | ||
#endif | ||
|
||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE) | ||
#include "lvgl.h" | ||
#else | ||
#include "lvgl/lvgl.h" | ||
#endif | ||
|
||
|
||
#ifndef LV_ATTRIBUTE_MEM_ALIGN | ||
#define LV_ATTRIBUTE_MEM_ALIGN | ||
#endif | ||
|
||
#ifndef LV_ATTRIBUTE_IMG_LARGELIGHT | ||
#define LV_ATTRIBUTE_IMG_LARGELIGHT | ||
#endif | ||
|
||
const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_LARGELIGHT uint8_t LargeLight_map[] = { | ||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, | ||
0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x09, 0x08, 0x06, | ||
0x00, 0x00, 0x00, 0xe0, 0x91, 0x06, 0x10, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, | ||
0x59, 0x73, 0x00, 0x00, 0x07, 0x4b, 0x00, 0x00, 0x07, 0x4b, 0x01, 0x5c, 0x9f, | ||
0x52, 0xce, 0x00, 0x00, 0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x53, 0x6f, 0x66, | ||
0x74, 0x77, 0x61, 0x72, 0x65, 0x00, 0x77, 0x77, 0x77, 0x2e, 0x69, 0x6e, 0x6b, | ||
0x73, 0x63, 0x61, 0x70, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x9b, 0xee, 0x3c, 0x1a, | ||
0x00, 0x00, 0x01, 0x1e, 0x49, 0x44, 0x41, 0x54, 0x18, 0x95, 0x4d, 0x8a, 0xb1, | ||
0x4e, 0x83, 0x50, 0x18, 0x46, 0xbf, 0xff, 0xf6, 0x42, 0x0c, 0xc1, 0x18, 0xac, | ||
0xb4, 0x69, 0x18, 0x58, 0x98, 0x18, 0xba, 0x38, 0x90, 0xa8, 0x75, 0xec, 0x04, | ||
0xa3, 0x0f, 0xd0, 0xb7, 0x70, 0xed, 0x64, 0x27, 0x5e, 0x80, 0x27, 0xe0, 0x0d, | ||
0x5c, 0xd5, 0x90, 0xb6, 0x69, 0xfa, 0x0a, 0x0e, 0x24, 0x34, 0xa1, 0x11, 0xbb, | ||
0x95, 0xe6, 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0x69, 0x9a, 0x6e, 0x59, | ||
0x96, 0x00, 0x00, 0x29, 0x25, 0x4c, 0xd3, 0x44, 0x96, 0x65, 0xef, 0xab, 0xd5, | ||
0x6a, 0xd6, 0x5b, 0x2e, 0x97, 0x6d, 0x92, 0x24, 0x29, 0x11, 0x5d, 0x32, 0xc6, | ||
0x2e, 0x94, 0x52, 0x2d, 0x80, 0xcf, 0x3c, 0xcf, 0xd3, 0xf5, 0x7a, 0x3d, 0x8b, | ||
0xe3, 0xb8, 0xfe, 0x01, 0x66, 0x0a, 0x78, 0x82, 0xe7, 0x9d, 0xd4, 0x42, 0x00, | ||
0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82 | ||
}; | ||
|
||
const lv_img_dsc_t LargeLight = { | ||
.header.cf = LV_IMG_CF_RAW_ALPHA, | ||
.header.always_zero = 0, | ||
.header.reserved = 0, | ||
.header.w = 9, | ||
.header.h = 9, | ||
.data_size = 401, | ||
.data = LargeLight_map, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.