|
|
@ -1052,8 +1052,8 @@ KDE_NO_EXPORT void AnimateData::stopped () {
|
|
|
|
KDE_NO_EXPORT void AnimateData::applyStep () {
|
|
|
|
KDE_NO_EXPORT void AnimateData::applyStep () {
|
|
|
|
Element * target = convertNode <Element> (target_element);
|
|
|
|
Element * target = convertNode <Element> (target_element);
|
|
|
|
if (target && calcMode == calc_linear)
|
|
|
|
if (target && calcMode == calc_linear)
|
|
|
|
target->setParam (changed_attribute, TQString ("%1%2").tqarg (
|
|
|
|
target->setParam (changed_attribute, TQString ("%1%2").arg (
|
|
|
|
change_from_val).tqarg(change_from_unit),
|
|
|
|
change_from_val).arg(change_from_unit),
|
|
|
|
&modification_id);
|
|
|
|
&modification_id);
|
|
|
|
else if (target && calcMode == calc_discrete)
|
|
|
|
else if (target && calcMode == calc_discrete)
|
|
|
|
target->setParam (changed_attribute,
|
|
|
|
target->setParam (changed_attribute,
|
|
|
@ -1403,7 +1403,7 @@ KDE_NO_EXPORT void KMPlayer::MediaTypeRuntime::reset () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* will request a tqrepaint of attached region
|
|
|
|
* will request a repaint of attached region
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
KDE_NO_EXPORT void MediaTypeRuntime::stopped () {
|
|
|
|
KDE_NO_EXPORT void MediaTypeRuntime::stopped () {
|
|
|
|
clipStop ();
|
|
|
|
clipStop ();
|
|
|
@ -1623,7 +1623,7 @@ KDE_NO_EXPORT void SMIL::Smil::activate () {
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::Smil::deactivate () {
|
|
|
|
KDE_NO_EXPORT void SMIL::Smil::deactivate () {
|
|
|
|
if (layout_node)
|
|
|
|
if (layout_node)
|
|
|
|
convertNode <SMIL::Layout> (layout_node)->tqrepaint ();
|
|
|
|
convertNode <SMIL::Layout> (layout_node)->repaint ();
|
|
|
|
if (layout_node)
|
|
|
|
if (layout_node)
|
|
|
|
convertNode <SMIL::Layout> (layout_node)->region_surface = NULL;
|
|
|
|
convertNode <SMIL::Layout> (layout_node)->region_surface = NULL;
|
|
|
|
Mrl::getSurface(0L);
|
|
|
|
Mrl::getSurface(0L);
|
|
|
@ -1834,7 +1834,7 @@ KDE_NO_EXPORT void SMIL::Layout::activate () {
|
|
|
|
RegionBase::activate ();
|
|
|
|
RegionBase::activate ();
|
|
|
|
if (surface ()) {
|
|
|
|
if (surface ()) {
|
|
|
|
updateDimensions ();
|
|
|
|
updateDimensions ();
|
|
|
|
tqrepaint ();
|
|
|
|
repaint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
finish (); // proceed and allow 'head' to finish
|
|
|
|
finish (); // proceed and allow 'head' to finish
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1928,14 +1928,14 @@ KDE_NO_EXPORT void SMIL::RegionBase::remoteReady (TQByteArray & data) {
|
|
|
|
postpone_lock = 0L;
|
|
|
|
postpone_lock = 0L;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::tqrepaint () {
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::repaint () {
|
|
|
|
if (surface ())
|
|
|
|
if (surface ())
|
|
|
|
region_surface->tqrepaint (SRect (0, 0, w, h));
|
|
|
|
region_surface->repaint (SRect (0, 0, w, h));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::tqrepaint (const SRect & rect) {
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::repaint (const SRect & rect) {
|
|
|
|
if (surface ())
|
|
|
|
if (surface ())
|
|
|
|
region_surface->tqrepaint (SRect (0, 0, w, h).intersect (rect));
|
|
|
|
region_surface->repaint (SRect (0, 0, w, h).intersect (rect));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::updateDimensions () {
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::updateDimensions () {
|
|
|
@ -1949,7 +1949,7 @@ KDE_NO_EXPORT void SMIL::RegionBase::updateDimensions () {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::boundsUpdate () {
|
|
|
|
KDE_NO_EXPORT void SMIL::RegionBase::boundsUpdate () {
|
|
|
|
// if there is a region_surface and it's moved, do a limit tqrepaint
|
|
|
|
// if there is a region_surface and it's moved, do a limit repaint
|
|
|
|
NodePtr p = parentNode ();
|
|
|
|
NodePtr p = parentNode ();
|
|
|
|
if (p && (p->id==SMIL::id_node_region || p->id==SMIL::id_node_layout) &&
|
|
|
|
if (p && (p->id==SMIL::id_node_region || p->id==SMIL::id_node_layout) &&
|
|
|
|
region_surface) {
|
|
|
|
region_surface) {
|
|
|
@ -1958,7 +1958,7 @@ KDE_NO_EXPORT void SMIL::RegionBase::boundsUpdate () {
|
|
|
|
w = 0; h = 0;
|
|
|
|
w = 0; h = 0;
|
|
|
|
sizes.calcSizes (this, pr->w, pr->h, x, y, w, h);
|
|
|
|
sizes.calcSizes (this, pr->w, pr->h, x, y, w, h);
|
|
|
|
region_surface->bounds = SRect (x, y, w, h);
|
|
|
|
region_surface->bounds = SRect (x, y, w, h);
|
|
|
|
pr->tqrepaint (region_surface->bounds.unite (old_bounds));
|
|
|
|
pr->repaint (region_surface->bounds.unite (old_bounds));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1981,7 +1981,7 @@ KDE_NO_EXPORT Surface *SMIL::RegionBase::surface () {
|
|
|
|
KDE_NO_EXPORT
|
|
|
|
KDE_NO_EXPORT
|
|
|
|
void SMIL::RegionBase::parseParam (const TrieString & name, const TQString & val) {
|
|
|
|
void SMIL::RegionBase::parseParam (const TrieString & name, const TQString & val) {
|
|
|
|
//kdDebug () << "RegionBase::parseParam " << getAttribute ("id") << " " << name << "=" << val << " active:" << active() << endl;
|
|
|
|
//kdDebug () << "RegionBase::parseParam " << getAttribute ("id") << " " << name << "=" << val << " active:" << active() << endl;
|
|
|
|
bool need_tqrepaint = false;
|
|
|
|
bool need_repaint = false;
|
|
|
|
SRect rect = SRect (x, y, w, h);
|
|
|
|
SRect rect = SRect (x, y, w, h);
|
|
|
|
bool dim_changed;
|
|
|
|
bool dim_changed;
|
|
|
|
if (name == "background-color" || name == "backgroundColor") {
|
|
|
|
if (name == "background-color" || name == "backgroundColor") {
|
|
|
@ -1991,10 +1991,10 @@ void SMIL::RegionBase::parseParam (const TrieString & name, const TQString & val
|
|
|
|
background_color = 0xff000000 | TQColor (val).rgb ();
|
|
|
|
background_color = 0xff000000 | TQColor (val).rgb ();
|
|
|
|
if (region_surface || (active () && surface ()))
|
|
|
|
if (region_surface || (active () && surface ()))
|
|
|
|
region_surface->background_color = background_color;
|
|
|
|
region_surface->background_color = background_color;
|
|
|
|
need_tqrepaint = true;
|
|
|
|
need_repaint = true;
|
|
|
|
} else if (name == "z-index") {
|
|
|
|
} else if (name == "z-index") {
|
|
|
|
z_order = val.toInt ();
|
|
|
|
z_order = val.toInt ();
|
|
|
|
need_tqrepaint = true;
|
|
|
|
need_repaint = true;
|
|
|
|
} else if (sizes.setSizeParam (name, val, dim_changed)) {
|
|
|
|
} else if (sizes.setSizeParam (name, val, dim_changed)) {
|
|
|
|
if (active ()) {
|
|
|
|
if (active ()) {
|
|
|
|
if (region_surface) {
|
|
|
|
if (region_surface) {
|
|
|
@ -2009,20 +2009,20 @@ void SMIL::RegionBase::parseParam (const TrieString & name, const TQString & val
|
|
|
|
if (p &&(p->id==SMIL::id_node_region ||p->id==SMIL::id_node_layout))
|
|
|
|
if (p &&(p->id==SMIL::id_node_region ||p->id==SMIL::id_node_layout))
|
|
|
|
convertNode <SMIL::RegionBase> (p)->updateDimensions ();
|
|
|
|
convertNode <SMIL::RegionBase> (p)->updateDimensions ();
|
|
|
|
rect = rect.unite (SRect (x, y, w, h));
|
|
|
|
rect = rect.unite (SRect (x, y, w, h));
|
|
|
|
need_tqrepaint = true;
|
|
|
|
need_repaint = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (name == "showBackground") {
|
|
|
|
} else if (name == "showBackground") {
|
|
|
|
if (val == "whenActive")
|
|
|
|
if (val == "whenActive")
|
|
|
|
show_background = ShowWhenActive;
|
|
|
|
show_background = ShowWhenActive;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
show_background = ShowAlways;
|
|
|
|
show_background = ShowAlways;
|
|
|
|
need_tqrepaint = true;
|
|
|
|
need_repaint = true;
|
|
|
|
} else if (name == "backgroundImage") {
|
|
|
|
} else if (name == "backgroundImage") {
|
|
|
|
background_image = val;
|
|
|
|
background_image = val;
|
|
|
|
Smil * s = SMIL::Smil::findSmilNode (this);
|
|
|
|
Smil * s = SMIL::Smil::findSmilNode (this);
|
|
|
|
if (s) {
|
|
|
|
if (s) {
|
|
|
|
killWGet ();
|
|
|
|
killWGet ();
|
|
|
|
need_tqrepaint = !cached_img.isEmpty ();
|
|
|
|
need_repaint = !cached_img.isEmpty ();
|
|
|
|
Mrl *mrl = s->parentNode () ? s->parentNode ()->mrl () : NULL;
|
|
|
|
Mrl *mrl = s->parentNode () ? s->parentNode ()->mrl () : NULL;
|
|
|
|
TQString url = mrl ? KURL (mrl->absolutePath (), val).url () : val;
|
|
|
|
TQString url = mrl ? KURL (mrl->absolutePath (), val).url () : val;
|
|
|
|
cached_img.setUrl (url);
|
|
|
|
cached_img.setUrl (url);
|
|
|
@ -2030,12 +2030,12 @@ void SMIL::RegionBase::parseParam (const TrieString & name, const TQString & val
|
|
|
|
postpone_lock = document ()->postpone ();
|
|
|
|
postpone_lock = document ()->postpone ();
|
|
|
|
wget (url);
|
|
|
|
wget (url);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
need_tqrepaint = true;
|
|
|
|
need_repaint = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (need_tqrepaint && active () && surface() && region_surface->parentNode ())
|
|
|
|
if (need_repaint && active () && surface() && region_surface->parentNode ())
|
|
|
|
region_surface->parentNode ()->tqrepaint (rect);
|
|
|
|
region_surface->parentNode ()->repaint (rect);
|
|
|
|
Element::parseParam (name, val);
|
|
|
|
Element::parseParam (name, val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2083,7 +2083,7 @@ KDE_NO_EXPORT void SMIL::Region::accept (Visitor * v) {
|
|
|
|
KDE_NO_EXPORT
|
|
|
|
KDE_NO_EXPORT
|
|
|
|
void SMIL::RegPoint::parseParam (const TrieString & p, const TQString & v) {
|
|
|
|
void SMIL::RegPoint::parseParam (const TrieString & p, const TQString & v) {
|
|
|
|
bool b;
|
|
|
|
bool b;
|
|
|
|
sizes.setSizeParam (p, v, b); // TODO: if dynamic, make sure to tqrepaint
|
|
|
|
sizes.setSizeParam (p, v, b); // TODO: if dynamic, make sure to repaint
|
|
|
|
Element::parseParam (p, v);
|
|
|
|
Element::parseParam (p, v);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2570,7 +2570,7 @@ KDE_NO_EXPORT void SMIL::Excl::begin () {
|
|
|
|
for (NodePtr e = firstChild (); e; e = e->nextSibling ())
|
|
|
|
for (NodePtr e = firstChild (); e; e = e->nextSibling ())
|
|
|
|
if (isTimedMrl (e)) {
|
|
|
|
if (isTimedMrl (e)) {
|
|
|
|
SMIL::TimedMrl * tm = static_cast <SMIL::TimedMrl *> (e.ptr ());
|
|
|
|
SMIL::TimedMrl * tm = static_cast <SMIL::TimedMrl *> (e.ptr ());
|
|
|
|
if (tm) { // make aboutToStart connection with TimedMrl tqchildren
|
|
|
|
if (tm) { // make aboutToStart connection with TimedMrl children
|
|
|
|
ConnectionPtr c = tm->connectTo (this, event_to_be_started);
|
|
|
|
ConnectionPtr c = tm->connectTo (this, event_to_be_started);
|
|
|
|
started_event_list.append (new ConnectionStoreItem (c));
|
|
|
|
started_event_list.append (new ConnectionStoreItem (c));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2857,10 +2857,10 @@ void SMIL::MediaType::parseParam (const TrieString ¶, const TQString & val)
|
|
|
|
TimedMrl::parseParam (para, val);
|
|
|
|
TimedMrl::parseParam (para, val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (sub_surface)
|
|
|
|
if (sub_surface)
|
|
|
|
sub_surface->tqrepaint ();
|
|
|
|
sub_surface->repaint ();
|
|
|
|
resetSurface ();
|
|
|
|
resetSurface ();
|
|
|
|
if (surface ())
|
|
|
|
if (surface ())
|
|
|
|
sub_surface->tqrepaint ();
|
|
|
|
sub_surface->repaint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KDE_NO_EXPORT void SMIL::MediaType::boundsUpdate () {
|
|
|
|
KDE_NO_EXPORT void SMIL::MediaType::boundsUpdate () {
|
|
|
@ -2869,7 +2869,7 @@ KDE_NO_EXPORT void SMIL::MediaType::boundsUpdate () {
|
|
|
|
SRect new_bounds = calculateBounds ();
|
|
|
|
SRect new_bounds = calculateBounds ();
|
|
|
|
SRect repaint_rect = sub_surface->bounds.unite (new_bounds);
|
|
|
|
SRect repaint_rect = sub_surface->bounds.unite (new_bounds);
|
|
|
|
sub_surface->bounds = new_bounds;
|
|
|
|
sub_surface->bounds = new_bounds;
|
|
|
|
rb->tqrepaint (repaint_rect);
|
|
|
|
rb->repaint (repaint_rect);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2881,7 +2881,7 @@ KDE_NO_EXPORT void SMIL::MediaType::activate () {
|
|
|
|
setState (state_activated);
|
|
|
|
setState (state_activated);
|
|
|
|
for (NodePtr c = firstChild (); c; c = c->nextSibling ())
|
|
|
|
for (NodePtr c = firstChild (); c; c = c->nextSibling ())
|
|
|
|
if (c != external_tree) {
|
|
|
|
if (c != external_tree) {
|
|
|
|
// activate param/set/animate.. tqchildren
|
|
|
|
// activate param/set/animate.. children
|
|
|
|
c->activate ();
|
|
|
|
c->activate ();
|
|
|
|
break; // childDone will handle next siblings
|
|
|
|
break; // childDone will handle next siblings
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2896,7 +2896,7 @@ KDE_NO_EXPORT void SMIL::MediaType::deactivate () {
|
|
|
|
region_attach = 0L;
|
|
|
|
region_attach = 0L;
|
|
|
|
trans_step = trans_steps = 0;
|
|
|
|
trans_step = trans_steps = 0;
|
|
|
|
if (region_node)
|
|
|
|
if (region_node)
|
|
|
|
convertNode <SMIL::RegionBase> (region_node)->tqrepaint ();
|
|
|
|
convertNode <SMIL::RegionBase> (region_node)->repaint ();
|
|
|
|
if (trans_timer)
|
|
|
|
if (trans_timer)
|
|
|
|
document ()->cancelTimer (trans_timer);
|
|
|
|
document ()->cancelTimer (trans_timer);
|
|
|
|
if (trans_out_timer)
|
|
|
|
if (trans_out_timer)
|
|
|
@ -2918,7 +2918,7 @@ KDE_NO_EXPORT void SMIL::MediaType::begin () {
|
|
|
|
region_mouse_leave = r->connectTo (this, event_outbounds);
|
|
|
|
region_mouse_leave = r->connectTo (this, event_outbounds);
|
|
|
|
region_mouse_click = r->connectTo (this, event_activated);
|
|
|
|
region_mouse_click = r->connectTo (this, event_activated);
|
|
|
|
region_attach = r->connectTo (this, mediatype_attached);
|
|
|
|
region_attach = r->connectTo (this, mediatype_attached);
|
|
|
|
r->tqrepaint ();
|
|
|
|
r->repaint ();
|
|
|
|
tr->clipStart ();
|
|
|
|
tr->clipStart ();
|
|
|
|
Transition * trans = convertNode <Transition> (trans_in);
|
|
|
|
Transition * trans = convertNode <Transition> (trans_in);
|
|
|
|
if (trans && trans->supported ()) {
|
|
|
|
if (trans && trans->supported ()) {
|
|
|
@ -2955,13 +2955,13 @@ KDE_NO_EXPORT void SMIL::MediaType::finish () {
|
|
|
|
ASSERT(!trans_timer);
|
|
|
|
ASSERT(!trans_timer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (region_node)
|
|
|
|
if (region_node)
|
|
|
|
convertNode <SMIL::RegionBase> (region_node)->tqrepaint ();
|
|
|
|
convertNode <SMIL::RegionBase> (region_node)->repaint ();
|
|
|
|
TimedMrl::finish ();
|
|
|
|
TimedMrl::finish ();
|
|
|
|
static_cast <MediaTypeRuntime *> (runtime ())->clipStop ();
|
|
|
|
static_cast <MediaTypeRuntime *> (runtime ())->clipStop ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Re-implement from TimedMrl, because we may have tqchildren like
|
|
|
|
* Re-implement from TimedMrl, because we may have children like
|
|
|
|
* param/set/animatie that should all be activate, but also other smil or imfl
|
|
|
|
* param/set/animatie that should all be activate, but also other smil or imfl
|
|
|
|
* documents, that should only be activated if the runtime has started
|
|
|
|
* documents, that should only be activated if the runtime has started
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -2969,7 +2969,7 @@ KDE_NO_EXPORT void SMIL::MediaType::childDone (NodePtr child) {
|
|
|
|
bool child_doc = child->mrl () && child->mrl ()->opener.ptr () == this;
|
|
|
|
bool child_doc = child->mrl () && child->mrl ()->opener.ptr () == this;
|
|
|
|
if (child_doc) {
|
|
|
|
if (child_doc) {
|
|
|
|
child->deactivate (); // should only if fill not is freeze or hold
|
|
|
|
child->deactivate (); // should only if fill not is freeze or hold
|
|
|
|
} else if (active ()) { // traverse param or area tqchildren
|
|
|
|
} else if (active ()) { // traverse param or area children
|
|
|
|
for (NodePtr c = child->nextSibling(); c; c = c->nextSibling ())
|
|
|
|
for (NodePtr c = child->nextSibling(); c; c = c->nextSibling ())
|
|
|
|
if (!c->mrl () || c->mrl ()->opener.ptr () != this ) {
|
|
|
|
if (!c->mrl () || c->mrl ()->opener.ptr () != this ) {
|
|
|
|
c->activate ();
|
|
|
|
c->activate ();
|
|
|
@ -3086,7 +3086,7 @@ bool SMIL::MediaType::handleEvent (EventPtr event) {
|
|
|
|
else
|
|
|
|
else
|
|
|
|
te->interval = trans_step++ < trans_steps;
|
|
|
|
te->interval = trans_step++ < trans_steps;
|
|
|
|
if (s && s->parentNode())
|
|
|
|
if (s && s->parentNode())
|
|
|
|
s->parentNode()->tqrepaint (s->bounds);
|
|
|
|
s->parentNode()->repaint (s->bounds);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else if (te->timer_info->event_id == trans_out_timer_id) {
|
|
|
|
} else if (te->timer_info->event_id == trans_out_timer_id) {
|
|
|
|
active_trans = trans_out;
|
|
|
|
active_trans = trans_out;
|
|
|
@ -3104,7 +3104,7 @@ bool SMIL::MediaType::handleEvent (EventPtr event) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
trans_out_active = true;
|
|
|
|
trans_out_active = true;
|
|
|
|
if (s)
|
|
|
|
if (s)
|
|
|
|
s->tqrepaint ();
|
|
|
|
s->repaint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3377,7 +3377,7 @@ bool ImageRuntime::parseParam (const TrieString & name, const TQString & val) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* start_timer timer expired, tqrepaint if we have an image
|
|
|
|
* start_timer timer expired, repaint if we have an image
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
KDE_NO_EXPORT void ImageRuntime::started () {
|
|
|
|
KDE_NO_EXPORT void ImageRuntime::started () {
|
|
|
|
if (element && downloading ()) {
|
|
|
|
if (element && downloading ()) {
|
|
|
@ -3432,7 +3432,7 @@ KDE_NO_EXPORT void ImageRuntime::remoteReady (TQByteArray & data) {
|
|
|
|
mt->width = pix->width ();
|
|
|
|
mt->width = pix->width ();
|
|
|
|
mt->height = pix->height ();
|
|
|
|
mt->height = pix->height ();
|
|
|
|
if (mt->surface ())
|
|
|
|
if (mt->surface ())
|
|
|
|
mt->sub_surface->tqrepaint ();
|
|
|
|
mt->sub_surface->repaint ();
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
delete pix;
|
|
|
|
delete pix;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3451,7 +3451,7 @@ KDE_NO_EXPORT void ImageRuntime::movieUpdated (const TQRect &) {
|
|
|
|
cached_img.data->image = new TQImage;
|
|
|
|
cached_img.data->image = new TQImage;
|
|
|
|
*cached_img.data->image = (img_movie->framePixmap ());
|
|
|
|
*cached_img.data->image = (img_movie->framePixmap ());
|
|
|
|
if (mt->surface())
|
|
|
|
if (mt->surface())
|
|
|
|
mt->sub_surface->tqrepaint ();
|
|
|
|
mt->sub_surface->repaint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (timingstate != timings_started && img_movie)
|
|
|
|
if (timingstate != timings_started && img_movie)
|
|
|
|
img_movie->pause ();
|
|
|
|
img_movie->pause ();
|
|
|
@ -3469,7 +3469,7 @@ KDE_NO_EXPORT void ImageRuntime::movieStatus (int s) {
|
|
|
|
KDE_NO_EXPORT void ImageRuntime::movieResize (const TQSize &) {
|
|
|
|
KDE_NO_EXPORT void ImageRuntime::movieResize (const TQSize &) {
|
|
|
|
SMIL::MediaType * mt = convertNode <SMIL::MediaType> (element);
|
|
|
|
SMIL::MediaType * mt = convertNode <SMIL::MediaType> (element);
|
|
|
|
if (mt->surface ())
|
|
|
|
if (mt->surface ())
|
|
|
|
mt->sub_surface->tqrepaint ();
|
|
|
|
mt->sub_surface->repaint ();
|
|
|
|
//kdDebug () << "movieResize" << endl;
|
|
|
|
//kdDebug () << "movieResize" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -3564,12 +3564,12 @@ bool TextRuntime::parseParam (const TrieString & name, const TQString & val) {
|
|
|
|
return MediaTypeRuntime::parseParam (name, val);
|
|
|
|
return MediaTypeRuntime::parseParam (name, val);
|
|
|
|
mt->resetSurface ();
|
|
|
|
mt->resetSurface ();
|
|
|
|
if (mt->surface ())
|
|
|
|
if (mt->surface ())
|
|
|
|
mt->sub_surface->tqrepaint ();
|
|
|
|
mt->sub_surface->repaint ();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* start_timer timer expired, tqrepaint if we have text
|
|
|
|
* start_timer timer expired, repaint if we have text
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
KDE_NO_EXPORT void TextRuntime::started () {
|
|
|
|
KDE_NO_EXPORT void TextRuntime::started () {
|
|
|
|
if (element && downloading ()) {
|
|
|
|
if (element && downloading ()) {
|
|
|
@ -3592,7 +3592,7 @@ KDE_NO_EXPORT void TextRuntime::remoteReady (TQByteArray & data) {
|
|
|
|
ts.setCodec (d->codec);
|
|
|
|
ts.setCodec (d->codec);
|
|
|
|
text = ts.read ();
|
|
|
|
text = ts.read ();
|
|
|
|
if (mt->surface ())
|
|
|
|
if (mt->surface ())
|
|
|
|
mt->sub_surface->tqrepaint ();
|
|
|
|
mt->sub_surface->repaint ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
postpone_lock = 0L;
|
|
|
|
postpone_lock = 0L;
|
|
|
|
if (timingstate == timings_started)
|
|
|
|
if (timingstate == timings_started)
|
|
|
|