Audio plugin host https://kx.studio/carla
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.

54 lines
1.1KB

  1. #include "Fl_Osc_ListView.H"
  2. #include <cstdio>
  3. #include <rtosc/rtosc.h>
  4. Fl_Osc_ListView::Fl_Osc_ListView(int x,int y, int w, int h, const char *label)
  5. :Fl_Browser(x,y,w,h,label)
  6. {}
  7. Fl_Osc_ListView::~Fl_Osc_ListView(void) {};
  8. void Fl_Osc_ListView::init(const char *path_)
  9. {
  10. Fl_Osc_Pane *pane = fetch_osc_pane(this);
  11. assert(pane);
  12. osc = pane->osc;
  13. loc = pane->base;
  14. assert(osc);
  15. path = path_;
  16. oscRegister(path_);
  17. }
  18. void Fl_Osc_ListView::OSC_raw(const char *msg)
  19. {
  20. this->clear();
  21. for(int i=0; i<(int)rtosc_narguments(msg); ++i) {
  22. this->add(rtosc_argument(msg, i).s);
  23. }
  24. }
  25. void Fl_Osc_ListView::update(void)
  26. {
  27. osc->requestValue(path.c_str());
  28. }
  29. void Fl_Osc_ListView::insert(std::string s, int offset)
  30. {
  31. fprintf(stderr, "UNIMPLEMENTED\n");
  32. }
  33. void Fl_Osc_ListView::append(std::string s)
  34. {
  35. fprintf(stderr, "UNIMPLEMENTED\n");
  36. }
  37. void Fl_Osc_ListView::doMove(int i, int j)
  38. {
  39. fprintf(stderr, "UNIMPLEMENTED\n");
  40. }
  41. void Fl_Osc_ListView::doRemove(int offset)
  42. {
  43. fprintf(stderr, "UNIMPLEMENTED\n");
  44. }
  45. void Fl_Osc_ListView::sendUpdate() const
  46. {
  47. fprintf(stderr, "UNIMPLEMENTED\n");
  48. }