|
|
|
@ -23,8 +23,8 @@
|
|
|
|
|
|
|
|
|
|
#include "kbfxtooltip.h"
|
|
|
|
|
|
|
|
|
|
KbfxToolTip::KbfxToolTip ( TQWidget * tqparent, const char *name, WFlags fl ) :
|
|
|
|
|
TQWidget ( tqparent, name,
|
|
|
|
|
KbfxToolTip::KbfxToolTip ( TQWidget * parent, const char *name, WFlags fl ) :
|
|
|
|
|
TQWidget ( parent, name,
|
|
|
|
|
fl | WStyle_Customize | WRepaintNoErase | WStyle_NoBorder |
|
|
|
|
|
WDestructiveClose | TQt::WPaintDesktop | TQt::WType_Popup | TQt::
|
|
|
|
|
WPaintClever | TQt::WNoAutoErase | TQt::WResizeNoErase | TQt::
|
|
|
|
@ -41,7 +41,7 @@ KbfxToolTip::KbfxToolTip ( TQWidget * tqparent, const char *name, WFlags fl ) :
|
|
|
|
|
TQImage ( ConfigInit ().m_SpinxTooltipWindow )
|
|
|
|
|
: TQImage ( ConfigInit ().m_SpinxTooltipWindowDefault );
|
|
|
|
|
|
|
|
|
|
tooltip_tqmask = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipMask ) ) ?
|
|
|
|
|
tooltip_mask = ( KbfxPlasmaPixmapProvider::PixmapPathCheck ( ConfigInit().m_SpinxTooltipMask ) ) ?
|
|
|
|
|
TQImage ( ConfigInit().m_SpinxTooltipMask )
|
|
|
|
|
: TQImage ( ConfigInit().m_SpinxTooltipMaskDefault );
|
|
|
|
|
|
|
|
|
@ -114,10 +114,10 @@ KbfxToolTip::setAnimationImage ( TQString path )
|
|
|
|
|
_agent->resize ( 100, 100 );
|
|
|
|
|
|
|
|
|
|
_agent_anim = new TQMovie ( path );
|
|
|
|
|
TQPixmap agent_tqmask = _agent_anim->framePixmap ();
|
|
|
|
|
_agent->setBackgroundPixmap ( agent_tqmask );
|
|
|
|
|
if ( agent_tqmask.tqmask () )
|
|
|
|
|
_agent->setMask ( *agent_tqmask.tqmask () );
|
|
|
|
|
TQPixmap agent_mask = _agent_anim->framePixmap ();
|
|
|
|
|
_agent->setBackgroundPixmap ( agent_mask );
|
|
|
|
|
if ( agent_mask.mask () )
|
|
|
|
|
_agent->setMask ( *agent_mask.mask () );
|
|
|
|
|
_agent->tqrepaint ();
|
|
|
|
|
|
|
|
|
|
/*FIXME:Need to remove Hard Coded Values */
|
|
|
|
@ -135,7 +135,7 @@ KbfxToolTip::setBackground ( TQPixmap bg )
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
( bg.isNull () ) ?
|
|
|
|
|
_bg = tooltip_tqmask
|
|
|
|
|
_bg = tooltip_mask
|
|
|
|
|
: _bg = bg.convertToImage ();
|
|
|
|
|
|
|
|
|
|
/* animation check : Auto streatch */
|
|
|
|
@ -150,8 +150,8 @@ KbfxToolTip::setBackground ( TQPixmap bg )
|
|
|
|
|
this->setBackgroundPixmap ( pm );
|
|
|
|
|
|
|
|
|
|
TQPixmap m_tmp ( _bg );
|
|
|
|
|
if ( m_tmp.tqmask () )
|
|
|
|
|
this->setMask ( ( *m_tmp.tqmask () ) );
|
|
|
|
|
if ( m_tmp.mask () )
|
|
|
|
|
this->setMask ( ( *m_tmp.mask () ) );
|
|
|
|
|
this->resize ( _bg.width (), _bg.height () );
|
|
|
|
|
_maxW = _bg.width ();
|
|
|
|
|
}
|
|
|
|
@ -196,10 +196,10 @@ KbfxToolTip::logoMove ()
|
|
|
|
|
p.end ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQPixmap agent_tqmask = _agent_anim->framePixmap ();
|
|
|
|
|
_agent->setBackgroundPixmap ( agent_tqmask );
|
|
|
|
|
if ( agent_tqmask.tqmask () )
|
|
|
|
|
_agent->setMask ( *agent_tqmask.tqmask () );
|
|
|
|
|
TQPixmap agent_mask = _agent_anim->framePixmap ();
|
|
|
|
|
_agent->setBackgroundPixmap ( agent_mask );
|
|
|
|
|
if ( agent_mask.mask () )
|
|
|
|
|
_agent->setMask ( *agent_mask.mask () );
|
|
|
|
|
_agent->tqrepaint ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|