First version of a new dynamic LADSPA control dialog

The new dialog shows the LADSPA controls in a matrix layout. Each row
corresponds to a LADSPA parameter. Each parameter can have several
channels which can be linked. Each channel has its own row of controls.

The class LadspaMatrixControlView was added by copying and modifying
LadspaControlView to get rid of the link buttons which are associated
with some controls and some labels.
This commit is contained in:
Michael Gregorius
2015-05-23 15:31:47 +02:00
parent db200fb90c
commit f633977fa3
8 changed files with 369 additions and 2 deletions

View File

@@ -116,6 +116,7 @@ private:
friend class LadspaControlView;
friend class LadspaMatrixControlDialog;
} ;

View File

@@ -0,0 +1,49 @@
/*
* LadspaMatrixControlView.h - widget for controlling a LADSPA port
*
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2015 Michael Gregorius <michaelgregorius/at/web[dot]de>
*
* This file is part of LMMS - http://lmms.io
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef LADSPA_MATRIX_CONTROL_VIEW_H
#define LADSPA_MATRIX_CONTROL_VIEW_H
#include <QWidget>
#include "ModelView.h"
class LadspaControl;
class LMMS_EXPORT LadspaMatrixControlView : public QWidget, public ModelView
{
Q_OBJECT
public:
LadspaMatrixControlView( QWidget * parent, LadspaControl * ladspaControl );
virtual ~LadspaMatrixControlView();
private:
LadspaControl * m_ladspaControl;
} ;
#endif