diff options
Diffstat (limited to 'src/kmplayer_rp.cpp')
-rw-r--r-- | src/kmplayer_rp.cpp | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/src/kmplayer_rp.cpp b/src/kmplayer_rp.cpp index 36938b5..c8d8f97 100644 --- a/src/kmplayer_rp.cpp +++ b/src/kmplayer_rp.cpp @@ -39,7 +39,7 @@ KDE_NO_CDTOR_EXPORT RP::Imfl::Imfl (NodePtr & d) KDE_NO_CDTOR_EXPORT RP::Imfl::~Imfl () { } -KDE_NO_EXPORT void RP::Imfl::closed () { +TDE_NO_EXPORT void RP::Imfl::closed () { for (NodePtr n = firstChild (); n; n = n->nextSibling ()) if (RP::id_node_head == n->id) { AttributePtr a = convertNode <Element> (n)->attributes ()->first (); @@ -57,7 +57,7 @@ KDE_NO_EXPORT void RP::Imfl::closed () { } } -KDE_NO_EXPORT void RP::Imfl::defer () { +TDE_NO_EXPORT void RP::Imfl::defer () { kdDebug () << "RP::Imfl::defer " << endl; setState (state_deferred); for (Node * n = firstChild ().ptr (); n; n = n->nextSibling ().ptr ()) @@ -65,7 +65,7 @@ KDE_NO_EXPORT void RP::Imfl::defer () { n->activate (); } -KDE_NO_EXPORT void RP::Imfl::activate () { +TDE_NO_EXPORT void RP::Imfl::activate () { kdDebug () << "RP::Imfl::activate " << endl; resolved = true; setState (state_activated); @@ -92,7 +92,7 @@ KDE_NO_EXPORT void RP::Imfl::activate () { finish (); } -KDE_NO_EXPORT void RP::Imfl::finish () { +TDE_NO_EXPORT void RP::Imfl::finish () { kdDebug () << "RP::Imfl::finish " << endl; Mrl::finish (); if (duration_timer) { @@ -104,7 +104,7 @@ KDE_NO_EXPORT void RP::Imfl::finish () { n->finish (); } -KDE_NO_EXPORT void RP::Imfl::childDone (NodePtr) { +TDE_NO_EXPORT void RP::Imfl::childDone (NodePtr) { if (unfinished () && !duration_timer) { for (NodePtr n = firstChild (); n; n = n->nextSibling ()) switch (n->id) { @@ -119,7 +119,7 @@ KDE_NO_EXPORT void RP::Imfl::childDone (NodePtr) { } } -KDE_NO_EXPORT void RP::Imfl::deactivate () { +TDE_NO_EXPORT void RP::Imfl::deactivate () { kdDebug () << "RP::Imfl::deactivate " << endl; if (unfinished ()) finish (); @@ -132,7 +132,7 @@ KDE_NO_EXPORT void RP::Imfl::deactivate () { rp_surface = Mrl::getSurface (0L); } -KDE_NO_EXPORT bool RP::Imfl::handleEvent (EventPtr event) { +TDE_NO_EXPORT bool RP::Imfl::handleEvent (EventPtr event) { if (event->id () == event_timer) { TimerEvent * te = static_cast <TimerEvent *> (event.ptr ()); if (te->timer_info == duration_timer) { @@ -145,11 +145,11 @@ KDE_NO_EXPORT bool RP::Imfl::handleEvent (EventPtr event) { return true; } -KDE_NO_EXPORT void RP::Imfl::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Imfl::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT Surface *RP::Imfl::surface () { +TDE_NO_EXPORT Surface *RP::Imfl::surface () { if (!rp_surface) { rp_surface = Mrl::getSurface (this); if (rp_surface) { @@ -162,7 +162,7 @@ KDE_NO_EXPORT Surface *RP::Imfl::surface () { return rp_surface.ptr (); } -KDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const TQString & tag) { +TDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const TQString & tag) { const char * ctag = tag.latin1 (); if (!strcmp (ctag, "head")) return new DarkNode (m_doc, "head", RP::id_node_head); @@ -183,7 +183,7 @@ KDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const TQString & tag) { return 0L; } -KDE_NO_EXPORT void RP::Imfl::repaint () { +TDE_NO_EXPORT void RP::Imfl::repaint () { if (!active ()) kdWarning () << "Spurious Imfl repaint" << endl; else if (surface () && width > 0 && height > 0) @@ -197,11 +197,11 @@ KDE_NO_CDTOR_EXPORT RP::Image::Image (NodePtr & doc) KDE_NO_CDTOR_EXPORT RP::Image::~Image () { } -KDE_NO_EXPORT void RP::Image::closed () { +TDE_NO_EXPORT void RP::Image::closed () { src = getAttribute (StringPool::attr_name); } -KDE_NO_EXPORT void RP::Image::activate () { +TDE_NO_EXPORT void RP::Image::activate () { kdDebug () << "RP::Image::activate" << endl; setState (state_activated); isPlayable (); // update src attribute @@ -214,11 +214,11 @@ KDE_NO_EXPORT void RP::Image::activate () { } } -KDE_NO_EXPORT void RP::Image::begin () { +TDE_NO_EXPORT void RP::Image::begin () { Node::begin (); } -KDE_NO_EXPORT void RP::Image::deactivate () { +TDE_NO_EXPORT void RP::Image::deactivate () { cached_img.setUrl (TQString ()); if (img_surface) { img_surface->remove (); @@ -229,7 +229,7 @@ KDE_NO_EXPORT void RP::Image::deactivate () { } -KDE_NO_EXPORT void RP::Image::remoteReady (TQByteArray & data) { +TDE_NO_EXPORT void RP::Image::remoteReady (TQByteArray & data) { kdDebug () << "RP::Image::remoteReady" << endl; if (!data.isEmpty () && cached_img.isEmpty ()) { TQImage * img = new TQImage (data); @@ -244,13 +244,13 @@ KDE_NO_EXPORT void RP::Image::remoteReady (TQByteArray & data) { postpone_lock = 0L; } -KDE_NO_EXPORT bool RP::Image::isReady (bool postpone_if_not) { +TDE_NO_EXPORT bool RP::Image::isReady (bool postpone_if_not) { if (downloading () && postpone_if_not) postpone_lock = document ()->postpone (); return !downloading (); } -KDE_NO_EXPORT Surface *RP::Image::surface () { +TDE_NO_EXPORT Surface *RP::Image::surface () { if (!img_surface && !cached_img.isEmpty ()) { Node * p = parentNode ().ptr (); if (p && p->id == RP::id_node_imfl) { @@ -266,7 +266,7 @@ KDE_NO_EXPORT Surface *RP::Image::surface () { KDE_NO_CDTOR_EXPORT RP::TimingsBase::TimingsBase (NodePtr & d, const short i) : Element (d, i), x (0), y (0), w (0), h (0), start (0), duration (0) {} -KDE_NO_EXPORT void RP::TimingsBase::activate () { +TDE_NO_EXPORT void RP::TimingsBase::activate () { setState (state_activated); x = y = w = h = 0; srcx = srcy = srcw = srch = 0; @@ -305,13 +305,13 @@ KDE_NO_EXPORT void RP::TimingsBase::activate () { start_timer = document ()->setTimeout (this, start *100); } -KDE_NO_EXPORT void RP::TimingsBase::deactivate () { +TDE_NO_EXPORT void RP::TimingsBase::deactivate () { if (unfinished ()) finish (); setState (state_deactivated); } -KDE_NO_EXPORT bool RP::TimingsBase::handleEvent (EventPtr event) { +TDE_NO_EXPORT bool RP::TimingsBase::handleEvent (EventPtr event) { if (event->id () == event_timer) { TimerEvent * te = static_cast <TimerEvent *> (event.ptr ()); if (te->timer_info == update_timer && duration > 0) { @@ -337,7 +337,7 @@ KDE_NO_EXPORT bool RP::TimingsBase::handleEvent (EventPtr event) { return false; } -KDE_NO_EXPORT void RP::TimingsBase::begin () { +TDE_NO_EXPORT void RP::TimingsBase::begin () { progress = 0; setState (state_began); if (target) @@ -349,14 +349,14 @@ KDE_NO_EXPORT void RP::TimingsBase::begin () { } } -KDE_NO_EXPORT void RP::TimingsBase::update (int percentage) { +TDE_NO_EXPORT void RP::TimingsBase::update (int percentage) { progress = percentage; Node * p = parentNode ().ptr (); if (p->id == RP::id_node_imfl) static_cast <RP::Imfl *> (p)->repaint (); } -KDE_NO_EXPORT void RP::TimingsBase::finish () { +TDE_NO_EXPORT void RP::TimingsBase::finish () { progress = 100; if (start_timer) { document ()->cancelTimer (start_timer); @@ -373,11 +373,11 @@ KDE_NO_EXPORT void RP::TimingsBase::finish () { Element::finish (); } -KDE_NO_EXPORT void RP::Crossfade::activate () { +TDE_NO_EXPORT void RP::Crossfade::activate () { TimingsBase::activate (); } -KDE_NO_EXPORT void RP::Crossfade::begin () { +TDE_NO_EXPORT void RP::Crossfade::begin () { //kdDebug () << "RP::Crossfade::begin" << endl; TimingsBase::begin (); if (target && target->id == id_node_image) { @@ -389,17 +389,17 @@ KDE_NO_EXPORT void RP::Crossfade::begin () { } } -KDE_NO_EXPORT void RP::Crossfade::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Crossfade::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT void RP::Fadein::activate () { +TDE_NO_EXPORT void RP::Fadein::activate () { // pickup color from Fill that should be declared before this node from_color = 0; TimingsBase::activate (); } -KDE_NO_EXPORT void RP::Fadein::begin () { +TDE_NO_EXPORT void RP::Fadein::begin () { //kdDebug () << "RP::Fadein::begin" << endl; TimingsBase::begin (); if (target && target->id == id_node_image) { @@ -411,39 +411,39 @@ KDE_NO_EXPORT void RP::Fadein::begin () { } } -KDE_NO_EXPORT void RP::Fadein::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Fadein::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT void RP::Fadeout::activate () { +TDE_NO_EXPORT void RP::Fadeout::activate () { to_color = TQColor (getAttribute ("color")).rgb (); TimingsBase::activate (); } -KDE_NO_EXPORT void RP::Fadeout::begin () { +TDE_NO_EXPORT void RP::Fadeout::begin () { //kdDebug () << "RP::Fadeout::begin" << endl; TimingsBase::begin (); } -KDE_NO_EXPORT void RP::Fadeout::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Fadeout::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT void RP::Fill::activate () { +TDE_NO_EXPORT void RP::Fill::activate () { color = TQColor (getAttribute ("color")).rgb (); TimingsBase::activate (); } -KDE_NO_EXPORT void RP::Fill::begin () { +TDE_NO_EXPORT void RP::Fill::begin () { setState (state_began); update (0); } -KDE_NO_EXPORT void RP::Fill::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Fill::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT void RP::Wipe::activate () { +TDE_NO_EXPORT void RP::Wipe::activate () { //TODO implement 'type="push"' TQString dir = getAttribute ("direction").lower (); direction = dir_right; @@ -456,7 +456,7 @@ KDE_NO_EXPORT void RP::Wipe::activate () { TimingsBase::activate (); } -KDE_NO_EXPORT void RP::Wipe::begin () { +TDE_NO_EXPORT void RP::Wipe::begin () { //kdDebug () << "RP::Wipe::begin" << endl; TimingsBase::begin (); if (target && target->id == id_node_image) { @@ -468,15 +468,15 @@ KDE_NO_EXPORT void RP::Wipe::begin () { } } -KDE_NO_EXPORT void RP::Wipe::accept (Visitor * v) { +TDE_NO_EXPORT void RP::Wipe::accept (Visitor * v) { v->visit (this); } -KDE_NO_EXPORT void RP::ViewChange::activate () { +TDE_NO_EXPORT void RP::ViewChange::activate () { TimingsBase::activate (); } -KDE_NO_EXPORT void RP::ViewChange::begin () { +TDE_NO_EXPORT void RP::ViewChange::begin () { kdDebug () << "RP::ViewChange::begin" << endl; setState (state_began); Node * p = parentNode ().ptr (); @@ -485,13 +485,13 @@ KDE_NO_EXPORT void RP::ViewChange::begin () { update (0); } -KDE_NO_EXPORT void RP::ViewChange::finish () { +TDE_NO_EXPORT void RP::ViewChange::finish () { Node * p = parentNode ().ptr (); if (p && p->id == RP::id_node_imfl) static_cast <RP::Imfl *> (p)->needs_scene_img--; TimingsBase::finish (); } -KDE_NO_EXPORT void RP::ViewChange::accept (Visitor * v) { +TDE_NO_EXPORT void RP::ViewChange::accept (Visitor * v) { v->visit (this); } |