/***************************************************************************
 * tracktitleview.h: implementation of TrackBarView class
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2003-2006 the KTabEdit development team <mrgwen@gmail.com>
 * 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 TRACKTITLEVIEW_H
#define TRACKTITLEVIEW_H

#include <QFont>
#include <QFontMetrics>

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

class TrackTitleView : public DrawingItem
{
public:
	TrackTitleView(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 mFont;
	QFontMetrics mFontMetrics;
	const TabProperties* mTabProperties;
	QCanvasTextCm mCanvasText;
};

#endif
