Fl_Osc_DialF.H (1008B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 Fl_Osc_DialF.H - OSC Powered Real Valued Dial 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 <FL/Fl_Dial.H> 14 #include "WidgetPDial.h" 15 #include "Fl_Osc_Widget.H" 16 #include <string> 17 18 class Fl_Osc_DialF:public WidgetPDial, public Fl_Osc_Widget 19 { 20 21 public: 22 Fl_Osc_DialF(int X, int Y, int W, int H, const char *label = NULL); 23 virtual ~Fl_Osc_DialF(void); 24 void init(const char *path); 25 void OSC_value(float); 26 27 //Refetch parameter information 28 void update(void); 29 void callback(Fl_Callback *cb, void *p = NULL); 30 31 //Midi learn handler 32 int handle(int); 33 34 void cb(void); 35 private: 36 std::pair<Fl_Callback*, void*> cb_data; 37 };