Skip to content

Commit 5c38ab6

Browse files
committed
Set UI size before creation, make waveform slider act as a button
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 20d6275 commit 5c38ab6

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

plugins/Nekobi/DistrhoPluginInfo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef DISTRHO_PLUGIN_INFO_H_INCLUDED
1919
#define DISTRHO_PLUGIN_INFO_H_INCLUDED
2020

21+
#include "DistrhoArtworkNekobi.hpp"
22+
2123
#define DISTRHO_PLUGIN_BRAND "DISTRHO"
2224
#define DISTRHO_PLUGIN_NAME "Nekobi"
2325
#define DISTRHO_PLUGIN_URI "http://distrho.sf.net/plugins/Nekobi"
@@ -29,4 +31,7 @@
2931
#define DISTRHO_PLUGIN_NUM_INPUTS 0
3032
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1
3133

34+
#define DISTRHO_UI_DEFAULT_WIDTH DistrhoArtworkNekobi::backgroundWidth
35+
#define DISTRHO_UI_DEFAULT_HEIGHT DistrhoArtworkNekobi::backgroundHeight
36+
3237
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

plugins/Nekobi/DistrhoUINekobi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
3-
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* This program is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU General Public License as
@@ -40,6 +40,7 @@ DistrhoUINekobi::DistrhoUINekobi()
4040
fSliderWaveform->setId(DistrhoPluginNekobi::paramWaveform);
4141
fSliderWaveform->setStartPos(133, 40);
4242
fSliderWaveform->setEndPos(133, 60);
43+
fSliderWaveform->setCheckable(true);
4344
fSliderWaveform->setRange(0.0f, 1.0f);
4445
fSliderWaveform->setStep(1.0f);
4546
fSliderWaveform->setValue(0.0f);

plugins/Nekobi/DistrhoUINekobi.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
3-
* Copyright (C) 2013-2021 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2013-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* This program is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU General Public License as
@@ -22,7 +22,6 @@
2222

2323
#include "ImageWidgets.hpp"
2424

25-
#include "DistrhoArtworkNekobi.hpp"
2625
#include "NekoWidget.hpp"
2726

2827
using DGL_NAMESPACE::ImageAboutWindow;

0 commit comments

Comments
 (0)