Browse Source

Set UI size before creation, make waveform slider act as a button

Signed-off-by: falkTX <falktx@falktx.com>
pull/18/head
falkTX 2 years ago
parent
commit
5c38ab61de
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 9 additions and 4 deletions
  1. +1
    -1
      dpf
  2. +5
    -0
      plugins/Nekobi/DistrhoPluginInfo.h
  3. +2
    -1
      plugins/Nekobi/DistrhoUINekobi.cpp
  4. +1
    -2
      plugins/Nekobi/DistrhoUINekobi.hpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 15cbdcd5e64054dfb4781e6269899047aed19619
Subproject commit f725f0825086896f44a0bc54b629ba0da919541e

+ 5
- 0
plugins/Nekobi/DistrhoPluginInfo.h View File

@@ -18,6 +18,8 @@
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED #ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
#define DISTRHO_PLUGIN_INFO_H_INCLUDED #define DISTRHO_PLUGIN_INFO_H_INCLUDED


#include "DistrhoArtworkNekobi.hpp"

#define DISTRHO_PLUGIN_BRAND "DISTRHO" #define DISTRHO_PLUGIN_BRAND "DISTRHO"
#define DISTRHO_PLUGIN_NAME "Nekobi" #define DISTRHO_PLUGIN_NAME "Nekobi"
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/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_INPUTS 0
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1 #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 #endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

+ 2
- 1
plugins/Nekobi/DistrhoUINekobi.cpp View File

@@ -1,6 +1,6 @@
/* /*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
@@ -40,6 +40,7 @@ DistrhoUINekobi::DistrhoUINekobi()
fSliderWaveform->setId(DistrhoPluginNekobi::paramWaveform); fSliderWaveform->setId(DistrhoPluginNekobi::paramWaveform);
fSliderWaveform->setStartPos(133, 40); fSliderWaveform->setStartPos(133, 40);
fSliderWaveform->setEndPos(133, 60); fSliderWaveform->setEndPos(133, 60);
fSliderWaveform->setCheckable(true);
fSliderWaveform->setRange(0.0f, 1.0f); fSliderWaveform->setRange(0.0f, 1.0f);
fSliderWaveform->setStep(1.0f); fSliderWaveform->setStep(1.0f);
fSliderWaveform->setValue(0.0f); fSliderWaveform->setValue(0.0f);


+ 1
- 2
plugins/Nekobi/DistrhoUINekobi.hpp View File

@@ -1,6 +1,6 @@
/* /*
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others. * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as * modify it under the terms of the GNU General Public License as
@@ -22,7 +22,6 @@


#include "ImageWidgets.hpp" #include "ImageWidgets.hpp"


#include "DistrhoArtworkNekobi.hpp"
#include "NekoWidget.hpp" #include "NekoWidget.hpp"


using DGL_NAMESPACE::ImageAboutWindow; using DGL_NAMESPACE::ImageAboutWindow;


Loading…
Cancel
Save