From 5c38ab61defa8a22d4346bebf50ec72ec4baeb94 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 31 Oct 2022 01:30:44 +0000 Subject: [PATCH] Set UI size before creation, make waveform slider act as a button Signed-off-by: falkTX --- dpf | 2 +- plugins/Nekobi/DistrhoPluginInfo.h | 5 +++++ plugins/Nekobi/DistrhoUINekobi.cpp | 3 ++- plugins/Nekobi/DistrhoUINekobi.hpp | 3 +-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dpf b/dpf index 15cbdcd..f725f08 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 15cbdcd5e64054dfb4781e6269899047aed19619 +Subproject commit f725f0825086896f44a0bc54b629ba0da919541e diff --git a/plugins/Nekobi/DistrhoPluginInfo.h b/plugins/Nekobi/DistrhoPluginInfo.h index 41ed912..3b11bb9 100644 --- a/plugins/Nekobi/DistrhoPluginInfo.h +++ b/plugins/Nekobi/DistrhoPluginInfo.h @@ -18,6 +18,8 @@ #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED +#include "DistrhoArtworkNekobi.hpp" + #define DISTRHO_PLUGIN_BRAND "DISTRHO" #define DISTRHO_PLUGIN_NAME "Nekobi" #define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/Nekobi" @@ -29,4 +31,7 @@ #define DISTRHO_PLUGIN_NUM_INPUTS 0 #define DISTRHO_PLUGIN_NUM_OUTPUTS 1 +#define DISTRHO_UI_DEFAULT_WIDTH DistrhoArtworkNekobi::backgroundWidth +#define DISTRHO_UI_DEFAULT_HEIGHT DistrhoArtworkNekobi::backgroundHeight + #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED diff --git a/plugins/Nekobi/DistrhoUINekobi.cpp b/plugins/Nekobi/DistrhoUINekobi.cpp index 4c53224..d308217 100644 --- a/plugins/Nekobi/DistrhoUINekobi.cpp +++ b/plugins/Nekobi/DistrhoUINekobi.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. - * Copyright (C) 2013-2021 Filipe Coelho + * Copyright (C) 2013-2022 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -40,6 +40,7 @@ DistrhoUINekobi::DistrhoUINekobi() fSliderWaveform->setId(DistrhoPluginNekobi::paramWaveform); fSliderWaveform->setStartPos(133, 40); fSliderWaveform->setEndPos(133, 60); + fSliderWaveform->setCheckable(true); fSliderWaveform->setRange(0.0f, 1.0f); fSliderWaveform->setStep(1.0f); fSliderWaveform->setValue(0.0f); diff --git a/plugins/Nekobi/DistrhoUINekobi.hpp b/plugins/Nekobi/DistrhoUINekobi.hpp index 8106308..c2fabeb 100644 --- a/plugins/Nekobi/DistrhoUINekobi.hpp +++ b/plugins/Nekobi/DistrhoUINekobi.hpp @@ -1,6 +1,6 @@ /* * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. - * Copyright (C) 2013-2021 Filipe Coelho + * Copyright (C) 2013-2022 Filipe Coelho * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -22,7 +22,6 @@ #include "ImageWidgets.hpp" -#include "DistrhoArtworkNekobi.hpp" #include "NekoWidget.hpp" using DGL_NAMESPACE::ImageAboutWindow;