Files
lmms/include/rack_view.h
Danny McRae 4cb0d266a3 save and load effects
effects on sample tracks
no more ladspa knob segfaults


git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@298 0778d3d1-df1d-0410-868b-ea421aaaa00d
2006-08-10 01:03:54 +00:00

85 lines
2.1 KiB
C++

/*
* right_frame.h - provides the display for the rackInsert instances
*
* Copyright (c) 2006 Danny McRae <khjklujn@netscape.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* 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., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
*/
#ifndef _RIGHT_FRAME_H
#define _RIGHT_FRAME_H
#include "ladspa_manager.h"
#ifdef LADSPA_SUPPORT
#include <qwidget.h>
#include <qlayout.h>
#include <qscrollview.h>
#include <qvbox.h>
#include <qptrlist.h>
#include "types.h"
#include "journalling_object.h"
#include "rack_plugin.h"
#include "track.h"
#include "ladspa_2_lmms.h"
#include "audio_port.h"
class rackView: public QWidget, public journallingObject
{
Q_OBJECT
public:
rackView( QWidget * _parent, engine * _engine, track * _track, audioPort * _port );
~rackView();
void addPlugin( ladspa_key_t _key );
virtual void FASTCALL saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void FASTCALL loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
{
return( "rack" );
}
public slots:
void moveUp( rackPlugin * _plugin );
void moveDown( rackPlugin * _plugin );
void deletePlugin( rackPlugin * _plugin );
private:
void redraw();
vvector<rackPlugin *> m_rackInserts;
QVBoxLayout * m_mainLayout;
QScrollView * m_scrollView;
track * m_track;
audioPort * m_port;
Uint32 m_lastY;
ladspa2LMMS * m_ladspa;
};
#endif
#endif