diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 06:10:56 +0000 |
commit | 769e63d24adf5c844137484f06a972fcce732d6a (patch) | |
tree | 5185797dcb3ff4b1b3cb71d367123bf89eb2410f /src/kmplayer.h | |
parent | 0a8af92185eac74d48da1225e6053a0d66c078f5 (diff) | |
download | kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.tar.gz kmplayer-769e63d24adf5c844137484f06a972fcce732d6a.zip |
TQt4 port kmplayer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1238840 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kmplayer.h')
-rw-r--r-- | src/kmplayer.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/src/kmplayer.h b/src/kmplayer.h index f2faa92..fc76d36 100644 --- a/src/kmplayer.h +++ b/src/kmplayer.h @@ -33,9 +33,9 @@ static const int id_status_msg = 1; static const int id_status_timer = 2; -class QPopupMenu; -class QMenuItem; -class QListViewItem; +class TQPopupMenu; +class TQMenuItem; +class TQListViewItem; class KProcess; class KMPlayerBroadcastConfig; class KMPlayerFFServerConfig; @@ -58,9 +58,10 @@ namespace KMPlayer { class KMPlayerApp : public KMainWindow { Q_OBJECT + TQ_OBJECT public: - KMPlayerApp (QWidget* parent=0, const char* name=0); + KMPlayerApp (TQWidget* tqparent=0, const char* name=0); ~KMPlayerApp (); void openDocumentFile (const KURL& url=KURL()); void addURL (const KURL& url); @@ -97,7 +98,7 @@ public slots: void slotViewToolBar (); void slotViewStatusBar (); void slotViewMenuBar (); - void slotStatusMsg (const QString &text); + void slotStatusMsg (const TQString &text); void slotSourceChanged (KMPlayer::Source *, KMPlayer::Source *); private slots: void dvdNav (); @@ -126,8 +127,8 @@ private slots: void slotConfigureToolbars (); void slotClearHistory (); void windowVideoConsoleToggled (int wt); - void playListItemSelected (QListViewItem *); - void playListItemDropped (QDropEvent * e, QListViewItem * after); + void playListItemSelected (TQListViewItem *); + void playListItemDropped (TQDropEvent * e, TQListViewItem * after); void playListItemMoved (); void menuDropInList (); void menuDropInGroup (); @@ -135,10 +136,10 @@ private slots: void menuDeleteNode (); void menuMoveUpNode (); void menuMoveDownNode (); - void preparePlaylistMenu (KMPlayer::PlayListItem *, QPopupMenu *); + void preparePlaylistMenu (KMPlayer::PlayListItem *, TQPopupMenu *); private: - void menuItemClicked (QPopupMenu * menu, int id); + void menuItemClicked (TQPopupMenu * menu, int id); void minimalMode (bool deco=true); KConfig * config; KSystemTray * m_systray; @@ -167,18 +168,18 @@ private: KToggleAction * viewStatusBar; KToggleAction * viewMenuBar; KToggleAction * viewKeepRatio; - QMenuItem * m_sourcemenu; - QPopupMenu * m_dvdmenu; - QPopupMenu * m_dvdnavmenu; - QPopupMenu * m_vcdmenu; - QPopupMenu * m_audiocdmenu; - QPopupMenu * m_tvmenu; - QPopupMenu * m_dropmenu; + TQMenuItem * m_sourcemenu; + TQPopupMenu * m_dvdmenu; + TQPopupMenu * m_dvdnavmenu; + TQPopupMenu * m_vcdmenu; + TQPopupMenu * m_audiocdmenu; + TQPopupMenu * m_tvmenu; + TQPopupMenu * m_dropmenu; KMPlayerFFServerConfig * m_ffserverconfig; KMPlayerBroadcastConfig * m_broadcastconfig; - QCString m_dcopName; + TQCString m_dcopName; KURL::List m_drop_list; - QListViewItem * m_drop_after; + TQListViewItem * m_drop_after; int edit_tree_id; int manip_tree_id; int last_time_left; @@ -195,10 +196,10 @@ private: class KMPLAYER_NO_EXPORT FileDocument : public KMPlayer::Document { public: - FileDocument (short id, const QString &, KMPlayer::PlayListNotify * notify = 0L); - KMPlayer::NodePtr childFromTag (const QString & tag); - void readFromFile (const QString & file); - void writeToFile (const QString & file); + FileDocument (short id, const TQString &, KMPlayer::PlayListNotify * notify = 0L); + KMPlayer::NodePtr childFromTag (const TQString & tag); + void readFromFile (const TQString & file); + void writeToFile (const TQString & file); }; #endif // KMPLAYER_H |