/***************************************************************************
 *   Copyright (C) 2004, 2005 Thomas Nagy                                  *
 *   tnagy2^8@yahoo.fr                                                     *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License version 2        *
 *   as published by the Free Software Foundation (see COPYING)            *
 *                                                                         *
 *   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.                          *
 ***************************************************************************/

#ifndef _DCANVASPOS_H
#define _DCANVASPOS_H

#include <qcanvas.h>

static const int Rtti_DCanvasPos = 11111;

class DCanvasItem;
class DCanvasPos : public QCanvasRectangle
{
    public:
	DCanvasPos(QCanvas*, DCanvasItem*);
	virtual ~DCanvasPos();

	void drawShape(QPainter & p);

	DCanvasItem* m_parent;
	int Id();

	void updatePos();
	int rtti() const;	

    private:
	int m_size;
};

#endif // _DCANVASPOS_H
