mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-11 02:26:19 -04:00
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@2060 0778d3d1-df1d-0410-868b-ea421aaaa00d
61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
/*
|
|
* pattern_item.h - Pattern QGraphicsItem used in the song editor
|
|
*
|
|
* Copyright (c) 2009 Paul Giblock <pgib/at/users.sourceforge.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 _PATTERN_ITEM_H_
|
|
#define _PATTERN_ITEM_H_
|
|
|
|
#include <QtCore/QVector>
|
|
#include <QGraphicsScene>
|
|
#include <QGraphicsItem>
|
|
#include <QTimeLine>
|
|
#include <QGraphicsItemAnimation>
|
|
#include <QPainter>
|
|
#include <math.h>
|
|
|
|
#include "gui/tracks/track_content_object_item.h"
|
|
#include "gui/tracks/track_item.h"
|
|
|
|
|
|
class PatternItem : public TrackContentObjectItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PatternItem( TrackItem * _track, trackContentObject * _object );
|
|
|
|
virtual void paint( QPainter * _painter, const QStyleOptionGraphicsItem * _option,
|
|
QWidget * _widget );
|
|
|
|
|
|
protected:
|
|
// virtual QVariant itemChange( GraphicsItemChange _change, const QVariant & _value );
|
|
|
|
virtual void mousePressEvent( QGraphicsSceneMouseEvent * event );
|
|
virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent * event );
|
|
|
|
};
|
|
|
|
#endif
|