/*************************************************************
*
* (c) 1999, 2000 Christoph Pinkel
* This is part of the VisKProg project.
*
* You may use it under the terms of the GPL licence.
* See COPYING for more details!
*
**************************************************************/

#include "startwin.h"
#include "startwin.moc"

startwin::startwin() : QWidget( 0L )
{
KIconLoader iconLoader;
QRect wReg;

	pm = iconLoader.loadIcon( "startwin.xpm" );

	resize(1,1);

	KWM::setDecoration( winId(),
		KWM::tinyDecoration|KWM::noFocus );

	wReg = KWM::getWindowRegion( KWM::currentDesktop() );

	show();

	KWM::move( winId(), QPoint( wReg.x() +wReg.width()/2 -(pm.width()/2),
		 wReg.y() +wReg.height()/2 -(pm.height()/2) ) );

	setBackgroundPixmap(pm);

	setFixedSize( pm.width(),
		pm.height() );

}