summaryrefslogtreecommitdiffstats
path: root/juk/playlistbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'juk/playlistbox.h')
-rw-r--r--juk/playlistbox.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/juk/playlistbox.h b/juk/playlistbox.h
index 412ebb86..482f4771 100644
--- a/juk/playlistbox.h
+++ b/juk/playlistbox.h
@@ -20,7 +20,7 @@
#include <klistview.h>
-#include <qptrdict.h>
+#include <tqptrdict.h>
class Playlist;
class PlaylistItem;
@@ -31,7 +31,7 @@ class SearchPlaylist;
class KPopupMenu;
class KSelectAction;
-typedef QValueList<Playlist *> PlaylistList;
+typedef TQValueList<Playlist *> PlaylistList;
/**
* This is the play list selection box that is by default on the right side of
@@ -44,11 +44,11 @@ class PlaylistBox : public KListView, public PlaylistCollection
public:
class Item;
- typedef QValueList<Item *> ItemList;
+ typedef TQValueList<Item *> ItemList;
friend class Item;
- PlaylistBox(QWidget *parent, QWidgetStack *playlistStack,
+ PlaylistBox(TQWidget *parent, TQWidgetStack *playlistStack,
const char *name = 0);
virtual ~PlaylistBox();
@@ -65,7 +65,7 @@ public:
Item *dropItem() const { return m_dropItem; }
- void setupPlaylist(Playlist *playlist, const QString &iconName, Item *parentItem = 0);
+ void setupPlaylist(Playlist *playlist, const TQString &iconName, Item *parentItem = 0);
public slots:
void paste();
@@ -75,7 +75,7 @@ public slots:
void slotUnfreezePlaylists();
protected:
- virtual void setupPlaylist(Playlist *playlist, const QString &iconName);
+ virtual void setupPlaylist(Playlist *playlist, const TQString &iconName);
virtual void removePlaylist(Playlist *playlist);
signals:
@@ -85,17 +85,17 @@ private:
void readConfig();
void saveConfig();
- virtual void decode(QMimeSource *s, Item *item);
- virtual void contentsDropEvent(QDropEvent *e);
- virtual void contentsDragMoveEvent(QDragMoveEvent *e);
- virtual void contentsDragLeaveEvent(QDragLeaveEvent *e);
- virtual void contentsMousePressEvent(QMouseEvent *e);
- virtual void contentsMouseReleaseEvent(QMouseEvent *e);
- virtual void keyPressEvent(QKeyEvent *e);
- virtual void keyReleaseEvent(QKeyEvent *e);
+ virtual void decode(TQMimeSource *s, Item *item);
+ virtual void contentsDropEvent(TQDropEvent *e);
+ virtual void contentsDragMoveEvent(TQDragMoveEvent *e);
+ virtual void contentsDragLeaveEvent(TQDragLeaveEvent *e);
+ virtual void contentsMousePressEvent(TQMouseEvent *e);
+ virtual void contentsMouseReleaseEvent(TQMouseEvent *e);
+ virtual void keyPressEvent(TQKeyEvent *e);
+ virtual void keyReleaseEvent(TQKeyEvent *e);
- QValueList<Item *> selectedItems() const;
- void setSingleItem(QListViewItem *item);
+ TQValueList<Item *> selectedItems() const;
+ void setSingleItem(TQListViewItem *item);
void setupItem(Item *item);
void setupUpcomingPlaylist();
@@ -104,36 +104,36 @@ private:
private slots:
/**
- * Catches QListBox::currentChanged(QListBoxItem *), does a cast and then re-emits
+ * Catches TQListBox::currentChanged(TQListBoxItem *), does a cast and then re-emits
* the signal as currentChanged(Item *).
*/
void slotPlaylistChanged();
void slotDoubleClicked();
- void slotShowContextMenu(QListViewItem *, const QPoint &point, int);
+ void slotShowContextMenu(TQListViewItem *, const TQPoint &point, int);
void slotSetViewMode(int index);
void slotSavePlaylists();
void slotShowDropTarget();
void slotPlaylistItemsDropped(Playlist *p);
- void slotAddItem(const QString &tag, unsigned column);
- void slotRemoveItem(const QString &tag, unsigned column);
+ void slotAddItem(const TQString &tag, unsigned column);
+ void slotRemoveItem(const TQString &tag, unsigned column);
private:
KPopupMenu *m_contextMenu;
- QPtrDict<Item> m_playlistDict;
+ TQPtrDict<Item> m_playlistDict;
int m_viewModeIndex;
- QValueList<ViewMode *> m_viewModes;
+ TQValueList<ViewMode *> m_viewModes;
KAction *m_k3bAction;
bool m_hasSelection;
bool m_doingMultiSelect;
Item *m_dropItem;
- QTimer *m_showTimer;
+ TQTimer *m_showTimer;
};
-class PlaylistBox::Item : public QObject, public KListViewItem
+class PlaylistBox::Item : public TQObject, public KListViewItem
{
friend class PlaylistBox;
friend class ViewMode;
@@ -142,7 +142,7 @@ class PlaylistBox::Item : public QObject, public KListViewItem
Q_OBJECT
- // moc won't let me create private QObject subclasses and Qt won't let me
+ // moc won't let me create private TQObject subclasses and Qt won't let me
// make the destructor protected, so here's the closest hack that will
// compile.
@@ -150,21 +150,21 @@ public:
virtual ~Item();
protected:
- Item(PlaylistBox *listBox, const QString &icon, const QString &text, Playlist *l = 0);
- Item(Item *parent, const QString &icon, const QString &text, Playlist *l = 0);
+ Item(PlaylistBox *listBox, const TQString &icon, const TQString &text, Playlist *l = 0);
+ Item(Item *parent, const TQString &icon, const TQString &text, Playlist *l = 0);
Playlist *playlist() const { return m_playlist; }
PlaylistBox *listView() const { return static_cast<PlaylistBox *>(KListViewItem::listView()); }
- QString iconName() const { return m_iconName; }
- QString text() const { return m_text; }
+ TQString iconName() const { return m_iconName; }
+ TQString text() const { return m_text; }
void setSortedFirst(bool first = true) { m_sortedFirst = first; }
- virtual int compare(QListViewItem *i, int col, bool) const;
- virtual void paintCell(QPainter *p, const QColorGroup &colorGroup, int column, int width, int align);
- virtual void paintFocus(QPainter *, const QColorGroup &, const QRect &) {}
- virtual void setText(int column, const QString &text);
+ virtual int compare(TQListViewItem *i, int col, bool) const;
+ virtual void paintCell(TQPainter *p, const TQColorGroup &colorGroup, int column, int width, int align);
+ virtual void paintFocus(TQPainter *, const TQColorGroup &, const TQRect &) {}
+ virtual void setText(int column, const TQString &text);
- virtual QString text(int column) const { return KListViewItem::text(column); }
+ virtual TQString text(int column) const { return KListViewItem::text(column); }
virtual void setup();
@@ -173,15 +173,15 @@ protected:
protected slots:
- void slotSetName(const QString &name);
+ void slotSetName(const TQString &name);
private:
// setup() was already taken.
void init();
Playlist *m_playlist;
- QString m_text;
- QString m_iconName;
+ TQString m_text;
+ TQString m_iconName;
bool m_sortedFirst;
static Item *m_collectionItem;
};