Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 11 years ago
parent 9a053bb416
commit 0308f79447

@ -163,7 +163,7 @@ Changes since version 0.9.1
source very fast (eg. when having, and using, a shortcut for VDR directly) source very fast (eg. when having, and using, a shortcut for VDR directly)
- Remove hardcode Esc shortcut to escape fullscreen mode, it clashes with - Remove hardcode Esc shortcut to escape fullscreen mode, it clashes with
canceling playlist editing canceling playlist editing
- Workaround bug in KListView when clearing the playlist while it's editing - Workaround bug in TDEListView when clearing the playlist while it's editing
an item, by clearing Focus on any child widget. Also move focus back to an item, by clearing Focus on any child widget. Also move focus back to
ViewArea when an item is executed ViewArea when an item is executed
Changes since version 0.9.1-rc1 Changes since version 0.9.1-rc1
@ -186,7 +186,7 @@ Changes since version 0.9.1-pre3
left as well. left as well.
- Add OBJECT's attributes coming from tdehtml to the document of urlsource, that - Add OBJECT's attributes coming from tdehtml to the document of urlsource, that
might be helpful for web developers (using the 'Show all' feature of playlist) might be helpful for web developers (using the 'Show all' feature of playlist)
- Add KAction for showing the control or language popup menu - Add TDEAction for showing the control or language popup menu
- Put colors and font settings on a separate tab, reducing total config - Put colors and font settings on a separate tab, reducing total config
dialog dimensions dialog dimensions
- Fix restoring playlist causing flashing on screen after intro animation - Fix restoring playlist causing flashing on screen after intro animation

@ -5,7 +5,7 @@
*/ */
// Create main view // Create main view
var mw = new KMainWindow(); var mw = new TDEMainWindow();
var box = new QVBox( mw ); var box = new QVBox( mw );
mw.setCentralWidget(box); mw.setCentralWidget(box);

@ -55,7 +55,7 @@ namespace KMPlayer {
} // namespace } // namespace
class KMPlayerApp : public KMainWindow class KMPlayerApp : public TDEMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -67,7 +67,7 @@ public:
void addURL (const KURL& url); void addURL (const KURL& url);
KMPlayer::PartBase * player () const { return m_player; } KMPlayer::PartBase * player () const { return m_player; }
void resizePlayer (int percentage); void resizePlayer (int percentage);
KDE_NO_EXPORT KRecentFilesAction * recentFiles () const { return fileOpenRecent; } KDE_NO_EXPORT TDERecentFilesAction * recentFiles () const { return fileOpenRecent; }
KDE_NO_EXPORT KMPlayer::View *view () const { return m_view; } KDE_NO_EXPORT KMPlayer::View *view () const { return m_view; }
bool broadcasting () const; bool broadcasting () const;
void showBroadcastConfig (); void showBroadcastConfig ();
@ -152,25 +152,25 @@ private:
KMPlayer::NodePtr playlist; KMPlayer::NodePtr playlist;
KMPlayer::NodePtrW manip_node; KMPlayer::NodePtrW manip_node;
KAction * fileNewWindow; TDEAction * fileNewWindow;
KAction * fileOpen; TDEAction * fileOpen;
KRecentFilesAction * fileOpenRecent; TDERecentFilesAction * fileOpenRecent;
KAction * fileClose; TDEAction * fileClose;
KAction * fileQuit; TDEAction * fileQuit;
KAction * editVolumeInc; TDEAction * editVolumeInc;
KAction * editVolumeDec; TDEAction * editVolumeDec;
KAction * toggleView; TDEAction * toggleView;
KAction * viewSyncEditMode; TDEAction * viewSyncEditMode;
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
KToggleAction * viewFullscreen; TDEToggleAction * viewFullscreen;
#else #else
KAction * viewFullscreen; TDEAction * viewFullscreen;
#endif #endif
KToggleAction * viewEditMode; TDEToggleAction * viewEditMode;
KToggleAction * viewToolBar; TDEToggleAction * viewToolBar;
KToggleAction * viewStatusBar; TDEToggleAction * viewStatusBar;
KToggleAction * viewMenuBar; TDEToggleAction * viewMenuBar;
KToggleAction * viewKeepRatio; TDEToggleAction * viewKeepRatio;
TQMenuItem * m_sourcemenu; TQMenuItem * m_sourcemenu;
TQPopupMenu * m_dvdmenu; TQPopupMenu * m_dvdmenu;
TQPopupMenu * m_dvdnavmenu; TQPopupMenu * m_dvdnavmenu;

