| 1 |
/* |
| 2 |
* Dragonfly Reverb, copyright (c) 2020 Michael Willis, Rob van den Berg |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU General Public License as |
| 6 |
* published by the Free Software Foundation; either version 3 of |
| 7 |
* the License, or any later version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* For a full copy of the GNU General Public License see the LICENSE file. |
| 15 |
*/ |
| 16 |
|
| 17 |
#ifndef COMMON_UI_HPP_INCLUDED |
| 18 |
#define COMMON_UI_HPP_INCLUDED |
| 19 |
|
| 20 |
#include "DistrhoUI.hpp" |
| 21 |
#include "ImageWidgets.hpp" |
| 22 |
#include "NanoVG.hpp" |
| 23 |
#include "DistrhoPlugin.hpp" |
| 24 |
#include "Spectrogram.hpp" |
| 25 |
#include "LabelledKnob.hpp" |
| 26 |
|
| 27 |
class DragonflyReverbAbstractUI : public UI, public ImageKnob::Callback, public ImageButton::Callback { |
| 28 |
public: |
| 29 |
DragonflyReverbAbstractUI(uint width, uint height, const Param* params, const char* knobData, uint knobWidth, uint knobHeight, const char* questionData, uint questionWidth, uint questionHeight); |
| 30 |
protected: |
| 31 |
NanoVG nanoText; |
| 32 |
const Param* params; |
| 33 |
Image knobImage; |
| 34 |
|
| 35 |
ScopedPointer<ImageButton> aboutButton; |
| 36 |
bool displayAbout = false; |
| 37 |
|
| 38 |
LabelledKnob * createLabelledKnob(const Param *param, const char * numberFormat, int x, int y); |
| 39 |
|
| 40 |
bool onMouse(const MouseEvent& ev); |
| 41 |
void imageButtonClicked(ImageButton* imageButton, int button); |
| 42 |
}; |
| 43 |
|
| 44 |
#endif |