summaryrefslogtreecommitdiffstats
path: root/src/playlistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlistview.h')
-rw-r--r--src/playlistview.h91
1 files changed, 46 insertions, 45 deletions
diff --git a/src/playlistview.h b/src/playlistview.h
index c7dbcd8..559e090 100644
--- a/src/playlistview.h
+++ b/src/playlistview.h
@@ -27,30 +27,30 @@
#include "kmplayerplaylist.h"
-class QFont;
-class QPixmap;
-class QPainter;
-class QPopupMenu;
-class QDropEvent;
+class TQFont;
+class TQPixmap;
+class TQPainter;
+class TQPopupMenu;
+class TQDropEvent;
namespace KMPlayer {
class View;
class PlayListView;
-bool isDragValid (QDropEvent * de) KMPLAYER_NO_MBR_EXPORT;
+bool isDragValid (TQDropEvent * de) KMPLAYER_NO_MBR_EXPORT;
/*
* An item in the playlist
*/
-class KMPLAYER_NO_EXPORT PlayListItem : public QListViewItem {
+class KMPLAYER_NO_EXPORT PlayListItem : public TQListViewItem {
public:
- PlayListItem (QListViewItem *p, const NodePtr & e, PlayListView * lv);
- PlayListItem (QListViewItem *p, const AttributePtr & e, PlayListView * lv);
- PlayListItem (PlayListView *v, const NodePtr & d, QListViewItem * b);
+ PlayListItem (TQListViewItem *p, const NodePtr & e, PlayListView * lv);
+ PlayListItem (TQListViewItem *p, const AttributePtr & e, PlayListView * lv);
+ PlayListItem (PlayListView *v, const NodePtr & d, TQListViewItem * b);
KDE_NO_CDTOR_EXPORT ~PlayListItem () {}
- void paintCell (QPainter * p, const QColorGroup & cg, int column, int width, int align);
- void paintBranches(QPainter *p, const QColorGroup &cg, int w, int y, int h);
+ void paintCell (TQPainter * p, const TQColorGroup & cg, int column, int width, int align);
+ void paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, int h);
PlayListView * playListView () const;
NodePtrW node;
AttributePtrW m_attr;
@@ -61,11 +61,11 @@ protected:
class KMPLAYER_NO_EXPORT RootPlayListItem : public PlayListItem {
public:
- RootPlayListItem (int id, PlayListView *v, const NodePtr & d, QListViewItem * b, int flags);
+ RootPlayListItem (int id, PlayListView *v, const NodePtr & d, TQListViewItem * b, int flags);
KDE_NO_CDTOR_EXPORT ~RootPlayListItem () {}
- void paintCell (QPainter * p, const QColorGroup & cg, int column, int width, int align);
- QString source;
- QString icon;
+ void paintCell (TQPainter * p, const TQColorGroup & cg, int column, int width, int align);
+ TQString source;
+ TQString icon;
int id;
int flags;
bool show_all_nodes;
@@ -77,45 +77,46 @@ public:
*/
class KMPLAYER_EXPORT PlayListView : public KListView {
Q_OBJECT
+ TQ_OBJECT
public:
enum Flags {
AllowDrops = 0x01, AllowDrag = 0x02,
InPlaceEdit = 0x04, TreeEdit = 0x08,
Moveable = 0x10, Deleteable = 0x20
};
- PlayListView (QWidget * parent, View * view, KActionCollection * ac);
+ PlayListView (TQWidget * tqparent, View * view, KActionCollection * ac);
~PlayListView ();
- void selectItem (const QString & txt);
+ void selectItem (const TQString & txt);
void showAllNodes (RootPlayListItem *, bool show=true);
- void setActiveForegroundColor (const QColor & c) { m_active_color = c; }
- const QColor & activeColor () const { return m_active_color; }
- int addTree (NodePtr r, const QString & src, const QString & ico, int flgs);
- RootPlayListItem * rootItem (QListViewItem * item) const;
+ void setActiveForegroundColor (const TQColor & c) { m_active_color = c; }
+ const TQColor & activeColor () const { return m_active_color; }
+ int addTree (NodePtr r, const TQString & src, const TQString & ico, int flgs);
+ RootPlayListItem * rootItem (TQListViewItem * item) const;
RootPlayListItem * rootItem (int id) const;
- void setFont (const QFont &);
+ void setFont (const TQFont &);
PlayListItem * currentPlayListItem () const;
PlayListItem * selectedPlayListItem () const;
NodePtr lastDragNode () const { return m_last_drag; }
int lastDragTreeId () const { return last_drag_tree_id; }
signals:
- void addBookMark (const QString & title, const QString & url);
- void prepareMenu (KMPlayer::PlayListItem * item, QPopupMenu * menu);
+ void addBookMark (const TQString & title, const TQString & url);
+ void prepareMenu (KMPlayer::PlayListItem * item, TQPopupMenu * menu);
protected:
- bool acceptDrag (QDropEvent* event) const;
- QDragObject * dragObject ();
+ bool acceptDrag (TQDropEvent* event) const;
+ TQDragObject * dragObject ();
public slots:
void editCurrent ();
- void rename (QListViewItem * item, int c);
+ void rename (TQListViewItem * item, int c);
void updateTree (int id, NodePtr root, NodePtr active, bool sel, bool open);
private slots:
- void contextMenuItem (QListViewItem *, const QPoint &, int);
- void itemExpanded (QListViewItem *);
+ void contextMenuItem (TQListViewItem *, const TQPoint &, int);
+ void itemExpanded (TQListViewItem *);
void copyToClipboard ();
void addBookMark ();
void toggleShowAllNodes ();
- void itemDropped (QDropEvent * e, QListViewItem * after);
- void itemIsRenamed (QListViewItem * item);
- void itemIsSelected (QListViewItem * item);
+ void itemDropped (TQDropEvent * e, TQListViewItem * after);
+ void itemIsRenamed (TQListViewItem * item);
+ void itemIsSelected (TQListViewItem * item);
void updateTrees ();
void slotFind ();
void slotFindOk ();
@@ -134,20 +135,20 @@ private:
};
SharedPtr <TreeUpdate> tree_update;
View * m_view;
- QPopupMenu * m_itemmenu;
- KAction * m_find;
+ TQPopupMenu * m_itemmenu;
+ KAction * m_tqfind;
KAction * m_find_next;
KFindDialog * m_find_dialog;
- QPixmap folder_pix;
- QPixmap auxiliary_pix;
- QPixmap video_pix;
- QPixmap unknown_pix;
- QPixmap menu_pix;
- QPixmap config_pix;
- QPixmap url_pix;
- QPixmap info_pix;
- QPixmap img_pix;
- QColor m_active_color;
+ TQPixmap folder_pix;
+ TQPixmap auxiliary_pix;
+ TQPixmap video_pix;
+ TQPixmap unknown_pix;
+ TQPixmap menu_pix;
+ TQPixmap config_pix;
+ TQPixmap url_pix;
+ TQPixmap info_pix;
+ TQPixmap img_pix;
+ TQColor m_active_color;
NodePtrW m_current_find_elm;
NodePtrW m_last_drag;
AttributePtrW m_current_find_attr;