You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
2.4 KiB
131 lines
2.4 KiB
/*
|
|
* Copyright (C) 2006
|
|
* Siraj Razick <siraj@kdemail.net>
|
|
* PhobosK <phobosk@mail.kbfx.net>
|
|
* see Also AUTHORS
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Library General Public License version 2 as
|
|
* published by the Free Software Foundation
|
|
*
|
|
* 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 Library General Public
|
|
* License along with this program; if not, write to the
|
|
* Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
//
|
|
// C++ Implementation: kbfxplasmacanvasabstractitem
|
|
//
|
|
// Description:
|
|
//
|
|
//
|
|
// Author: Siraj Razick <siraj@kdemail.net>, (C) 2006
|
|
//
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
//
|
|
//
|
|
|
|
|
|
#include "kbfxplasmacanvasabstractitem.h"
|
|
|
|
|
|
KbfxPlasmaCanvasAbstractItem::KbfxPlasmaCanvasAbstractItem ( TQCanvasPixmapArray * a, TQCanvas * canvas )
|
|
: TQCanvasSprite ( a,canvas )
|
|
{
|
|
|
|
m_source=0;
|
|
}
|
|
|
|
|
|
KbfxPlasmaCanvasAbstractItem::~KbfxPlasmaCanvasAbstractItem()
|
|
{}
|
|
|
|
// void
|
|
// KbfxPlasmaCanvasAbstractItem::setSelected()
|
|
// {
|
|
//
|
|
// }
|
|
|
|
void KbfxPlasmaCanvasAbstractItem::setCurrent ( bool state )
|
|
{
|
|
m_current = state;
|
|
}
|
|
|
|
|
|
bool
|
|
KbfxPlasmaCanvasAbstractItem::isCurrent()
|
|
{
|
|
return m_current;
|
|
}
|
|
|
|
void
|
|
KbfxPlasmaCanvasAbstractItem::mousePressEvent ( TQMouseEvent * e )
|
|
{
|
|
e = e;
|
|
}
|
|
void
|
|
KbfxPlasmaCanvasAbstractItem::mouseMoveEvent ( TQMouseEvent * e )
|
|
{
|
|
e = e;
|
|
}
|
|
|
|
void
|
|
KbfxPlasmaCanvasAbstractItem::enterEvent ( TQEvent * e )
|
|
{
|
|
e =e ;
|
|
}
|
|
|
|
|
|
void KbfxPlasmaCanvasAbstractItem::mouseReleaseEvent ( TQMouseEvent * e )
|
|
{
|
|
e =e ;
|
|
emit clicked();
|
|
}
|
|
|
|
void KbfxPlasmaCanvasAbstractItem::exec()
|
|
{
|
|
if ( m_source == 0 )
|
|
return;
|
|
|
|
|
|
m_source->exec();
|
|
}
|
|
|
|
|
|
void KbfxPlasmaCanvasAbstractItem::hideit()
|
|
{
|
|
this->hide();
|
|
}
|
|
|
|
void
|
|
KbfxPlasmaCanvasAbstractItem::draw ( TQPainter& pe )
|
|
{
|
|
this->drawContent ( &pe );
|
|
}
|
|
|
|
|
|
void KbfxPlasmaCanvasAbstractItem::setLabelText ( TQString s )
|
|
{
|
|
s = s;
|
|
}
|
|
|
|
TQPixmap
|
|
KbfxPlasmaCanvasAbstractItem::dragPixmap()
|
|
{
|
|
return TQPixmap();
|
|
}
|
|
|
|
void
|
|
KbfxPlasmaCanvasAbstractItem::drawContent ( TQPainter * p )
|
|
{
|
|
p = p ;
|
|
}
|
|
|
|
#include "kbfxplasmacanvasabstractitem.moc"
|