@ -160,11 +160,11 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wparent, const char *
m_browserextension, m_browserextension,
TQT_SLOT (slotRequestOpenURL (const KURL &, const TQString &))); TQT_SLOT (slotRequestOpenURL (const KURL &, const TQString &)));
#endif #endif
/*KAction *playact =*/ new KAction(i18n("P&lay"), TQString ("player_play"), KShortcut (), this, TQT_SLOT(play ()), actionCollection (), "play"); /*TDEAction *playact =*/ new TDEAction(i18n("P&lay"), TQString ("player_play"), TDEShortcut (), this, TQT_SLOT(play ()), actionCollection (), "play");
/*KAction *pauseact =*/ new KAction(i18n("&Pause"), TQString ("player_pause"), KShortcut (), this, TQT_SLOT(pause ()), actionCollection (), "pause"); /*TDEAction *pauseact =*/ new TDEAction(i18n("&Pause"), TQString ("player_pause"), TDEShortcut (), this, TQT_SLOT(pause ()), actionCollection (), "pause");
/*KAction *stopact =*/ new KAction(i18n("&Stop"), TQString ("player_stop"), KShortcut (), this, TQT_SLOT(stop ()), actionCollection (), "stop"); /*TDEAction *stopact =*/ new TDEAction(i18n("&Stop"), TQString ("player_stop"), TDEShortcut (), this, TQT_SLOT(stop ()), actionCollection (), "stop");
new KAction (i18n ("Increase Volume"), TQString ("player_volume"), KShortcut (), this, TQT_SLOT (increaseVolume ()), actionCollection (), "edit_volume_up"); new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (increaseVolume ()), actionCollection (), "edit_volume_up");
new KAction (i18n ("Decrease Volume"), TQString ("player_volume"), KShortcut (), this, TQT_SLOT (decreaseVolume ()), actionCollection (), "edit_volume_down"); new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), this, TQT_SLOT (decreaseVolume ()), actionCollection (), "edit_volume_down");
Source * urlsource = m_sources ["urlsource"]; Source * urlsource = m_sources ["urlsource"];
KMPlayer::ControlPanel * panel = m_view->controlPanel (); KMPlayer::ControlPanel * panel = m_view->controlPanel ();
TQStringList::const_iterator it = args.begin (); TQStringList::const_iterator it = args.begin ();

