|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
#include "kstartuplogo.h"
|
|
|
|
|
#include "kmymoneyglobalsettings.h"
|
|
|
|
|
|
|
|
|
|
class KStartupSplash::Private
|
|
|
|
|
class TDEStartupSplash::Private
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
TQString message;
|
|
|
|
@ -46,18 +46,18 @@ class KStartupSplash::Private
|
|
|
|
|
int align;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
KStartupSplash::KStartupSplash(const TQPixmap &pixmap, WFlags f) :
|
|
|
|
|
TDEStartupSplash::TDEStartupSplash(const TQPixmap &pixmap, WFlags f) :
|
|
|
|
|
KSplashScreen(pixmap, f),
|
|
|
|
|
d(new Private)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KStartupSplash::~KStartupSplash()
|
|
|
|
|
TDEStartupSplash::~TDEStartupSplash()
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KStartupSplash::message( const TQString &message, int alignment, const TQColor &color)
|
|
|
|
|
void TDEStartupSplash::message( const TQString &message, int alignment, const TQColor &color)
|
|
|
|
|
{
|
|
|
|
|
d->message = message;
|
|
|
|
|
d->align = alignment;
|
|
|
|
@ -67,7 +67,7 @@ void KStartupSplash::message( const TQString &message, int alignment, const TQCo
|
|
|
|
|
KSplashScreen::clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KStartupSplash::drawContents( TQPainter *painter )
|
|
|
|
|
void TDEStartupSplash::drawContents( TQPainter *painter )
|
|
|
|
|
{
|
|
|
|
|
painter->setPen( d->color );
|
|
|
|
|
TQRect r = rect();
|
|
|
|
@ -75,7 +75,7 @@ void KStartupSplash::drawContents( TQPainter *painter )
|
|
|
|
|
painter->drawText( r, d->align, d->message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KStartupLogo::KStartupLogo() :
|
|
|
|
|
TDEStartupLogo::TDEStartupLogo() :
|
|
|
|
|
TQObject(0, 0),
|
|
|
|
|
m_splash(0)
|
|
|
|
|
{
|
|
|
|
@ -91,7 +91,7 @@ KStartupLogo::KStartupLogo() :
|
|
|
|
|
backGround.fill(TDEGlobalSettings::highlightColor());
|
|
|
|
|
bitBlt ( &backGround, 0, 0, &splashPixmap, 0, 0, splashPixmap.width(), splashPixmap.height(), TQt::CopyROP );
|
|
|
|
|
|
|
|
|
|
KStartupSplash* splash = new KStartupSplash(backGround);
|
|
|
|
|
TDEStartupSplash* splash = new TDEStartupSplash(backGround);
|
|
|
|
|
splash->setFixedSize(backGround.size());
|
|
|
|
|
|
|
|
|
|
// FIXME: I added the 'Loading file...' message here, because this was the only
|
|
|
|
@ -105,7 +105,7 @@ KStartupLogo::KStartupLogo() :
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KStartupLogo::~KStartupLogo()
|
|
|
|
|
TDEStartupLogo::~TDEStartupLogo()
|
|
|
|
|
{
|
|
|
|
|
delete m_splash;
|
|
|
|
|
}
|
|
|
|
|