Rename old tq methods that no longer need a unique name

pull/1/head
Timothy Pearson 13 years ago
parent ee4b31b7bd
commit 81ad3b51a1

@ -75,7 +75,7 @@ void ATOM::Link::closed () {
else if (a->name () == "rel") else if (a->name () == "rel")
rel = a->value (); rel = a->value ();
} }
if (!href.isEmpty () && rel == TQString::tqfromLatin1 ("enclosure")) if (!href.isEmpty () && rel == TQString::fromLatin1 ("enclosure"))
src = href; src = href;
else if (pretty_name.isEmpty ()) else if (pretty_name.isEmpty ())
pretty_name = href; pretty_name = href;
@ -87,12 +87,12 @@ void ATOM::Content::closed () {
src = a->value (); src = a->value ();
else if (a->name () == StringPool::attr_type) { else if (a->name () == StringPool::attr_type) {
TQString v = a->value ().lower (); TQString v = a->value ().lower ();
if (v == TQString::tqfromLatin1 ("text")) if (v == TQString::fromLatin1 ("text"))
mimetype = TQString::tqfromLatin1 ("text/plain"); mimetype = TQString::fromLatin1 ("text/plain");
else if (v == TQString::tqfromLatin1 ("html")) else if (v == TQString::fromLatin1 ("html"))
mimetype = TQString::tqfromLatin1 ("text/html"); mimetype = TQString::fromLatin1 ("text/html");
else if (v == TQString::tqfromLatin1 ("xhtml")) else if (v == TQString::fromLatin1 ("xhtml"))
mimetype = TQString::tqfromLatin1 ("application/xhtml+xml"); mimetype = TQString::fromLatin1 ("application/xhtml+xml");
else else
mimetype = v; mimetype = v;
} }

@ -81,8 +81,8 @@ struct KMPLAYER_NO_EXPORT GroupPredicate {
!part->master () && !part->url ().isEmpty ()) || !part->master () && !part->url ().isEmpty ()) ||
(m_part->allowRedir (part->m_docbase) && (m_part->allowRedir (part->m_docbase) &&
(part->m_group == m_group || (part->m_group == m_group ||
part->m_group == TQString::tqfromLatin1("_master") || part->m_group == TQString::fromLatin1("_master") ||
m_group == TQString::tqfromLatin1("_master")) && m_group == TQString::fromLatin1("_master")) &&
(part->m_features & KMPlayerPart::Feat_Viewer) != (part->m_features & KMPlayerPart::Feat_Viewer) !=
(m_part->m_features & KMPlayerPart::Feat_Viewer))); (m_part->m_features & KMPlayerPart::Feat_Viewer)));
} }
@ -128,9 +128,9 @@ KDE_NO_EXPORT KParts::Part *KMPlayerFactory::createPartObject
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
static bool getBoolValue (const TQString & value) { static bool getBoolValue (const TQString & value) {
return (value.lower() != TQString::tqfromLatin1("false") && return (value.lower() != TQString::fromLatin1("false") &&
value.lower() != TQString::tqfromLatin1("off") && value.lower() != TQString::fromLatin1("off") &&
value.lower() != TQString::tqfromLatin1("0")); value.lower() != TQString::fromLatin1("0"));
} }
#define SET_FEAT_ON(f) { m_features |= f; turned_off_features &= ~f; } #define SET_FEAT_ON(f) { m_features |= f; turned_off_features &= ~f; }
@ -184,13 +184,13 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
urlsource->setURL (KURL (value)); urlsource->setURL (KURL (value));
urlsource->setIdentified (false); urlsource->setIdentified (false);
m_havehref = true; m_havehref = true;
} else if (name == TQString::tqfromLatin1("width")) { } else if (name == TQString::fromLatin1("width")) {
m_noresize = true; m_noresize = true;
} else if (name == TQString::tqfromLatin1("height")) { } else if (name == TQString::fromLatin1("height")) {
m_noresize = true; m_noresize = true;
} else if (name == TQString::tqfromLatin1("type")) { } else if (name == TQString::fromLatin1("type")) {
urlsource->document ()->mrl ()->mimetype = value; urlsource->document ()->mrl ()->mimetype = value;
} else if (name == TQString::tqfromLatin1("controls")) { } else if (name == TQString::fromLatin1("controls")) {
//http://service.real.com/help/library/guides/production8/realpgd.htm?src=noref,rnhmpg_080301,rnhmtn,nosrc //http://service.real.com/help/library/guides/production8/realpgd.htm?src=noref,rnhmpg_080301,rnhmtn,nosrc
//http://service.real.com/help/library/guides/production8/htmfiles/control.htm //http://service.real.com/help/library/guides/production8/htmfiles/control.htm
TQStringList sl = TQStringList::split (TQChar (','), value); TQStringList sl = TQStringList::split (TQChar (','), value);
@ -198,107 +198,107 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
const TQStringList::const_iterator e = sl.end (); const TQStringList::const_iterator e = sl.end ();
for (TQStringList::const_iterator i = sl.begin (); i != e; ++i) { for (TQStringList::const_iterator i = sl.begin (); i != e; ++i) {
TQString val_lower ((*i).lower ()); TQString val_lower ((*i).lower ());
if (val_lower == TQString::tqfromLatin1("imagewindow")) { if (val_lower == TQString::fromLatin1("imagewindow")) {
SET_FEAT_ON (Feat_ImageWindow | Feat_Viewer) SET_FEAT_ON (Feat_ImageWindow | Feat_Viewer)
} else if (val_lower == TQString::tqfromLatin1("all")) { } else if (val_lower == TQString::fromLatin1("all")) {
m_features = (Feat_Controls | Feat_StatusBar); m_features = (Feat_Controls | Feat_StatusBar);
} else if (val_lower == TQString::tqfromLatin1("tacctrl")) { } else if (val_lower == TQString::fromLatin1("tacctrl")) {
SET_FEAT_ON (Feat_Label) SET_FEAT_ON (Feat_Label)
} else if (val_lower == TQString::tqfromLatin1("controlpanel")) { } else if (val_lower == TQString::fromLatin1("controlpanel")) {
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if (val_lower == TQString::tqfromLatin1("infovolumepanel")){ } else if (val_lower == TQString::fromLatin1("infovolumepanel")){
SET_FEAT_ON (Feat_Controls) // TODO SET_FEAT_ON (Feat_Controls) // TODO
} else if (val_lower == TQString::tqfromLatin1("positionfield") || } else if (val_lower == TQString::fromLatin1("positionfield") ||
val_lower == TQString::tqfromLatin1("positionslider")) { val_lower == TQString::fromLatin1("positionslider")) {
setAutoControls (false); setAutoControls (false);
panel->positionSlider ()->show (); panel->positionSlider ()->show ();
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if ( val_lower == TQString::tqfromLatin1("homectrl")) { } else if ( val_lower == TQString::fromLatin1("homectrl")) {
setAutoControls (false); setAutoControls (false);
panel->button (KMPlayer::ControlPanel::button_config)->show(); panel->button (KMPlayer::ControlPanel::button_config)->show();
} else if (val_lower == TQString::tqfromLatin1("mutectrl") || } else if (val_lower == TQString::fromLatin1("mutectrl") ||
val_lower == TQString::tqfromLatin1("mutevolume")) { val_lower == TQString::fromLatin1("mutevolume")) {
setAutoControls (false); setAutoControls (false);
panel->volumeBar()->setMinimumSize (TQSize (20, panel->volumeBar()->tqminimumSize ().height ())); panel->volumeBar()->setMinimumSize (TQSize (20, panel->volumeBar()->minimumSize ().height ()));
panel->volumeBar()->show (); panel->volumeBar()->show ();
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if (val_lower == TQString::tqfromLatin1("rwctrl")) { } else if (val_lower == TQString::fromLatin1("rwctrl")) {
setAutoControls (false); setAutoControls (false);
panel->button (KMPlayer::ControlPanel::button_back)->show (); // rewind ? panel->button (KMPlayer::ControlPanel::button_back)->show (); // rewind ?
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if ( val_lower == TQString::tqfromLatin1("ffctrl")) { } else if ( val_lower == TQString::fromLatin1("ffctrl")) {
setAutoControls (false); setAutoControls (false);
panel->button(KMPlayer::ControlPanel::button_forward)->show(); panel->button(KMPlayer::ControlPanel::button_forward)->show();
m_features = Feat_Controls; m_features = Feat_Controls;
} else if ( val_lower ==TQString::tqfromLatin1("stopbutton")) { } else if ( val_lower ==TQString::fromLatin1("stopbutton")) {
setAutoControls (false); setAutoControls (false);
panel->button (KMPlayer::ControlPanel::button_stop)->show (); panel->button (KMPlayer::ControlPanel::button_stop)->show ();
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if (val_lower == TQString::tqfromLatin1("playbutton") || } else if (val_lower == TQString::fromLatin1("playbutton") ||
val_lower ==TQString::tqfromLatin1("playonlybutton")) { val_lower ==TQString::fromLatin1("playonlybutton")) {
setAutoControls (false); setAutoControls (false);
panel->button (KMPlayer::ControlPanel::button_play)->show (); panel->button (KMPlayer::ControlPanel::button_play)->show ();
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if (val_lower ==TQString::tqfromLatin1("pausebutton")) { } else if (val_lower ==TQString::fromLatin1("pausebutton")) {
setAutoControls (false); setAutoControls (false);
panel->button (KMPlayer::ControlPanel::button_pause)->show (); panel->button (KMPlayer::ControlPanel::button_pause)->show ();
SET_FEAT_ON (Feat_Controls) SET_FEAT_ON (Feat_Controls)
} else if (val_lower == TQString::tqfromLatin1("statusbar") || } else if (val_lower == TQString::fromLatin1("statusbar") ||
val_lower == TQString::tqfromLatin1("statusfield")) { val_lower == TQString::fromLatin1("statusfield")) {
SET_FEAT_ON (Feat_StatusBar) SET_FEAT_ON (Feat_StatusBar)
} else if (val_lower == TQString::tqfromLatin1("infopanel")) { } else if (val_lower == TQString::fromLatin1("infopanel")) {
SET_FEAT_ON (Feat_InfoPanel) SET_FEAT_ON (Feat_InfoPanel)
} else if (val_lower == TQString::tqfromLatin1("playlist")) { } else if (val_lower == TQString::fromLatin1("playlist")) {
SET_FEAT_ON (Feat_PlayList) SET_FEAT_ON (Feat_PlayList)
} else if (val_lower==TQString::tqfromLatin1("volumeslider")) { } else if (val_lower==TQString::fromLatin1("volumeslider")) {
SET_FEAT_ON (Feat_VolumeSlider) SET_FEAT_ON (Feat_VolumeSlider)
setAutoControls (false); setAutoControls (false);
panel->volumeBar()->show (); panel->volumeBar()->show ();
panel->volumeBar()->setMinimumSize (TQSize (20, panel->volumeBar()->tqminimumSize ().height ())); panel->volumeBar()->setMinimumSize (TQSize (20, panel->volumeBar()->minimumSize ().height ()));
} }
} }
} else if (name == TQString::tqfromLatin1("uimode")) { } else if (name == TQString::fromLatin1("uimode")) {
TQString val_lower (value.lower ()); TQString val_lower (value.lower ());
if (val_lower == TQString::tqfromLatin1("full")) if (val_lower == TQString::fromLatin1("full"))
SET_FEAT_ON (Feat_All & ~(Feat_PlayList | Feat_ImageWindow)) SET_FEAT_ON (Feat_All & ~(Feat_PlayList | Feat_ImageWindow))
// TODO: invisible, none, mini // TODO: invisible, none, mini
} else if (name == TQString::tqfromLatin1("nolabels")) { } else if (name == TQString::fromLatin1("nolabels")) {
SET_FEAT_OFF (Feat_Label) SET_FEAT_OFF (Feat_Label)
} else if (name == TQString::tqfromLatin1("nocontrols")) { } else if (name == TQString::fromLatin1("nocontrols")) {
SET_FEAT_OFF (Feat_Controls | Feat_VolumeSlider) SET_FEAT_OFF (Feat_Controls | Feat_VolumeSlider)
} else if (name == TQString::tqfromLatin1("showdisplay")) { } else if (name == TQString::fromLatin1("showdisplay")) {
// the author name, the clip name, and the copyright information // the author name, the clip name, and the copyright information
if (getBoolValue (value)) if (getBoolValue (value))
SET_FEAT_ON (Feat_InfoPanel) SET_FEAT_ON (Feat_InfoPanel)
else else
SET_FEAT_OFF (Feat_InfoPanel) SET_FEAT_OFF (Feat_InfoPanel)
} else if (name == TQString::tqfromLatin1("showcontrols")) { } else if (name == TQString::fromLatin1("showcontrols")) {
if (getBoolValue (value)) if (getBoolValue (value))
SET_FEAT_ON (Feat_Viewer | Feat_Controls) SET_FEAT_ON (Feat_Viewer | Feat_Controls)
else else
SET_FEAT_OFF (Feat_Controls | Feat_VolumeSlider) SET_FEAT_OFF (Feat_Controls | Feat_VolumeSlider)
} else if (name == TQString::tqfromLatin1("showstatusbar")) { } else if (name == TQString::fromLatin1("showstatusbar")) {
if (getBoolValue (value)) if (getBoolValue (value))
SET_FEAT_ON (Feat_Viewer | Feat_StatusBar) SET_FEAT_ON (Feat_Viewer | Feat_StatusBar)
else else
SET_FEAT_OFF (Feat_StatusBar) SET_FEAT_OFF (Feat_StatusBar)
// else showcaptioning/showgotobar/showpositioncontrols/showtracker // else showcaptioning/showgotobar/showpositioncontrols/showtracker
} else if (name == TQString::tqfromLatin1("console")) { } else if (name == TQString::fromLatin1("console")) {
m_group = value.isEmpty() ? TQString::tqfromLatin1("_anonymous") : value; m_group = value.isEmpty() ? TQString::fromLatin1("_anonymous") : value;
} else if (name == TQString::tqfromLatin1("__khtml__pluginbaseurl")) { } else if (name == TQString::fromLatin1("__khtml__pluginbaseurl")) {
m_docbase = KURL (value); m_docbase = KURL (value);
} else if (name == TQString::tqfromLatin1("src")) { } else if (name == TQString::fromLatin1("src")) {
m_src_url = value; m_src_url = value;
} else if (name == TQString::tqfromLatin1("filename")) { } else if (name == TQString::fromLatin1("filename")) {
m_file_name = value; m_file_name = value;
} else if (name == TQString::tqfromLatin1 ("fullscreenmode")) { } else if (name == TQString::fromLatin1 ("fullscreenmode")) {
show_fullscreen = getBoolValue (value); show_fullscreen = getBoolValue (value);
} else if (name == TQString::tqfromLatin1 ("autostart")) { } else if (name == TQString::fromLatin1 ("autostart")) {
urlsource->setAutoPlay (getBoolValue (value)); urlsource->setAutoPlay (getBoolValue (value));
} }
// volume/clicktoplay/transparentatstart/animationatstart // volume/clicktoplay/transparentatstart/animationatstart
// autorewind/displaysize/border // autorewind/displaysize/border
if (name.startsWith (TQString::tqfromLatin1 ("__khtml__"))) if (name.startsWith (TQString::fromLatin1 ("__khtml__")))
name = name.mid (9); name = name.mid (9);
convertNode <KMPlayer::Element> (urlsource->document ())->setAttribute (name, value); convertNode <KMPlayer::Element> (urlsource->document ())->setAttribute (name, value);
} }
@ -332,7 +332,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
else else
m_view->setControlPanelMode (KMPlayer::View::CP_AutoHide); m_view->setControlPanelMode (KMPlayer::View::CP_AutoHide);
} }
bool group_member = !m_group.isEmpty () && m_group != TQString::tqfromLatin1("_unique") && m_features != Feat_Unknown; bool group_member = !m_group.isEmpty () && m_group != TQString::fromLatin1("_unique") && m_features != Feat_Unknown;
if (!group_member || m_features & Feat_Viewer) { if (!group_member || m_features & Feat_Viewer) {
// not part of a group or we're the viewer // not part of a group or we're the viewer
setProcess ("mplayer"); setProcess ("mplayer");
@ -1017,8 +1017,8 @@ KDE_NO_EXPORT bool KMPlayerLiveConnectExtension::call
break; break;
case showcontrolpanel: case showcontrolpanel:
if (args.size () && if (args.size () &&
(args.first () == TQString::tqfromLatin1 ("0") || (args.first () == TQString::fromLatin1 ("0") ||
args.first () == TQString::tqfromLatin1 ("false"))) args.first () == TQString::fromLatin1 ("false")))
static_cast <KMPlayer::View*> (player->view ())->setControlPanelMode (KMPlayer::View::CP_Hide); static_cast <KMPlayer::View*> (player->view ())->setControlPanelMode (KMPlayer::View::CP_Hide);
else else
static_cast <KMPlayer::View*> (player->view ())->setControlPanelMode (KMPlayer::View::CP_Show); static_cast <KMPlayer::View*> (player->view ())->setControlPanelMode (KMPlayer::View::CP_Show);

@ -447,11 +447,11 @@ KDE_NO_EXPORT void RP::Wipe::activate () {
//TODO implement 'type="push"' //TODO implement 'type="push"'
TQString dir = getAttribute ("direction").lower (); TQString dir = getAttribute ("direction").lower ();
direction = dir_right; direction = dir_right;
if (dir == TQString::tqfromLatin1 ("left")) if (dir == TQString::fromLatin1 ("left"))
direction = dir_left; direction = dir_left;
else if (dir == TQString::tqfromLatin1 ("up")) else if (dir == TQString::fromLatin1 ("up"))
direction = dir_up; direction = dir_up;
else if (dir == TQString::tqfromLatin1 ("down")) else if (dir == TQString::fromLatin1 ("down"))
direction = dir_down; direction = dir_down;
TimingsBase::activate (); TimingsBase::activate ();
} }

@ -635,7 +635,7 @@ KDE_NO_EXPORT void CalculatedSizer::resetSizes () {
right.reset (); right.reset ();
bottom.reset (); bottom.reset ();
reg_point.truncate (0); reg_point.truncate (0);
reg_align = TQString::tqfromLatin1 ("topLeft"); reg_align = TQString::fromLatin1 ("topLeft");
} }
static bool regPoints (const TQString & str, Single & x, Single & y) { static bool regPoints (const TQString & str, Single & x, Single & y) {
@ -939,11 +939,11 @@ bool AnimateData::parseParam (const TrieString & name, const TQString & val) {
} else if (name == "values") { } else if (name == "values") {
change_values = TQStringList::split (TQString (";"), val); change_values = TQStringList::split (TQString (";"), val);
} else if (name == "calcMode") { } else if (name == "calcMode") {
if (val == TQString::tqfromLatin1 ("discrete")) if (val == TQString::fromLatin1 ("discrete"))
calcMode = calc_discrete; calcMode = calc_discrete;
else if (val == TQString::tqfromLatin1 ("linear")) else if (val == TQString::fromLatin1 ("linear"))
calcMode = calc_linear; calcMode = calc_linear;
else if (val == TQString::tqfromLatin1 ("paced")) else if (val == TQString::fromLatin1 ("paced"))
calcMode = calc_paced; calcMode = calc_paced;
} else } else
return AnimateGroupData::parseParam (name, val); return AnimateGroupData::parseParam (name, val);
@ -1156,13 +1156,13 @@ bool AnimateMotionData::parseParam (const TrieString & name, const TQString & va
} else if (name == "keySplines") { } else if (name == "keySplines") {
splines = TQStringList::split (TQString (";"), val); splines = TQStringList::split (TQString (";"), val);
} else if (name == "calcMode") { } else if (name == "calcMode") {
if (val == TQString::tqfromLatin1 ("discrete")) if (val == TQString::fromLatin1 ("discrete"))
calcMode = calc_discrete; calcMode = calc_discrete;
else if (val == TQString::tqfromLatin1 ("linear")) else if (val == TQString::fromLatin1 ("linear"))
calcMode = calc_linear; calcMode = calc_linear;
else if (val == TQString::tqfromLatin1 ("paced")) else if (val == TQString::fromLatin1 ("paced"))
calcMode = calc_paced; calcMode = calc_paced;
else if (val == TQString::tqfromLatin1 ("spline")) else if (val == TQString::fromLatin1 ("spline"))
calcMode = calc_spline; calcMode = calc_spline;
} else } else
return AnimateGroupData::parseParam (name, val); return AnimateGroupData::parseParam (name, val);
@ -1657,9 +1657,9 @@ KDE_NO_EXPORT void SMIL::Smil::closed () {
} else if (e->id == id_node_meta) { } else if (e->id == id_node_meta) {
Element * elm = convertNode <Element> (e); Element * elm = convertNode <Element> (e);
const TQString name = elm->getAttribute (StringPool::attr_name); const TQString name = elm->getAttribute (StringPool::attr_name);
if (name == TQString::tqfromLatin1 ("title")) if (name == TQString::fromLatin1 ("title"))
pretty_name = elm->getAttribute ("content"); pretty_name = elm->getAttribute ("content");
else if (name == TQString::tqfromLatin1 ("base")) else if (name == TQString::fromLatin1 ("base"))
src = elm->getAttribute ("content"); src = elm->getAttribute ("content");
} }
} }
@ -3409,7 +3409,7 @@ KDE_NO_EXPORT void ImageRuntime::remoteReady (TQByteArray & data) {
mt->resetSurface (); mt->resetSurface ();
TQString mime = mimetype (); TQString mime = mimetype ();
kdDebug () << "ImageRuntime::remoteReady " << mime << " empty:" << cached_img.isEmpty () << " " << mt->src << endl; kdDebug () << "ImageRuntime::remoteReady " << mime << " empty:" << cached_img.isEmpty () << " " << mt->src << endl;
if (mime.startsWith (TQString::tqfromLatin1 ("text/"))) { if (mime.startsWith (TQString::fromLatin1 ("text/"))) {
TQTextStream ts (data, IO_ReadOnly); TQTextStream ts (data, IO_ReadOnly);
readXML (element, ts, TQString ()); readXML (element, ts, TQString ());
Mrl *mrl = mt->external_tree ? mt->external_tree->mrl () : NULL; Mrl *mrl = mt->external_tree ? mt->external_tree->mrl () : NULL;
@ -3426,7 +3426,7 @@ KDE_NO_EXPORT void ImageRuntime::remoteReady (TQByteArray & data) {
cached_img.data->image = pix; cached_img.data->image = pix;
img_movie = new TQMovie (data, data.size ()); img_movie = new TQMovie (data, data.size ());
img_movie->connectUpdate(this,TQT_SLOT(movieUpdated(const TQRect&))); img_movie->connectUpdate(this,TQT_SLOT(movieUpdated(const TQRect&)));
img_movie->connectStatus (this, TQT_SLOT (movietqStatus (int))); img_movie->connectStatus (this, TQT_SLOT (movieStatus (int)));
img_movie->connectResize(this,TQT_SLOT (movieResize(const TQSize&))); img_movie->connectResize(this,TQT_SLOT (movieResize(const TQSize&)));
frame_nr = 0; frame_nr = 0;
mt->width = pix->width (); mt->width = pix->width ();
@ -3457,7 +3457,7 @@ KDE_NO_EXPORT void ImageRuntime::movieUpdated (const TQRect &) {
img_movie->pause (); img_movie->pause ();
} }
KDE_NO_EXPORT void ImageRuntime::movietqStatus (int s) { KDE_NO_EXPORT void ImageRuntime::movieStatus (int s) {
if (element && element->state >= Node::state_began && if (element && element->state >= Node::state_began &&
SMIL::TimedMrl::keepContent (element)) { SMIL::TimedMrl::keepContent (element)) {
if (s == TQMovie::EndOfMovie) { if (s == TQMovie::EndOfMovie) {

@ -215,7 +215,7 @@ protected:
virtual void remoteReady (TQByteArray &); virtual void remoteReady (TQByteArray &);
private slots: private slots:
void movieUpdated (const TQRect &); void movieUpdated (const TQRect &);
void movietqStatus (int); void movieStatus (int);
void movieResize (const TQSize &); void movieResize (const TQSize &);
}; };

@ -202,7 +202,7 @@ KDE_NO_CDTOR_EXPORT FileDocument::FileDocument (short i, const TQString &s, KMPl
} }
KDE_NO_EXPORT KMPlayer::NodePtr FileDocument::childFromTag(const TQString &tag) { KDE_NO_EXPORT KMPlayer::NodePtr FileDocument::childFromTag(const TQString &tag) {
if (tag == TQString::tqfromLatin1 (nodeName ())) if (tag == TQString::fromLatin1 (nodeName ()))
return this; return this;
return 0L; return 0L;
} }
@ -246,9 +246,9 @@ KDE_NO_EXPORT void Recents::defer () {
KDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) { KDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl; // kdDebug () << nodeName () << " childFromTag " << tag << endl;
if (tag == TQString::tqfromLatin1 ("item")) if (tag == TQString::fromLatin1 ("item"))
return new Recent (m_doc, app); return new Recent (m_doc, app);
else if (tag == TQString::tqfromLatin1 ("group")) else if (tag == TQString::fromLatin1 ("group"))
return new Group (m_doc, app); return new Group (m_doc, app);
return FileDocument::childFromTag (tag); return FileDocument::childFromTag (tag);
} }
@ -282,9 +282,9 @@ Group::Group (KMPlayer::NodePtr & doc, KMPlayerApp * a, const TQString & pn)
} }
KDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) { KDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) {
if (tag == TQString::tqfromLatin1 ("item")) if (tag == TQString::fromLatin1 ("item"))
return new Recent (m_doc, app); return new Recent (m_doc, app);
else if (tag == TQString::tqfromLatin1 ("group")) else if (tag == TQString::fromLatin1 ("group"))
return new Group (m_doc, app); return new Group (m_doc, app);
return 0L; return 0L;
} }
@ -862,7 +862,7 @@ KDE_NO_EXPORT void IntroSource::activate () {
TQTextStream ts (&file); TQTextStream ts (&file);
KMPlayer::readXML (m_document, ts, TQString (), false); KMPlayer::readXML (m_document, ts, TQString (), false);
} else { } else {
TQString smil = TQString::tqfromLatin1 ( TQString smil = TQString::fromLatin1 (
"<smil><head><tqlayout>" "<smil><head><tqlayout>"
"<root-tqlayout width='320' height='240' background-color='black'/>" "<root-tqlayout width='320' height='240' background-color='black'/>"
"<region id='image1' left='31.25%' top='25%' width='37.5%' height='50%' z-order='1'/>" "<region id='image1' left='31.25%' top='25%' width='37.5%' height='50%' z-order='1'/>"
@ -882,7 +882,7 @@ KDE_NO_EXPORT void IntroSource::activate () {
"<seq begin='reg1.activateEvent'/>" "<seq begin='reg1.activateEvent'/>"
"</excl>" "</excl>"
"</body></smil>" "</body></smil>"
).arg (locate ("data", "kmplayer/noise.gif")).arg (KGlobal::iconLoader()->iconPath (TQString::tqfromLatin1 ("kmplayer"), -64)); ).arg (locate ("data", "kmplayer/noise.gif")).arg (KGlobal::iconLoader()->iconPath (TQString::fromLatin1 ("kmplayer"), -64));
TQTextStream ts (smil.utf8 (), IO_ReadOnly); TQTextStream ts (smil.utf8 (), IO_ReadOnly);
KMPlayer::readXML (m_document, ts, TQString (), false); KMPlayer::readXML (m_document, ts, TQString (), false);
} }
@ -1165,7 +1165,7 @@ KDE_NO_EXPORT void KMPlayerApp::readOptions() {
#include <netwm.h> #include <netwm.h>
#undef Always #undef Always
#undef Never #undef Never
#undef tqStatus #undef Status
#undef Unsorted #undef Unsorted
#undef Bool #undef Bool
@ -1227,7 +1227,7 @@ KDE_NO_EXPORT void ExitSource::activate () {
TQTextStream ts (&file); TQTextStream ts (&file);
KMPlayer::readXML (m_document, ts, TQString (), false); KMPlayer::readXML (m_document, ts, TQString (), false);
} else { } else {
TQString smil = TQString::tqfromLatin1 ("<smil><head><tqlayout>" TQString smil = TQString::fromLatin1 ("<smil><head><tqlayout>"
"<root-tqlayout width='320' height='240' background-color='black'/>" "<root-tqlayout width='320' height='240' background-color='black'/>"
"<region id='reg1' top='10%' height='80%' z-order='2'>" "<region id='reg1' top='10%' height='80%' z-order='2'>"
"<region id='image' left='128' top='72' width='64' bottom='56'/>" "<region id='image' left='128' top='72' width='64' bottom='56'/>"
@ -1238,7 +1238,7 @@ KDE_NO_EXPORT void ExitSource::activate () {
//"<animate target='reg1' attribute='background-color' calcMode='discrete' values='#FFFFFF;#E4E4E4;#CCCCCC;#B4B4B4;#9E9E9E;#8A8A8A;#777777;#656565;#555555;#464646;#393939;#2D2D2D;#222222;#191919;#111111;#0B0B0B;#060606;#020202;#000000;#000000' dur='0.6'/>" //"<animate target='reg1' attribute='background-color' calcMode='discrete' values='#FFFFFF;#E4E4E4;#CCCCCC;#B4B4B4;#9E9E9E;#8A8A8A;#777777;#656565;#555555;#464646;#393939;#2D2D2D;#222222;#191919;#111111;#0B0B0B;#060606;#020202;#000000;#000000' dur='0.6'/>"
"<img src='%2' id='img1' region='image' dur='0.4' fit='hidden' transOut='pw'/>" "<img src='%2' id='img1' region='image' dur='0.4' fit='hidden' transOut='pw'/>"
"</par>" "</par>"
"</body></smil>").arg (KGlobal::iconLoader()->iconPath (TQString::tqfromLatin1 ("kmplayer"), -64)); "</body></smil>").arg (KGlobal::iconLoader()->iconPath (TQString::fromLatin1 ("kmplayer"), -64));
TQTextStream ts (smil.utf8 (), IO_ReadOnly); TQTextStream ts (smil.utf8 (), IO_ReadOnly);
KMPlayer::readXML (m_document, ts, TQString (), false); KMPlayer::readXML (m_document, ts, TQString (), false);
} }
@ -1261,7 +1261,7 @@ KDE_NO_EXPORT void ExitSource::stateElementChanged (KMPlayer::Node * node, KMPla
if (new_state == KMPlayer::Node::state_deactivated && if (new_state == KMPlayer::Node::state_deactivated &&
m_document == node && m_document == node &&
m_player->view ()) m_player->view ())
m_player->view ()->tqtopLevelWidget ()->close (); m_player->view ()->topLevelWidget ()->close ();
} }
#endif #endif
@ -1452,7 +1452,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
} }
KDE_NO_EXPORT void KMPlayerApp::fullScreen () { KDE_NO_EXPORT void KMPlayerApp::fullScreen () {
// if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->tqmetaObject ()->inherits ("KAction")) // if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits ("KAction"))
if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->inherits ("KAction")) if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->inherits ("KAction"))
m_view->fullScreen(); m_view->fullScreen();
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)