@ -497,7 +497,7 @@ KDE_NO_EXPORT KMPlayer::NodePtr HtmlObject::childFromTag (const TQString & tag)
} }
KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name) KDE_NO_CDTOR_EXPORT KMPlayerApp::KMPlayerApp(TQWidget* , const char* name)
: KMainWindow(0, name), : TDEMainWindow(0, name),
config (kapp->config ()), config (kapp->config ()),
m_systray (0L), m_systray (0L),
m_player (new KMPlayer::PartBase (this, 0L, 0L, 0L, config)), m_player (new KMPlayer::PartBase (this, 0L, 0L, 0L, config)),
@ -573,46 +573,46 @@ KDE_NO_CDTOR_EXPORT KMPlayerApp::~KMPlayerApp () {
KDE_NO_EXPORT void KMPlayerApp::initActions () { KDE_NO_EXPORT void KMPlayerApp::initActions () {
KActionCollection * ac = actionCollection (); TDEActionCollection * ac = actionCollection ();
fileNewWindow = new KAction(i18n("New &Window"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileNewWindow()), ac, "new_window"); fileNewWindow = new TDEAction(i18n("New &Window"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(slotFileNewWindow()), ac, "new_window");
fileOpen = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpen()), ac, "open"); fileOpen = KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpen()), ac, "open");
fileOpenRecent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent"); fileOpenRecent = KStdAction::openRecent(TQT_TQOBJECT(this), TQT_SLOT(slotFileOpenRecent(const KURL&)), ac, "open_recent");
KStdAction::saveAs (TQT_TQOBJECT(this), TQT_SLOT (slotSaveAs ()), ac, "save_as"); KStdAction::saveAs (TQT_TQOBJECT(this), TQT_SLOT (slotSaveAs ()), ac, "save_as");
new KAction (i18n ("Clear &History"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (slotClearHistory ()), ac, "clear_history"); new TDEAction (i18n ("Clear &History"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (slotClearHistory ()), ac, "clear_history");
fileClose = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT (slotFileClose ()), ac); fileClose = KStdAction::close (TQT_TQOBJECT(this), TQT_SLOT (slotFileClose ()), ac);
fileQuit = KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT (slotFileQuit ()), ac); fileQuit = KStdAction::quit (TQT_TQOBJECT(this), TQT_SLOT (slotFileQuit ()), ac);
new KAction (i18n ("&Open DVD"), TQString ("dvd_mount"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openDVD ()), ac, "opendvd"); new TDEAction (i18n ("&Open DVD"), TQString ("dvd_mount"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openDVD ()), ac, "opendvd");
new KAction (i18n ("&Open VCD"), TQString ("cdrom_mount"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openVCD ()), ac, "openvcd"); new TDEAction (i18n ("&Open VCD"), TQString ("cdrom_mount"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openVCD ()), ac, "openvcd");
new KAction (i18n ("&Open Audio CD"), TQString ("cdrom_mount"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openAudioCD ()), ac, "openaudiocd"); new TDEAction (i18n ("&Open Audio CD"), TQString ("cdrom_mount"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openAudioCD ()), ac, "openaudiocd");
new KAction (i18n ("&Open Pipe..."), TQString ("pipe"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openPipe ()), ac, "source_pipe"); new TDEAction (i18n ("&Open Pipe..."), TQString ("pipe"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT(openPipe ()), ac, "source_pipe");
//TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), KIcon::Small, 0,true) //TDEGlobal::iconLoader ()->loadIconSet (TQString ("tv"), KIcon::Small, 0,true)
new KAction (i18n ("&Connect"), TQString ("connect_established"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (openVDR ()), ac, "vdr_connect"); new TDEAction (i18n ("&Connect"), TQString ("connect_established"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (openVDR ()), ac, "vdr_connect");
editVolumeInc = new KAction (i18n ("Increase Volume"), TQString ("player_volume"), KShortcut (), m_player, TQT_SLOT (increaseVolume ()), ac, "edit_volume_up"); editVolumeInc = new TDEAction (i18n ("Increase Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQT_SLOT (increaseVolume ()), ac, "edit_volume_up");
editVolumeDec = new KAction (i18n ("Decrease Volume"), TQString ("player_volume"), KShortcut (), m_player, TQT_SLOT(decreaseVolume ()), ac, "edit_volume_down"); editVolumeDec = new TDEAction (i18n ("Decrease Volume"), TQString ("player_volume"), TDEShortcut (), m_player, TQT_SLOT(decreaseVolume ()), ac, "edit_volume_down");
toggleView = new KAction (i18n ("C&onsole"), TQString ("konsole"), KShortcut (), TQT_TQOBJECT(m_player->view()), TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video"); toggleView = new TDEAction (i18n ("C&onsole"), TQString ("konsole"), TDEShortcut (), TQT_TQOBJECT(m_player->view()), TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
//new KAction (i18n ("V&ideo"), TQString ("video"), KShortcut (), m_view, TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video"); //new TDEAction (i18n ("V&ideo"), TQString ("video"), TDEShortcut (), m_view, TQT_SLOT (toggleVideoConsoleWindow ()), ac, "view_video");
new KAction (i18n ("Pla&y List"), TQString ("player_playlist"), KShortcut (), m_player, TQT_SLOT (showPlayListWindow ()), ac, "view_playlist"); new TDEAction (i18n ("Pla&y List"), TQString ("player_playlist"), TDEShortcut (), m_player, TQT_SLOT (showPlayListWindow ()), ac, "view_playlist");
new KAction (i18n ("Minimal mode"), TQString ("empty"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()), ac, "view_minimal"); new TDEAction (i18n ("Minimal mode"), TQString ("empty"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (slotMinimalMode ()), ac, "view_minimal");
new KAction (i18n ("50%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom50 ()), ac, "view_zoom_50"); new TDEAction (i18n ("50%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom50 ()), ac, "view_zoom_50");
new KAction (i18n ("100%"), TQString ("viewmagfit"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom100 ()), ac, "view_zoom_100"); new TDEAction (i18n ("100%"), TQString ("viewmagfit"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom100 ()), ac, "view_zoom_100");
new KAction (i18n ("150%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom150 ()), ac, "view_zoom_150"); new TDEAction (i18n ("150%"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (zoom150 ()), ac, "view_zoom_150");
new KAction (i18n ("200%"), 0, KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom200 ()), ac, "view_zoom_200"); new TDEAction (i18n ("200%"), 0, TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom200 ()), ac, "view_zoom_200");
new KAction (i18n ("300%"), 0, KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom300 ()), ac, "view_zoom_300"); new TDEAction (i18n ("300%"), 0, TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (zoom300 ()), ac, "view_zoom_300");
viewEditMode = new KToggleAction (i18n ("&Edit mode"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (editMode ()), ac, "edit_mode"); viewEditMode = new TDEToggleAction (i18n ("&Edit mode"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT (editMode ()), ac, "edit_mode");
viewSyncEditMode = new KAction (i18n ("Sync &with playlist"), TQString ("reload"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (syncEditMode ()), ac, "sync_edit_mode"); viewSyncEditMode = new TDEAction (i18n ("Sync &with playlist"), TQString ("reload"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (syncEditMode ()), ac, "sync_edit_mode");
viewSyncEditMode->setEnabled (false); viewSyncEditMode->setEnabled (false);
new KAction (i18n ("Show Popup Menu"), KShortcut (), TQT_TQOBJECT(m_view->controlPanel ()), TQT_SLOT (showPopupMenu ()), ac, "view_show_popup_menu"); new TDEAction (i18n ("Show Popup Menu"), TDEShortcut (), TQT_TQOBJECT(m_view->controlPanel ()), TQT_SLOT (showPopupMenu ()), ac, "view_show_popup_menu");
new KAction (i18n ("Show Language Menu"), KShortcut (TQt::Key_L), TQT_TQOBJECT(m_view->controlPanel ()), TQT_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu"); new TDEAction (i18n ("Show Language Menu"), TDEShortcut (TQt::Key_L), TQT_TQOBJECT(m_view->controlPanel ()), TQT_SLOT (showLanguageMenu ()), ac, "view_show_lang_menu");
viewKeepRatio = new KToggleAction (i18n ("&Keep Width/Height Ratio"), 0, TQT_TQOBJECT(this), TQT_SLOT (keepSizeRatio ()), ac, "view_keep_ratio"); viewKeepRatio = new TDEToggleAction (i18n ("&Keep Width/Height Ratio"), 0, TQT_TQOBJECT(this), TQT_SLOT (keepSizeRatio ()), ac, "view_keep_ratio");
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
viewFullscreen = KStdAction::fullScreen (TQT_TQOBJECT(this), TQT_SLOT(fullScreen ()), ac, 0, "view_fullscreen"); viewFullscreen = KStdAction::fullScreen (TQT_TQOBJECT(this), TQT_SLOT(fullScreen ()), ac, 0, "view_fullscreen");
#else #else
viewFullscreen = new KAction (i18n("&Full Screen"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(fullScreen ()), ac, "view_fullscreen"); viewFullscreen = new TDEAction (i18n("&Full Screen"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(fullScreen ()), ac, "view_fullscreen");
#endif #endif
/*KAction *playact =*/ new KAction (i18n ("P&lay"), TQString ("player_play"), KShortcut (), m_player, TQT_SLOT (play ()), ac, "play"); /*TDEAction *playact =*/ new TDEAction (i18n ("P&lay"), TQString ("player_play"), TDEShortcut (), m_player, TQT_SLOT (play ()), ac, "play");
/*KAction *pauseact =*/ new KAction (i18n ("&Pause"), TQString ("player_pause"), KShortcut (), m_player, TQT_SLOT (pause ()), ac, "pause"); /*TDEAction *pauseact =*/ new TDEAction (i18n ("&Pause"), TQString ("player_pause"), TDEShortcut (), m_player, TQT_SLOT (pause ()), ac, "pause");
/*KAction *stopact =*/ new KAction (i18n ("&Stop"), TQString ("player_stop"), KShortcut (), m_player, TQT_SLOT (stop ()), ac, "stop"); /*TDEAction *stopact =*/ new TDEAction (i18n ("&Stop"), TQString ("player_stop"), TDEShortcut (), m_player, TQT_SLOT (stop ()), ac, "stop");
/*KAction *artsctrl =*/ new KAction (i18n ("&Arts Control"), TQString ("player_volume"), KShortcut (), TQT_TQOBJECT(this), TQT_SLOT (startArtsControl ()), ac, "view_arts_control"); /*TDEAction *artsctrl =*/ new TDEAction (i18n ("&Arts Control"), TQString ("player_volume"), TDEShortcut (), TQT_TQOBJECT(this), TQT_SLOT (startArtsControl ()), ac, "view_arts_control");
viewToolBar = KStdAction::showToolbar(TQT_TQOBJECT(this), TQT_SLOT(slotViewToolBar()), ac, "showtoolbar"); viewToolBar = KStdAction::showToolbar(TQT_TQOBJECT(this), TQT_SLOT(slotViewToolBar()), ac, "showtoolbar");
viewStatusBar =KStdAction::showStatusbar(TQT_TQOBJECT(this),TQT_SLOT(slotViewStatusBar()),ac, "showstatusbar"); viewStatusBar =KStdAction::showStatusbar(TQT_TQOBJECT(this),TQT_SLOT(slotViewStatusBar()),ac, "showstatusbar");
viewMenuBar = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(slotViewMenuBar()), ac, "showmenu"); viewMenuBar = KStdAction::showMenubar(TQT_TQOBJECT(this), TQT_SLOT(slotViewMenuBar()), ac, "showmenu");
@ -664,8 +664,8 @@ KDE_NO_EXPORT void KMPlayerApp::initView () {
//m_view->docArea ()->readDockConfig (config, TQString ("Window Layout")); //m_view->docArea ()->readDockConfig (config, TQString ("Window Layout"));
m_player->connectPanel (m_view->controlPanel ()); m_player->connectPanel (m_view->controlPanel ());
initMenu (); initMenu ();
new KAction (i18n ("Increase Volume"), editVolumeInc->shortcut (), m_player, TQT_SLOT (increaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_up"); new TDEAction (i18n ("Increase Volume"), editVolumeInc->shortcut (), m_player, TQT_SLOT (increaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_up");
new KAction (i18n ("Decrease Volume"), editVolumeDec->shortcut (), m_player, TQT_SLOT(decreaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_down"); new TDEAction (i18n ("Decrease Volume"), editVolumeDec->shortcut (), m_player, TQT_SLOT(decreaseVolume ()), m_view->viewArea ()->actionCollection (), "edit_volume_down");
connect (m_player->settings (), TQT_SIGNAL (configChanged ()), connect (m_player->settings (), TQT_SIGNAL (configChanged ()),
TQT_TQOBJECT(this), TQT_SLOT (configChanged ())); TQT_TQOBJECT(this), TQT_SLOT (configChanged ()));
connect (m_player, TQT_SIGNAL (loading (int)), connect (m_player, TQT_SIGNAL (loading (int)),
@ -1193,8 +1193,8 @@ KDE_NO_EXPORT void KMPlayerApp::readOptions() {
config->setGroup("General Options"); config->setGroup("General Options");
// bar position settings // bar position settings
KToolBar::BarPosition toolBarPos; TDEToolBar::BarPosition toolBarPos;
toolBarPos=(KToolBar::BarPosition) config->readNumEntry("ToolBarPos", KToolBar::Top); toolBarPos=(TDEToolBar::BarPosition) config->readNumEntry("ToolBarPos", TDEToolBar::Top);
toolBar("mainToolBar")->setBarPos(toolBarPos); toolBar("mainToolBar")->setBarPos(toolBarPos);
// bar status settings // bar status settings
@ -1436,7 +1436,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotFileQuit()
tqApp->quit (); tqApp->quit ();
// close the first window, the list makes the next one the first again. // close the first window, the list makes the next one the first again.
// This ensures that queryClose() is called on each window to ask for closing // This ensures that queryClose() is called on each window to ask for closing
/*KMainWindow* w; /*TDEMainWindow* w;
if(memberList) if(memberList)
{ {
for(w=memberList->first(); w!=0; w=memberList->first()) for(w=memberList->first(); w!=0; w=memberList->first())
@ -1501,8 +1501,8 @@ KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) {
} }
KDE_NO_EXPORT void KMPlayerApp::fullScreen () { KDE_NO_EXPORT void KMPlayerApp::fullScreen () {
// if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits ("KAction")) // if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->metaObject ()->inherits ("TDEAction"))
if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->inherits ("KAction")) if (TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender ()))->inherits ("TDEAction"))
m_view->fullScreen(); m_view->fullScreen();
#if KDE_IS_VERSION(3,1,90) #if KDE_IS_VERSION(3,1,90)
viewFullscreen->setChecked (m_view->isFullScreen ()); viewFullscreen->setChecked (m_view->isFullScreen ());

@ -282,7 +282,7 @@ KDE_NO_EXPORT void KMPlayerMenuButton::enterEvent (TQEvent *) {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
KDE_NO_CDTOR_EXPORT KMPlayerPopupMenu::KMPlayerPopupMenu (TQWidget * parent) KDE_NO_CDTOR_EXPORT KMPlayerPopupMenu::KMPlayerPopupMenu (TQWidget * parent)
: KPopupMenu (parent, "kde_kmplayer_popupmenu") {} : TDEPopupMenu (parent, "kde_kmplayer_popupmenu") {}
KDE_NO_EXPORT void KMPlayerPopupMenu::leaveEvent (TQEvent *) { KDE_NO_EXPORT void KMPlayerPopupMenu::leaveEvent (TQEvent *) {
emit mouseLeft (); emit mouseLeft ();

@ -32,7 +32,7 @@ class TQSlider;
//class TQPushButton; //class TQPushButton;
class TQBoxLayout; class TQBoxLayout;
class TQStringList; class TQStringList;
class KPopupMenu; class TDEPopupMenu;
namespace KMPlayer { namespace KMPlayer {
@ -56,7 +56,7 @@ protected:
/* /*
* The pop down menu from the controlpanel * The pop down menu from the controlpanel
*/ */
class KMPLAYER_EXPORT KMPlayerPopupMenu : public KPopupMenu { class KMPLAYER_EXPORT KMPlayerPopupMenu : public TDEPopupMenu {
Q_OBJECT Q_OBJECT
public: public:
@ -132,7 +132,7 @@ public:
KDE_NO_EXPORT TQPushButton * broadcastButton () const { return m_buttons[button_broadcast]; } KDE_NO_EXPORT TQPushButton * broadcastButton () const { return m_buttons[button_broadcast]; }
KDE_NO_EXPORT VolumeBar * volumeBar () const { return m_volume; } KDE_NO_EXPORT VolumeBar * volumeBar () const { return m_volume; }
KDE_NO_EXPORT KMPlayerPopupMenu * popupMenu () const { return m_popupMenu; } KDE_NO_EXPORT KMPlayerPopupMenu * popupMenu () const { return m_popupMenu; }
KDE_NO_EXPORT KPopupMenu * bookmarkMenu () const { return m_bookmarkMenu; } KDE_NO_EXPORT TDEPopupMenu * bookmarkMenu () const { return m_bookmarkMenu; }
KDE_NO_EXPORT TQPopupMenu * zoomMenu () const { return m_zoomMenu; } KDE_NO_EXPORT TQPopupMenu * zoomMenu () const { return m_zoomMenu; }
KDE_NO_EXPORT TQPopupMenu * playerMenu () const { return m_playerMenu; } KDE_NO_EXPORT TQPopupMenu * playerMenu () const { return m_playerMenu; }
KDE_NO_EXPORT TQPopupMenu * colorMenu () const { return m_colorMenu; } KDE_NO_EXPORT TQPopupMenu * colorMenu () const { return m_colorMenu; }

@ -166,7 +166,7 @@ KDE_NO_EXPORT void PartBase::addBookMark (const TQString & t, const TQString & u
m_bookmark_manager->emitChanged (b); m_bookmark_manager->emitChanged (b);
} }
void PartBase::init (KActionCollection * action_collection) { void PartBase::init (TDEActionCollection * action_collection) {
KParts::Part::setWidget (m_view); KParts::Part::setWidget (m_view);
m_view->init (action_collection); m_view->init (action_collection);
#ifdef HAVE_NSPR #ifdef HAVE_NSPR
@ -179,7 +179,7 @@ void PartBase::init (KActionCollection * action_collection) {
connect (m_view, TQT_SIGNAL (urlDropped (const KURL::List &)), this, TQT_SLOT (openURL (const KURL::List &))); connect (m_view, TQT_SIGNAL (urlDropped (const KURL::List &)), this, TQT_SLOT (openURL (const KURL::List &)));
connectPlaylist (m_view->playList ()); connectPlaylist (m_view->playList ());
connectInfoPanel (m_view->infoPanel ()); connectInfoPanel (m_view->infoPanel ());
new KAction (i18n ("Edit playlist &item"), 0, 0, TQT_TQOBJECT(m_view->playList ()), TQT_SLOT (editCurrent ()), action_collection, "edit_playlist_item"); new TDEAction (i18n ("Edit playlist &item"), 0, 0, TQT_TQOBJECT(m_view->playList ()), TQT_SLOT (editCurrent ()), action_collection, "edit_playlist_item");
} }
void PartBase::connectPanel (ControlPanel * panel) { void PartBase::connectPanel (ControlPanel * panel) {

@ -38,7 +38,7 @@
class TDEAboutData; class TDEAboutData;
class TDEInstance; class TDEInstance;
class KActionCollection; class TDEActionCollection;
class KBookmarkMenu; class KBookmarkMenu;
class TDEConfig; class TDEConfig;
class TQIODevice; class TQIODevice;
@ -120,7 +120,7 @@ public:
typedef TQMap <TQString, Process *> ProcessMap; typedef TQMap <TQString, Process *> ProcessMap;
PartBase (TQWidget * parent, const char * wname,TQObject * objectParent, const char * name, TDEConfig *); PartBase (TQWidget * parent, const char * wname,TQObject * objectParent, const char * name, TDEConfig *);
~PartBase (); ~PartBase ();
void init (KActionCollection * = 0L); void init (TDEActionCollection * = 0L);
virtual KMediaPlayer::View* view (); virtual KMediaPlayer::View* view ();
static TDEAboutData* createAboutData (); static TDEAboutData* createAboutData ();

@ -80,7 +80,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerPrefSourcePageVDR::KMPlayerPrefSourcePageVDR (TQWidg
//KURLRequester * v4ldevice; //KURLRequester * v4ldevice;
TQVBoxLayout *layout = new TQVBoxLayout (this, 5, 2); TQVBoxLayout *layout = new TQVBoxLayout (this, 5, 2);
TQGridLayout *gridlayout = new TQGridLayout (1, 2); TQGridLayout *gridlayout = new TQGridLayout (1, 2);
xv_port = new KListView (this); xv_port = new TDEListView (this);
xv_port->addColumn (TQString()); xv_port->addColumn (TQString());
xv_port->header()->hide (); xv_port->header()->hide ();
xv_port->setTreeStepSize (15); xv_port->setTreeStepSize (15);
@ -140,7 +140,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerVDRSource::KMPlayerVDRSource (KMPlayerApp * app)
finish_timer (0), finish_timer (0),
tcp_port (0), tcp_port (0),
m_stored_volume (0) { m_stored_volume (0) {
memset (m_actions, 0, sizeof (KAction *) * int (act_last)); memset (m_actions, 0, sizeof (TDEAction *) * int (act_last));
m_player->settings ()->addPage (this); m_player->settings ()->addPage (this);
connect (m_socket, TQT_SIGNAL (connectionClosed()), this, TQT_SLOT(disconnected())); connect (m_socket, TQT_SIGNAL (connectionClosed()), this, TQT_SLOT(disconnected()));
connect (m_socket, TQT_SIGNAL (connected ()), this, TQT_SLOT (connected ())); connect (m_socket, TQT_SIGNAL (connected ()), this, TQT_SLOT (connected ()));
@ -229,15 +229,15 @@ KDE_NO_EXPORT void KMPlayerVDRSource::processStarted () {
} }
#define DEF_ACT(i,text,pix,scut,slot,name) \ #define DEF_ACT(i,text,pix,scut,slot,name) \
m_actions [i] = new KAction (text, TQString (pix), KShortcut (scut), this, slot, m_app->actionCollection (), name); \ m_actions [i] = new TDEAction (text, TQString (pix), TDEShortcut (scut), this, slot, m_app->actionCollection (), name); \
m_fullscreen_actions [i] = new KAction (text, KShortcut (scut), this, slot, m_app->view ()->viewArea ()->actionCollection (), name) m_fullscreen_actions [i] = new TDEAction (text, TDEShortcut (scut), this, slot, m_app->view ()->viewArea ()->actionCollection (), name)
KDE_NO_EXPORT void KMPlayerVDRSource::connected () { KDE_NO_EXPORT void KMPlayerVDRSource::connected () {
queueCommand (cmd_list_channels); queueCommand (cmd_list_channels);
queueCommand (cmd_volume_query); queueCommand (cmd_volume_query);
killTimer (channel_timer); killTimer (channel_timer);
channel_timer = startTimer (3000); channel_timer = startTimer (3000);
KAction * action = m_app->actionCollection ()->action ("vdr_connect"); TDEAction * action = m_app->actionCollection ()->action ("vdr_connect");
action->setIcon (TQString ("connect_no")); action->setIcon (TQString ("connect_no"));
action->setText (i18n ("Dis&connect")); action->setText (i18n ("Dis&connect"));
DEF_ACT (act_up, i18n ("VDR Key Up"), "up", , TQT_SLOT (keyUp ()), "vdr_key_up"); DEF_ACT (act_up, i18n ("VDR Key Up"), "up", , TQT_SLOT (keyUp ()), "vdr_key_up");
@ -284,7 +284,7 @@ KDE_NO_EXPORT void KMPlayerVDRSource::disconnected () {
if (channel_timer && m_player->source () == this) if (channel_timer && m_player->source () == this)
m_player->process ()->quit (); m_player->process ()->quit ();
deleteCommands (); deleteCommands ();
KAction * action = m_app->actionCollection ()->action ("vdr_connect"); TDEAction * action = m_app->actionCollection ()->action ("vdr_connect");
action->setIcon (TQString ("connect_established")); action->setIcon (TQString ("connect_established"));
action->setText (i18n ("&Connect")); action->setText (i18n ("&Connect"));
m_app->guiFactory ()->removeClient (m_app);// crash w/ m_actions[i]->unplugAll (); in for loop below m_app->guiFactory ()->removeClient (m_app);// crash w/ m_actions[i]->unplugAll (); in for loop below

@ -40,10 +40,10 @@ class TQButtonGroup;
class TQMenuItem; class TQMenuItem;
class TQCheckBox; class TQCheckBox;
class TQLineEdit; class TQLineEdit;
class KAction; class TDEAction;
class TQSocket; class TQSocket;
class TQTimerEvent; class TQTimerEvent;
class KListView; class TDEListView;
/* /*
* Preference page for VDR * Preference page for VDR
@ -55,7 +55,7 @@ public:
KMPlayerPrefSourcePageVDR (TQWidget * parent, KMPlayer::PartBase * player); KMPlayerPrefSourcePageVDR (TQWidget * parent, KMPlayer::PartBase * player);
~KMPlayerPrefSourcePageVDR (); ~KMPlayerPrefSourcePageVDR ();
KURLRequester * vcddevice; KURLRequester * vcddevice;
KListView * xv_port; TDEListView * xv_port;
TQLineEdit * tcp_port; TQLineEdit * tcp_port;
TQButtonGroup * scale; TQButtonGroup * scale;
protected: protected:
@ -144,8 +144,8 @@ private:
void jump (const TQString & channel); void jump (const TQString & channel);
KMPlayerApp * m_app; KMPlayerApp * m_app;
KMPlayerPrefSourcePageVDR * m_configpage; KMPlayerPrefSourcePageVDR * m_configpage;
KAction * m_actions [act_last]; TDEAction * m_actions [act_last];
KAction * m_fullscreen_actions [act_last]; TDEAction * m_fullscreen_actions [act_last];
TQSocket * m_socket; TQSocket * m_socket;
VDRCommand * commands; VDRCommand * commands;
TQString m_request_jump; TQString m_request_jump;

@ -171,7 +171,7 @@ KDE_NO_EXPORT void View::dragEnterEvent (TQDragEnterEvent* dee) {
dee->accept (); dee->accept ();
} }
KDE_NO_EXPORT void View::init (KActionCollection * action_collection) { KDE_NO_EXPORT void View::init (TDEActionCollection * action_collection) {
setBackgroundMode(TQt::NoBackground); // prevents flashing setBackgroundMode(TQt::NoBackground); // prevents flashing
//m_dockarea->setEraseColor (TQColor (0, 0, 0)); //m_dockarea->setEraseColor (TQColor (0, 0, 0));
TQPalette pal (TQColor (64, 64,64), TQColor (32, 32, 32)); TQPalette pal (TQColor (64, 64,64), TQColor (32, 32, 32));

@ -40,9 +40,9 @@ class TQPaintDevice;
class TQPainter; class TQPainter;
class TQSlider; class TQSlider;
class TQLabel; class TQLabel;
class KActionCollection; class TDEActionCollection;
class KAction; class TDEAction;
class KShortcut; class TDEShortcut;
class KStatusBar; class KStatusBar;
class KFindDialog; class KFindDialog;
@ -106,7 +106,7 @@ public:
~View(); ~View();
void addText (const TQString &, bool eol=false); void addText (const TQString &, bool eol=false);
void init (KActionCollection * ac); void init (TDEActionCollection * ac);
void reset (); void reset ();
//void print(TQPrinter *pPrinter); //void print(TQPrinter *pPrinter);

@ -106,8 +106,8 @@ KDE_NO_CDTOR_EXPORT void RootPlayListItem::paintCell (TQPainter * p, const TQCol
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
KDE_NO_CDTOR_EXPORT PlayListView::PlayListView (TQWidget * parent, View * view, KActionCollection * ac) KDE_NO_CDTOR_EXPORT PlayListView::PlayListView (TQWidget * parent, View * view, TDEActionCollection * ac)
: KListView (parent, "kde_kmplayer_playlist"), : TDEListView (parent, "kde_kmplayer_playlist"),
m_view (view), m_view (view),
m_find_dialog (0L), m_find_dialog (0L),
m_active_color (30, 0, 255), m_active_color (30, 0, 255),
@ -337,7 +337,7 @@ KDE_NO_EXPORT TQDragObject * PlayListView::dragObject () {
KDE_NO_EXPORT void PlayListView::setFont (const TQFont & fnt) { KDE_NO_EXPORT void PlayListView::setFont (const TQFont & fnt) {
setTreeStepSize (TQFontMetrics (fnt).boundingRect ('m').width ()); setTreeStepSize (TQFontMetrics (fnt).boundingRect ('m').width ());
KListView::setFont (fnt); TDEListView::setFont (fnt);
} }
KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQPoint & p, int) { KDE_NO_EXPORT void PlayListView::contextMenuItem (TQListViewItem * vi, const TQPoint & p, int) {
@ -530,14 +530,14 @@ KDE_NO_EXPORT void PlayListView::rename (TQListViewItem * qitem, int c) {
if (rootItem (qitem)->show_all_nodes && item && item->m_attr) { if (rootItem (qitem)->show_all_nodes && item && item->m_attr) {
PlayListItem * pi = static_cast <PlayListItem *> (qitem->parent ()); PlayListItem * pi = static_cast <PlayListItem *> (qitem->parent ());
if (pi && pi->node && pi->node->isEditable ()) if (pi && pi->node && pi->node->isEditable ())
KListView::rename (item, c); TDEListView::rename (item, c);
} else if (item && item->node && item->node->isEditable ()) { } else if (item && item->node && item->node->isEditable ()) {
if (!rootItem (qitem)->show_all_nodes && if (!rootItem (qitem)->show_all_nodes &&
item->node->isPlayable () && item->node->isPlayable () &&
item->node->mrl ()->pretty_name.isEmpty ()) item->node->mrl ()->pretty_name.isEmpty ())
// populate() has crippled src, restore for editing // populate() has crippled src, restore for editing
item->setText (0, item->node->mrl ()->src); item->setText (0, item->node->mrl ()->src);
KListView::rename (item, c); TDEListView::rename (item, c);
} }
} }

@ -75,7 +75,7 @@ public:
/* /*
* The playlist GUI * The playlist GUI
*/ */
class KMPLAYER_EXPORT PlayListView : public KListView { class KMPLAYER_EXPORT PlayListView : public TDEListView {
Q_OBJECT Q_OBJECT
public: public:
@ -84,7 +84,7 @@ public:
InPlaceEdit = 0x04, TreeEdit = 0x08, InPlaceEdit = 0x04, TreeEdit = 0x08,
Moveable = 0x10, Deleteable = 0x20 Moveable = 0x10, Deleteable = 0x20
}; };
PlayListView (TQWidget * parent, View * view, KActionCollection * ac); PlayListView (TQWidget * parent, View * view, TDEActionCollection * ac);
~PlayListView (); ~PlayListView ();
void selectItem (const TQString & txt); void selectItem (const TQString & txt);
void showAllNodes (RootPlayListItem *, bool show=true); void showAllNodes (RootPlayListItem *, bool show=true);
@ -136,8 +136,8 @@ private:
SharedPtr <TreeUpdate> tree_update; SharedPtr <TreeUpdate> tree_update;
View * m_view; View * m_view;
TQPopupMenu * m_itemmenu; TQPopupMenu * m_itemmenu;
KAction * m_find; TDEAction * m_find;
KAction * m_find_next; TDEAction * m_find_next;
KFindDialog * m_find_dialog; KFindDialog * m_find_dialog;
TQPixmap folder_pix; TQPixmap folder_pix;
TQPixmap auxiliary_pix; TQPixmap auxiliary_pix;

@ -319,8 +319,8 @@ KDE_NO_EXPORT void PrefGeneralPageLooks::fontItemChanged (int f) {
KDE_NO_EXPORT void PrefGeneralPageLooks::fontClicked () { KDE_NO_EXPORT void PrefGeneralPageLooks::fontClicked () {
if (fontscombo->currentItem () < int (FontSetting::last_target)) { if (fontscombo->currentItem () < int (FontSetting::last_target)) {
TQFont myfont = fonts [fontscombo->currentItem ()].newfont; TQFont myfont = fonts [fontscombo->currentItem ()].newfont;
int res = KFontDialog::getFont (myfont, false, this); int res = TDEFontDialog::getFont (myfont, false, this);
if (res == KFontDialog::Accepted) { if (res == TDEFontDialog::Accepted) {
fonts [fontscombo->currentItem ()].newfont = myfont; fonts [fontscombo->currentItem ()].newfont = myfont;
fontbutton->setFont (myfont); fontbutton->setFont (myfont);
} }

@ -1342,7 +1342,7 @@ KDE_NO_CDTOR_EXPORT ViewArea::ViewArea (TQWidget * parent, View * view)
: TQWidget (parent, "kde_kmplayer_viewarea", WResizeNoErase | WRepaintNoErase), : TQWidget (parent, "kde_kmplayer_viewarea", WResizeNoErase | WRepaintNoErase),
m_parent (parent), m_parent (parent),
m_view (view), m_view (view),
m_collection (new KActionCollection (this)), m_collection (new TDEActionCollection (this)),
surface (new ViewSurface (this)), surface (new ViewSurface (this)),
m_mouse_invisible_timer (0), m_mouse_invisible_timer (0),
m_repaint_timer (0), m_repaint_timer (0),
@ -1353,7 +1353,7 @@ KDE_NO_CDTOR_EXPORT ViewArea::ViewArea (TQWidget * parent, View * view)
m_minimal (false) { m_minimal (false) {
setEraseColor (TQColor (0, 0, 0)); setEraseColor (TQColor (0, 0, 0));
setAcceptDrops (true); setAcceptDrops (true);
new KAction (i18n ("Fullscreen"), KShortcut (TQt::Key_F), TQT_TQOBJECT(this), TQT_SLOT (accelActivated ()), m_collection, "view_fullscreen_toggle"); new TDEAction (i18n ("Fullscreen"), TDEShortcut (TQt::Key_F), TQT_TQOBJECT(this), TQT_SLOT (accelActivated ()), m_collection, "view_fullscreen_toggle");
setMouseTracking (true); setMouseTracking (true);
if (!image_data_map) if (!image_data_map)
imageCacheDeleter.setObject (image_data_map, new ImageDataMap); imageCacheDeleter.setObject (image_data_map, new ImageDataMap);

@ -22,7 +22,7 @@
#include <tqwidget.h> #include <tqwidget.h>
class KActionCollection; class TDEActionCollection;
namespace KMPlayer { namespace KMPlayer {
@ -40,7 +40,7 @@ public:
~ViewArea (); ~ViewArea ();
KDE_NO_EXPORT bool isFullScreen () const { return m_fullscreen; } KDE_NO_EXPORT bool isFullScreen () const { return m_fullscreen; }
KDE_NO_EXPORT bool isMinimalMode () const { return m_minimal; } KDE_NO_EXPORT bool isMinimalMode () const { return m_minimal; }
KDE_NO_EXPORT KActionCollection * actionCollection () const { return m_collection; } KDE_NO_EXPORT TDEActionCollection * actionCollection () const { return m_collection; }
KDE_NO_EXPORT TQRect topWindowRect () const { return m_topwindow_rect; } KDE_NO_EXPORT TQRect topWindowRect () const { return m_topwindow_rect; }
SurfacePtr getSurface (NodePtr node); SurfacePtr getSurface (NodePtr node);
void setAudioVideoGeometry (const IRect &rect, unsigned int * bg); void setAudioVideoGeometry (const IRect &rect, unsigned int * bg);
@ -70,7 +70,7 @@ private:
ViewAreaPrivate * d; ViewAreaPrivate * d;
TQWidget * m_parent; TQWidget * m_parent;
View * m_view; View * m_view;
KActionCollection * m_collection; TDEActionCollection * m_collection;
SurfacePtr surface; SurfacePtr surface;
NodePtrW video_node; NodePtrW video_node;
TQRect m_av_geometry; TQRect m_av_geometry;

Loading…
Cancel
Save