LMMS
Loading...
Searching...
No Matches
Fl_Osc_ListView.H
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Fl_Osc_ListView.H - OSC Based List View
5 Copyright (C) 2016 Mark McCurry
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11*/
12#pragma once
13#include <string>
14#include <vector>
15#include "Fl_Osc_Widget.H"
16#include <FL/Fl_Browser.H>
17#include "Osc_SimpleListModel.h"
18
19class Fl_Osc_ListView:public Fl_Browser, Fl_Osc_Widget
20{
21 public:
22 Fl_Osc_ListView(int x,int y, int w, int h, const char *label=0);
23 virtual ~Fl_Osc_ListView(void);
24
25 void init(const char *path_);
27 void update(void);
28
29 void insert(std::string s, int offset);
30 void append(std::string s);
31 void doMove(int i, int j);
32 void doRemove(int offset);
33 private:
34 void sendUpdate() const;
35 std::string path;
37};
void doMove(int i, int j)
Definition Fl_Osc_ListView.cpp:63
Osc_SimpleListModel * data
Definition Fl_Osc_ListView.H:36
void insert(std::string s, int offset)
Definition Fl_Osc_ListView.cpp:51
void update(void)
Definition Fl_Osc_ListView.cpp:46
virtual ~Fl_Osc_ListView(void)
Definition Fl_Osc_ListView.cpp:21
std::string path
Definition Fl_Osc_ListView.H:35
Fl_Osc_ListView(int x, int y, int w, int h, const char *label=0)
Definition Fl_Osc_ListView.cpp:17
void doUpdate(Osc_SimpleListModel::list_t l)
Definition Fl_Osc_ListView.cpp:39
void sendUpdate() const
Definition Fl_Osc_ListView.cpp:80
void doRemove(int offset)
Definition Fl_Osc_ListView.cpp:74
void append(std::string s)
Definition Fl_Osc_ListView.cpp:58
Fl_Osc_Widget(void)
Definition Fl_Osc_Widget.cpp:16
Definition Osc_SimpleListModel.h:19
std::vector< std::string > list_t
Definition Osc_SimpleListModel.h:27
UINT_D64 w
Definition inflate.c:942
int * l
Definition inflate.c:1579
register unsigned j
Definition inflate.c:1576
int y
Definition inflate.c:1588
register unsigned i
Definition inflate.c:1575
unsigned s
Definition inflate.c:1555
unsigned x[BMAX+1]
Definition inflate.c:1586
uch h[RAND_HEAD_LEN]
Definition crypt.c:459
ZCONST uch * init
Definition extract.c:2392