@ -197,7 +197,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerPrefBroadcastFormatPage::KMPlayerPrefBroadcastFormat
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout (this, 5); TQHBoxLayout *tqlayout = new TQHBoxLayout (this, 5);
TQGridLayout *formattqlayout = new TQGridLayout (11, 2, 2); TQGridLayout *formattqlayout = new TQGridLayout (11, 2, 2);
formattqlayout->tqsetAlignment (TQt::AlignTop); formattqlayout->setAlignment (TQt::AlignTop);
TQVBoxLayout *lefttqlayout = new TQVBoxLayout (15); TQVBoxLayout *lefttqlayout = new TQVBoxLayout (15);
TQHBoxLayout *ledtqlayout = new TQHBoxLayout (5); TQHBoxLayout *ledtqlayout = new TQHBoxLayout (5);
format = new TQComboBox (this); format = new TQComboBox (this);

@ -497,7 +497,7 @@ void Settings::show (const char * pagename) {
if (pagename) if (pagename)
configDialog ()->setPage (pagename); configDialog ()->setPage (pagename);
if (created) if (created)
configdialog->resize (configdialog->tqminimumSize ()); configdialog->resize (configdialog->minimumSize ());
configdialog->show (); configdialog->show ();
} }

@ -292,7 +292,7 @@ KDE_NO_EXPORT void KMPlayerPopupMenu::leaveEvent (TQEvent *) {
KDE_NO_CDTOR_EXPORT VolumeBar::VolumeBar (TQWidget * parent, View * view) KDE_NO_CDTOR_EXPORT VolumeBar::VolumeBar (TQWidget * parent, View * view)
: TQWidget (parent), m_view (view), m_value (100) { : TQWidget (parent), m_view (view), m_value (100) {
tqsetSizePolicy( TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed)); setSizePolicy( TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
setMinimumSize (TQSize (51, button_height_only_buttons + 2)); setMinimumSize (TQSize (51, button_height_only_buttons + 2));
TQToolTip::add (this, i18n ("Volume is %1").arg (m_value)); TQToolTip::add (this, i18n ("Volume is %1").arg (m_value));
} }
@ -517,11 +517,11 @@ void ControlPanel::setAutoControls (bool b) {
KDE_NO_EXPORT void ControlPanel::showPopupMenu () { KDE_NO_EXPORT void ControlPanel::showPopupMenu () {
m_view->updateVolume (); m_view->updateVolume ();
m_popupMenu->exec (m_buttons [button_config]->mapToGlobal (TQPoint (0, tqmaximumSize ().height ()))); m_popupMenu->exec (m_buttons [button_config]->mapToGlobal (TQPoint (0, maximumSize ().height ())));
} }
KDE_NO_EXPORT void ControlPanel::showLanguageMenu () { KDE_NO_EXPORT void ControlPanel::showLanguageMenu () {
m_languageMenu->exec (m_buttons [button_language]->mapToGlobal (TQPoint (0, tqmaximumSize ().height ()))); m_languageMenu->exec (m_buttons [button_language]->mapToGlobal (TQPoint (0, maximumSize ().height ())));
} }
void ControlPanel::showPositionSlider (bool show) { void ControlPanel::showPositionSlider (bool show) {
@ -540,7 +540,7 @@ KDE_NO_EXPORT void ControlPanel::setupPositionSlider (bool show) {
m_posSlider->show (); m_posSlider->show ();
m_buttonbox->setMargin (4); m_buttonbox->setMargin (4);
m_buttonbox->setSpacing (4); m_buttonbox->setSpacing (4);
setEraseColor (m_view->tqtopLevelWidget ()->paletteBackgroundColor ()); setEraseColor (m_view->topLevelWidget ()->paletteBackgroundColor ());
} else { } else {
m_posSlider->hide (); m_posSlider->hide ();
m_buttonbox->setMargin (1); m_buttonbox->setMargin (1);

@ -702,7 +702,7 @@ void PartBase::updateInfo (const TQString & msg) {
emit infoUpdated (msg); emit infoUpdated (msg);
} }
void PartBase::updatetqStatus (const TQString & msg) { void PartBase::updateStatus (const TQString & msg) {
emit statusUpdated (msg); emit statusUpdated (msg);
} }
@ -1376,7 +1376,7 @@ void Source::stateChange(Process *p, Process::State olds, Process::State news) {
Recorder *rec = dynamic_cast <Recorder *> (p); Recorder *rec = dynamic_cast <Recorder *> (p);
if (rec && !rec->recordURL ().isEmpty ()) { if (rec && !rec->recordURL ().isEmpty ()) {
kdDebug () << "recordState " << statemap[olds] << " -> " << statemap[news] << endl; kdDebug () << "recordState " << statemap[olds] << " -> " << statemap[news] << endl;
m_player->updatetqStatus (i18n ("Recorder %1 %2").arg (p->name ()).arg (statemap[news])); m_player->updateStatus (i18n ("Recorder %1 %2").arg (p->name ()).arg (statemap[news]));
p->viewer ()->view ()->controlPanel ()->setRecording (news > Process::Ready); p->viewer ()->view ()->controlPanel ()->setRecording (news > Process::Ready);
if (news == Process::Ready) { if (news == Process::Ready) {
if (olds > Process::Ready) { if (olds > Process::Ready) {
@ -1394,7 +1394,7 @@ void Source::stateChange(Process *p, Process::State olds, Process::State news) {
} else { } else {
p->viewer()->view()->controlPanel()->setPlaying(news > Process::Ready); p->viewer()->view()->controlPanel()->setPlaying(news > Process::Ready);
kdDebug () << "processState " << statemap[olds] << " -> " << statemap[news] << endl; kdDebug () << "processState " << statemap[olds] << " -> " << statemap[news] << endl;
m_player->updatetqStatus (i18n ("Player %1 %2").arg (p->name ()).arg (statemap[news])); m_player->updateStatus (i18n ("Player %1 %2").arg (p->name ()).arg (statemap[news]));
if (!p->mrl () && news > Process::Ready) { if (!p->mrl () && news > Process::Ready) {
p->stop (); // reschedule for Ready state p->stop (); // reschedule for Ready state
} else if (news == Process::Playing) { } else if (news == Process::Playing) {
@ -1502,7 +1502,7 @@ KDE_NO_EXPORT void URLSource::stopResolving () {
for (SharedPtr <ResolveInfo> ri = m_resolve_info; ri; ri = ri->next) for (SharedPtr <ResolveInfo> ri = m_resolve_info; ri; ri = ri->next)
ri->job->kill (); ri->job->kill ();
m_resolve_info = 0L; m_resolve_info = 0L;
m_player->updatetqStatus (i18n ("Disconnected")); m_player->updateStatus (i18n ("Disconnected"));
m_player->setLoaded (100); m_player->setLoaded (100);
} }
} }
@ -1724,7 +1724,7 @@ KDE_NO_EXPORT void URLSource::kioResult (KIO::Job * job) {
kdWarning () << "Spurious kioData" << endl; kdWarning () << "Spurious kioData" << endl;
return; return;
} }
m_player->updatetqStatus (""); m_player->updateStatus ("");
m_player->setLoaded (100); m_player->setLoaded (100);
if (previnfo) if (previnfo)
previnfo->next = rinfo->next; previnfo->next = rinfo->next;
@ -1836,8 +1836,8 @@ bool URLSource::resolveURL (NodePtr m) {
url.protocol ().compare (TQString ("rtp"))) || url.protocol ().compare (TQString ("rtp"))) ||
(mimestr.isEmpty () && (mimestr.isEmpty () &&
(url.protocol ().startsWith (TQString ("http")) || (url.protocol ().startsWith (TQString ("http")) ||
url.protocol () == TQString::tqfromLatin1 ("media") || url.protocol () == TQString::fromLatin1 ("media") ||
url.protocol () == TQString::tqfromLatin1 ("remote")))) { url.protocol () == TQString::fromLatin1 ("remote")))) {
KIO::Job * job = KIO::get (url, false, false); KIO::Job * job = KIO::get (url, false, false);
job->addMetaData ("PropagateHttpHeader", "true"); job->addMetaData ("PropagateHttpHeader", "true");
job->addMetaData ("errorPage", "false"); job->addMetaData ("errorPage", "false");
@ -1851,7 +1851,7 @@ bool URLSource::resolveURL (NodePtr m) {
connect (m_resolve_info->job, TQT_SIGNAL (result (KIO::Job *)), connect (m_resolve_info->job, TQT_SIGNAL (result (KIO::Job *)),
this, TQT_SLOT (kioResult (KIO::Job *))); this, TQT_SLOT (kioResult (KIO::Job *)));
static_cast <View *> (m_player->view ())->controlPanel ()->setPlaying (true); static_cast <View *> (m_player->view ())->controlPanel ()->setPlaying (true);
m_player->updatetqStatus (i18n ("Connecting")); m_player->updateStatus (i18n ("Connecting"));
m_player->setLoaded (0); m_player->setLoaded (0);
return false; // wait for result .. return false; // wait for result ..
} }

@ -152,7 +152,7 @@ public:
bool mayResize () const { return !m_noresize; } bool mayResize () const { return !m_noresize; }
void updatePlayerMenu (ControlPanel *); void updatePlayerMenu (ControlPanel *);
void updateInfo (const TQString & msg); void updateInfo (const TQString & msg);
void updatetqStatus (const TQString & msg); void updateStatus (const TQString & msg);
#ifdef HAVE_DBUS #ifdef HAVE_DBUS
void setServiceName (const TQString & srv) { m_service = srv; } void setServiceName (const TQString & srv) { m_service = srv; }
TQString serviceName () const { return m_service; } TQString serviceName () const { return m_service; }

@ -101,7 +101,7 @@ void Process::initProcess (Viewer * viewer) {
delete m_process; delete m_process;
m_process = new KProcess; m_process = new KProcess;
m_process->setUseShell (true); m_process->setUseShell (true);
m_process->setEnvironment (TQString::tqfromLatin1 ("SESSION_MANAGER"), TQString::tqfromLatin1 ("")); m_process->setEnvironment (TQString::fromLatin1 ("SESSION_MANAGER"), TQString::fromLatin1 (""));
if (m_source) m_source->setPosition (0); if (m_source) m_source->setPosition (0);
} }
@ -548,7 +548,7 @@ bool MPlayer::run (const char * args, const char * pipe) {
fprintf (stderr, " -vo %s", strVideoDriver.lower().ascii()); fprintf (stderr, " -vo %s", strVideoDriver.lower().ascii());
*m_process << " -vo " << strVideoDriver.lower(); *m_process << " -vo " << strVideoDriver.lower();
if (viewer ()->view ()->keepSizeRatio () && if (viewer ()->view ()->keepSizeRatio () &&
strVideoDriver.lower() == TQString::tqfromLatin1 ("x11")) { strVideoDriver.lower() == TQString::fromLatin1 ("x11")) {
fprintf (stderr, " -zoom"); fprintf (stderr, " -zoom");
*m_process << " -zoom"; *m_process << " -zoom";
} }

@ -213,7 +213,7 @@ KDE_NO_CDTOR_EXPORT TVInput::TVInput (KMPlayer::NodePtr & d) : TVNode (d, TQStri
KDE_NO_EXPORT KMPlayer::NodePtr TVInput::childFromTag (const TQString & tag) { KDE_NO_EXPORT KMPlayer::NodePtr TVInput::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl; // kdDebug () << nodeName () << " childFromTag " << tag << endl;
if (tag == TQString::tqfromLatin1 ("channel")) { if (tag == TQString::fromLatin1 ("channel")) {
return new TVChannel (m_doc); return new TVChannel (m_doc);
} else } else
return 0L; return 0L;
@ -252,7 +252,7 @@ KDE_NO_CDTOR_EXPORT TVDevice::~TVDevice () {
KDE_NO_EXPORT KMPlayer::NodePtr TVDevice::childFromTag (const TQString & tag) { KDE_NO_EXPORT KMPlayer::NodePtr TVDevice::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl; // kdDebug () << nodeName () << " childFromTag " << tag << endl;
if (tag == TQString::tqfromLatin1 ("input")) if (tag == TQString::fromLatin1 ("input"))
return new TVInput (m_doc); return new TVInput (m_doc);
return 0L; return 0L;
} }
@ -323,7 +323,7 @@ TVDocument::TVDocument (KMPlayerTVSource * source)
KDE_NO_EXPORT KMPlayer::NodePtr TVDocument::childFromTag (const TQString & tag) { KDE_NO_EXPORT KMPlayer::NodePtr TVDocument::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl; // kdDebug () << nodeName () << " childFromTag " << tag << endl;
if (tag == TQString::tqfromLatin1 ("device")) if (tag == TQString::fromLatin1 ("device"))
return new TVDevice (m_doc); return new TVDevice (m_doc);
return FileDocument::childFromTag (tag); return FileDocument::childFromTag (tag);
} }
@ -377,7 +377,7 @@ KDE_NO_EXPORT void KMPlayerTVSource::activate () {
KMPlayer::Source::reset (); KMPlayer::Source::reset ();
buildArguments (); buildArguments ();
if (m_cur_tvdevice) { if (m_cur_tvdevice) {
TQString playback = static_cast <KMPlayer::Element *> (m_cur_tvdevice.ptr ())->getAttribute (TQString::tqfromLatin1 ("playback")); TQString playback = static_cast <KMPlayer::Element *> (m_cur_tvdevice.ptr ())->getAttribute (TQString::fromLatin1 ("playback"));
if (playback.isEmpty () || playback.toInt ()) if (playback.isEmpty () || playback.toInt ())
TQTimer::singleShot (0, m_player, TQT_SLOT (play ())); TQTimer::singleShot (0, m_player, TQT_SLOT (play ()));
} }

@ -68,7 +68,7 @@ static const int XKeyPress = KeyPress;
#undef KeyPress #undef KeyPress
#undef Always #undef Always
#undef Never #undef Never
#undef tqStatus #undef Status
#undef Unsorted #undef Unsorted
#undef Bool #undef Bool
@ -190,10 +190,10 @@ KDE_NO_EXPORT void View::init (KActionCollection * action_collection) {
viewbox->addWidget (m_dockarea); viewbox->addWidget (m_dockarea);
m_widgetstack = new TQWidgetStack (m_view_area); m_widgetstack = new TQWidgetStack (m_view_area);
m_control_panel = new ControlPanel (m_view_area, this); m_control_panel = new ControlPanel (m_view_area, this);
m_control_panel->setMaximumSize (2500, controlPanel ()->tqmaximumSize ().height ()); m_control_panel->setMaximumSize (2500, controlPanel ()->maximumSize ().height ());
m_status_bar = new StatusBar (m_view_area); m_status_bar = new StatusBar (m_view_area);
m_status_bar->insertItem (TQString (""), 0); m_status_bar->insertItem (TQString (""), 0);
TQSize sbsize = m_status_bar->tqsizeHint (); TQSize sbsize = m_status_bar->sizeHint ();
m_status_bar->hide (); m_status_bar->hide ();
m_status_bar->setMaximumSize (2500, sbsize.height ()); m_status_bar->setMaximumSize (2500, sbsize.height ());
m_viewer = new Viewer (m_widgetstack, this); m_viewer = new Viewer (m_widgetstack, this);
@ -267,9 +267,9 @@ void View::toggleShowPlaylist () {
else { else {
bool horz = true; bool horz = true;
TQStyle & style = m_playlist->tqstyle (); TQStyle & style = m_playlist->tqstyle ();
int h = style.tqpixelMetric (TQStyle::PM_ScrollBarExtent, m_playlist); int h = style.pixelMetric (TQStyle::PM_ScrollBarExtent, m_playlist);
h += style.tqpixelMetric(TQStyle::PM_DockWindowFrameWidth, m_playlist); h += style.pixelMetric(TQStyle::PM_DockWindowFrameWidth, m_playlist);
h +=style.tqpixelMetric(TQStyle::PM_DockWindowHandleExtent,m_playlist); h +=style.pixelMetric(TQStyle::PM_DockWindowHandleExtent,m_playlist);
for (TQListViewItem *i=m_playlist->firstChild();i;i=i->itemBelow()) { for (TQListViewItem *i=m_playlist->firstChild();i;i=i->itemBelow()) {
h += i->height (); h += i->height ();
if (h > int (0.25 * height ())) { if (h > int (0.25 * height ())) {
@ -482,7 +482,7 @@ KDE_NO_EXPORT void View::timerEvent (TQTimerEvent * e) {
m_widgetstack->visibleWidget () == m_widgettypes[WT_Picture]) { m_widgetstack->visibleWidget () == m_widgettypes[WT_Picture]) {
int vert_buttons_pos = m_view_area->height()-statusBarHeight (); int vert_buttons_pos = m_view_area->height()-statusBarHeight ();
TQPoint mouse_pos = m_view_area->mapFromGlobal (TQCursor::pos ()); TQPoint mouse_pos = m_view_area->mapFromGlobal (TQCursor::pos ());
int cp_height = m_control_panel->tqmaximumSize ().height (); int cp_height = m_control_panel->maximumSize ().height ();
bool mouse_on_buttons = (//m_view_area->hasMouse () && bool mouse_on_buttons = (//m_view_area->hasMouse () &&
mouse_pos.y () >= vert_buttons_pos-cp_height && mouse_pos.y () >= vert_buttons_pos-cp_height &&
mouse_pos.y ()<= vert_buttons_pos && mouse_pos.y ()<= vert_buttons_pos &&
@ -632,7 +632,7 @@ KDE_NO_EXPORT int View::statusBarHeight () const {
if (statusBarMode () == SB_Only) if (statusBarMode () == SB_Only)
return height (); return height ();
else else
return statusBar()->tqmaximumSize ().height (); return statusBar()->maximumSize ().height ();
} }
return 0; return 0;
} }
@ -665,7 +665,7 @@ bool View::x11Event (XEvent * e) {
if (e->xmotion.window == m_viewer->embeddedWinId ()) if (e->xmotion.window == m_viewer->embeddedWinId ())
delayedShowButtons (e->xmotion.y > m_view_area->height () - delayedShowButtons (e->xmotion.y > m_view_area->height () -
statusBarHeight () - statusBarHeight () -
m_control_panel->tqmaximumSize ().height ()); m_control_panel->maximumSize ().height ());
m_view_area->mouseMoved (); m_view_area->mouseMoved ();
break; break;
case MapNotify: case MapNotify:
@ -749,7 +749,7 @@ KDE_NO_EXPORT void Viewer::windowChanged (WId w) {
KDE_NO_EXPORT void Viewer::mouseMoveEvent (TQMouseEvent * e) { KDE_NO_EXPORT void Viewer::mouseMoveEvent (TQMouseEvent * e) {
if (e->state () == Qt::NoButton) { if (e->state () == Qt::NoButton) {
int cp_height = m_view->controlPanel ()->tqmaximumSize ().height (); int cp_height = m_view->controlPanel ()->maximumSize ().height ();
m_view->delayedShowButtons (e->y () > height () - cp_height); m_view->delayedShowButtons (e->y () > height () - cp_height);
} }
m_view->viewArea ()->mouseMoved (); m_view->viewArea ()->mouseMoved ();

@ -379,7 +379,7 @@ static NPError nsDestroyStream (NPP instance, NPStream *stream, NPError reason)
return NPERR_NO_DATA; return NPERR_NO_DATA;
} }
static void nstqStatus (NPP instance, const char* message) { static void nsStatus (NPP instance, const char* message) {
(void)instance; (void)instance;
print ("NPN_Status %s\n", message ? message : "-"); print ("NPN_Status %s\n", message ? message : "-");
} }
@ -966,7 +966,7 @@ static int initPlugin (const char *plugin_lib) {
ns_funcs.newstream = nsNewStream; ns_funcs.newstream = nsNewStream;
ns_funcs.write = nsWrite; ns_funcs.write = nsWrite;
ns_funcs.destroystream = nsDestroyStream; ns_funcs.destroystream = nsDestroyStream;
ns_funcs.status = nstqStatus; ns_funcs.status = nsStatus;
ns_funcs.uagent = nsUserAgent; ns_funcs.uagent = nsUserAgent;
ns_funcs.memalloc = nsAlloc; ns_funcs.memalloc = nsAlloc;
ns_funcs.memfree = nsMemFree; ns_funcs.memfree = nsMemFree;

@ -96,9 +96,9 @@ RootPlayListItem::RootPlayListItem (int _id, PlayListView *v, const NodePtr & e,
KDE_NO_CDTOR_EXPORT void RootPlayListItem::paintCell (TQPainter * p, const TQColorGroup & cg, int column, int width, int align) { KDE_NO_CDTOR_EXPORT void RootPlayListItem::paintCell (TQPainter * p, const TQColorGroup & cg, int column, int width, int align) {
TQColorGroup mycg (cg); TQColorGroup mycg (cg);
mycg.setColor (TQColorGroup::Base, listview->tqtopLevelWidget()->paletteBackgroundColor()); mycg.setColor (TQColorGroup::Base, listview->topLevelWidget()->paletteBackgroundColor());
mycg.setColor (TQColorGroup::Highlight, mycg.base ()); mycg.setColor (TQColorGroup::Highlight, mycg.base ());
mycg.setColor (TQColorGroup::Text, listview->tqtopLevelWidget()->paletteForegroundColor()); mycg.setColor (TQColorGroup::Text, listview->topLevelWidget()->paletteForegroundColor());
mycg.setColor (TQColorGroup::HighlightedText, mycg.text ()); mycg.setColor (TQColorGroup::HighlightedText, mycg.text ());
TQListViewItem::paintCell (p, mycg, column, width, align); TQListViewItem::paintCell (p, mycg, column, width, align);
qDrawShadeRect (p, 0, 0, width -1, height () -1, mycg, !isOpen ()); qDrawShadeRect (p, 0, 0, width -1, height () -1, mycg, !isOpen ());
@ -238,7 +238,7 @@ void PlayListView::updateTree (int id, NodePtr root, NodePtr active,
bool select, bool open) { bool select, bool open) {
// TODO, if root is same as rootitems->node and treeversion is the same // TODO, if root is same as rootitems->node and treeversion is the same
// and show all nodes is unchanged then only update the cells // and show all nodes is unchanged then only update the cells
TQWidget * w = tqfocusWidget (); TQWidget * w = focusWidget ();
if (w && w != this) if (w && w != this)
w->clearFocus (); w->clearFocus ();
//setSelected (firstChild (), true); //setSelected (firstChild (), true);

@ -340,14 +340,14 @@ KDE_NO_CDTOR_EXPORT PrefSourcePageURL::PrefSourcePageURL (TQWidget *parent)
url = new KURLRequester (urllist, this); url = new KURLRequester (urllist, this);
TQWhatsThis::add (url, i18n ("Location of the playable item")); TQWhatsThis::add (url, i18n ("Location of the playable item"));
//url->setShowLocalProtocol (true); //url->setShowLocalProtocol (true);
url->tqsetSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred)); url->setSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred));
TQLabel *sub_urlLabel = new TQLabel (i18n ("Sub title:"), this, 0); TQLabel *sub_urlLabel = new TQLabel (i18n ("Sub title:"), this, 0);
sub_urllist = new KComboBox (true, this); sub_urllist = new KComboBox (true, this);
sub_urllist->setMaxCount (20); sub_urllist->setMaxCount (20);
sub_urllist->setDuplicatesEnabled (false); // not that it helps much :( sub_urllist->setDuplicatesEnabled (false); // not that it helps much :(
sub_url = new KURLRequester (sub_urllist, this); sub_url = new KURLRequester (sub_urllist, this);
TQWhatsThis::add (sub_url, i18n ("Optional location of a file containing the subtitles of the URL above")); TQWhatsThis::add (sub_url, i18n ("Optional location of a file containing the subtitles of the URL above"));
sub_url->tqsetSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred)); sub_url->setSizePolicy (TQSizePolicy (TQSizePolicy::Expanding, TQSizePolicy::Preferred));
backend = new TQListBox (this); backend = new TQListBox (this);
allowhref = new TQCheckBox (i18n ("Enable 'Click to Play' support"), this); allowhref = new TQCheckBox (i18n ("Enable 'Click to Play' support"), this);
TQWhatsThis::add (allowhref, i18n ("Support for WEB pages having a start image")); TQWhatsThis::add (allowhref, i18n ("Support for WEB pages having a start image"));
@ -444,7 +444,7 @@ KDE_NO_CDTOR_EXPORT PrefRecordPage::PrefRecordPage (TQWidget *parent, PartBase *
KDE_NO_EXPORT void PrefRecordPage::recordingStarted () { KDE_NO_EXPORT void PrefRecordPage::recordingStarted () {
recordButton->setText (i18n ("Stop Recording")); recordButton->setText (i18n ("Stop Recording"));
url->setEnabled (false); url->setEnabled (false);
tqtopLevelWidget ()->hide (); topLevelWidget ()->hide ();
} }
KDE_NO_EXPORT void PrefRecordPage::recordingFinished () { KDE_NO_EXPORT void PrefRecordPage::recordingFinished () {
@ -475,7 +475,7 @@ KDE_NO_EXPORT void PrefRecordPage::sourceChanged (Source * olds, Source * nws) {
} }
KDE_NO_EXPORT void PrefRecordPage::recorderClicked (int id) { KDE_NO_EXPORT void PrefRecordPage::recorderClicked (int id) {
bool b = recorder->find(id)->text().find (TQString::tqfromLatin1("Xine")) > -1; bool b = recorder->find(id)->text().find (TQString::fromLatin1("Xine")) > -1;
replay->setEnabled (!b); replay->setEnabled (!b);
if (b) if (b)
replay->setButton (Settings::ReplayNo); replay->setButton (Settings::ReplayNo);
@ -651,7 +651,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
PostprocessingOptions->setAutoMask (false); PostprocessingOptions->setAutoMask (false);
PostprocessingOptions->setTabPosition( TQTabWidget::Top ); PostprocessingOptions->setTabPosition( TQTabWidget::Top );
PostprocessingOptions->setTabShape( TQTabWidget::Rounded ); PostprocessingOptions->setTabShape( TQTabWidget::Rounded );
PostprocessingOptions->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, PostprocessingOptions->sizePolicy().hasHeightForWidth() ) ); PostprocessingOptions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, PostprocessingOptions->sizePolicy().hasHeightForWidth() ) );
TQWidget *presetSelectionWidget = new TQWidget( PostprocessingOptions, "presetSelectionWidget" ); TQWidget *presetSelectionWidget = new TQWidget( PostprocessingOptions, "presetSelectionWidget" );
TQGridLayout *presetSelectionWidgetLayout = new TQGridLayout( presetSelectionWidget, 1, 1, 1); TQGridLayout *presetSelectionWidgetLayout = new TQGridLayout( presetSelectionWidget, 1, 1, 1);
@ -681,7 +681,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
TQVBoxLayout *customFiltersWidgetLayout = new TQVBoxLayout( customFiltersWidget ); TQVBoxLayout *customFiltersWidgetLayout = new TQVBoxLayout( customFiltersWidget );
TQGroupBox *customFilters = new TQGroupBox(0, Qt::Vertical, customFiltersWidget, "customFilters" ); TQGroupBox *customFilters = new TQGroupBox(0, Qt::Vertical, customFiltersWidget, "customFilters" );
customFilters->tqsetSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2)); customFilters->setSizePolicy(TQSizePolicy((TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2));
customFilters->setFlat(false); customFilters->setFlat(false);
customFilters->setEnabled( false ); customFilters->setEnabled( false );
customFilters->setInsideSpacing(7); customFilters->setInsideSpacing(7);
@ -701,7 +701,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
customFiltersLayout1->addWidget( HzDeblockCFiltering ); customFiltersLayout1->addWidget( HzDeblockCFiltering );
TQFrame *line1 = new TQFrame( customFilters, "line1" ); TQFrame *line1 = new TQFrame( customFilters, "line1" );
line1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) ); line1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) );
line1->setFrameShape( TQFrame::HLine ); line1->setFrameShape( TQFrame::HLine );
line1->setFrameShadow( TQFrame::Sunken ); line1->setFrameShadow( TQFrame::Sunken );
customFiltersLayout->add(line1); customFiltersLayout->add(line1);
@ -721,7 +721,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
TQFrame *line2 = new TQFrame( customFilters, "line2" ); TQFrame *line2 = new TQFrame( customFilters, "line2" );
line2->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) ); line2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)2 ) );
line2->setFrameShape( TQFrame::HLine ); line2->setFrameShape( TQFrame::HLine );
line2->setFrameShadow( TQFrame::Sunken ); line2->setFrameShadow( TQFrame::Sunken );
customFiltersLayout->add(line2); customFiltersLayout->add(line2);
@ -768,7 +768,7 @@ KDE_NO_CDTOR_EXPORT PrefOPPagePostProc::PrefOPPagePostProc(TQWidget *parent) : T
TmpNoiseSlider->setOrientation( TQSlider::Horizontal ); TmpNoiseSlider->setOrientation( TQSlider::Horizontal );
TmpNoiseSlider->setTickmarks( TQSlider::Left ); TmpNoiseSlider->setTickmarks( TQSlider::Left );
TmpNoiseSlider->setTickInterval( 1 ); TmpNoiseSlider->setTickInterval( 1 );
TmpNoiseSlider->tqsetSizePolicy(TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1));*/ TmpNoiseSlider->setSizePolicy(TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1));*/
/*customFiltersLayout->addWidget(TmpNoiseFilter,7,0); /*customFiltersLayout->addWidget(TmpNoiseFilter,7,0);
customFiltersLayout->addWidget(TmpNoiseSlider,7,2);*/ customFiltersLayout->addWidget(TmpNoiseSlider,7,2);*/

@ -1378,7 +1378,7 @@ KDE_NO_EXPORT void ViewArea::fullScreen () {
} }
m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm))); m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm)));
} else { } else {
m_topwindow_rect = tqtopLevelWidget ()->tqgeometry (); m_topwindow_rect = topLevelWidget ()->tqgeometry ();
reparent (0L, 0, tqApp->desktop()->screenGeometry(this).topLeft(), true); reparent (0L, 0, tqApp->desktop()->screenGeometry(this).topLeft(), true);
showFullScreen (); showFullScreen ();
for (unsigned i = 0; i < m_collection->count (); ++i) for (unsigned i = 0; i < m_collection->count (); ++i)
@ -1425,7 +1425,7 @@ void ViewArea::minimalMode () {
m_view->setNoInfoMessages (false); m_view->setNoInfoMessages (false);
m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm))); m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm)));
} }
m_topwindow_rect = tqtopLevelWidget ()->tqgeometry (); m_topwindow_rect = topLevelWidget ()->tqgeometry ();
} }
KDE_NO_EXPORT void ViewArea::accelActivated () { KDE_NO_EXPORT void ViewArea::accelActivated () {
@ -1447,7 +1447,7 @@ KDE_NO_EXPORT void ViewArea::mouseDoubleClickEvent (TQMouseEvent *) {
KDE_NO_EXPORT void ViewArea::mouseMoveEvent (TQMouseEvent * e) { KDE_NO_EXPORT void ViewArea::mouseMoveEvent (TQMouseEvent * e) {
if (e->state () == Qt::NoButton) { if (e->state () == Qt::NoButton) {
int vert_buttons_pos = height () - m_view->statusBarHeight (); int vert_buttons_pos = height () - m_view->statusBarHeight ();
int cp_height = m_view->controlPanel ()->tqmaximumSize ().height (); int cp_height = m_view->controlPanel ()->maximumSize ().height ();
m_view->delayedShowButtons (e->y() > vert_buttons_pos-cp_height && m_view->delayedShowButtons (e->y() > vert_buttons_pos-cp_height &&
e->y() < vert_buttons_pos); e->y() < vert_buttons_pos);
} }
@ -1510,7 +1510,7 @@ KDE_NO_EXPORT void ViewArea::updateSurfaceBounds () {
h -= m_view->controlPanel ()->isVisible () h -= m_view->controlPanel ()->isVisible ()
? (m_view->controlPanelMode () == View::CP_Only ? (m_view->controlPanelMode () == View::CP_Only
? h ? h
: (Single) m_view->controlPanel()->tqmaximumSize ().height ()) : (Single) m_view->controlPanel()->maximumSize ().height ())
: Single (0); : Single (0);
surface->resize (SRect (x, y, w, h)); surface->resize (SRect (x, y, w, h));
Mrl *mrl = surface->node ? surface->node->mrl () : NULL; Mrl *mrl = surface->node ? surface->node->mrl () : NULL;
@ -1545,7 +1545,7 @@ KDE_NO_EXPORT void ViewArea::resizeEvent (TQResizeEvent *) {
Single hcp = m_view->controlPanel ()->isVisible () Single hcp = m_view->controlPanel ()->isVisible ()
? (m_view->controlPanelMode () == View::CP_Only ? (m_view->controlPanelMode () == View::CP_Only
? h-hsb ? h-hsb
: (Single) m_view->controlPanel()->tqmaximumSize ().height ()) : (Single) m_view->controlPanel()->maximumSize ().height ())
: Single (0); : Single (0);
Single wws = w; Single wws = w;
// move controlpanel over video when autohiding and playing // move controlpanel over video when autohiding and playing
@ -1680,8 +1680,8 @@ KDE_NO_EXPORT void ViewArea::closeEvent (TQCloseEvent * e) {
//kdDebug () << "closeEvent" << endl; //kdDebug () << "closeEvent" << endl;
if (m_fullscreen) { if (m_fullscreen) {
fullScreen (); fullScreen ();
if (!m_parent->tqtopLevelWidget ()->isVisible ()) if (!m_parent->topLevelWidget ()->isVisible ())
m_parent->tqtopLevelWidget ()->show (); m_parent->topLevelWidget ()->show ();
e->ignore (); e->ignore ();
} else } else
TQWidget::closeEvent (e); TQWidget::closeEvent (e);

Loading…
Cancel
Save