/***************************************************************************
 * trackwordsmusicview.h: implementation of TrackWordsAndMusicView class
 *
 * This file is part of KGuitar, a KDE tabulature editor
 *
 * copyright (C) 2002-2003 the KGuitar development team <mrgwen@gmail.com>
 ***************************************************************************/

/***************************************************************************
 * 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.
 *
 * See the file COPYING for more information.
 ***************************************************************************/

#ifndef TRACKWORDSMUSICVIEW_H
#define TRACKWORDSMUSICVIEW_H

#include <QFont>
#include <QFontMetrics>
#include <QString>

#include "drawingitem.h"
#include "qcanvascm/qcanvastextcm.h"

class TabProperties;

class TrackWordsAndMusicView : public DrawingItem
{
public:
	TrackWordsAndMusicView(const TabProperties* tabProperties, uint dpi);
	
	virtual void hide();
	virtual void show();
	
	virtual QRectCm boundingRect() const;
	virtual Cm height() const;
	virtual Cm width() const;
private:
	QFont mFontSubTitle;
	QFontMetrics mFontMetrics;
	QCanvasTextCm mCanvasText;
	const TabProperties* mTabProperties;
	QString mText;
};

#endif
