diff --git a/src/app/actions.cpp b/src/app/actions.cpp index 7447320..65e1f39 100644 --- a/src/app/actions.cpp +++ b/src/app/actions.cpp @@ -1,12 +1,14 @@ // Copyright 2005 Max Howell (max.howell@methylblue.com) // See COPYING file for licensing information -#include "actions.h" +#include + #include "../debug.h" #include "../mxcl.library.h" -#include +#include "actions.h" #include "xineEngine.h" + namespace Codeine { PlayAction::PlayAction( TQObject *receiver, const char *slot, TDEActionCollection *ac ) diff --git a/src/app/captureFrame.cpp b/src/app/captureFrame.cpp index 1ef8a4f..827a292 100644 --- a/src/app/captureFrame.cpp +++ b/src/app/captureFrame.cpp @@ -1,14 +1,11 @@ // (C) 2005 Max Howell (max.howell@methylblue.com) // See COPYING file for licensing information -#include "../debug.h" #include #include #include #include #include -#include "mainWindow.h" -#include "../mxcl.library.h" #include #include #include @@ -16,9 +13,12 @@ #include #include #include + +#include "../debug.h" +#include "../mxcl.library.h" +#include "mainWindow.h" #include "theStream.h" #include "xineEngine.h" -#include namespace Codeine { diff --git a/src/app/insertAspectRatioMenuItems.cpp b/src/app/insertAspectRatioMenuItems.cpp index 81ad0b3..d2baafc 100644 --- a/src/app/insertAspectRatioMenuItems.cpp +++ b/src/app/insertAspectRatioMenuItems.cpp @@ -4,6 +4,7 @@ #include #include + TQString i18n( const char *text ); diff --git a/src/app/mainWindow.cpp b/src/app/mainWindow.cpp index b31806b..af41a4f 100644 --- a/src/app/mainWindow.cpp +++ b/src/app/mainWindow.cpp @@ -5,13 +5,7 @@ #include "config.h" #endif -#include "actions.h" -#include "analyzer.h" -#include "codeineConfig.h" #include -#include "../debug.h" -#include "extern.h" //dialog creation function definitions -#include "fullScreenAction.h" #include #include #include @@ -23,21 +17,29 @@ #include #include #include -#include "mainWindow.h" -#include "playDialog.h" //::play() -#include "playlistFile.h" -#include "../mxcl.library.h" #include #include #include //::stateChanged() #include //ctor #include //because XMLGUI is poorly designed #include + +#include "../debug.h" +#include "../mxcl.library.h" +#include "actions.h" +#include "analyzer.h" +#include "codeineConfig.h" +#include "extern.h" //dialog creation function definitions +#include "fullScreenAction.h" +#include "mainWindow.h" +#include "playDialog.h" //::play() +#include "playlistFile.h" #include "slider.h" #include "theStream.h" #include "volumeAction.h" #include "xineEngine.h" + #ifndef NO_XTEST_EXTENSION extern "C" { diff --git a/src/app/theStream.cpp b/src/app/theStream.cpp index fbb35ac..3f7e35a 100644 --- a/src/app/theStream.cpp +++ b/src/app/theStream.cpp @@ -2,11 +2,12 @@ // See COPYING file for licensing information #include + #include "../mxcl.library.h" #include "theStream.h" -#include #include "xineEngine.h" + namespace Codeine { #define e VideoWindow::s_instance diff --git a/src/app/videoSettings.cpp b/src/app/videoSettings.cpp index cf759c2..3a45c5a 100644 --- a/src/app/videoSettings.cpp +++ b/src/app/videoSettings.cpp @@ -2,14 +2,15 @@ // See COPYING file for licensing information #include -#include "../mxcl.library.h" #include #include #include + +#include "../mxcl.library.h" #include "videoSettings.h" -#include #include "xineEngine.h" + extern "C" { // #include is just dangerous! Here, there is a macro for Below that conflicts diff --git a/src/app/videoWindow.cpp b/src/app/videoWindow.cpp index 2ecf65a..0f2d540 100644 --- a/src/app/videoWindow.cpp +++ b/src/app/videoWindow.cpp @@ -3,22 +3,23 @@ #define CODEINE_DEBUG_PREFIX "VideoWindow" -#include "actions.h" #include //std::log10 #include -#include "../debug.h" #include //::makeStandardCaption #include #include #include #include -#include "../mxcl.library.h" #include #include +#include +#include + +#include "../debug.h" +#include "../mxcl.library.h" +#include "actions.h" #include "slider.h" #include "theStream.h" -#include -#include #include "xineEngine.h" diff --git a/src/app/xineConfig.cpp b/src/app/xineConfig.cpp index 7be1c76..9ad6b56 100644 --- a/src/app/xineConfig.cpp +++ b/src/app/xineConfig.cpp @@ -1,7 +1,6 @@ // (C) 2005 Max Howell (max.howell@methylblue.com) // See COPYING file for licensing information -#include "../debug.h" #include // XineConfigDialog::ctor -> to get the iconloader #include #include // XineConfigDialog::ctor @@ -17,8 +16,11 @@ #include #include #include + +#include "../debug.h" #include "xineConfig.h" + TQString i18n(const char *text); diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp index d89d300..3409a20 100644 --- a/src/app/xineEngine.cpp +++ b/src/app/xineEngine.cpp @@ -3,23 +3,24 @@ #define CODEINE_DEBUG_PREFIX "engine" -#include "actions.h" //::seek() FIXME unfortunate #include //the fade out -#include "codeineConfig.h" -#include "../debug.h" #include #include -#include "../mxcl.library.h" #include //::sendEvent() #include //record() #include //::exists() +#include +#include + +#include "../debug.h" +#include "../mxcl.library.h" +#include "actions.h" //::seek() FIXME unfortunate +#include "codeineConfig.h" #include "slider.h" #include "theStream.h" -#include #include "xineEngine.h" #include "xineScope.h" -#include -#include + #define XINE_SAFE_MODE 1 diff --git a/src/app/xineEngine.h b/src/app/xineEngine.h index 57017ce..bc2d389 100644 --- a/src/app/xineEngine.h +++ b/src/app/xineEngine.h @@ -10,6 +10,8 @@ #include #include #include +#include + typedef struct xine_s xine_t; typedef struct xine_stream_s xine_stream_t; @@ -83,9 +85,7 @@ namespace Codeine void channelsChanged( const TQStringList& ); private: - #ifdef HAVE_XINE_H static void xineEventListener( void*, const xine_event_t* ); - #endif uint posTimeLength( PosTimeLength ) const; void showErrorMessage(); diff --git a/src/part/videoWindow.cpp b/src/part/videoWindow.cpp index 79d09ae..eb1c859 100644 --- a/src/part/videoWindow.cpp +++ b/src/part/videoWindow.cpp @@ -3,14 +3,16 @@ #define CODEINE_DEBUG_PREFIX "videoWindow" + #include -#include "../debug.h" #include //sendEvent() +#include #include #include -#include "videoWindow.h" #include //TODO this breaks compile for lots of people due to excessive macro content -#include //x11_visual_t + +#include "../debug.h" +#include "videoWindow.h" namespace Codeine { diff --git a/src/part/videoWindow.h b/src/part/videoWindow.h index 76d2b6c..f7e5782 100644 --- a/src/part/videoWindow.h +++ b/src/part/videoWindow.h @@ -8,6 +8,8 @@ #include #include #include +#include + typedef struct xine_s xine_t; typedef struct xine_stream_s xine_stream_t; @@ -46,9 +48,7 @@ namespace Codeine private: /// @see xineEngine.cpp - #ifdef HAVE_XINE_H static void xineEventListener( void*, const xine_event_t* ); - #endif void showErrorMessage(); //TODO don't use this, just show delayed message diff --git a/src/part/xineEngine.cpp b/src/part/xineEngine.cpp index ac04c4a..96108a7 100644 --- a/src/part/xineEngine.cpp +++ b/src/part/xineEngine.cpp @@ -3,14 +3,14 @@ #define CODEINE_DEBUG_PREFIX "engine" -#include "../debug.h" #include #include -#include "../mxcl.library.h" #include //::sendEvent() #include //::play() #include //TQDir::homeDir() -#include + +#include "../debug.h" +#include "../mxcl.library.h" #include "videoWindow.h"