/***************************************************************************
 * tracktimesignatureview.h: implementation of TrackTimeSignatureView class
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2003-2007 the KTabEdit 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 TRACKTIMESIGNATUREVIEW_H
#define TRACKTIMESIGNATUREVIEW_H

#include <QFont>

#include "drawingitem.h"
#include "tablature/timesignature.h"

class QCanvasTextCm;

class TrackTimeSignatureView : public DrawingItem
{
public:
	TrackTimeSignatureView(const TimeSignature* signature, const QFont& font, const Cm& height, uint dpi);
	virtual ~TrackTimeSignatureView();
	
	virtual void hide();
	virtual void show();
	
	virtual QRectCm boundingRect() const;
	virtual Cm width() const;
	virtual Cm height() const;
	
private:
	const TimeSignature* mTimeSignature;
	QFont mTimeFont;
	const Cm mTimeHeight;
	QCanvasTextCm* mCanvasView[2];
};

#endif
