You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
3.5KB

  1. #include "Southpole.hpp"
  2. namespace rack_plugin_Southpole {
  3. struct Blank1HPWidget : ModuleWidget {
  4. Blank1HPWidget(Module *module) : ModuleWidget(module) {
  5. box.size = Vec(1 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  6. {
  7. auto *panel = new SVGPanel();
  8. panel->box.size = box.size;
  9. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank2HP.svg")));
  10. addChild(panel);
  11. }
  12. }
  13. };
  14. struct Blank2HPWidget : ModuleWidget {
  15. Blank2HPWidget(Module *module) : ModuleWidget(module) {
  16. box.size = Vec(2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  17. {
  18. auto *panel = new SVGPanel();
  19. panel->box.size = box.size;
  20. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank2HP.svg")));
  21. addChild(panel);
  22. }
  23. }
  24. };
  25. struct Blank4HPWidget : ModuleWidget {
  26. Blank4HPWidget(Module *module) : ModuleWidget(module) {
  27. box.size = Vec(4 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  28. {
  29. auto *panel = new SVGPanel();
  30. panel->box.size = box.size;
  31. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank4HP.svg")));
  32. addChild(panel);
  33. }
  34. }
  35. };
  36. struct Blank8HPWidget : ModuleWidget {
  37. Blank8HPWidget(Module *module) : ModuleWidget(module) {
  38. box.size = Vec(8 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  39. {
  40. auto *panel = new SVGPanel();
  41. panel->box.size = box.size;
  42. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank8HP.svg")));
  43. addChild(panel);
  44. }
  45. }
  46. };
  47. struct Blank16HPWidget : ModuleWidget {
  48. Blank16HPWidget(Module *module) : ModuleWidget(module) {
  49. box.size = Vec(16 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  50. {
  51. auto *panel = new SVGPanel();
  52. panel->box.size = box.size;
  53. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank16HP.svg")));
  54. addChild(panel);
  55. }
  56. }
  57. };
  58. struct Blank42HPWidget : ModuleWidget {
  59. Blank42HPWidget(Module *module) : ModuleWidget(module) {
  60. box.size = Vec(42 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  61. {
  62. auto *panel = new SVGPanel();
  63. panel->box.size = box.size;
  64. panel->setBackground(SVG::load(assetPlugin(plugin, "res/sp-Blank42HP.svg")));
  65. addChild(panel);
  66. }
  67. }
  68. };
  69. } // namespace rack_plugin_Southpole
  70. using namespace rack_plugin_Southpole;
  71. RACK_PLUGIN_MODEL_INIT(Southpole, Blank16HP) {
  72. Model *modelBlank16HP = Model::create<Module,Blank16HPWidget>("Southpole", "Blank16HP", "Blank 16 HP", BLANK_TAG);
  73. return modelBlank16HP;
  74. }
  75. RACK_PLUGIN_MODEL_INIT(Southpole, Blank1HP) {
  76. Model *modelBlank1HP = Model::create<Module,Blank1HPWidget >("Southpole", "Blank1HP", "Blank 1 HP", BLANK_TAG);
  77. return modelBlank1HP;
  78. }
  79. RACK_PLUGIN_MODEL_INIT(Southpole, Blank2HP) {
  80. Model *modelBlank2HP = Model::create<Module,Blank2HPWidget >("Southpole", "Blank2HP", "Blank 2 HP", BLANK_TAG);
  81. return modelBlank2HP;
  82. }
  83. RACK_PLUGIN_MODEL_INIT(Southpole, Blank42HP) {
  84. Model *modelBlank42HP = Model::create<Module,Blank42HPWidget>("Southpole", "Blank42HP", "Blank 42 HP", BLANK_TAG);
  85. return modelBlank42HP;
  86. }
  87. RACK_PLUGIN_MODEL_INIT(Southpole, Blank4HP) {
  88. Model *modelBlank4HP = Model::create<Module,Blank4HPWidget >("Southpole", "Blank4HP", "Blank 4 HP", BLANK_TAG);
  89. return modelBlank4HP;
  90. }
  91. RACK_PLUGIN_MODEL_INIT(Southpole, Blank8HP) {
  92. Model *modelBlank8HP = Model::create<Module,Blank8HPWidget >("Southpole", "Blank8HP", "Blank 8 HP", BLANK_TAG);
  93. return modelBlank8HP;
  94. }