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.

Fl_Osc_ListView.H 712B

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