Mercurial > hg > pub > prymula > com
comparison DPF-Prymula-audioplugins/plugins/CloneChannel/DistrhoUICloneChannel.hpp @ 3:84e66ea83026
DPF-Prymula-audioplugins-0.231015-2
author | prymula <prymula76@outlook.com> |
---|---|
date | Mon, 16 Oct 2023 21:53:34 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:cf2cb71d31dd | 3:84e66ea83026 |
---|---|
1 /* | |
2 * DISTRHO CloneChannel - Copyright (C) 2023 Przemysław R. Pietaszczyk | |
3 * Based on DPF'ied SoulForce. | |
4 * Copyright (C) 2006 Niall Moody | |
5 * Copyright (C) 2015 Filipe Coelho <falktx@falktx.com> | |
6 * | |
7 * Permission is hereby granted, free of charge, to any person obtaining a | |
8 * copy of this software and associated documentation files (the "Software"), | |
9 * to deal in the Software without restriction, including without limitation | |
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
11 * and/or sell copies of the Software, and to permit persons to whom the | |
12 * Software is furnished to do so, subject to the following conditions: | |
13 * | |
14 * The above copyright notice and this permission notice shall be included in | |
15 * all copies or substantial portions of the Software. | |
16 * | |
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
20 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
23 * DEALINGS IN THE SOFTWARE. | |
24 */ | |
25 | |
26 #ifndef DISTRHO_UI_CLONE_CHANNEL_HPP_INCLUDED | |
27 #define DISTRHO_UI_CLONE_CHANNEL_HPP_INCLUDED | |
28 | |
29 #include "DistrhoUI.hpp" | |
30 #include "ImageWidgets.hpp" | |
31 | |
32 #include "DistrhoArtworkCloneChannel.hpp" | |
33 | |
34 START_NAMESPACE_DISTRHO | |
35 | |
36 // ----------------------------------------------------------------------- | |
37 | |
38 class DistrhoUICloneChannel : public UI, | |
39 public ImageSwitch::Callback | |
40 { | |
41 public: | |
42 DistrhoUICloneChannel(); | |
43 | |
44 protected: | |
45 // ------------------------------------------------------------------- | |
46 // DSP Callbacks | |
47 | |
48 void parameterChanged(uint32_t index, float value) override; | |
49 void programLoaded(uint32_t index) override; | |
50 | |
51 // ------------------------------------------------------------------- | |
52 // Widget Callbacks | |
53 | |
54 void imageSwitchClicked(ImageSwitch* imageSwitch, bool down) override; | |
55 | |
56 void onDisplay() override; | |
57 | |
58 private: | |
59 Image fImgBackground, fImgLedOff, fImgLedOn; | |
60 ScopedPointer<ImageSwitch> fSwitchSource, fSwitchSource2; | |
61 | |
62 DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUICloneChannel) | |
63 }; | |
64 | |
65 // ----------------------------------------------------------------------- | |
66 | |
67 END_NAMESPACE_DISTRHO | |
68 | |
69 #endif // DISTRHO_UI_SOUL_FORCE_HPP_INCLUDED |