summaryrefslogtreecommitdiffstats
path: root/src/playlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlistview.cpp')
-rw-r--r--src/playlistview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/playlistview.cpp b/src/playlistview.cpp
index 95b0c85..c310491 100644
--- a/src/playlistview.cpp
+++ b/src/playlistview.cpp
@@ -48,7 +48,7 @@ using namespace KMPlayer;
namespace KMPlayer {
- KDE_NO_EXPORT bool isDragValid (TQDropEvent * de) {
+ TDE_NO_EXPORT bool isDragValid (TQDropEvent * de) {
if (KURLDrag::canDecode (de))
return true;
if (TQTextDrag::canDecode (de)) {
@@ -163,7 +163,7 @@ int PlayListView::addTree (NodePtr root, const TQString & source, const TQString
return last_id;
}
-KDE_NO_EXPORT PlayListItem * PlayListView::populate
+TDE_NO_EXPORT PlayListItem * PlayListView::populate
(NodePtr e, NodePtr focus, RootPlayListItem *root, PlayListItem * pitem, PlayListItem ** curitem) {
root->have_dark_nodes |= !e->expose ();
if (pitem && !root->show_all_nodes && !e->expose ()) {
@@ -280,7 +280,7 @@ void PlayListView::updateTree (int id, NodePtr root, NodePtr active,
TQTimer::singleShot (0, this, TQ_SLOT (updateTrees ()));
}
-KDE_NO_EXPORT void PlayListView::updateTrees () {
+TDE_NO_EXPORT void PlayListView::updateTrees () {
for (; tree_update; tree_update = tree_update->next) {
updateTree (tree_update->root_item, tree_update->node, tree_update->select);
if (tree_update->open) // FIXME for non-root nodes lazy loading
@@ -319,7 +319,7 @@ void PlayListView::selectItem (const TQString & txt) {
}
}
-KDE_NO_EXPORT TQDragObject * PlayListView::dragObject () {
+TDE_NO_EXPORT TQDragObject * PlayListView::dragObject () {
PlayListItem * item = static_cast <PlayListItem *> (selectedItem ());
if (item && item->node) {
TQString txt = item->node->isPlayable ()
@@ -335,12 +335,12 @@ KDE_NO_EXPORT TQDragObject * PlayListView::dragObject () {
return 0;
}
-KDE_NO_EXPORT void PlayListView::setFont (const TQFont & fnt) {
+TDE_NO_EXPORT void PlayListView::setFont (const TQFont & fnt) {
setTreeStepSize (TQFontMetrics (fnt).boundingRect ('m').width ());
TDEListView::setFont (fnt);
}
-KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQPoint & p, int) {
+TDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQPoint & p, int) {
if (vi) {
PlayListItem * item = static_cast <PlayListItem *> (vi);
if (item->node || item->m_attr) {
@@ -430,7 +430,7 @@ void PlayListView::toggleShowAllNodes () {
}
}
-KDE_NO_EXPORT void PlayListView::showAllNodes(RootPlayListItem *ri, bool show) {
+TDE_NO_EXPORT void PlayListView::showAllNodes(RootPlayListItem *ri, bool show) {
if (ri && ri->show_all_nodes != show) {
PlayListItem * cur_item = currentPlayListItem ();
ri->show_all_nodes = show;
@@ -445,7 +445,7 @@ KDE_NO_EXPORT void PlayListView::showAllNodes(RootPlayListItem *ri, bool show) {
}
}
-KDE_NO_EXPORT bool PlayListView::acceptDrag (TQDropEvent * de) const {
+TDE_NO_EXPORT bool PlayListView::acceptDrag (TQDropEvent * de) const {
TQListViewItem * item = itemAt (contentsToViewport (de->pos ()));
if (item && (de->source () == this || isDragValid (de))) {
RootPlayListItem * ritem = rootItem (item);
@@ -454,7 +454,7 @@ KDE_NO_EXPORT bool PlayListView::acceptDrag (TQDropEvent * de) const {
return false;
}
-KDE_NO_EXPORT void PlayListView::itemDropped (TQDropEvent * de, TQListViewItem *after) {
+TDE_NO_EXPORT void PlayListView::itemDropped (TQDropEvent * de, TQListViewItem *after) {
if (!after) { // could still be a descendent
after = itemAt (contentsToViewport (de->pos ()));
if (after)
@@ -494,7 +494,7 @@ KDE_NO_EXPORT void PlayListView::itemDropped (TQDropEvent * de, TQListViewItem *
m_view->dropEvent (de);
}
-KDE_NO_EXPORT void PlayListView::itemIsRenamed (TQListViewItem * qitem) {
+TDE_NO_EXPORT void PlayListView::itemIsRenamed (TQListViewItem * qitem) {
PlayListItem * item = static_cast <PlayListItem *> (qitem);
if (item->node) {
RootPlayListItem * ri = rootItem (qitem);
@@ -520,12 +520,12 @@ KDE_NO_EXPORT void PlayListView::itemIsRenamed (TQListViewItem * qitem) {
}
}
-KDE_NO_EXPORT void PlayListView::itemIsSelected (TQListViewItem * qitem) {
+TDE_NO_EXPORT void PlayListView::itemIsSelected (TQListViewItem * qitem) {
RootPlayListItem * ri = rootItem (qitem);
setItemsRenameable (ri && (ri->flags & TreeEdit) && ri != qitem);
}
-KDE_NO_EXPORT void PlayListView::rename (TQListViewItem * qitem, int c) {
+TDE_NO_EXPORT void PlayListView::rename (TQListViewItem * qitem, int c) {
PlayListItem * item = static_cast <PlayListItem *> (qitem);
if (rootItem (qitem)->show_all_nodes && item && item->m_attr) {
PlayListItem * pi = static_cast <PlayListItem *> (qitem->parent ());
@@ -541,7 +541,7 @@ KDE_NO_EXPORT void PlayListView::rename (TQListViewItem * qitem, int c) {
}
}
-KDE_NO_EXPORT void PlayListView::editCurrent () {
+TDE_NO_EXPORT void PlayListView::editCurrent () {
TQListViewItem * qitem = selectedItem ();
if (qitem) {
RootPlayListItem * ri = rootItem (qitem);
@@ -550,7 +550,7 @@ KDE_NO_EXPORT void PlayListView::editCurrent () {
}
}
-KDE_NO_EXPORT void PlayListView::slotFind () {
+TDE_NO_EXPORT void PlayListView::slotFind () {
m_current_find_elm = 0L;
if (!m_find_dialog) {
m_find_dialog = new KFindDialog (false, this, "kde_kmplayer_find", KFindDialog::CaseSensitive);
@@ -578,7 +578,7 @@ static TQListViewItem * findNodeInTree (NodePtr n, TQListViewItem * item) {
}
-KDE_NO_EXPORT void PlayListView::slotFindOk () {
+TDE_NO_EXPORT void PlayListView::slotFindOk () {
if (!m_find_dialog)
return;
m_find_dialog->hide ();
@@ -610,7 +610,7 @@ KDE_NO_EXPORT void PlayListView::slotFindOk () {
/* A bit tricky, but between the find's PlayListItems might be gone, so
* try to match on the generated tree following the source's document tree
*/
-KDE_NO_EXPORT void PlayListView::slotFindNext () {
+TDE_NO_EXPORT void PlayListView::slotFindNext () {
if (!m_find_dialog)
return;
TQString str = m_find_dialog->pattern();