mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-26 15:28:14 -05:00
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@547 0778d3d1-df1d-0410-868b-ea421aaaa00d
88 lines
2.0 KiB
C++
88 lines
2.0 KiB
C++
/*
|
|
* right_frame.h - provides the display for the rackInsert instances
|
|
*
|
|
* Copyright (c) 2006-2007 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., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301 USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef _RACK_VIEW_H
|
|
#define _RACK_VIEW_H
|
|
|
|
#include <QtGui/QWidget>
|
|
#include <QtGui/QLayout>
|
|
#include <QtGui/QScrollArea>
|
|
#include <QtGui/QVBoxLayout>
|
|
|
|
|
|
#include "types.h"
|
|
#include "journalling_object.h"
|
|
|
|
|
|
class audioPort;
|
|
class effect;
|
|
class rackPlugin;
|
|
class track;
|
|
|
|
|
|
class rackView: public QWidget, public journallingObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
rackView( QWidget * _parent, track * _track, audioPort * _port );
|
|
~rackView();
|
|
|
|
void addEffect( effect * _e );
|
|
|
|
virtual void FASTCALL saveSettings( QDomDocument & _doc,
|
|
QDomElement & _parent );
|
|
virtual void FASTCALL loadSettings( const QDomElement & _this );
|
|
inline virtual QString nodeName( void ) const
|
|
{
|
|
return( "rack" );
|
|
}
|
|
|
|
void deleteAllPlugins( void );
|
|
|
|
|
|
public slots:
|
|
void moveUp( rackPlugin * _plugin );
|
|
void moveDown( rackPlugin * _plugin );
|
|
void deletePlugin( rackPlugin * _plugin );
|
|
|
|
|
|
private:
|
|
void redraw();
|
|
|
|
|
|
QVector<rackPlugin *> m_rackInserts;
|
|
|
|
QVBoxLayout * m_mainLayout;
|
|
QScrollArea * m_scrollArea;
|
|
|
|
track * m_track;
|
|
audioPort * m_port;
|
|
|
|
Uint32 m_lastY;
|
|
|
|
} ;
|
|
|
|
#endif
|