| 877 | }; |
| 878 | |
| 879 | struct AidaWidget : ModuleWidgetWithSideScrews<23> { |
| 880 | static constexpr const uint kPedalMargin = 10; |
| 881 | static constexpr const uint kPedalMarginVertical = 25; |
| 882 | static constexpr const uint kFileListHeight = 200; |
| 883 | |
| 884 | struct { |
| 885 | std::shared_ptr<Image> background; |
| 886 | std::shared_ptr<Image> header; |
| 887 | std::shared_ptr<Image> logo; |
| 888 | } images; |
| 889 | |
| 890 | AidaPluginModule* const module; |
| 891 | |
| 892 | AidaWidget(AidaPluginModule* const m) |
| 893 | : module(m) |
| 894 | { |
| 895 | setModule(module); |
| 896 | setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/AIDA-X.svg"))); |
| 897 | |
| 898 | createAndAddScrews(); |
| 899 | |
| 900 | addInput(createInputCentered<PJ301MPort>(Vec(box.size.x / 2 - 120, box.size.y - 115), module, 0)); |
| 901 | addOutput(createOutputCentered<PJ301MPort>(Vec(box.size.x / 2 + 120, box.size.y - 115), module, 0)); |
| 902 | |
| 903 | addChild(createParamCentered<AidaKnob>(Vec(box.size.x / 2 - 80, box.size.y - 115), |
| 904 | module, AidaPluginModule::kParameterINLEVEL)); |
| 905 | |
| 906 | addChild(createParamCentered<AidaKnob>(Vec(box.size.x / 2 + 80, box.size.y - 115), |
| 907 | module, AidaPluginModule::kParameterOUTLEVEL)); |
| 908 | |
| 909 | addChild(createParamCentered<AidaKnob>(Vec(104, box.size.y - 55), |
| 910 | module, AidaPluginModule::kParameterBASSGAIN)); |
| 911 | |
| 912 | addChild(createParamCentered<AidaKnob>(Vec(152, box.size.y - 55), |
| 913 | module, AidaPluginModule::kParameterMIDGAIN)); |
| 914 | |
| 915 | addChild(createParamCentered<AidaKnob>(Vec(200, box.size.y - 55), |
| 916 | module, AidaPluginModule::kParameterTREBLEGAIN)); |
| 917 | |
| 918 | addChild(createParamCentered<AidaKnob>(Vec(252, box.size.y - 55), |
| 919 | module, AidaPluginModule::kParameterDEPTH)); |
| 920 | |
| 921 | addChild(createParamCentered<AidaKnob>(Vec(300, box.size.y - 55), |
| 922 | module, AidaPluginModule::kParameterPRESENCE)); |
| 923 | |
| 924 | addChild(createParamCentered<AidaSwitch>(Vec(34, box.size.y - 53), |
| 925 | module, AidaPluginModule::kParameterEQPOS)); |
| 926 | |
| 927 | addChild(createParamCentered<AidaSwitch>(Vec(64, box.size.y - 53), |
| 928 | module, AidaPluginModule::kParameterMTYPE)); |
| 929 | |
| 930 | AidaLogo* const logow = new AidaLogo(module != nullptr); |
| 931 | |
| 932 | FramebufferWidget* const fbw = new FramebufferWidget; |
| 933 | fbw->oversample = 2.0; |
| 934 | fbw->addChild(logow); |
| 935 | fbw->box.size = logow->box.size; |
| 936 | fbw->box.pos.x = box.size.x / 2 - fbw->box.size.x / 2; |
nothing calls this directly
no outgoing calls
no test coverage detected