summaryrefslogtreecommitdiffstats
path: root/src/kmplayerapp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerapp.cpp')
-rw-r--r--src/kmplayerapp.cpp324
1 files changed, 162 insertions, 162 deletions
diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp
index 00bcf66..414ac08 100644
--- a/src/kmplayerapp.cpp
+++ b/src/kmplayerapp.cpp
@@ -110,7 +110,7 @@ public:
void activate ();
void childDone (KMPlayer::NodePtr);
KMPlayer::NodePtr childFromTag (const TQString & tag);
- KDE_NO_EXPORT const char * nodeName () const { return "playlist"; }
+ TDE_NO_EXPORT const char * nodeName () const { return "playlist"; }
KMPlayerApp * app;
};
@@ -119,7 +119,7 @@ public:
Recent (KMPlayer::NodePtr & doc, KMPlayerApp *a, const TQString &url = TQString());
void activate ();
void closed ();
- KDE_NO_EXPORT const char * nodeName () const { return "item"; }
+ TDE_NO_EXPORT const char * nodeName () const { return "item"; }
KMPlayerApp * app;
};
@@ -129,7 +129,7 @@ public:
KMPlayer::NodePtr childFromTag (const TQString & tag);
void defer () {} // TODO lazy loading of largish sub trees
void closed ();
- KDE_NO_EXPORT const char * nodeName () const { return "group"; }
+ TDE_NO_EXPORT const char * nodeName () const { return "group"; }
KMPlayerApp * app;
};
@@ -140,7 +140,7 @@ public:
void defer ();
void activate ();
KMPlayer::NodePtr childFromTag (const TQString & tag);
- KDE_NO_EXPORT const char * nodeName () const { return "playlist"; }
+ TDE_NO_EXPORT const char * nodeName () const { return "playlist"; }
KMPlayerApp * app;
bool playmode;
};
@@ -161,7 +161,7 @@ public:
void begin ();
PlayType playType () { return play_type_unknown; }
void setNodeName (const TQString &);
- const char * nodeName () const KDE_NO_EXPORT { return "item"; }
+ const char * nodeName () const TDE_NO_EXPORT { return "item"; }
};
class KMPLAYER_NO_EXPORT PlaylistGroup : public KMPlayer::Mrl {
@@ -171,7 +171,7 @@ public:
KMPlayer::NodePtr childFromTag (const TQString & tag);
void closed ();
void setNodeName (const TQString &);
- KDE_NO_EXPORT const char * nodeName () const { return "group"; }
+ TDE_NO_EXPORT const char * nodeName () const { return "group"; }
KMPlayerApp * app;
bool playmode;
};
@@ -182,21 +182,21 @@ public:
void activate ();
void closed ();
KMPlayer::NodePtr childFromTag (const TQString & tag);
- const char * nodeName () const KDE_NO_EXPORT { return "object"; }
+ const char * nodeName () const TDE_NO_EXPORT { return "object"; }
};
-KDE_NO_EXPORT void ListsSource::jump (KMPlayer::NodePtr e) {
+TDE_NO_EXPORT void ListsSource::jump (KMPlayer::NodePtr e) {
if (e->document()->firstChild ())
Source::jump (e);
else
e->activate ();
}
-KDE_NO_EXPORT void ListsSource::activate () {
+TDE_NO_EXPORT void ListsSource::activate () {
playCurrent ();
}
-KDE_NO_EXPORT void ListsSource::setDocument (KMPlayer::NodePtr doc, KMPlayer::NodePtr cur) {
+TDE_NO_EXPORT void ListsSource::setDocument (KMPlayer::NodePtr doc, KMPlayer::NodePtr cur) {
if (m_document)
m_document->document()->dispose ();
m_document = doc;
@@ -209,7 +209,7 @@ KDE_NO_CDTOR_EXPORT FileDocument::FileDocument (short i, const TQString &s, KMPl
id = i;
}
-KDE_NO_EXPORT KMPlayer::NodePtr FileDocument::childFromTag(const TQString &tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr FileDocument::childFromTag(const TQString &tag) {
if (tag == TQString::fromLatin1 (nodeName ()))
return this;
return 0L;
@@ -240,19 +240,19 @@ KDE_NO_CDTOR_EXPORT Recents::Recents (KMPlayerApp *a)
pretty_name = i18n ("Most Recent");
}
-KDE_NO_EXPORT void Recents::activate () {
+TDE_NO_EXPORT void Recents::activate () {
if (!resolved)
defer ();
}
-KDE_NO_EXPORT void Recents::defer () {
+TDE_NO_EXPORT void Recents::defer () {
if (!resolved) {
resolved = true;
readFromFile (locateLocal ("data", "kmplayer/recent.xml"));
}
}
-KDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl;
if (tag == TQString::fromLatin1 ("item"))
return new Recent (m_doc, app);
@@ -261,7 +261,7 @@ KDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) {
return FileDocument::childFromTag (tag);
}
-KDE_NO_EXPORT void Recents::childDone (KMPlayer::NodePtr) {
+TDE_NO_EXPORT void Recents::childDone (KMPlayer::NodePtr) {
finish ();
}
@@ -272,12 +272,12 @@ Recent::Recent (KMPlayer::NodePtr & doc, KMPlayerApp * a, const TQString &url)
setAttribute (KMPlayer::StringPool::attr_url, url);
}
-KDE_NO_EXPORT void Recent::closed () {
+TDE_NO_EXPORT void Recent::closed () {
if (src.isEmpty ())
src = getAttribute (KMPlayer::StringPool::attr_url);
}
-KDE_NO_EXPORT void Recent::activate () {
+TDE_NO_EXPORT void Recent::activate () {
app->openDocumentFile (KURL (src));
}
@@ -289,7 +289,7 @@ Group::Group (KMPlayer::NodePtr & doc, KMPlayerApp * a, const TQString & pn)
setAttribute (KMPlayer::StringPool::attr_title, pn);
}
-KDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) {
if (tag == TQString::fromLatin1 ("item"))
return new Recent (m_doc, app);
else if (tag == TQString::fromLatin1 ("group"))
@@ -297,12 +297,12 @@ KDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) {
return 0L;
}
-KDE_NO_EXPORT void Group::closed () {
+TDE_NO_EXPORT void Group::closed () {
if (pretty_name.isEmpty ())
pretty_name = getAttribute (KMPlayer::StringPool::attr_title);
}
-KDE_NO_EXPORT void Playlist::defer () {
+TDE_NO_EXPORT void Playlist::defer () {
if (playmode)
KMPlayer::Document::defer ();
else if (!resolved) {
@@ -311,7 +311,7 @@ KDE_NO_EXPORT void Playlist::defer () {
}
}
-KDE_NO_EXPORT void Playlist::activate () {
+TDE_NO_EXPORT void Playlist::activate () {
if (playmode)
KMPlayer::Document::activate ();
else if (!resolved)
@@ -325,7 +325,7 @@ KDE_NO_CDTOR_EXPORT Playlist::Playlist (KMPlayerApp *a, KMPlayer::PlayListNotify
pretty_name = i18n ("Persistent Playlists");
}
-KDE_NO_EXPORT KMPlayer::NodePtr Playlist::childFromTag (const TQString & tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr Playlist::childFromTag (const TQString & tag) {
// kdDebug () << nodeName () << " childFromTag " << tag << endl;
const char * name = tag.ascii ();
if (!strcmp (name, "item"))
@@ -337,7 +337,7 @@ KDE_NO_EXPORT KMPlayer::NodePtr Playlist::childFromTag (const TQString & tag) {
return FileDocument::childFromTag (tag);
}
-KDE_NO_EXPORT void Playlist::childDone (KMPlayer::NodePtr c) {
+TDE_NO_EXPORT void Playlist::childDone (KMPlayer::NodePtr c) {
if (!playmode)
finish ();
else
@@ -349,7 +349,7 @@ PlaylistItemBase::PlaylistItemBase (KMPlayer::NodePtr &d, short i, KMPlayerApp *
: KMPlayer::Mrl (d, i), app (a), playmode (pm) {
}
-KDE_NO_EXPORT void PlaylistItemBase::activate () {
+TDE_NO_EXPORT void PlaylistItemBase::activate () {
if (playmode) {
Mrl::activate ();
} else {
@@ -402,20 +402,20 @@ PlaylistItem::PlaylistItem (KMPlayer::NodePtr & doc, KMPlayerApp *a, bool pm, co
setAttribute (KMPlayer::StringPool::attr_url, url);
}
-KDE_NO_EXPORT void PlaylistItem::closed () {
+TDE_NO_EXPORT void PlaylistItem::closed () {
if (src.isEmpty ())
src = getAttribute (KMPlayer::StringPool::attr_url);
PlaylistItemBase::closed ();
}
-KDE_NO_EXPORT void PlaylistItem::begin () {
+TDE_NO_EXPORT void PlaylistItem::begin () {
if (playmode && firstChild ())
firstChild ()->activate ();
else
Mrl::begin ();
}
-KDE_NO_EXPORT void PlaylistItem::setNodeName (const TQString & s) {
+TDE_NO_EXPORT void PlaylistItem::setNodeName (const TQString & s) {
src = s;
setAttribute (KMPlayer::StringPool::attr_url, s);
}
@@ -433,7 +433,7 @@ PlaylistGroup::PlaylistGroup (KMPlayer::NodePtr & doc, KMPlayerApp * a, bool lm)
: KMPlayer::Mrl (doc, KMPlayer::id_node_group_node), app (a), playmode (lm) {
}
-KDE_NO_EXPORT KMPlayer::NodePtr PlaylistGroup::childFromTag (const TQString & tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr PlaylistGroup::childFromTag (const TQString & tag) {
const char * name = tag.ascii ();
if (!strcmp (name, "item"))
return new PlaylistItem (m_doc, app, playmode);
@@ -444,12 +444,12 @@ KDE_NO_EXPORT KMPlayer::NodePtr PlaylistGroup::childFromTag (const TQString & ta
return 0L;
}
-KDE_NO_EXPORT void PlaylistGroup::closed () {
+TDE_NO_EXPORT void PlaylistGroup::closed () {
if (pretty_name.isEmpty ())
pretty_name = getAttribute (KMPlayer::StringPool::attr_title);
}
-KDE_NO_EXPORT void PlaylistGroup::setNodeName (const TQString & t) {
+TDE_NO_EXPORT void PlaylistGroup::setNodeName (const TQString & t) {
pretty_name = t;
setAttribute (KMPlayer::StringPool::attr_title, t);
}
@@ -458,14 +458,14 @@ KDE_NO_CDTOR_EXPORT
HtmlObject::HtmlObject (KMPlayer::NodePtr &doc, KMPlayerApp *a, bool pm)
: PlaylistItemBase (doc, KMPlayer::id_node_html_object, a, pm) {}
-KDE_NO_EXPORT void HtmlObject::activate () {
+TDE_NO_EXPORT void HtmlObject::activate () {
if (playmode)
KMPlayer::Mrl::activate ();
else
PlaylistItemBase::activate ();
}
-KDE_NO_EXPORT void HtmlObject::closed () {
+TDE_NO_EXPORT void HtmlObject::closed () {
for (Node *n = firstChild ().ptr (); n; n = n->nextSibling ().ptr ()) {
if (n->id == KMPlayer::id_node_param) {
KMPlayer::Element *e = static_cast <KMPlayer::Element *> (n);
@@ -487,7 +487,7 @@ KDE_NO_EXPORT void HtmlObject::closed () {
PlaylistItemBase::closed ();
}
-KDE_NO_EXPORT KMPlayer::NodePtr HtmlObject::childFromTag (const TQString & tag) {
+TDE_NO_EXPORT KMPlayer::NodePtr HtmlObject::childFromTag (const TQString & tag) {
const char *name = tag.ascii ();
if (!strcasecmp (name, "param"))
return new KMPlayer::DarkNode (m_doc, name, KMPlayer::id_node_param);
@@ -572,7 +572,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::~KMPlayerApp () {
}
-KDE_NO_EXPORT void KMPlayerApp::initActions () {
+TDE_NO_EXPORT void KMPlayerApp::initActions () {
TDEActionCollection * ac = actionCollection ();
fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, this, TQ_SLOT(slotFileNewWindow()), ac, "new_window");
fileOpen = KStdAction::open(this, TQ_SLOT(slotFileOpen()), ac, "open");
@@ -629,13 +629,13 @@ KDE_NO_EXPORT void KMPlayerApp::initActions () {
KStdAction::configureToolbars (this, TQ_SLOT (slotConfigureToolbars ()), ac, "configtoolbars");
}
-KDE_NO_EXPORT void KMPlayerApp::initStatusBar () {
+TDE_NO_EXPORT void KMPlayerApp::initStatusBar () {
KStatusBar *sb = statusBar ();
sb->insertItem (i18n ("Ready."), id_status_msg);
sb->insertItem (TQString ("--:--"), id_status_timer, 0, true);
}
-KDE_NO_EXPORT void KMPlayerApp::initMenu () {
+TDE_NO_EXPORT void KMPlayerApp::initMenu () {
createGUI (); // first build the one from the kmplayerui.rc
TQPopupMenu * bookmarkmenu = m_view->controlPanel()->bookmarkMenu ();
m_view->controlPanel()->popupMenu ()->removeItem (KMPlayer::ControlPanel::menu_bookmark);
@@ -660,7 +660,7 @@ KDE_NO_EXPORT void KMPlayerApp::initMenu () {
m_audiocdmenu->insertItem (i18n ("&Open Audio CD"), this, TQ_SLOT(openAudioCD ()), 0,-1, 1);
}
-KDE_NO_EXPORT void KMPlayerApp::initView () {
+TDE_NO_EXPORT void KMPlayerApp::initView () {
//m_view->docArea ()->readDockConfig (config, TQString ("Window Layout"));
m_player->connectPanel (m_view->controlPanel ());
initMenu ();
@@ -738,14 +738,14 @@ void KMPlayerApp::slotFakeKeyEvent()
}
-KDE_NO_EXPORT void KMPlayerApp::loadingProgress (int perc) {
+TDE_NO_EXPORT void KMPlayerApp::loadingProgress (int perc) {
if (perc < 100)
statusBar ()->changeItem (TQString ("%1%").arg (perc), id_status_timer);
else
statusBar ()->changeItem (TQString ("--:--"), id_status_timer);
}
-KDE_NO_EXPORT void KMPlayerApp::positioned (int pos, int length) {
+TDE_NO_EXPORT void KMPlayerApp::positioned (int pos, int length) {
int left = (length - pos) / 10;
if (left != last_time_left) {
last_time_left = left;
@@ -763,7 +763,7 @@ KDE_NO_EXPORT void KMPlayerApp::positioned (int pos, int length) {
}
}
-KDE_NO_EXPORT void KMPlayerApp::windowVideoConsoleToggled (int wt) {
+TDE_NO_EXPORT void KMPlayerApp::windowVideoConsoleToggled (int wt) {
if (wt == int (KMPlayer::View::WT_Video)) {
toggleView->setText (i18n ("C&onsole"));
toggleView->setIcon (TQString ("konsole"));
@@ -773,7 +773,7 @@ KDE_NO_EXPORT void KMPlayerApp::windowVideoConsoleToggled (int wt) {
}
}
-KDE_NO_EXPORT void KMPlayerApp::playerStarted () {
+TDE_NO_EXPORT void KMPlayerApp::playerStarted () {
KMPlayer::Source * source = m_player->source ();
if (!strcmp (source->name (), "urlsource")) {
KURL url = source->url ();
@@ -832,7 +832,7 @@ KDE_NO_EXPORT void KMPlayerApp::playerStarted () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::slotSourceChanged (KMPlayer::Source *olds, KMPlayer::Source * news) {
+TDE_NO_EXPORT void KMPlayerApp::slotSourceChanged (KMPlayer::Source *olds, KMPlayer::Source * news) {
if (olds) {
disconnect (olds, TQ_SIGNAL (titleChanged (const TQString &)), this,
TQ_SLOT (setCaption (const TQString &)));
@@ -850,28 +850,28 @@ KDE_NO_EXPORT void KMPlayerApp::slotSourceChanged (KMPlayer::Source *olds, KMPla
}
}
-KDE_NO_EXPORT void KMPlayerApp::dvdNav () {
+TDE_NO_EXPORT void KMPlayerApp::dvdNav () {
slotStatusMsg(i18n("DVD Navigation..."));
m_player->setSource (m_player->sources () ["dvdnavsource"]);
slotStatusMsg(i18n("Ready"));
}
-KDE_NO_EXPORT void KMPlayerApp::openDVD () {
+TDE_NO_EXPORT void KMPlayerApp::openDVD () {
slotStatusMsg(i18n("Opening DVD..."));
m_player->setSource (m_player->sources () ["dvdsource"]);
}
-KDE_NO_EXPORT void KMPlayerApp::openVCD () {
+TDE_NO_EXPORT void KMPlayerApp::openVCD () {
slotStatusMsg(i18n("Opening VCD..."));
m_player->setSource (m_player->sources () ["vcdsource"]);
}
-KDE_NO_EXPORT void KMPlayerApp::openAudioCD () {
+TDE_NO_EXPORT void KMPlayerApp::openAudioCD () {
slotStatusMsg(i18n("Opening Audio CD..."));
m_player->setSource (m_player->sources () ["audiocdsource"]);
}
-KDE_NO_EXPORT void KMPlayerApp::openPipe () {
+TDE_NO_EXPORT void KMPlayerApp::openPipe () {
slotStatusMsg(i18n("Opening pipe..."));
bool ok;
TQString cmd = KLineEditDlg::getText (i18n("Read From Pipe"),
@@ -884,7 +884,7 @@ KDE_NO_EXPORT void KMPlayerApp::openPipe () {
m_player->setSource (m_player->sources () ["pipesource"]);
}
-KDE_NO_EXPORT void KMPlayerApp::openVDR () {
+TDE_NO_EXPORT void KMPlayerApp::openVDR () {
slotStatusMsg(i18n("Opening VDR..."));
if (!strcmp (m_player->source ()->name (), "vdrsource") && m_player->process ()->playing ())
static_cast<KMPlayerVDRSource *>(m_player->source())->toggleConnected();
@@ -897,9 +897,9 @@ struct IntroSource : public KMPlayer::Source {
KMPlayerApp * m_app;
IntroSource (KMPlayer::PartBase *p, KMPlayerApp * a)
: KMPlayer::Source (i18n ("Intro"), p, "introsource"), m_app (a) {}
- KDE_NO_EXPORT bool hasLength () { return false; }
- KDE_NO_EXPORT bool isSeekable () { return false; }
- KDE_NO_EXPORT TQString prettyName () { return i18n ("Intro"); }
+ TDE_NO_EXPORT bool hasLength () { return false; }
+ TDE_NO_EXPORT bool isSeekable () { return false; }
+ TDE_NO_EXPORT TQString prettyName () { return i18n ("Intro"); }
void activate ();
void deactivate ();
void stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State os, KMPlayer::Node::State ns);
@@ -907,7 +907,7 @@ struct IntroSource : public KMPlayer::Source {
bool finished;
};
-KDE_NO_EXPORT void IntroSource::activate () {
+TDE_NO_EXPORT void IntroSource::activate () {
if (m_player->settings ()->autoresize)
m_app->disconnect(m_player, TQ_SIGNAL(sourceDimensionChanged()),m_app,TQ_SLOT(zoom100()));
m_document = new KMPlayer::Document (TQString (""), this);
@@ -955,7 +955,7 @@ KDE_NO_EXPORT void IntroSource::activate () {
deactivated = finished = false;
}
-KDE_NO_EXPORT void IntroSource::stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State, KMPlayer::Node::State new_state) {
+TDE_NO_EXPORT void IntroSource::stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State, KMPlayer::Node::State new_state) {
if (new_state == KMPlayer::Node::state_deactivated &&
m_document == node) {
m_document->reset ();
@@ -968,7 +968,7 @@ KDE_NO_EXPORT void IntroSource::stateElementChanged (KMPlayer::Node * node, KMPl
}
}
-KDE_NO_EXPORT void IntroSource::deactivate () {
+TDE_NO_EXPORT void IntroSource::deactivate () {
deactivated = true;
if (m_player->settings ()->autoresize)
m_app->connect(m_player, TQ_SIGNAL(sourceDimensionChanged()),m_app,TQ_SLOT(zoom100()));
@@ -977,7 +977,7 @@ KDE_NO_EXPORT void IntroSource::deactivate () {
}
#endif
-KDE_NO_EXPORT void KMPlayerApp::restoreFromConfig () {
+TDE_NO_EXPORT void KMPlayerApp::restoreFromConfig () {
if (m_player->view ()) {
m_view->docArea ()->hide ();
m_view->docArea ()->readDockConfig (m_player->config (), TQString ("Window Layout"));
@@ -986,7 +986,7 @@ KDE_NO_EXPORT void KMPlayerApp::restoreFromConfig () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::openDocumentFile (const KURL& url)
+TDE_NO_EXPORT void KMPlayerApp::openDocumentFile (const KURL& url)
{
if (!m_played_intro) {
m_played_intro = true;
@@ -1021,26 +1021,26 @@ KDE_NO_EXPORT void KMPlayerApp::openDocumentFile (const KURL& url)
slotStatusMsg (i18n ("Ready."));
}
-KDE_NO_EXPORT void KMPlayerApp::addURL (const KURL& url) {
+TDE_NO_EXPORT void KMPlayerApp::addURL (const KURL& url) {
KMPlayer::Source * src = m_player->sources () ["urlsource"];
KMPlayer::NodePtr d = src->document ();
if (d)
d->appendChild (new KMPlayer::GenericURL (d, url.url ()));
}
-KDE_NO_EXPORT void KMPlayerApp::saveProperties (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerApp::saveProperties (TDEConfig * config) {
config->writeEntry ("URL", m_player->source ()->url ().url ());
config->writeEntry ("Visible", isVisible ());
}
-KDE_NO_EXPORT void KMPlayerApp::readProperties (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerApp::readProperties (TDEConfig * config) {
KURL url (config->readEntry ("URL", TQString ()));
openDocumentFile (url);
if (!config->readBoolEntry ("Visible", true) && m_systray)
hide ();
}
-KDE_NO_EXPORT void KMPlayerApp::resizePlayer (int percentage) {
+TDE_NO_EXPORT void KMPlayerApp::resizePlayer (int percentage) {
KMPlayer::Source * source = m_player->source ();
if (!source)
return;
@@ -1069,27 +1069,27 @@ KDE_NO_EXPORT void KMPlayerApp::resizePlayer (int percentage) {
}
}
-KDE_NO_EXPORT void KMPlayerApp::zoom50 () {
+TDE_NO_EXPORT void KMPlayerApp::zoom50 () {
resizePlayer (50);
}
-KDE_NO_EXPORT void KMPlayerApp::zoom100 () {
+TDE_NO_EXPORT void KMPlayerApp::zoom100 () {
resizePlayer (100);
}
-KDE_NO_EXPORT void KMPlayerApp::zoom150 () {
+TDE_NO_EXPORT void KMPlayerApp::zoom150 () {
resizePlayer (150);
}
-KDE_NO_EXPORT void KMPlayerApp::zoom200 () {
+TDE_NO_EXPORT void KMPlayerApp::zoom200 () {
resizePlayer (200);
}
-KDE_NO_EXPORT void KMPlayerApp::zoom300 () {
+TDE_NO_EXPORT void KMPlayerApp::zoom300 () {
resizePlayer (300);
}
-KDE_NO_EXPORT void KMPlayerApp::editMode () {
+TDE_NO_EXPORT void KMPlayerApp::editMode () {
m_view->docArea ()->hide ();
bool editmode = !m_view->editMode ();
KMPlayer::PlayListItem * pi = m_view->playList ()->currentPlayListItem ();
@@ -1112,7 +1112,7 @@ KDE_NO_EXPORT void KMPlayerApp::editMode () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::syncEditMode () {
+TDE_NO_EXPORT void KMPlayerApp::syncEditMode () {
if (edit_tree_id > -1) {
KMPlayer::PlayListItem *si = m_view->playList()->selectedPlayListItem();
if (si && si->node) {
@@ -1126,17 +1126,17 @@ KDE_NO_EXPORT void KMPlayerApp::syncEditMode () {
m_player->openURL (m_player->source ()->url ());
}
-KDE_NO_EXPORT void KMPlayerApp::showBroadcastConfig () {
+TDE_NO_EXPORT void KMPlayerApp::showBroadcastConfig () {
m_player->settings ()->addPage (m_broadcastconfig);
m_player->settings ()->addPage (m_ffserverconfig);
}
-KDE_NO_EXPORT void KMPlayerApp::hideBroadcastConfig () {
+TDE_NO_EXPORT void KMPlayerApp::hideBroadcastConfig () {
m_player->settings ()->removePage (m_broadcastconfig);
m_player->settings ()->removePage (m_ffserverconfig);
}
-KDE_NO_EXPORT void KMPlayerApp::broadcastClicked () {
+TDE_NO_EXPORT void KMPlayerApp::broadcastClicked () {
if (m_broadcastconfig->broadcasting ())
m_broadcastconfig->stopServer ();
else {
@@ -1145,12 +1145,12 @@ KDE_NO_EXPORT void KMPlayerApp::broadcastClicked () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::broadcastStarted () {
+TDE_NO_EXPORT void KMPlayerApp::broadcastStarted () {
if (!m_view->controlPanel()->broadcastButton ()->isOn ())
m_view->controlPanel()->broadcastButton ()->toggle ();
}
-KDE_NO_EXPORT void KMPlayerApp::broadcastStopped () {
+TDE_NO_EXPORT void KMPlayerApp::broadcastStopped () {
if (m_view->controlPanel()->broadcastButton ()->isOn ())
m_view->controlPanel()->broadcastButton ()->toggle ();
if (m_player->source () != m_player->sources () ["tvsource"])
@@ -1158,11 +1158,11 @@ KDE_NO_EXPORT void KMPlayerApp::broadcastStopped () {
setCursor (TQCursor (TQt::ArrowCursor));
}
-KDE_NO_EXPORT bool KMPlayerApp::broadcasting () const {
+TDE_NO_EXPORT bool KMPlayerApp::broadcasting () const {
return m_broadcastconfig->broadcasting ();
}
-KDE_NO_EXPORT void KMPlayerApp::saveOptions()
+TDE_NO_EXPORT void KMPlayerApp::saveOptions()
{
config->setGroup ("General Options");
if (m_player->settings ()->remembersize)
@@ -1188,7 +1188,7 @@ KDE_NO_EXPORT void KMPlayerApp::saveOptions()
}
-KDE_NO_EXPORT void KMPlayerApp::readOptions() {
+TDE_NO_EXPORT void KMPlayerApp::readOptions() {
config->setGroup("General Options");
@@ -1232,7 +1232,7 @@ KDE_NO_EXPORT void KMPlayerApp::readOptions() {
#undef Unsorted
#undef Bool
-KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
+TDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
unsigned long props = NET::WMWindowType;
NETWinInfo winfo (tqt_xdisplay (), winId (), tqt_xrootwin (), props);
if (m_minimal_mode) {
@@ -1252,7 +1252,7 @@ KDE_NO_EXPORT void KMPlayerApp::minimalMode (bool by_user) {
m_minimal_mode = !m_minimal_mode;
}
-KDE_NO_EXPORT void KMPlayerApp::slotMinimalMode () {
+TDE_NO_EXPORT void KMPlayerApp::slotMinimalMode () {
minimalMode (true);
}
@@ -1260,15 +1260,15 @@ KDE_NO_EXPORT void KMPlayerApp::slotMinimalMode () {
struct ExitSource : public KMPlayer::Source {
KDE_NO_CDTOR_EXPORT ExitSource (KMPlayer::PartBase *p)
: KMPlayer::Source (i18n ("Exit"), p, "exitsource") {}
- KDE_NO_EXPORT TQString prettyName () { return i18n ("Exit"); }
- KDE_NO_EXPORT bool hasLength () { return false; }
- KDE_NO_EXPORT bool isSeekable () { return false; }
+ TDE_NO_EXPORT TQString prettyName () { return i18n ("Exit"); }
+ TDE_NO_EXPORT bool hasLength () { return false; }
+ TDE_NO_EXPORT bool isSeekable () { return false; }
void activate ();
- KDE_NO_EXPORT void deactivate () {}
+ TDE_NO_EXPORT void deactivate () {}
void stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State os, KMPlayer::Node::State ns);
};
-KDE_NO_EXPORT void ExitSource::activate () {
+TDE_NO_EXPORT void ExitSource::activate () {
m_document = new KMPlayer::Document (TQString (""), this);
TQString exitfile = locate ("data", "kmplayer/exit.xml");
TQFile file (exitfile);
@@ -1306,7 +1306,7 @@ KDE_NO_EXPORT void ExitSource::activate () {
tqApp->quit ();
}
-KDE_NO_EXPORT void ExitSource::stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State, KMPlayer::Node::State new_state) {
+TDE_NO_EXPORT void ExitSource::stateElementChanged (KMPlayer::Node * node, KMPlayer::Node::State, KMPlayer::Node::State new_state) {
if (new_state == KMPlayer::Node::state_deactivated &&
m_document == node &&
m_player->view ())
@@ -1314,7 +1314,7 @@ KDE_NO_EXPORT void ExitSource::stateElementChanged (KMPlayer::Node * node, KMPla
}
#endif
-KDE_NO_EXPORT bool KMPlayerApp::queryClose () {
+TDE_NO_EXPORT bool KMPlayerApp::queryClose () {
// KMPlayerVDRSource has to wait for pending commands like mute and quit
m_player->stop ();
static_cast <KMPlayerVDRSource *> (m_player->sources () ["vdrsource"])->waitForConnectionClose ();
@@ -1339,7 +1339,7 @@ KDE_NO_EXPORT bool KMPlayerApp::queryClose () {
#endif
}
-KDE_NO_EXPORT bool KMPlayerApp::queryExit()
+TDE_NO_EXPORT bool KMPlayerApp::queryExit()
{
if (!m_minimal_mode)
saveOptions();
@@ -1349,7 +1349,7 @@ KDE_NO_EXPORT bool KMPlayerApp::queryExit()
return true;
}
-KDE_NO_EXPORT void KMPlayerApp::slotFileNewWindow()
+TDE_NO_EXPORT void KMPlayerApp::slotFileNewWindow()
{
slotStatusMsg(i18n("Opening a new application window..."));
@@ -1359,7 +1359,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileNewWindow()
slotStatusMsg(i18n("Ready."));
}
-KDE_NO_EXPORT void KMPlayerApp::slotFileOpen () {
+TDE_NO_EXPORT void KMPlayerApp::slotFileOpen () {
KURL::List urls = KFileDialog::getOpenURLs (TQString (), i18n ("*|All Files"), this, i18n ("Open File"));
if (urls.size () == 1) {
openDocumentFile (urls [0]);
@@ -1370,7 +1370,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileOpen () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::slotFileOpenRecent(const KURL& url)
+TDE_NO_EXPORT void KMPlayerApp::slotFileOpenRecent(const KURL& url)
{
slotStatusMsg(i18n("Opening file..."));
@@ -1378,7 +1378,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileOpenRecent(const KURL& url)
}
-KDE_NO_EXPORT void KMPlayerApp::slotSaveAs () {
+TDE_NO_EXPORT void KMPlayerApp::slotSaveAs () {
TQString url = KFileDialog::getSaveFileName (TQString (), TQString (), this, i18n ("Save File"));
if (!url.isEmpty ()) {
TQFile file (url);
@@ -1402,7 +1402,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotSaveAs () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::slotClearHistory () {
+TDE_NO_EXPORT void KMPlayerApp::slotClearHistory () {
//fileOpenRecent->clearURLList ();
int mi = fileOpenRecent->maxItems ();
fileOpenRecent->setMaxItems (0);
@@ -1416,7 +1416,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotClearHistory () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::slotFileClose()
+TDE_NO_EXPORT void KMPlayerApp::slotFileClose()
{
slotStatusMsg(i18n("Closing file..."));
@@ -1425,7 +1425,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileClose()
slotStatusMsg(i18n("Ready."));
}
-KDE_NO_EXPORT void KMPlayerApp::slotFileQuit()
+TDE_NO_EXPORT void KMPlayerApp::slotFileQuit()
{
slotStatusMsg(i18n("Exiting..."));
@@ -1449,21 +1449,21 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileQuit()
}*/
}
-KDE_NO_EXPORT void KMPlayerApp::slotPreferences () {
+TDE_NO_EXPORT void KMPlayerApp::slotPreferences () {
m_player->showConfigDialog ();
}
-KDE_NO_EXPORT void KMPlayerApp::slotConfigureKeys () {
+TDE_NO_EXPORT void KMPlayerApp::slotConfigureKeys () {
KKeyDialog::configure( actionCollection(), this );
}
-KDE_NO_EXPORT void KMPlayerApp::slotConfigureToolbars () {
+TDE_NO_EXPORT void KMPlayerApp::slotConfigureToolbars () {
KEditToolbar dlg (actionCollection ());
if (dlg.exec ())
initMenu (); // also add custom popups //createGUI ();
}
-KDE_NO_EXPORT void KMPlayerApp::slotViewToolBar() {
+TDE_NO_EXPORT void KMPlayerApp::slotViewToolBar() {
m_showToolbar = viewToolBar->isChecked();
if(m_showToolbar)
toolBar("mainToolBar")->show();
@@ -1471,7 +1471,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotViewToolBar() {
toolBar("mainToolBar")->hide();
}
-KDE_NO_EXPORT void KMPlayerApp::slotViewStatusBar() {
+TDE_NO_EXPORT void KMPlayerApp::slotViewStatusBar() {
m_showStatusbar = viewStatusBar->isChecked();
if(m_showStatusbar)
statusBar()->show();
@@ -1479,7 +1479,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotViewStatusBar() {
statusBar()->hide();
}
-KDE_NO_EXPORT void KMPlayerApp::slotViewMenuBar() {
+TDE_NO_EXPORT void KMPlayerApp::slotViewMenuBar() {
m_showMenubar = viewMenuBar->isChecked();
if (m_showMenubar) {
menuBar()->show();
@@ -1494,13 +1494,13 @@ KDE_NO_EXPORT void KMPlayerApp::slotViewMenuBar() {
}
}
-KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
+TDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
KStatusBar * sb = statusBar ();
sb->clear ();
sb->changeItem (text, id_status_msg);
}
-KDE_NO_EXPORT void KMPlayerApp::fullScreen () {
+TDE_NO_EXPORT void KMPlayerApp::fullScreen () {
if (sender()->inherits("TDEAction"))
m_view->fullScreen();
#if KDE_IS_VERSION(3,1,90)
@@ -1514,7 +1514,7 @@ KDE_NO_EXPORT void KMPlayerApp::fullScreen () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::playListItemSelected (TQListViewItem * item) {
+TDE_NO_EXPORT void KMPlayerApp::playListItemSelected (TQListViewItem * item) {
KMPlayer::PlayListItem * vi = static_cast <KMPlayer::PlayListItem *> (item);
if (edit_tree_id > -1) {
if (vi->playListView ()->rootItem (item)->id != edit_tree_id)
@@ -1524,7 +1524,7 @@ KDE_NO_EXPORT void KMPlayerApp::playListItemSelected (TQListViewItem * item) {
viewEditMode->setEnabled (vi->playListView ()->rootItem (item)->flags & KMPlayer::PlayListView::TreeEdit);
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
void KMPlayerApp::playListItemDropped (TQDropEvent * de, TQListViewItem * after) {
if (!after) { // could still be a descendent
after = m_view->playList()->itemAt (m_view->playList()->contentsToViewport (de->pos ()));
@@ -1566,7 +1566,7 @@ void KMPlayerApp::playListItemDropped (TQDropEvent * de, TQListViewItem * after)
m_dropmenu->exec (m_view->playList ()->mapToGlobal (m_view->playList ()->contentsToViewport (de->pos ())));
}
-KDE_NO_EXPORT void KMPlayerApp::menuDropInList () {
+TDE_NO_EXPORT void KMPlayerApp::menuDropInList () {
KMPlayer::NodePtr n = static_cast<KMPlayer::PlayListItem*>(m_drop_after)->node;
KMPlayer::NodePtr pi;
for (int i = m_drop_list.size (); n && (i > 0 || manip_node); i--) {
@@ -1584,7 +1584,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuDropInList () {
m_view->playList()->updateTree (playlist_id, playlist, pi, true, false);
}
-KDE_NO_EXPORT void KMPlayerApp::menuDropInGroup () {
+TDE_NO_EXPORT void KMPlayerApp::menuDropInGroup () {
KMPlayer::NodePtr n = static_cast<KMPlayer::PlayListItem*>(m_drop_after)->node;
if (!n)
return;
@@ -1606,7 +1606,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuDropInGroup () {
m_view->playList()->updateTree (playlist_id, playlist, pi, true, false);
}
-KDE_NO_EXPORT void KMPlayerApp::menuCopyDrop () {
+TDE_NO_EXPORT void KMPlayerApp::menuCopyDrop () {
KMPlayer::NodePtr n = static_cast<KMPlayer::PlayListItem*>(m_drop_after)->node;
if (n && manip_node) {
KMPlayer::NodePtr pi = new PlaylistItem (playlist, this, false, manip_node->mrl ()->src);
@@ -1618,7 +1618,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuCopyDrop () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::menuDeleteNode () {
+TDE_NO_EXPORT void KMPlayerApp::menuDeleteNode () {
KMPlayer::NodePtr n;
if (manip_node && manip_node->parentNode ()) {
n = manip_node->previousSibling() ? manip_node->previousSibling() : manip_node->parentNode ();
@@ -1627,7 +1627,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuDeleteNode () {
m_view->playList()->updateTree (manip_tree_id, 0L, n, true, false);
}
-KDE_NO_EXPORT void KMPlayerApp::menuMoveUpNode () {
+TDE_NO_EXPORT void KMPlayerApp::menuMoveUpNode () {
KMPlayer::NodePtr n = manip_node;
if (n && n->parentNode () && n->previousSibling ()) {
KMPlayer::NodePtr prev = n->previousSibling ();
@@ -1637,7 +1637,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuMoveUpNode () {
m_view->playList()->updateTree (manip_tree_id, 0L, n, true, false);
}
-KDE_NO_EXPORT void KMPlayerApp::menuMoveDownNode () {
+TDE_NO_EXPORT void KMPlayerApp::menuMoveDownNode () {
KMPlayer::NodePtr n = manip_node;
if (n && n->parentNode () && n->nextSibling ()) {
KMPlayer::NodePtr next = n->nextSibling ();
@@ -1647,7 +1647,7 @@ KDE_NO_EXPORT void KMPlayerApp::menuMoveDownNode () {
m_view->playList()->updateTree (manip_tree_id, 0L, n, true, false);
}
-KDE_NO_EXPORT void KMPlayerApp::playListItemMoved () {
+TDE_NO_EXPORT void KMPlayerApp::playListItemMoved () {
KMPlayer::PlayListItem * si = m_view->playList ()->selectedPlayListItem ();
KMPlayer::RootPlayListItem * ri = m_view->playList ()->rootItem (si);
kdDebug() << "playListItemMoved " << (ri->id == playlist_id) << !! si->node << endl;
@@ -1660,7 +1660,7 @@ KDE_NO_EXPORT void KMPlayerApp::playListItemMoved () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::preparePlaylistMenu (KMPlayer::PlayListItem * item, TQPopupMenu * pm) {
+TDE_NO_EXPORT void KMPlayerApp::preparePlaylistMenu (KMPlayer::PlayListItem * item, TQPopupMenu * pm) {
KMPlayer::RootPlayListItem * ri = m_view->playList ()->rootItem (item);
if (item->node &&
ri->flags & (KMPlayer::PlayListView::Moveable | KMPlayer::PlayListView::Deleteable)) {
@@ -1679,7 +1679,7 @@ KDE_NO_EXPORT void KMPlayerApp::preparePlaylistMenu (KMPlayer::PlayListItem * it
}
-KDE_NO_EXPORT void KMPlayerApp::startArtsControl () {
+TDE_NO_EXPORT void KMPlayerApp::startArtsControl () {
TQCString fApp, fObj;
TQByteArray data, replydata;
QCStringList apps = kapp->dcopClient ()->registeredApplications();
@@ -1701,7 +1701,7 @@ KDE_NO_EXPORT void KMPlayerApp::startArtsControl () {
}
}
-KDE_NO_EXPORT void KMPlayerApp::configChanged () {
+TDE_NO_EXPORT void KMPlayerApp::configChanged () {
viewKeepRatio->setChecked (m_player->settings ()->sizeratio);
if (m_player->settings ()->docksystray && !m_systray) {
m_systray = new KSystemTray (this);
@@ -1719,7 +1719,7 @@ KDE_NO_EXPORT void KMPlayerApp::configChanged () {
static_cast <KMPlayerTVSource *> (m_player->sources () ["tvsource"])->buildMenu ();
}
-KDE_NO_EXPORT void KMPlayerApp::keepSizeRatio () {
+TDE_NO_EXPORT void KMPlayerApp::keepSizeRatio () {
m_view->setKeepSizeRatio (!m_view->keepSizeRatio ());
m_player->settings ()->sizeratio = m_view->keepSizeRatio ();
viewKeepRatio->setChecked (m_view->keepSizeRatio ());
@@ -1734,7 +1734,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerMenuSource::KMPlayerMenuSource (const TQString & n,
KDE_NO_CDTOR_EXPORT KMPlayerMenuSource::~KMPlayerMenuSource () {
}
-KDE_NO_EXPORT void KMPlayerMenuSource::menuItemClicked (TQPopupMenu * menu, int id) {
+TDE_NO_EXPORT void KMPlayerMenuSource::menuItemClicked (TQPopupMenu * menu, int id) {
int unsetmenuid = -1;
for (unsigned i = 0; i < menu->count(); i++) {
int menuid = menu->idAt (i);
@@ -1787,7 +1787,7 @@ KDE_NO_CDTOR_EXPORT Disks::Disks (KMPlayerApp * a)
pretty_name = i18n ("Optical Disks");
}
-KDE_NO_EXPORT void Disks::childDone (KMPlayer::NodePtr) {
+TDE_NO_EXPORT void Disks::childDone (KMPlayer::NodePtr) {
finish ();
}
@@ -1797,7 +1797,7 @@ KDE_NO_CDTOR_EXPORT Disk::Disk (KMPlayer::NodePtr & doc, KMPlayerApp * a, const
pretty_name = pn;
}
-KDE_NO_EXPORT void Disk::activate () {
+TDE_NO_EXPORT void Disk::activate () {
const char * sn;
if (src.startsWith ("cdda"))
sn = "audiocdsource";
@@ -1834,7 +1834,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerDVDSource::~KMPlayerDVDSource () {
disks->document ()->dispose ();
}
-KDE_NO_EXPORT bool KMPlayerDVDSource::processOutput (const TQString & str) {
+TDE_NO_EXPORT bool KMPlayerDVDSource::processOutput (const TQString & str) {
if (KMPlayer::Source::processOutput (str))
return true;
if (m_identified)
@@ -1879,7 +1879,7 @@ KDE_NO_EXPORT bool KMPlayerDVDSource::processOutput (const TQString & str) {
return true;
}
-KDE_NO_EXPORT void KMPlayerDVDSource::activate () {
+TDE_NO_EXPORT void KMPlayerDVDSource::activate () {
m_start_play = m_auto_play;
m_current_title = -1;
setURL (KURL ("dvd://"));
@@ -1902,7 +1902,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::activate () {
TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
}
-KDE_NO_EXPORT void KMPlayerDVDSource::setIdentified (bool b) {
+TDE_NO_EXPORT void KMPlayerDVDSource::setIdentified (bool b) {
KMPlayer::Source::setIdentified (b);
m_start_play = true;
if (m_current_title < 0 || m_current_title >= int (m_dvdtitlemenu->count()))
@@ -1919,7 +1919,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::setIdentified (bool b) {
m_app->slotStatusMsg (i18n ("Ready."));
}
-KDE_NO_EXPORT void KMPlayerDVDSource::deactivate () {
+TDE_NO_EXPORT void KMPlayerDVDSource::deactivate () {
if (m_player->view ()) {
m_dvdtitlemenu->clear ();
m_dvdsubtitlemenu->clear ();
@@ -1942,7 +1942,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::deactivate () {
}
}
-KDE_NO_EXPORT void KMPlayerDVDSource::buildArguments () {
+TDE_NO_EXPORT void KMPlayerDVDSource::buildArguments () {
TQString url ("dvd://");
if (m_document) {
if (m_current_title > 0)
@@ -1967,14 +1967,14 @@ KDE_NO_EXPORT void KMPlayerDVDSource::buildArguments () {
m_recordcmd = m_options + TQString (" -vf scale -zoom");
}
-KDE_NO_EXPORT TQString KMPlayerDVDSource::filterOptions () {
+TDE_NO_EXPORT TQString KMPlayerDVDSource::filterOptions () {
KMPlayer::Settings * settings = m_player->settings ();
if (!settings->disableppauto)
return KMPlayer::Source::filterOptions ();
return TQString ("");
}
-KDE_NO_EXPORT void KMPlayerDVDSource::titleMenuClicked (int id) {
+TDE_NO_EXPORT void KMPlayerDVDSource::titleMenuClicked (int id) {
if (m_current_title != id) {
m_player->stop ();
m_current_title = id;
@@ -1989,7 +1989,7 @@ KDE_NO_EXPORT void KMPlayerDVDSource::titleMenuClicked (int id) {
}
}
-KDE_NO_EXPORT void KMPlayerDVDSource::play () {
+TDE_NO_EXPORT void KMPlayerDVDSource::play () {
buildArguments ();
if (m_start_play) {
m_player->stop ();
@@ -1997,38 +1997,38 @@ KDE_NO_EXPORT void KMPlayerDVDSource::play () {
}
}
-KDE_NO_EXPORT void KMPlayerDVDSource::subtitleMenuClicked (int id) {
+TDE_NO_EXPORT void KMPlayerDVDSource::subtitleMenuClicked (int id) {
menuItemClicked (m_dvdsubtitlemenu, id);
play ();
}
-KDE_NO_EXPORT void KMPlayerDVDSource::languageMenuClicked (int id) {
+TDE_NO_EXPORT void KMPlayerDVDSource::languageMenuClicked (int id) {
menuItemClicked (m_dvdlanguagemenu, id);
play ();
}
-KDE_NO_EXPORT void KMPlayerDVDSource::chapterMenuClicked (int id) {
+TDE_NO_EXPORT void KMPlayerDVDSource::chapterMenuClicked (int id) {
menuItemClicked (m_dvdchaptermenu, id);
play ();
}
-KDE_NO_EXPORT TQString KMPlayerDVDSource::prettyName () {
+TDE_NO_EXPORT TQString KMPlayerDVDSource::prettyName () {
return i18n ("DVD");
}
static const char * strPlayDVD = "Immediately Play DVD";
-KDE_NO_EXPORT void KMPlayerDVDSource::write (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerDVDSource::write (TDEConfig * config) {
config->setGroup (strMPlayerGroup);
config->writeEntry (strPlayDVD, m_auto_play);
}
-KDE_NO_EXPORT void KMPlayerDVDSource::read (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerDVDSource::read (TDEConfig * config) {
config->setGroup (strMPlayerGroup);
m_auto_play = config->readBoolEntry (strPlayDVD, true);
}
-KDE_NO_EXPORT void KMPlayerDVDSource::sync (bool fromUI) {
+TDE_NO_EXPORT void KMPlayerDVDSource::sync (bool fromUI) {
if (fromUI) {
m_auto_play = m_configpage->autoPlayDVD->isChecked ();
m_player->settings ()->dvddevice = m_configpage->dvddevice->lineEdit()->text ();
@@ -2038,13 +2038,13 @@ KDE_NO_EXPORT void KMPlayerDVDSource::sync (bool fromUI) {
}
}
-KDE_NO_EXPORT void KMPlayerDVDSource::prefLocation (TQString & item, TQString & icon, TQString & tab) {
+TDE_NO_EXPORT void KMPlayerDVDSource::prefLocation (TQString & item, TQString & icon, TQString & tab) {
item = i18n ("Source");
icon = TQString ("text-x-src");
tab = i18n ("DVD");
}
-KDE_NO_EXPORT TQFrame * KMPlayerDVDSource::prefPage (TQWidget * parent) {
+TDE_NO_EXPORT TQFrame * KMPlayerDVDSource::prefPage (TQWidget * parent) {
m_configpage = new KMPlayerPrefSourcePageDVD (parent);
return m_configpage;
}
@@ -2059,15 +2059,15 @@ KDE_NO_CDTOR_EXPORT KMPlayerDVDNavSource::KMPlayerDVDNavSource (KMPlayerApp * ap
KDE_NO_CDTOR_EXPORT KMPlayerDVDNavSource::~KMPlayerDVDNavSource () {}
-KDE_NO_EXPORT void KMPlayerDVDNavSource::activate () {
+TDE_NO_EXPORT void KMPlayerDVDNavSource::activate () {
setURL (KURL ("dvd://"));
play ();
}
-KDE_NO_EXPORT void KMPlayerDVDNavSource::deactivate () {
+TDE_NO_EXPORT void KMPlayerDVDNavSource::deactivate () {
}
-KDE_NO_EXPORT void KMPlayerDVDNavSource::play () {
+TDE_NO_EXPORT void KMPlayerDVDNavSource::play () {
if (!m_menu->findItem (DVDNav_previous)) {
m_menu->insertItem (i18n ("&Previous"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_previous);
m_menu->insertItem (i18n ("&Next"), this, TQ_SLOT (navMenuClicked (int)), 0, DVDNav_next);
@@ -2078,7 +2078,7 @@ KDE_NO_EXPORT void KMPlayerDVDNavSource::play () {
connect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(finished ()));
}
-KDE_NO_EXPORT void KMPlayerDVDNavSource::finished () {
+TDE_NO_EXPORT void KMPlayerDVDNavSource::finished () {
disconnect (this, TQ_SIGNAL (stopPlaying ()), this, TQ_SLOT(finished ()));
m_menu->removeItem (DVDNav_previous);
m_menu->removeItem (DVDNav_next);
@@ -2086,7 +2086,7 @@ KDE_NO_EXPORT void KMPlayerDVDNavSource::finished () {
m_menu->removeItem (DVDNav_up);
}
-KDE_NO_EXPORT void KMPlayerDVDNavSource::navMenuClicked (int id) {
+TDE_NO_EXPORT void KMPlayerDVDNavSource::navMenuClicked (int id) {
switch (id) {
case DVDNav_start:
break;
@@ -2105,7 +2105,7 @@ KDE_NO_EXPORT void KMPlayerDVDNavSource::navMenuClicked (int id) {
}
}
-KDE_NO_EXPORT TQString KMPlayerDVDNavSource::prettyName () {
+TDE_NO_EXPORT TQString KMPlayerDVDNavSource::prettyName () {
return i18n ("DVD");
}
@@ -2137,7 +2137,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerVCDSource::KMPlayerVCDSource (KMPlayerApp * a, TQPop
KDE_NO_CDTOR_EXPORT KMPlayerVCDSource::~KMPlayerVCDSource () {
}
-KDE_NO_EXPORT bool KMPlayerVCDSource::processOutput (const TQString & str) {
+TDE_NO_EXPORT bool KMPlayerVCDSource::processOutput (const TQString & str) {
if (KMPlayer::Source::processOutput (str))
return true;
if (m_identified)
@@ -2154,7 +2154,7 @@ KDE_NO_EXPORT bool KMPlayerVCDSource::processOutput (const TQString & str) {
return false;
}
-KDE_NO_EXPORT void KMPlayerVCDSource::activate () {
+TDE_NO_EXPORT void KMPlayerVCDSource::activate () {
m_player->stop ();
init ();
m_start_play = m_auto_play;
@@ -2164,10 +2164,10 @@ KDE_NO_EXPORT void KMPlayerVCDSource::activate () {
TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
}
-KDE_NO_EXPORT void KMPlayerVCDSource::deactivate () {
+TDE_NO_EXPORT void KMPlayerVCDSource::deactivate () {
}
-KDE_NO_EXPORT void KMPlayerVCDSource::setIdentified (bool b) {
+TDE_NO_EXPORT void KMPlayerVCDSource::setIdentified (bool b) {
KMPlayer::Source::setIdentified (b);
if (!m_current || !m_document->hasChildNodes ())
m_current = m_document;
@@ -2178,7 +2178,7 @@ KDE_NO_EXPORT void KMPlayerVCDSource::setIdentified (bool b) {
m_app->slotStatusMsg (i18n ("Ready."));
}
-KDE_NO_EXPORT void KMPlayerVCDSource::buildArguments () {
+TDE_NO_EXPORT void KMPlayerVCDSource::buildArguments () {
TQString url ("vcd://");
if (m_current && m_current != m_document)
url += m_current->mrl ()->src;
@@ -2188,23 +2188,23 @@ KDE_NO_EXPORT void KMPlayerVCDSource::buildArguments () {
m_recordcmd = m_options;
}
-KDE_NO_EXPORT TQString KMPlayerVCDSource::prettyName () {
+TDE_NO_EXPORT TQString KMPlayerVCDSource::prettyName () {
return i18n ("VCD");
}
static const char * strPlayVCD = "Immediately Play VCD";
-KDE_NO_EXPORT void KMPlayerVCDSource::write (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerVCDSource::write (TDEConfig * config) {
config->setGroup (strMPlayerGroup);
config->writeEntry (strPlayVCD, m_auto_play);
}
-KDE_NO_EXPORT void KMPlayerVCDSource::read (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerVCDSource::read (TDEConfig * config) {
config->setGroup (strMPlayerGroup);
m_auto_play = config->readBoolEntry (strPlayVCD, true);
}
-KDE_NO_EXPORT void KMPlayerVCDSource::sync (bool fromUI) {
+TDE_NO_EXPORT void KMPlayerVCDSource::sync (bool fromUI) {
if (fromUI) {
m_auto_play = m_configpage->autoPlayVCD->isChecked ();
m_player->settings ()->vcddevice = m_configpage->vcddevice->lineEdit()->text ();
@@ -2214,13 +2214,13 @@ KDE_NO_EXPORT void KMPlayerVCDSource::sync (bool fromUI) {
}
}
-KDE_NO_EXPORT void KMPlayerVCDSource::prefLocation (TQString & item, TQString & icon, TQString & tab) {
+TDE_NO_EXPORT void KMPlayerVCDSource::prefLocation (TQString & item, TQString & icon, TQString & tab) {
item = i18n ("Source");
icon = TQString ("text-x-src");
tab = i18n ("VCD");
}
-KDE_NO_EXPORT TQFrame * KMPlayerVCDSource::prefPage (TQWidget * parent) {
+TDE_NO_EXPORT TQFrame * KMPlayerVCDSource::prefPage (TQWidget * parent) {
m_configpage = new KMPlayerPrefSourcePageVCD (parent);
return m_configpage;
}
@@ -2235,7 +2235,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerAudioCDSource::KMPlayerAudioCDSource (KMPlayerApp *
KDE_NO_CDTOR_EXPORT KMPlayerAudioCDSource::~KMPlayerAudioCDSource () {
}
-KDE_NO_EXPORT bool KMPlayerAudioCDSource::processOutput (const TQString & str) {
+TDE_NO_EXPORT bool KMPlayerAudioCDSource::processOutput (const TQString & str) {
if (KMPlayer::Source::processOutput (str))
return true;
if (m_identified)
@@ -2255,7 +2255,7 @@ KDE_NO_EXPORT bool KMPlayerAudioCDSource::processOutput (const TQString & str) {
return false;
}
-KDE_NO_EXPORT void KMPlayerAudioCDSource::activate () {
+TDE_NO_EXPORT void KMPlayerAudioCDSource::activate () {
m_player->stop ();
init ();
//m_start_play = m_auto_play;
@@ -2265,10 +2265,10 @@ KDE_NO_EXPORT void KMPlayerAudioCDSource::activate () {
TQTimer::singleShot (0, m_player, TQ_SLOT (play ()));
}
-KDE_NO_EXPORT void KMPlayerAudioCDSource::deactivate () {
+TDE_NO_EXPORT void KMPlayerAudioCDSource::deactivate () {
}
-KDE_NO_EXPORT void KMPlayerAudioCDSource::setIdentified (bool b) {
+TDE_NO_EXPORT void KMPlayerAudioCDSource::setIdentified (bool b) {
KMPlayer::Source::setIdentified (b);
if (!m_current || !m_document->hasChildNodes ())
m_current = m_document;
@@ -2283,7 +2283,7 @@ KDE_NO_EXPORT void KMPlayerAudioCDSource::setIdentified (bool b) {
m_app->slotStatusMsg (i18n ("Ready."));
}
-KDE_NO_EXPORT void KMPlayerAudioCDSource::buildArguments () {
+TDE_NO_EXPORT void KMPlayerAudioCDSource::buildArguments () {
TQString url ("cdda://");
if (m_current && m_current != m_document)
url += m_current->mrl ()->src;
@@ -2293,7 +2293,7 @@ KDE_NO_EXPORT void KMPlayerAudioCDSource::buildArguments () {
m_recordcmd = m_options;
}
-KDE_NO_EXPORT TQString KMPlayerAudioCDSource::prettyName () {
+TDE_NO_EXPORT TQString KMPlayerAudioCDSource::prettyName () {
return i18n ("Audio CD");
}
@@ -2306,15 +2306,15 @@ KDE_NO_CDTOR_EXPORT KMPlayerPipeSource::KMPlayerPipeSource (KMPlayerApp * a)
KDE_NO_CDTOR_EXPORT KMPlayerPipeSource::~KMPlayerPipeSource () {
}
-KDE_NO_EXPORT bool KMPlayerPipeSource::hasLength () {
+TDE_NO_EXPORT bool KMPlayerPipeSource::hasLength () {
return false;
}
-KDE_NO_EXPORT bool KMPlayerPipeSource::isSeekable () {
+TDE_NO_EXPORT bool KMPlayerPipeSource::isSeekable () {
return false;
}
-KDE_NO_EXPORT void KMPlayerPipeSource::activate () {
+TDE_NO_EXPORT void KMPlayerPipeSource::activate () {
// dangerous !! if (!m_url.protocol ().compare ("kmplayer"))
// m_pipecmd = KURL::decode_string (m_url.path ()).mid (1);
setURL (KURL ("stdin://"));
@@ -2328,14 +2328,14 @@ KDE_NO_EXPORT void KMPlayerPipeSource::activate () {
m_app->slotStatusMsg (i18n ("Ready."));
}
-KDE_NO_EXPORT void KMPlayerPipeSource::deactivate () {
+TDE_NO_EXPORT void KMPlayerPipeSource::deactivate () {
}
-KDE_NO_EXPORT TQString KMPlayerPipeSource::prettyName () {
+TDE_NO_EXPORT TQString KMPlayerPipeSource::prettyName () {
return i18n ("Pipe - %1").arg (m_pipecmd);
}
-KDE_NO_EXPORT void KMPlayerPipeSource::setCommand (const TQString & cmd) {
+TDE_NO_EXPORT void KMPlayerPipeSource::setCommand (const TQString & cmd) {
m_pipecmd = cmd;
if (m_document)
m_document->mrl ()->pretty_name = cmd;