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.

51 lines
1.3KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 3 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the LICENSE file.
  16. */
  17. #include "plugin.hpp"
  18. struct HostTime : Module {
  19. enum ParamIds {
  20. NUM_PARAMS
  21. };
  22. enum InputIds {
  23. NUM_INPUTS
  24. };
  25. enum OutputIds {
  26. NUM_OUTPUTS
  27. };
  28. enum LightIds {
  29. NUM_LIGHTS
  30. };
  31. HostTime() {
  32. config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);
  33. }
  34. void process(const ProcessArgs&) override {
  35. // TODO
  36. }
  37. };
  38. struct HostTimeWidget : ModuleWidget {
  39. HostTimeWidget(HostTime* const module) {
  40. setModule(module);
  41. setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/HostTime.svg")));
  42. }
  43. };
  44. Model* modelHostTime = createModel<HostTime, HostTimeWidget>("HostTime");