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.

26 lines
675B

  1. #pragma once
  2. #include <string>
  3. #include <vector>
  4. #include "Fl_Osc_Widget.H"
  5. #include <FL/Fl_Browser.H>
  6. class Fl_Osc_ListView:public Fl_Browser, public Fl_Osc_Widget
  7. {
  8. public:
  9. Fl_Osc_ListView(int x,int y, int w, int h, const char *label=0);
  10. virtual ~Fl_Osc_ListView(void);
  11. void init(const char *path_);
  12. void OSC_raw(const char *msg);
  13. void update(void);
  14. void insert(std::string s, int offset);
  15. void append(std::string s);
  16. void doMove(int i, int j);
  17. void doRemove(int offset);
  18. private:
  19. void sendUpdate() const;
  20. std::string path;
  21. std::vector<std::string> data;
  22. };