diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-06-13 16:33:09 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-06-13 16:33:09 +0200 |
commit | 12b478cefdf1789828dbcd677d409cf8bad654ca (patch) | |
tree | e0fd4a3b7a3d5b64ede310493a7b25624807f8b1 /src/part | |
parent | 2c9bc9b806f533df7b8f5349467d0f4be95314a4 (diff) | |
download | codeine-12b478cefdf1789828dbcd677d409cf8bad654ca.tar.gz codeine-12b478cefdf1789828dbcd677d409cf8bad654ca.zip |
Conversion KDE -> TDE environment.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'src/part')
-rw-r--r-- | src/part/SConscript | 2 | ||||
-rw-r--r-- | src/part/part.cpp | 16 | ||||
-rw-r--r-- | src/part/part.h | 8 | ||||
-rw-r--r-- | src/part/toolbar.cpp | 2 | ||||
-rw-r--r-- | src/part/toolbar.h | 4 | ||||
-rw-r--r-- | src/part/xineEngine.cpp | 8 |
6 files changed, 20 insertions, 20 deletions
diff --git a/src/part/SConscript b/src/part/SConscript index 978d490..ff2d085 100644 --- a/src/part/SConscript +++ b/src/part/SConscript @@ -7,6 +7,6 @@ myenv=env.Copy() ## Always add '../' (top-level directory) because moc makes code that needs it KDEaddpaths( ['./', '../', '../../'], myenv ) -KDEaddlibs( ['tqt-mt', 'kdecore', 'kdeui', 'kparts', 'xine'], myenv ) +KDEaddlibs( ['tqt-mt', 'tdecore', 'tdeui', 'tdeparts', 'xine'], myenv ) KDEshlib( "libcodeine", Split( "part.cpp xineEngine.cpp videoWindow.cpp toolbar.cpp ../mxcl.library.cpp" ), myenv ) diff --git a/src/part/part.cpp b/src/part/part.cpp index 1b4b878..f251731 100644 --- a/src/part/part.cpp +++ b/src/part/part.cpp @@ -3,14 +3,14 @@ #include "codeine.h"
#include "debug.h"
-#include <kaboutdata.h>
-#include <kparts/genericfactory.h>
+#include <tdeaboutdata.h>
+#include <tdeparts/genericfactory.h>
#include "part.h"
#include <ntqtimer.h>
#include "toolbar.h"
#include "videoWindow.h"
-#include <kaction.h>
+#include <tdeaction.h>
#include <ntqslider.h>
namespace Codeine
@@ -35,9 +35,9 @@ namespace Codeine //FIXME this will terminate the host, eg Konqueror
Debug::fatal() << "Couldn't init xine!\n";
- KAction *play = new KToggleAction( i18n("Play"), "player_play", TQt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" );
- KAction *mute = new KToggleAction( i18n("Mute"), "player_mute", TQt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" );
- KToolBar *toolBar = new MouseOverToolBar( widget() );
+ TDEAction *play = new TDEToggleAction( i18n("Play"), "player_play", TQt::Key_Space, videoWindow(), SLOT(togglePlay()), actionCollection(), "play" );
+ TDEAction *mute = new TDEToggleAction( i18n("Mute"), "player_mute", TQt::Key_M, videoWindow(), SLOT(toggleMute()), actionCollection(), "mute" );
+ TDEToolBar *toolBar = new MouseOverToolBar( widget() );
play->plug( toolBar );
mute->plug( toolBar );
m_slider = new TQSlider( TQt::Horizontal, toolBar, "slider" );
@@ -68,11 +68,11 @@ namespace Codeine return true;
}
- KAboutData*
+ TDEAboutData*
Part::createAboutData()
{
// generic factory expects this on the heap
- return new KAboutData( APP_NAME, PRETTY_NAME, APP_VERSION );
+ return new TDEAboutData( APP_NAME, PRETTY_NAME, APP_VERSION );
}
void
diff --git a/src/part/part.h b/src/part/part.h index d998664..8a55f3a 100644 --- a/src/part/part.h +++ b/src/part/part.h @@ -4,11 +4,11 @@ #ifndef CODEINE_PART_H
#define CODEINE_PART_H
-#include <kparts/statusbarextension.h>
-#include <kparts/part.h>
+#include <tdeparts/statusbarextension.h>
+#include <tdeparts/part.h>
#include <kurl.h>
-class KAboutData;
+class TDEAboutData;
class TQSlider;
@@ -23,7 +23,7 @@ namespace Codeine virtual bool openURL( const KURL& );
virtual bool closeURL();
- static KAboutData *createAboutData();
+ static TDEAboutData *createAboutData();
private:
KParts::StatusBarExtension *m_statusBarExtension;
diff --git a/src/part/toolbar.cpp b/src/part/toolbar.cpp index e998244..87caa62 100644 --- a/src/part/toolbar.cpp +++ b/src/part/toolbar.cpp @@ -8,7 +8,7 @@ MouseOverToolBar::MouseOverToolBar( TQWidget *parent ) - : KToolBar( parent ) + : TDEToolBar( parent ) { parent->installEventFilter( this ); move( 0, 0 ); //TODO necessary? diff --git a/src/part/toolbar.h b/src/part/toolbar.h index 58a3a57..2c5d4b4 100644 --- a/src/part/toolbar.h +++ b/src/part/toolbar.h @@ -4,10 +4,10 @@ #ifndef CODEINE_TOOLBAR_H #define CODEINE_TOOLBAR_H -#include <ktoolbar.h> +#include <tdetoolbar.h> -class MouseOverToolBar : public KToolBar +class MouseOverToolBar : public TDEToolBar { virtual bool eventFilter( TQObject*, TQEvent* ); diff --git a/src/part/xineEngine.cpp b/src/part/xineEngine.cpp index 149ad1f..8424f37 100644 --- a/src/part/xineEngine.cpp +++ b/src/part/xineEngine.cpp @@ -4,8 +4,8 @@ #define CODEINE_DEBUG_PREFIX "engine" #include "debug.h" -#include <kglobalsettings.h> -#include <klocale.h> +#include <tdeglobalsettings.h> +#include <tdelocale.h> #include "mxcl.library.h" #include <ntqapplication.h> //::sendEvent() #include <ntqdatetime.h> //::play() @@ -65,7 +65,7 @@ VideoWindow::init() xine_cfg_entry_t config; if( xine_config_lookup_entry( m_xine, "misc.save_dir", &config ) ) { - const TQCString dir = KGlobalSettings::desktopPath().local8Bit(); + const TQCString dir = TDEGlobalSettings::desktopPath().local8Bit(); config.str_value = tqstrdup( dir ); xine_config_update_entry( m_xine, &config ); } @@ -258,7 +258,7 @@ VideoWindow::xineEventListener( void *p, const xine_event_t* xineEvent ) TQString msg = "%1 %2%"; msg = msg.arg( TQString::fromUtf8( pd->description ) ) - .arg( KGlobal::locale()->formatNumber( pd->percent, 0 ) ); + .arg( TDEGlobal::locale()->formatNumber( pd->percent, 0 ) ); TQApplication::postEvent( engine, new TQCustomEvent( TQEvent::Type(3000), new TQString( msg ) ) ); break; |