Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch build system to CMake, add (un)install targets

Also make the dependency on QuaZip optional and remove some more junk.
  • Loading branch information...
commit cb2762f5a927940339cebe3e6d59b21a057ae3d1 1 parent 81ec219
Martin Herkt authored
Showing with 486 additions and 1,836 deletions.
  1. +76 −0 CMakeLists.txt
  2. +0 −83 Makefile
  3. +32 −0 cmake/FindQuazip.cmake
  4. +27 −0 cmake/Summary.cmake
  5. +21 −0 cmake_uninstall.cmake.in
  6. +1 −1  smplayer2.desktop
  7. +1 −1  smplayer2_enqueue.desktop
  8. +301 −0 src/CMakeLists.txt
  9. +1 −4 src/about.cpp
  10. +0 −2  src/actionseditor.cpp
  11. +0 −2  src/audioequalizer.cpp
  12. +2 −4 src/basegui.cpp
  13. +0 −2  src/baseguiplus.cpp
  14. +0 −2  src/core.cpp
  15. +1 −0  src/core.h
  16. +0 −57 src/corelib/smplayer2core.pro
  17. +0 −43 src/corelib/smplayer2corelib.cpp
  18. +0 −43 src/corelib/smplayer2corelib.h
  19. +0 −2  src/defaultgui.cpp
  20. +0 −2  src/eqslider.cpp
  21. +0 −2  src/errordialog.cpp
  22. +0 −2  src/favoriteeditor.cpp
  23. +0 −3  src/favorites.cpp
  24. +0 −3  src/filechooser.cpp
  25. +0 −2  src/filepropertiesdialog.cpp
  26. +1 −1  src/filesettingshash.cpp
  27. +0 −2  src/filters.cpp
  28. +0 −3  src/findsubtitles/filedownloader/filedownloader.cpp
  29. +0 −5 src/findsubtitles/filedownloader/filedownloader.pro
  30. +0 −55 src/findsubtitles/filedownloader/main.cpp
  31. +0 −57 src/findsubtitles/findsubtitles.pro
  32. +0 −2  src/findsubtitles/findsubtitlesconfigdialog.cpp
  33. +1 −4 src/findsubtitles/findsubtitleswindow.cpp
  34. +0 −36 src/findsubtitles/main.cpp
  35. +0 −3  src/findsubtitles/simplehttp.cpp
  36. +0 −3  src/findsubtitles/subchooserdialog.cpp
  37. +0 −2  src/floatingwidget.cpp
  38. +0 −2  src/inforeader.cpp
  39. +0 −70 src/input.conf
  40. +0 −2  src/inputdvddirectory.cpp
  41. +0 −2  src/inputurl.cpp
  42. +0 −2  src/languages.cpp
  43. +0 −164 src/languages/list.txt
  44. +0 −30 src/languages/main.cpp
  45. +0 −1  src/languages/process_list.pro
  46. +0 −2  src/logwindow.cpp
  47. +0 −3  src/minigui.cpp
  48. +0 −3  src/mpcgui/mpcgui.cpp
  49. +0 −2  src/mplayerprocess.cpp
  50. +0 −2  src/mplayerwindow.cpp
  51. +0 −2  src/myactiongroup.cpp
  52. +0 −2  src/myprocess.cpp
  53. +2 −5 src/myserver.cpp
  54. +0 −3  src/myslider.cpp
  55. +1 −4 src/playlist.cpp
  56. +0 −4 src/playlistdock.cpp
  57. +0 −2  src/prefadvanced.cpp
  58. +0 −3  src/prefassociations.cpp
  59. +0 −2  src/prefdrives.cpp
  60. +0 −2  src/preferencesdialog.cpp
  61. +0 −2  src/prefgeneral.cpp
  62. +0 −2  src/prefinput.cpp
  63. +0 −2  src/prefinterface.cpp
  64. +0 −2  src/prefperformance.cpp
  65. +0 −2  src/prefplaylist.cpp
  66. +0 −2  src/prefsubtitles.cpp
  67. +0 −2  src/preftv.cpp
  68. +0 −2  src/seekwidget.cpp
  69. +0 −2  src/selectcolorbutton.cpp
  70. +0 −2  src/shortcutgetter.cpp
  71. +0 −215 src/shortcuts/default.keys
  72. +0 −175 src/shortcuts/sda.keys
  73. +2 −3 src/smplayer2.cpp
  74. +0 −314 src/smplayer2.pro
  75. +0 −109 src/testcorelib/test.cpp
  76. +0 −49 src/testcorelib/test.h
  77. +0 −25 src/testcorelib/test.pro
  78. +0 −33 src/testcorelib/test2.cpp
  79. +0 −2  src/timedialog.cpp
  80. +0 −3  src/timeslider.cpp
  81. +0 −2  src/tristatecombo.cpp
  82. +0 −2  src/tvlist.cpp
  83. +0 −27 src/version.cpp
  84. +0 −27 src/version.h
  85. +0 −2  src/videoequalizer.cpp
  86. +0 −57 src/videopreview/main.cpp
  87. +0 −3  src/videopreview/videopreview.cpp
  88. +0 −17 src/videopreview/videopreview.pro
  89. +0 −2  src/videopreview/videopreviewconfigdialog.cpp
  90. +0 −2  src/widgetactions.cpp
  91. +16 −0 version.sh
76 CMakeLists.txt
View
@@ -0,0 +1,76 @@
+cmake_minimum_required(VERSION 2.6)
+include(cmake/Summary.cmake)
+
+project(smplayer2)
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
+find_program(QT_LRELEASE_EXECUTABLE NAMES lrelease PATHS ${QT_BINARY_DIR} NO_DEFAULT_PATH)
+find_program(QT_LRELEASE_EXECUTABLE NAMES lrelease)
+
+set(SMPLAYER2_VERSION_MAJOR 0)
+set(SMPLAYER2_VERSION_MINOR 7)
+set(SMPLAYER2_VERSION_RELEASE 0)
+execute_process(COMMAND ${PROJECT_SOURCE_DIR}/version.sh
+ OUTPUT_VARIABLE SMPLAYER2_VERSION_GITREV OUTPUT_STRIP_TRAILING_WHITESPACE
+)
+set(SMPLAYER2_VERSION "${SMPLAYER2_VERSION_MAJOR}.${SMPLAYER2_VERSION_MINOR}.${SMPLAYER2_VERSION_RELEASE}${SMPLAYER2_VERSION_GITREV}")
+
+if (CMAKE_COMPILER_IS_GNUCXX)
+ add_definitions("-Wall -pedantic -std=c++0x")
+endif()
+
+add_definitions(-DSMPLAYER2_VERSION=\"${SMPLAYER2_VERSION}\")
+
+find_package(Qt COMPONENTS QtNetwork QtXml REQUIRED)
+find_package(ZLIB REQUIRED)
+find_package(Quazip)
+set(QT_USE_QTNETWORK TRUE)
+set(QT_USE_QTXML TRUE)
+
+if (QUAZIP_FOUND)
+ option(ENABLE_DOWNLOAD_SUBS "Enable subtitle downloader (requires QuaZip)" ON)
+ option(QUAZIP_STATIC "Enable this if QuaZip has been built as a static library" OFF)
+endif()
+
+if(ENABLE_DOWNLOAD_SUBS AND QUAZIP_FOUND)
+ set(HAVE_DOWNLOAD_SUBS ON)
+ if (QUAZIP_STATIC)
+ add_definitions(-DQUAZIP_STATIC)
+ endif()
+endif()
+
+add_subdirectory(src)
+
+summary_add("Subtitle downloader" HAVE_DOWNLOAD_SUBS)
+summary_show()
+
+install(FILES icons/smplayer2_icon16.png
+ DESTINATION share/icons/hicolor/16x16/apps/
+ RENAME application-x-smplayer2.png
+)
+install(FILES icons/smplayer2_icon22.png
+ DESTINATION share/icons/hicolor/22x22/apps/
+ RENAME application-x-smplayer2.png
+)
+install(FILES icons/smplayer2_icon32.png
+ DESTINATION share/icons/hicolor/32x32/apps/
+ RENAME application-x-smplayer2.png
+)
+install(FILES icons/smplayer2_icon64.png
+ DESTINATION share/icons/hicolor/64x64/apps/
+ RENAME application-x-smplayer2.png
+)
+install(FILES smplayer2.desktop
+ DESTINATION share/applications
+)
+install(FILES smplayer2_enqueue.desktop
+ DESTINATION share/applications
+)
+
+# uninstall target
+configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+ IMMEDIATE @ONLY)
+
+add_custom_target(uninstall
+COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
83 Makefile
View
@@ -1,83 +0,0 @@
-
-PREFIX=/usr/local
-
-CONF_PREFIX=$(PREFIX)
-
-DATA_PATH=$(PREFIX)/share/smplayer2
-DOC_PATH=$(PREFIX)/share/doc/packages/smplayer2
-TRANSLATION_PATH=$(PREFIX)/share/smplayer2/translations
-THEMES_PATH=$(PREFIX)/share/smplayer2/themes
-SHORTCUTS_PATH=$(PREFIX)/share/smplayer2/shortcuts
-
-KDE_PREFIX=$(PREFIX)
-
-KDE_ICONS=$(KDE_PREFIX)/share/icons/hicolor/
-KDE_APPLNK=$(KDE_PREFIX)/share/applications/
-
-QMAKE=qmake
-LRELEASE=lrelease
-
-DEFS=DATA_PATH=\\\"$(DATA_PATH)\\\" \
- TRANSLATION_PATH=\\\"$(TRANSLATION_PATH)\\\" \
- DOC_PATH=\\\"$(DOC_PATH)\\\" THEMES_PATH=\\\"$(THEMES_PATH)\\\" \
- SHORTCUTS_PATH=\\\"$(SHORTCUTS_PATH)\\\"
-
-
-ifdef KDE_SUPPORT
-
-# KDE paths, change if necessary
-
-KDE_INCLUDE_PATH=`kde-config --prefix`/include/
-KDE_LIB_PATH=`kde-config --prefix`/lib/
-KDE_LIBS=-lkio
-
-QMAKE_OPTS=DEFINES+=KDE_SUPPORT INCLUDEPATH+=$(KDE_INCLUDE_PATH) \
- LIBS+="$(KDE_LIBS) -L$(KDE_LIB_PATH)"
-
-endif
-
-src/smplayer2:
- +cd src && $(QMAKE) $(QMAKE_OPTS) && $(DEFS) make
- cd src && $(LRELEASE) smplayer2.pro
-
-clean:
- if [ -f src/Makefile ]; then cd src && make distclean; fi
- -rm src/translations/smplayer2_*.qm
-
-install: src/smplayer2
- -install -d $(DESTDIR)$(PREFIX)/bin/
- install -m 755 src/smplayer2 $(DESTDIR)$(PREFIX)/bin/
- -install -d $(DESTDIR)$(DATA_PATH)
- install -m 644 src/input.conf $(DESTDIR)$(DATA_PATH)
- -install -d $(DESTDIR)$(TRANSLATION_PATH)
- install -m 644 src/translations/*.qm $(DESTDIR)$(TRANSLATION_PATH)
-
- -install -d $(DESTDIR)$(SHORTCUTS_PATH)
- cp src/shortcuts/* $(DESTDIR)$(SHORTCUTS_PATH)
-
- -install -d $(DESTDIR)$(KDE_ICONS)/64x64/apps/
- -install -d $(DESTDIR)$(KDE_ICONS)/32x32/apps/
- -install -d $(DESTDIR)$(KDE_ICONS)/22x22/apps/
- -install -d $(DESTDIR)$(KDE_ICONS)/16x16/apps/
- install -m 644 icons/smplayer2_icon64.png $(DESTDIR)$(KDE_ICONS)/64x64/apps/smplayer2.png
- install -m 644 icons/smplayer2_icon32.png $(DESTDIR)$(KDE_ICONS)/32x32/apps/smplayer2.png
- install -m 644 icons/smplayer2_icon22.png $(DESTDIR)$(KDE_ICONS)/22x22/apps/smplayer2.png
- install -m 644 icons/smplayer2_icon16.png $(DESTDIR)$(KDE_ICONS)/16x16/apps/smplayer2.png
- -install -d $(DESTDIR)$(KDE_APPLNK)
- install -m 644 smplayer2.desktop $(DESTDIR)$(KDE_APPLNK)
- install -m 644 smplayer2_enqueue.desktop $(DESTDIR)$(KDE_APPLNK)
-
-uninstall:
- -rm -f $(PREFIX)/bin/smplayer2
- -rm -f $(DATA_PATH)/input.conf
- -rm -f $(TRANSLATION_PATH)/*.qm
- -rm -f $(SHORTCUTS_PATH)/*.keys
- -rm -f $(KDE_ICONS)/64x64/apps/smplayer2.png
- -rm -f $(KDE_ICONS)/32x32/apps/smplayer2.png
- -rm -f $(KDE_ICONS)/22x22/apps/smplayer2.png
- -rm -f $(KDE_ICONS)/16x16/apps/smplayer2.png
- -rm -f $(KDE_APPLNK)/smplayer2.desktop
- -rmdir $(SHORTCUTS_PATH)/
- -rmdir $(TRANSLATION_PATH)/
- -rmdir $(DATA_PATH)/
-
32 cmake/FindQuazip.cmake
View
@@ -0,0 +1,32 @@
+# - Find quazip
+# Find the native quazip includes and library
+#
+# QUAZIP_INCLUDE_DIR - where to find quazip.h, etc.
+# QUAZIP_LIBRARIES - List of libraries when using quazip.
+# QUAZIP_FOUND - True if quazip found.
+
+
+IF (QUAZIP_INCLUDE_DIR)
+ # Already in cache, be silent
+ SET(QUAZIP_FIND_QUIETLY TRUE)
+ENDIF (QUAZIP_INCLUDE_DIR)
+
+FIND_PATH(QUAZIP_INCLUDE_DIR quazip/quazip.h
+ ${CMAKE_INCLUDE_PATH}
+ ${CMAKE_INSTALL_PREFIX}/include
+)
+
+FIND_LIBRARY(QUAZIP_LIBRARY NAMES quazip )
+
+# handle the QUIETLY and REQUIRED arguments and set QUAZIP_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(quazip DEFAULT_MSG QUAZIP_LIBRARY QUAZIP_INCLUDE_DIR)
+
+IF(QUAZIP_FOUND)
+ SET( QUAZIP_LIBRARIES ${QUAZIP_LIBRARY} )
+ELSE(QUAZIP_FOUND)
+ SET( QUAZIP_LIBRARIES )
+ENDIF(QUAZIP_FOUND)
+
+MARK_AS_ADVANCED( QUAZIP_LIBRARY QUAZIP_INCLUDE_DIR )
27 cmake/Summary.cmake
View
@@ -0,0 +1,27 @@
+set(summary_willbuild "")
+set(summary_willnotbuild "")
+
+macro(summary_add name test)
+ if (${test})
+ list(APPEND summary_willbuild ${name})
+ else (${test})
+ list(APPEND summary_willnotbuild "${name}")
+ endif (${test})
+endmacro(summary_add)
+
+macro(summary_show_part variable title)
+ list(LENGTH ${variable} _len)
+ if (_len)
+ message("")
+ message(${title})
+ foreach (_item ${${variable}})
+ message(" ${_item}")
+ endforeach (_item)
+ endif (_len)
+endmacro(summary_show_part)
+
+macro(summary_show)
+ summary_show_part(summary_willbuild "The following optional components will be built:")
+ summary_show_part(summary_willnotbuild "The following optional components WILL NOT be built:")
+ message("")
+endmacro(summary_show)
21 cmake_uninstall.cmake.in
View
@@ -0,0 +1,21 @@
+if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+ message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
+endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+
+file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+string(REGEX REPLACE "\n" ";" files "${files}")
+foreach (file ${files})
+ message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
+ if (EXISTS "$ENV{DESTDIR}${file}")
+ execute_process(
+ COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}"
+ OUTPUT_VARIABLE rm_out
+ RESULT_VARIABLE rm_retval
+ )
+ if(NOT ${rm_retval} EQUAL 0)
+ message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
+ endif (NOT ${rm_retval} EQUAL 0)
+ else (EXISTS "$ENV{DESTDIR}${file}")
+ message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+ endif (EXISTS "$ENV{DESTDIR}${file}")
+endforeach(file)
2  smplayer2.desktop
View
@@ -19,7 +19,7 @@ GenericName[hu]=Médialejátszó
GenericName[pt]=Reprodutor de Média
GenericName[ru]=Медиаплеер
GenericName[uk]=Програвач медіа
-Icon=smplayer2
+Icon=application-x-smplayer2
MimeType=audio/ac3;audio/mp4;audio/mpeg;audio/vnd.rn-realaudio;audio/vorbis;audio/x-adpcm;audio/x-matroska;audio/x-mp2;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;audio/mpegurl;audio/x-mpegurl;audio/x-pn-realaudio;audio/x-scpls;video/avi;video/mp4;video/flv;video/mpeg;video/quicktime;video/vnd.rn-realvideo;video/x-matroska;video/x-ms-asf;video/x-msvideo;video/x-ms-wmv;video/x-ogm;video/x-theora;
Name=SMPlayer2
Type=Application
2  smplayer2_enqueue.desktop
View
@@ -1,7 +1,7 @@
[Desktop Entry]
Categories=Qt;AudioVideo;Player;Video;
Exec=smplayer2 -add-to-playlist %U
-Icon=smplayer2
+Icon=application-x-smplayer2
MimeType=audio/ac3;audio/mp4;audio/mpeg;audio/vnd.rn-realaudio;audio/vorbis;audio/x-adpcm;audio/x-matroska;audio/x-mp2;audio/x-mp3;audio/x-ms-wma;audio/x-vorbis;audio/x-wav;audio/mpegurl;audio/x-mpegurl;audio/x-pn-realaudio;audio/x-scpls;video/avi;video/mp4;video/flv;video/mpeg;video/quicktime;video/vnd.rn-realvideo;video/x-matroska;video/x-ms-asf;video/x-msvideo;video/x-ms-wmv;video/x-ogm;video/x-theora;
Name=Enqueue in SMPlayer2
Name[cs]=Přidat do fronty SMplayeru
301 src/CMakeLists.txt
View
@@ -0,0 +1,301 @@
+INCLUDE(${QT_USE_FILE})
+ADD_DEFINITIONS(${QT_DEFINITIONS})
+
+set(smplayer2_SOURCES
+ global.cpp
+ paths.cpp
+ helper.cpp
+ colorutils.cpp
+ translator.cpp
+ subtracks.cpp
+ tracks.cpp
+ titletracks.cpp
+ discname.cpp
+ extensions.cpp
+ desktopinfo.cpp
+ myprocess.cpp
+ mplayerprocess.cpp
+ infoprovider.cpp
+ mplayerwindow.cpp
+ mediadata.cpp
+ mediasettings.cpp
+ assstyles.cpp
+ filters.cpp
+ preferences.cpp
+ filesettingsbase.cpp
+ filesettings.cpp
+ filesettingshash.cpp
+ tvsettings.cpp
+ images.cpp
+ inforeader.cpp
+ deviceinfo.cpp
+ recents.cpp
+ urlhistory.cpp
+ core.cpp
+ logwindow.cpp
+ infofile.cpp
+ seekwidget.cpp
+ mytablewidget.cpp
+ shortcutgetter.cpp
+ actionseditor.cpp
+ filechooser.cpp
+ preferencesdialog.cpp
+ mycombobox.cpp
+ tristatecombo.cpp
+ languages.cpp
+ selectcolorbutton.cpp
+ prefwidget.cpp
+ prefgeneral.cpp
+ prefdrives.cpp
+ prefinterface.cpp
+ prefperformance.cpp
+ prefinput.cpp
+ prefsubtitles.cpp
+ prefadvanced.cpp
+ prefplaylist.cpp
+ preftv.cpp
+ filepropertiesdialog.cpp
+ playlist.cpp
+ playlistdock.cpp
+ verticaltext.cpp
+ eqslider.cpp
+ videoequalizer.cpp
+ audioequalizer.cpp
+ myslider.cpp
+ timeslider.cpp
+ inputdvddirectory.cpp
+ inputurl.cpp
+ myaction.cpp
+ myactiongroup.cpp
+ myserver.cpp
+ myclient.cpp
+ filedialog.cpp
+ about.cpp
+ errordialog.cpp
+ timedialog.cpp
+ findsubtitles/simplehttp.cpp
+ findsubtitles/osparser.cpp
+ findsubtitles/findsubtitlesconfigdialog.cpp
+ findsubtitles/findsubtitleswindow.cpp
+ videopreview/videopreview.cpp
+ videopreview/videopreviewconfigdialog.cpp
+ favorites.cpp
+ tvlist.cpp
+ favoriteeditor.cpp
+ basegui.cpp
+ baseguiplus.cpp
+ floatingwidget.cpp
+ widgetactions.cpp
+ toolbareditor.cpp
+ defaultgui.cpp
+ minigui.cpp
+ mpcgui/mpcgui.cpp
+ mpcgui/mpcstyles.cpp
+ clhelp.cpp
+ smplayer2.cpp
+ main.cpp
+)
+
+set(smplayer2_HEADERS
+ guiconfig.h
+ config.h
+ constants.h
+ global.h
+ paths.h
+ helper.h
+ colorutils.h
+ translator.h
+ subtracks.h
+ tracks.h
+ titletracks.h
+ discname.h
+ extensions.h
+ desktopinfo.h
+ myprocess.h
+ mplayerprocess.h
+ infoprovider.h
+ mplayerwindow.h
+ mediadata.h
+ audioequalizerlist.h
+ mediasettings.h
+ assstyles.h
+ filters.h
+ preferences.h
+ filesettingsbase.h
+ filesettings.h
+ filesettingshash.h
+ tvsettings.h
+ images.h
+ inforeader.h
+ deviceinfo.h
+ recents.h
+ urlhistory.h
+ core.h
+ logwindow.h
+ infofile.h
+ seekwidget.h
+ mytablewidget.h
+ shortcutgetter.h
+ actionseditor.h
+ filechooser.h
+ preferencesdialog.h
+ mycombobox.h
+ tristatecombo.h
+ languages.h
+ selectcolorbutton.h
+ prefwidget.h
+ prefgeneral.h
+ prefdrives.h
+ prefinterface.h
+ prefperformance.h
+ prefinput.h
+ prefsubtitles.h
+ prefadvanced.h
+ prefplaylist.h
+ preftv.h
+ filepropertiesdialog.h
+ playlist.h
+ playlistdock.h
+ verticaltext.h
+ eqslider.h
+ videoequalizer.h
+ audioequalizer.h
+ myslider.h
+ timeslider.h
+ inputdvddirectory.h
+ inputurl.h
+ myaction.h
+ myactiongroup.h
+ myserver.h
+ myclient.h
+ filedialog.h
+ about.h
+ errordialog.h
+ timedialog.h
+ findsubtitles/simplehttp.h
+ findsubtitles/osparser.h
+ findsubtitles/findsubtitlesconfigdialog.h
+ findsubtitles/findsubtitleswindow.h
+ videopreview/videopreview.h
+ videopreview/videopreviewconfigdialog.h
+ favorites.h
+ tvlist.h
+ favoriteeditor.h
+ basegui.h
+ baseguiplus.h
+ floatingwidget.h
+ widgetactions.h
+ toolbareditor.h
+ defaultgui.h
+ minigui.h
+ mpcgui/mpcgui.h
+ mpcgui/mpcstyles.h
+ smplayer2.h
+ clhelp.h
+)
+
+set(smplayer2_FORMS
+ inputdvddirectory.ui
+ logwindowbase.ui
+ filepropertiesdialog.ui
+ eqslider.ui
+ seekwidget.ui
+ inputurl.ui
+ preferencesdialog.ui
+ prefgeneral.ui
+ prefdrives.ui
+ prefinterface.ui
+ prefperformance.ui
+ prefinput.ui
+ prefsubtitles.ui
+ prefadvanced.ui
+ prefplaylist.ui
+ preftv.ui
+ favoriteeditor.ui
+ about.ui
+ errordialog.ui
+ timedialog.ui
+ filechooser.ui
+ findsubtitles/findsubtitleswindow.ui
+ findsubtitles/findsubtitlesconfigdialog.ui
+ videopreview/videopreviewconfigdialog.ui
+)
+
+set(smplayer2_TRANSLATIONS
+ translations/smplayer2_ar_SY.ts translations/smplayer2_ku.ts
+ translations/smplayer2_bg.ts translations/smplayer2_lt.ts
+ translations/smplayer2_ca.ts translations/smplayer2_mk.ts
+ translations/smplayer2_cs.ts translations/smplayer2_nl.ts
+ translations/smplayer2_da.ts translations/smplayer2_pl.ts
+ translations/smplayer2_de.ts translations/smplayer2_pt_BR.ts
+ translations/smplayer2_el_GR.ts translations/smplayer2_pt.ts
+ translations/smplayer2_en_US.ts translations/smplayer2_ro_RO.ts
+ translations/smplayer2_es.ts translations/smplayer2_ru_RU.ts
+ translations/smplayer2_et.ts translations/smplayer2_sk.ts
+ translations/smplayer2_eu.ts translations/smplayer2_sl_SI.ts
+ translations/smplayer2_fi.ts translations/smplayer2_sr.ts
+ translations/smplayer2_fr.ts translations/smplayer2_sv.ts
+ translations/smplayer2_gl.ts translations/smplayer2_tr.ts
+ translations/smplayer2_hu.ts translations/smplayer2_uk_UA.ts
+ translations/smplayer2_it.ts translations/smplayer2_vi_VN.ts
+ translations/smplayer2_ja.ts translations/smplayer2_zh_CN.ts
+ translations/smplayer2_ka.ts translations/smplayer2_zh_TW.ts
+ translations/smplayer2_ko.ts
+)
+
+set(smplayer2_RESOURCES icons.qrc)
+set(smplayer2_LIBS ${QT_LIBRARIES} ${ZLIB_LIBRARY})
+
+if(HAVE_DOWNLOAD_SUBS)
+ add_definitions(-DDOWNLOAD_SUBS)
+ set(smplayer2_LIBS ${smplayer2_LIBS} ${QUAZIP_LIBRARY})
+ set(smplayer2_HEADERS ${smplayer2_HEADERS}
+ findsubtitles/filedownloader/filedownloader.h
+ findsubtitles/subchooserdialog.h)
+ set(smplayer2_SOURCES ${smplayer2_SOURCES}
+ findsubtitles/filedownloader/filedownloader.cpp
+ findsubtitles/subchooserdialog.cpp)
+ set(smplayer2_FORMS ${smplayer2_FORMS}
+ findsubtitles/subchooserdialog.ui)
+endif()
+
+if(WIN32)
+ string(REPLACE "gcc" "windres" CMAKE_RC_COMPILER_INIT ${CMAKE_C_COMPILER})
+ enable_language(RC)
+ set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -o <OBJECT> <SOURCE>")
+
+ add_definitions(-DSCREENSAVER_OFF)
+ add_definitions(-DUSE_ASSOCIATIONS)
+ add_definitions(-DNO_DEBUG_ON_CONSOLE)
+ set(smplayer2_SOURCES ${smplayer2_SOURCES}
+ screensaver.cpp
+ prefassociations.cpp
+ winfileassoc.cpp
+ smplayer2.rc
+ )
+ set(smplayer2_HEADERS ${smplayer2_HEADERS}
+ prefassociations.h
+ winfileassoc.h
+ )
+ set(smplayer2_FORMS ${smplayer2_FORMS}
+ prefassociations.ui
+ )
+endif()
+
+QT4_WRAP_CPP(smplayer2_HEADERS_MOC ${smplayer2_HEADERS})
+QT4_WRAP_UI(smplayer2_FORMS_HEADERS ${smplayer2_FORMS})
+QT4_ADD_TRANSLATION(smplayer2_TRANSLATIONS_QM ${smplayer2_TRANSLATIONS})
+QT4_ADD_RESOURCES(smplayer2_RESOURCES_RCC ${smplayer2_RESOURCES})
+
+ADD_EXECUTABLE(smplayer2
+ ${smplayer2_SOURCES}
+ ${smplayer2_HEADERS_MOC}
+ ${smplayer2_FORMS_HEADERS}
+ ${smplayer2_TRANSLATIONS_QM}
+ ${smplayer2_RESOURCES_RCC}
+)
+TARGET_LINK_LIBRARIES(smplayer2 ${smplayer2_LIBS})
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+
+install(TARGETS smplayer2 RUNTIME DESTINATION bin)
+install(FILES ${smplayer2_TRANSLATIONS_QM} DESTINATION share/smplayer2/translations)
5 src/about.cpp
View
@@ -18,7 +18,6 @@
#include "about.h"
#include "images.h"
-#include "version.h"
#include "global.h"
#include "preferences.h"
#include "paths.h"
@@ -45,7 +44,7 @@ About::About(QWidget * parent, Qt::WindowFlags f)
info->setText(
"<b>SMPlayer2</b> &copy; 2011 Martin Herkt &lt;lachs0r@srsfckn.biz&gt;<br>"
"based on SMPlayer &copy; 2006-2010 Ricardo Villalba &lt;rvm@escomposlinux.org&gt;<br>"
- "<b>" + tr("Version: %1").arg(smplayer2Version()) + "</b>" +
+ "<b>" + tr("Version: %1").arg(SMPLAYER2_VERSION) + "</b>" +
tr("Using Qt %1 (compiled with Qt %2)").arg(qVersion()).arg(QT_VERSION_STR) + "<br><br>" +
tr("Visit our web for updates:") +"<br>"+
link("http://smplayer2.srsfckn.biz") +"<br>"+
@@ -232,5 +231,3 @@ QString About::contr(const QString & author, const QString & thing) {
QSize About::sizeHint () const {
return QSize(518, 326);
}
-
-#include "moc_about.cpp"
2  src/actionseditor.cpp
View
@@ -626,5 +626,3 @@ void ActionsEditor::changeEvent(QEvent *e) {
QWidget::changeEvent(e);
}
}
-
-#include "moc_actionseditor.cpp"
2  src/audioequalizer.cpp
View
@@ -136,5 +136,3 @@ void AudioEqualizer::changeEvent(QEvent *e) {
QWidget::changeEvent(e);
}
}
-
-#include "moc_audioequalizer.cpp"
6 src/basegui.cpp
View
@@ -65,8 +65,8 @@
#include "errordialog.h"
#include "timedialog.h"
#include "clhelp.h"
-#include "findsubtitleswindow.h"
-#include "videopreview.h"
+#include "findsubtitles/findsubtitleswindow.h"
+#include "videopreview/videopreview.h"
#include "config.h"
#include "actionseditor.h"
@@ -4619,5 +4619,3 @@ void BaseGui::clear_just_stopped() {
just_stopped = false;
}
#endif
-
-#include "moc_basegui.cpp"
2  src/baseguiplus.cpp
View
@@ -599,5 +599,3 @@ VolumeSliderAction * BaseGuiPlus::createVolumeSliderAction(QWidget * parent) {
return volumeslider_action;
}
-
-#include "moc_baseguiplus.cpp"
2  src/core.cpp
View
@@ -3845,5 +3845,3 @@ void Core::updateEdition(int edition) {
mset.current_edition_id = edition;
updateWidgets();
}
-
-#include "moc_core.cpp"
1  src/core.h
View
@@ -21,6 +21,7 @@
#include <QObject>
#include <QProcess> // For QProcess::ProcessError
+#include <QPoint>
#include "mediadata.h"
#include "mediasettings.h"
#include "mplayerprocess.h"
57 src/corelib/smplayer2core.pro
View
@@ -1,57 +0,0 @@
-TEMPLATE = lib
-LANGUAGE = c++
-CONFIG += qt warn_on release staticlib
-
-INCLUDEPATH = ..
-DEPENDOATH = ..
-
-DEFINES += MINILIB NO_USE_INI_FILES
-
-HEADERS += ../config.h \
- ../constants.h \
- ../global.h \
- ../helper.h \
- ../subtracks.h \
- ../audiotracks.h \
- ../titletracks.h \
- ../mediadata.h \
- ../mediasettings.h \
- ../preferences.h \
- ../myprocess.h \
- ../mplayerversion.h \
- ../mplayerprocess.h \
- ../infoprovider.h \
- ../desktopinfo.h \
- ../mplayerwindow.h \
- ../core.h \
- smplayer2corelib.h
-
-
-SOURCES += ../global.cpp \
- ../helper.cpp \
- ../subtracks.cpp \
- ../audiotracks.cpp \
- ../titletracks.cpp \
- ../mediadata.cpp \
- ../mediasettings.cpp \
- ../preferences.cpp \
- ../myprocess.cpp \
- ../mplayerversion.cpp \
- ../mplayerprocess.cpp \
- ../infoprovider.cpp \
- ../desktopinfo.cpp \
- ../mplayerwindow.cpp \
- ../core.cpp \
- smplayer2corelib.cpp
-
-
-unix {
- UI_DIR = .ui
- MOC_DIR = .moc
- OBJECTS_DIR = .obj
-}
-
-win32 {
- HEADERS += ../screensaver.h
- SOURCES += ../screensaver.cpp
-}
43 src/corelib/smplayer2corelib.cpp
View
@@ -1,43 +0,0 @@
-/* smplayer2, GUI front-end for mplayer2.
- Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-#include "smplayer2corelib.h"
-#include "global.h"
-#include "preferences.h"
-#include "helper.h"
-#include <QApplication>
-
-SmplayerCoreLib::SmplayerCoreLib( QWidget * parent )
- : QObject(parent)
-{
- if (Global::pref == 0) {
- qWarning("Global::global_init() hasn't been called. Crash comming.");
- }
-
- _mpw = new MplayerWindow(parent);
- _core = new Core(_mpw, parent);
-
- _mpw->setColorKey( Global::pref->color_key );
-
- Global::pref->fast_audio_change = Preferences::Enabled;
-}
-
-SmplayerCoreLib::~SmplayerCoreLib() {
-};
-
-#include "moc_smplayer2corelib.cpp"
43 src/corelib/smplayer2corelib.h
View
@@ -1,43 +0,0 @@
-/* smplayer2, GUI front-end for mplayer2.
- Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-#ifndef _SMPLAYERCORELIB_H_
-#define _SMPLAYERCORELIB_H_
-
-#include <QWidget>
-#include "core.h"
-#include "mplayerwindow.h"
-
-class SmplayerCoreLib : public QObject
-{
- Q_OBJECT
-
-public:
- SmplayerCoreLib( QWidget * parent = 0 );
- ~SmplayerCoreLib();
-
- Core * core() { return _core; };
- MplayerWindow * mplayerWindow() { return _mpw; };
-
-private:
- Core * _core;
- MplayerWindow * _mpw;
-};
-
-#endif
-
2  src/defaultgui.cpp
View
@@ -748,5 +748,3 @@ void DefaultGui::loadConfig() {
updateWidgets();
}
-
-#include "moc_defaultgui.cpp"
2  src/eqslider.cpp
View
@@ -75,5 +75,3 @@ int EqSlider::value() const {
void EqSlider::sliderValueChanged(int v) {
emit valueChanged( v );
}
-
-#include "moc_eqslider.cpp"
2  src/errordialog.cpp
View
@@ -56,5 +56,3 @@ void ErrorDialog::toggleLog(bool checked) {
else
viewlog_button->setText(tr("Show log"));
}
-
-#include "moc_errordialog.cpp"
2  src/favoriteeditor.cpp
View
@@ -229,5 +229,3 @@ void FavoriteEditor::edit_icon(int row, int column ) {
last_dir = QFileInfo(res).absolutePath();
}
}
-
-#include "moc_favoriteeditor.cpp"
3  src/favorites.cpp
View
@@ -260,6 +260,3 @@ void Favorites::jump() {
_menu->actions()[item+FIRST_MENU_ENTRY]->trigger();
}
}
-
-#include "moc_favorites.cpp"
-
3  src/filechooser.cpp
View
@@ -97,6 +97,3 @@ void FileChooser::on_button_clicked() {
if (old_file != result) emit fileChanged(result);
}
}
-
-#include "moc_filechooser.cpp"
-
2  src/filepropertiesdialog.cpp
View
@@ -221,5 +221,3 @@ void FilePropertiesDialog::changeEvent(QEvent *e) {
QDialog::changeEvent(e);
}
}
-
-#include "moc_filepropertiesdialog.cpp"
2  src/filesettingshash.cpp
View
@@ -18,7 +18,7 @@
#include "filesettingshash.h"
#include "mediasettings.h"
-#include "osparser.h" // hash function
+#include "findsubtitles/osparser.h" // hash function
#include <QSettings>
#include <QFile>
#include <QDir>
2  src/filters.cpp
View
@@ -62,5 +62,3 @@ void Filters::load(QSettings *set) {
set->endGroup();
}
-
-#include "moc_filters.cpp"
3  src/findsubtitles/filedownloader/filedownloader.cpp
View
@@ -106,6 +106,3 @@ void FileDownloader::updateDataReadProgress(int bytes_read, int total_bytes) {
setMaximum(total_bytes);
setValue(bytes_read);
}
-
-#include "moc_filedownloader.cpp"
-
5 src/findsubtitles/filedownloader/filedownloader.pro
View
@@ -1,5 +0,0 @@
-HEADERS += filedownloader.h
-SOURCES += filedownloader.cpp main.cpp
-
-QT += network
-
55 src/findsubtitles/filedownloader/main.cpp
View
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2004-2008 Trolltech ASA. All rights reserved.
-**
-** This file is part of the example classes of the Qt Toolkit.
-**
-** This file may be used under the terms of the GNU General Public
-** License versions 2.0 or 3.0 as published by the Free Software
-** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Alternatively you may (at
-** your option) use any later version of the GNU General Public
-** License if such license has been publicly approved by Trolltech ASA
-** (or its successors, if any) and the KDE Free Qt Foundation. In
-** addition, as a special exception, Trolltech gives you certain
-** additional rights. These rights are described in the Trolltech GPL
-** Exception version 1.2, which can be found at
-** http://www.trolltech.com/products/qt/gplexception/ and in the file
-** GPL_EXCEPTION.txt in this package.
-**
-** Please review the following information to ensure GNU General
-** Public Licensing requirements will be met:
-** http://trolltech.com/products/qt/licenses/licensing/opensource/. If
-** you are unsure which license is appropriate for your use, please
-** review the following information:
-** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
-** or contact the sales department at sales@trolltech.com.
-**
-** In addition, as a special exception, Trolltech, as the sole
-** copyright holder for Qt Designer, grants users of the Qt/Eclipse
-** Integration plug-in the right for the Qt/Eclipse Integration to
-** link to functionality provided by Qt Designer and its related
-** libraries.
-**
-** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
-** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE. Trolltech reserves all rights not expressly
-** granted herein.
-**
-** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
-** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-**
-****************************************************************************/
-
-#include <QApplication>
-
-#include "filedownloader.h"
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
- FileDownloader w;
- w.show();
- w.download(QUrl("http://smplayer.berlios.de/downloads.php?tr_lang=es"));
- return w.exec();
-}
57 src/findsubtitles/findsubtitles.pro
View
@@ -1,57 +0,0 @@
-TEMPLATE = app
-LANGUAGE = C++
-
-CONFIG += qt warn_on release
-
-QT += network xml
-
-INCLUDEPATH += ..
-DEPENDPATH += ..
-
-HEADERS += simplehttp.h \
- osparser.h \
- ../filechooser.h \
- ../languages.h \
- findsubtitlesconfigdialog.h \
- findsubtitleswindow.h
-
-SOURCES += simplehttp.cpp \
- osparser.cpp \
- ../filechooser.cpp \
- ../languages.cpp \
- findsubtitlesconfigdialog.cpp \
- findsubtitleswindow.cpp \
- main.cpp
-
-FORMS += ../filechooser.ui findsubtitleswindow.ui findsubtitlesconfigdialog.ui
-
-DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
-
-contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += filedownloader
- DEPENDPATH += filedownloader
-
- HEADERS += filedownloader.h subchooserdialog.h
- SOURCES += filedownloader.cpp subchooserdialog.cpp
-
- FORMS += subchooserdialog.ui
-
-
- LIBS += -lz
-
- win32 {
- INCLUDEPATH += c:\development\zlib-1.2.3
- LIBS += -Lc:\development\zlib-1.2.3
- }
-}
-
-unix {
- UI_DIR = .ui
- MOC_DIR = .moc
- OBJECTS_DIR = .obj
-}
-
-win32 {
- CONFIG += console
-}
-
2  src/findsubtitles/findsubtitlesconfigdialog.cpp
View
@@ -92,5 +92,3 @@ int FindSubtitlesConfigDialog::proxyType() {
int index = proxy_type_combo->currentIndex();
return proxy_type_combo->itemData(index).toInt();
}
-
-#include "moc_findsubtitlesconfigdialog.cpp"
5 src/findsubtitles/findsubtitleswindow.cpp
View
@@ -34,7 +34,7 @@
#include <QSettings>
#ifdef DOWNLOAD_SUBS
-#include "filedownloader.h"
+#include "filedownloader/filedownloader.h"
#include "subchooserdialog.h"
#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
@@ -678,6 +678,3 @@ void FindSubtitlesWindow::loadSettings() {
set->endGroup();
}
-
-#include "moc_findsubtitleswindow.cpp"
-
36 src/findsubtitles/main.cpp
View
@@ -1,36 +0,0 @@
-/* smplayer2, GUI front-end for mplayer2.
- Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-#include <QApplication>
-#include <QSettings>
-#include "findsubtitleswindow.h"
-
-int main( int argc, char ** argv )
-{
- QApplication a( argc, argv );
- a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
-
- QSettings set(QSettings::IniFormat, QSettings::UserScope, "RVM", "findsubtitles");
-
- FindSubtitlesWindow w;
- w.setSettings(&set);
- w.show();
-
- return a.exec();
-}
-
3  src/findsubtitles/simplehttp.cpp
View
@@ -76,6 +76,3 @@ void SimpleHttp::httpRequestFinished(int request_id, bool error) {
emit downloadFinished(downloaded_text);
}
}
-
-#include "moc_simplehttp.cpp"
-
3  src/findsubtitles/subchooserdialog.cpp
View
@@ -103,6 +103,3 @@ void SubChooserDialog::changeEvent(QEvent *e) {
QDialog::changeEvent(e);
}
}
-
-#include "moc_subchooserdialog.cpp"
-
2  src/floatingwidget.cpp
View
@@ -134,5 +134,3 @@ void FloatingWidget::checkUnderMouse() {
if ((isVisible()) && (!underMouse())) hide();
}
}
-
-#include "moc_floatingwidget.cpp"
2  src/inforeader.cpp
View
@@ -279,5 +279,3 @@ bool InfoReader::run(QString options) {
return true;
}
#endif
-
-#include "moc_inforeader.cpp"
70 src/input.conf
View
@@ -1,70 +0,0 @@
-## prevent mplayer from messing up our shortcuts
-
-RIGHT invalid_command
-LEFT invalid_command
-DOWN invalid_command
-UP invalid_command
-PGUP invalid_command
-PGDWN invalid_command
-- invalid_command
-+ invalid_command
-ESC invalid_command
-ENTER invalid_command
-SPACE pausing_keep invalid_command
-HOME invalid_command
-END invalid_command
-> invalid_command
-< invalid_command
-INS invalid_command
-DEL invalid_command
-[ invalid_command
-] invalid_command
-{ invalid_command
-} invalid_command
-BS invalid_command
-TAB invalid_command
-. invalid_command
-# invalid_command
-@ invalid_command
-! invalid_command
-9 invalid_command
-/ invalid_command
-0 invalid_command
-* invalid_command
-1 invalid_command
-2 invalid_command
-3 invalid_command
-4 invalid_command
-5 invalid_command
-6 invalid_command
-7 invalid_command
-8 invalid_command
-a invalid_command
-b invalid_command
-c invalid_command
-d invalid_command
-e invalid_command
-F invalid_command
-f invalid_command
-g invalid_command
-h invalid_command
-i invalid_command
-j invalid_command
-k invalid_command
-l invalid_command
-m invalid_command
-n invalid_command
-o invalid_command
-p invalid_command
-q invalid_command
-r invalid_command
-s invalid_command
-t invalid_command
-T invalid_command
-u invalid_command
-v invalid_command
-w invalid_command
-x invalid_command
-y invalid_command
-z invalid_command
-S invalid_command
2  src/inputdvddirectory.cpp
View
@@ -54,5 +54,3 @@ void InputDVDDirectory::on_searchButton_clicked() {
dvd_directory_edit->setText(s);
}
}
-
-#include "moc_inputdvddirectory.cpp"
2  src/inputurl.cpp
View
@@ -89,5 +89,3 @@ void InputURL::playlistChanged(int state) {
}
*/
}
-
-#include "moc_inputurl.cpp"
2  src/languages.cpp
View
@@ -284,5 +284,3 @@ QMap<QString,QString> Languages::encodings() {
return l;
}
-
-#include "moc_languages.cpp"
164 src/languages/list.txt
View
@@ -1,164 +0,0 @@
-aa Afar
-ab Abkhazian
-af Afrikaans
-am Amharic
-ar Arabic
-as Assamese
-ay Aymara
-az Azerbaijani
-
-ba Bashkir
-be Byelorussian
-bg Bulgarian
-bh Bihari
-bi Bislama
-bn Bengali; Bangla
-bo Tibetan
-br Breton
-
-ca Catalan
-co Corsican
-cs Czech
-cy Welsh
-
-da Danish
-de German
-dz Bhutani
-
-el Greek
-en English
-eo Esperanto
-es Spanish
-et Estonian
-eu Basque
-
-fa Persian
-fi Finnish
-fj Fiji
-fo Faroese
-fr French
-fy Frisian
-
-ga Irish
-gd Scots Gaelic
-gl Galician
-gn Guarani
-gu Gujarati
-
-ha Hausa
-he Hebrew (formerly iw)
-hi Hindi
-hr Croatian
-hu Hungarian
-hy Armenian
-
-ia Interlingua
-id Indonesian (formerly in)
-ie Interlingue
-ik Inupiak
-is Icelandic
-it Italian
-iu Inuktitut
-
-ja Japanese
-jw Javanese
-
-ka Georgian
-kk Kazakh
-kl Greenlandic
-km Cambodian
-kn Kannada
-ko Korean
-ks Kashmiri
-ku Kurdish
-ky Kirghiz
-
-la Latin
-ln Lingala
-lo Laothian
-lt Lithuanian
-lv Latvian, Lettish
-
-mg Malagasy
-mi Maori
-mk Macedonian
-ml Malayalam
-mn Mongolian
-mo Moldavian
-mr Marathi
-ms Malay
-mt Maltese
-my Burmese
-
-na Nauru
-ne Nepali
-nl Dutch
-no Norwegian
-
-oc Occitan
-om (Afan) Oromo
-or Oriya
-
-pa Punjabi
-pl Polish
-ps Pashto, Pushto
-pt Portuguese
-
-qu Quechua
-
-rm Rhaeto-Romance
-rn Kirundi
-ro Romanian
-ru Russian
-rw Kinyarwanda
-
-sa Sanskrit
-sd Sindhi
-sg Sangho
-sh Serbo-Croatian
-si Sinhalese
-sk Slovak
-sl Slovenian
-sm Samoan
-sn Shona
-so Somali
-sq Albanian
-sr Serbian
-ss Siswati
-st Sesotho
-su Sundanese
-sv Swedish
-sw Swahili
-
-ta Tamil
-te Telugu
-tg Tajik
-th Thai
-ti Tigrinya
-tk Turkmen
-tl Tagalog
-tn Setswana
-to Tonga
-tr Turkish
-ts Tsonga
-tt Tatar
-tw Twi
-
-ug Uighur
-uk Ukrainian
-ur Urdu
-uz Uzbek
-
-vi Vietnamese
-vo Volapuk
-
-wo Wolof
-
-xh Xhosa
-
-yi Yiddish (formerly ji)
-yo Yoruba
-
-za Zhuang
-zh Chinese
-zu Zulu
30 src/languages/main.cpp
View
@@ -1,30 +0,0 @@
-#include <QFile>
-#include <QRegExp>
-#include <stdio.h>
-
-int main( int argc, char ** argv )
-{
- QFile file("list.txt");
- if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
- return -1;
-
- QRegExp rx("^([a-zA-Z]+) ([a-zA-Z\\-]+)");
-
- QString line;
- while (!file.atEnd()) {
- line = QString(file.readLine()).simplified();
- if (!line.isEmpty()) {
- //qDebug("%s", line.toLatin1().constData());
- if (rx.indexIn(line) > -1) {
- QString s1 = rx.cap(1);
- QString s2 = rx.cap(2);
- //qDebug("code: %s, language: %s", s1.toLatin1().constData(), s2.toLatin1().constData());
- printf("\tl[\"%s\"] = tr(\"%s\");\n", s1.toLatin1().constData(), s2.toLatin1().constData());
- }
- }
- }
- file.close();
-
- return 0;
-}
-
1  src/languages/process_list.pro
View
@@ -1 +0,0 @@
-SOURCES += main.cpp
2  src/logwindow.cpp
View
@@ -140,5 +140,3 @@ void LogWindow::changeEvent(QEvent *e) {
QWidget::changeEvent(e);
}
}
-
-#include "moc_logwindow.cpp"
3  src/minigui.cpp
View
@@ -271,6 +271,3 @@ void MiniGui::loadConfig() {
set->endGroup();
}
-
-#include "moc_minigui.cpp"
-
3  src/mpcgui/mpcgui.cpp
View
@@ -467,6 +467,3 @@ void MpcGui::updateWidgets() {
// Frame counter
/* frame_display->setVisible( pref->show_frame_counter ); */
}
-
-#include "moc_mpcgui.cpp"
-
2  src/mplayerprocess.cpp
View
@@ -810,5 +810,3 @@ void MplayerProcess::processFinished(int exitCode, QProcess::ExitStatus exitStat
void MplayerProcess::gotError(QProcess::ProcessError error) {
qDebug("MplayerProcess::gotError: %d", (int) error);
}
-
-#include "moc_mplayerprocess.cpp"
2  src/mplayerwindow.cpp
View
@@ -513,5 +513,3 @@ void MplayerWindow::changeEvent(QEvent *e) {
QWidget::changeEvent(e);
}
}
-
-#include "moc_mplayerwindow.cpp"
2  src/myactiongroup.cpp
View
@@ -113,5 +113,3 @@ void MyActionGroup::removeFrom(QWidget *w) {
w->removeAction( actions()[n] );
}
}
-
-#include "moc_myactiongroup.cpp"
2  src/myprocess.cpp
View
@@ -197,5 +197,3 @@ QStringList MyProcess::splitArguments(const QString & args) {
return l;
}
-
-#include "moc_myprocess.cpp"
7 src/myserver.cpp
View
@@ -17,7 +17,6 @@
*/
#include "myserver.h"
-#include "version.h"
#include <QHostAddress>
#include <QRegExp>
@@ -28,7 +27,7 @@ Connection::Connection(QTcpSocket * s)
//connect(s, SIGNAL(disconnected()), this, SLOT(deleteLater()));
connect(s, SIGNAL(readyRead()), this, SLOT(readData()));
- sendText(QString("SMPlayer2 %1").arg(smplayer2Version()));
+ sendText(QString("SMPlayer2 %1").arg(SMPLAYER2_VERSION));
sendText("Type help for a list of commands");
}
@@ -66,7 +65,7 @@ void Connection::parseLine(QString str) {
QRegExp rx_setVol("^set volume ([0-9]+)");
if (str.toLower() == "hello") {
- sendText(QString("Hello, this is SMPlayer2 %1").arg(smplayer2Version()));
+ sendText(QString("Hello, this is SMPlayer2 %1").arg(SMPLAYER2_VERSION));
}
else
if (str.toLower() == "help") {
@@ -268,5 +267,3 @@ void MyServer::newConnection_slot() {
connect(c, SIGNAL(receivedSetVolume(int)),
this, SIGNAL(receivedSetVolume(int)));
}
-
-#include "moc_myserver.cpp"
3  src/myslider.cpp
View
@@ -179,6 +179,3 @@ void MySlider::mousePressEvent( QMouseEvent * e ) {
}
}
#endif
-
-#include "moc_myslider.cpp"
-
5 src/playlist.cpp
View
@@ -46,7 +46,6 @@
#include "helper.h"
#include "images.h"
#include "preferences.h"
-#include "version.h"
#include "global.h"
#include "core.h"
#include "extensions.h"
@@ -722,7 +721,7 @@ bool Playlist::save_m3u(QString file) {
QString filename;
stream << "#EXTM3U" << "\n";
- stream << "# Playlist created by SMPlayer2 " << smplayer2Version() << " \n";
+ stream << "# Playlist created by SMPlayer2 " << SMPLAYER2_VERSION << " \n";
PlaylistItemList::iterator it;
for ( it = pl.begin(); it != pl.end(); ++it ) {
@@ -1456,5 +1455,3 @@ void Playlist::changeEvent(QEvent *e) {
QWidget::changeEvent(e);
}
}
-
-#include "moc_playlist.cpp"
4 src/playlistdock.cpp
View
@@ -46,7 +46,3 @@ void PlaylistDock::hideEvent( QHideEvent * /* event */ ) {
emit visibilityChanged(false);
}
#endif
-
-
-#include "moc_playlistdock.cpp"
-
2  src/prefadvanced.cpp
View
@@ -452,5 +452,3 @@ void PrefAdvanced::createHelp() {
"starting with <i>Core::</i>") );
}
-
-#include "moc_prefadvanced.cpp"
3  src/prefassociations.cpp
View
@@ -219,6 +219,3 @@ void PrefAssociations::createHelp() {
"be restored.") +
tr(" <b>Note:</b> (Restoration doesn't work on Windows Vista)."));
}
-
-#include "moc_prefassociations.cpp"
-
2  src/prefdrives.cpp
View
@@ -195,5 +195,3 @@ void PrefDrives::createHelp() {
"issues with it."));
#endif
}
-
-#include "moc_prefdrives.cpp"
2  src/preferencesdialog.cpp
View
@@ -224,5 +224,3 @@ void PreferencesDialog::changeEvent(QEvent *e) {
QDialog::changeEvent(e);
}
}
-
-#include "moc_preferencesdialog.cpp"
2  src/prefgeneral.cpp
View
@@ -1021,5 +1021,3 @@ void PrefGeneral::createHelp() {
"language\"</i> has preference over this option.") );
}
-
-#include "moc_prefgeneral.cpp"
2  src/prefinput.cpp
View
@@ -355,5 +355,3 @@ void PrefInput::createHelp() {
tr("Check it to seek in the opposite direction.") );
}
-
-#include "moc_prefinput.cpp"
2  src/prefinterface.cpp
View
@@ -594,5 +594,3 @@ void PrefInterface::createHelp() {
"doesn't work well with your window manager.") );
#endif
}
-
-#include "moc_prefinterface.cpp"
2  src/prefperformance.cpp
View
@@ -250,5 +250,3 @@ void PrefPerformance::createHelp() {
tr("This option specifies how much memory (in kBytes) to use when "
"precaching a VCD.") );
}
-
-#include "moc_prefperformance.cpp"
2  src/prefplaylist.cpp
View
@@ -132,5 +132,3 @@ void PrefPlaylist::createHelp() {
"specially if you add many files."));
}
-
-#include "moc_prefplaylist.cpp"
2  src/prefsubtitles.cpp
View
@@ -570,5 +570,3 @@ void PrefSubtitles::createHelp() {
tr("If this option is checked, the style defined above will be "
"applied to ass subtitles too.") );
}
-
-#include "moc_prefsubtitles.cpp"
2  src/preftv.cpp
View
@@ -111,5 +111,3 @@ void PrefTV::createHelp() {
"channels on ~/.mplayer/channels.conf.ter or ~/.mplayer/channels.conf.") );
#endif
}
-
-#include "moc_preftv.cpp"
2  src/seekwidget.cpp
View
@@ -56,5 +56,3 @@ int SeekWidget::time() const {
QTime t = time_edit->time();
return (t.minute() * 60) + t.second();
}
-
-#include "moc_seekwidget.cpp"
2  src/selectcolorbutton.cpp
View
@@ -79,5 +79,3 @@ void SelectColorButton::changeEvent(QEvent *e) {
}
#endif
-
-#include "moc_selectcolorbutton.cpp"
2  src/shortcutgetter.cpp
View
@@ -424,5 +424,3 @@ void ShortcutGetter::setText()
leKey->setText(seq.join("+"));
//leKey->selectAll();
}
-
-#include "moc_shortcutgetter.cpp"
215 src/shortcuts/default.keys
View
@@ -1,215 +0,0 @@
-open_file Ctrl+F
-open_directory
-open_playlist
-open_vcd
-open_audio_cd
-open_dvd
-open_dvd_folder
-open_url Ctrl+U
-close Ctrl+X
-clear_recents
-edit_tv_list
-jump_tv_list
-next_tv H
-previous_tv L
-edit_radio_list
-jump_radio_list
-next_radio Shift+H
-previous_radio Shift+L
-play
-play_or_pause Media Play
-pause Space
-pause_and_frame_step
-stop Media Stop
-frame_step .
-rewind1 Left
-rewind2 Down
-rewind3 PgDown
-forward1 Right
-forward2 Up
-forward3 PgUp
-set_a_marker
-set_b_marker
-clear_ab_markers
-repeat
-jump_to Ctrl+J
-normal_speed Backspace
-halve_speed {
-double_speed }
-dec_speed [
-inc_speed ]
-dec_speed_4
-inc_speed_4
-dec_speed_1
-inc_speed_1
-fullscreen F
-compact Ctrl+C
-video_equalizer Ctrl+E
-screenshot S
-multiple_screenshots Shift+D
-video_preview
-flip
-mirror
-motion_vectors
-postprocessing
-autodetect_phase
-deblock
-dering
-add_noise
-add_letterbox
-upscaling
-audio_equalizer
-mute M
-decrease_volume 9, /
-increase_volume 0, *
-dec_audio_delay -
-inc_audio_delay +
-audio_delay
-load_audio_file
-unload_audio_file
-extrastereo_filter
-karaoke_filter
-volnorm_filter
-load_subs
-unload_subs
-dec_sub_delay Z
-inc_sub_delay X
-sub_delay
-dec_sub_pos R
-inc_sub_pos T
-dec_sub_scale Shift+R
-inc_sub_scale Shift+T
-dec_sub_step G
-inc_sub_step Y
-use_ass_lib
-use_closed_caption
-use_forced_subs_only
-subtitle_visibility V
-show_find_sub_dialog
-upload_subtitles
-show_playlist Ctrl+L
-show_file_properties Ctrl+I
-show_preferences Ctrl+P
-show_mplayer_log Ctrl+M
-show_smplayer2_log Ctrl+S
-faq
-cl_options
-tips
-about_qt
-about_smplayer2
-play_next >
-play_prev <
-move_up Alt+Up
-move_down Alt+Down
-move_left Alt+Left
-move_right Alt+Right
-inc_zoom E
-dec_zoom W
-reset_zoom Shift+E
-auto_zoom Shift+W
-zoom_169 Shift+A
-zoom_235 Shift+S
-exit_fullscreen Esc
-next_osd O
-dec_contrast 1
-inc_contrast 2
-dec_brightness 3
-inc_brightness 4
-dec_hue 5
-inc_hue 6
-dec_saturation 7
-inc_saturation 8
-dec_gamma
-inc_gamma
-next_video
-next_audio K
-next_subtitle J
-next_chapter @
-prev_chapter !
-toggle_double_size Ctrl+D
-reset_video_equalizer
-reset_audio_equalizer
-show_context_menu
-next_aspect A
-next_wheel_function
-show_filename Shift+I
-toggle_deinterlacing D
-osd_none
-osd_seek
-osd_timer
-osd_total
-denoise_none
-denoise_normal
-denoise_soft
-size_50
-size_75
-size_100 Ctrl+1
-size_125
-size_150
-size_175
-size_200 Ctrl+2
-size_300
-size_400
-deinterlace_none
-deinterlace_l5
-deinterlace_yadif0
-deinterlace_yadif1
-deinterlace_lb
-deinterlace_kern
-channels_stereo
-channels_surround
-channels_ful51
-stereo
-left_channel
-right_channel
-aspect_detect
-aspect_1:1
-aspect_3:2
-aspect_4:3
-aspect_5:4
-aspect_14:9
-aspect_14:10
-aspect_16:9
-aspect_16:10
-aspect_2.35:1
-aspect_none
-rotate_none
-rotate_clockwise_flip
-rotate_clockwise
-rotate_counterclockwise
-rotate_counterclockwise_flip
-on_top_always
-on_top_never
-on_top_playing
-toggle_stay_on_top
-dvdnav_up Shift+Up
-dvdnav_down Shift+Down
-dvdnav_left Shift+Left
-dvdnav_right Shift+Right
-dvdnav_menu Shift+Return
-dvdnav_select Return
-dvdnav_prev Shift+Esc
-dvdnav_mouse
-quit
-show_tray_icon
-restore/hide
-pl_open
-pl_save
-pl_play
-pl_next N
-pl_prev P
-pl_move_up
-pl_move_down
-pl_repeat
-pl_shuffle
-pl_preferences
-pl_add_current
-pl_add_files
-pl_add_directory
-pl_remove_selected
-pl_remove_all
-pl_edit
-toggle_video_info
-toggle_frame_counter
-show_main_toolbar F5
-show_language_toolbar F6
175 src/shortcuts/sda.keys
View
@@ -1,175 +0,0 @@
-open_file Ctrl+F
-open_directory Shift+F
-open_playlist Ctrl+P
-open_vcd Ctrl+V
-open_audio_cd Ctrl+M
-open_dvd Ctrl+D
-open_dvd_folder Shift+D
-open_url Shift+O
-close Q
-clear_recents
-play
-play_or_pause P
-pause
-pause_and_frame_step O
-stop Esc
-frame_step
-rewind1 Left
-rewind2 PgUp
-rewind3 Home
-forward1 Right
-forward2 PgDown
-forward3 End
-repeat
-jump_to J
-normal_speed \
-halve_speed Ctrl+[
-double_speed Ctrl+]
-dec_speed [
-inc_speed ]
-dec_speed_4 Shift+{
-inc_speed_4 Shift+}
-dec_speed_1
-inc_speed_1
-fullscreen Alt+Return
-compact Tab
-video_equalizer V
-screenshot S
-on_top F3
-flip ^
-postprocessing !
-autodetect_phase @
-deblock #
-dering $
-add_noise ~
-add_letterbox `
-upscaling %
-audio_equalizer E
-mute M
-decrease_volume -
-increase_volume =
-dec_audio_delay ;
-inc_audio_delay '
-load_audio_file X
-unload_audio_file Ctrl+X
-extrastereo_filter )
-karaoke_filter (
-volnorm_filter *
-load_subs L
-unload_subs Ctrl+L
-dec_sub_delay Ctrl+;
-inc_sub_delay Ctrl+'
-dec_sub_pos Ctrl+F11
-inc_sub_pos Ctrl+F12
-dec_sub_scale F11
-inc_sub_scale F12
-dec_sub_step Alt+Left
-inc_sub_step Alt+Right
-use_ass_lib U
-use_closed_caption Ctrl+U
-use_forced_subs_only Shift+U
-show_find_sub_dialog
-upload_subtitles
-show_playlist Space
-show_file_properties Return
-frame_counter F
-motion_vectors G
-show_preferences F2
-show_mplayer_log F9
-show_smplayer2_log F10
-faq
-cl_options F1
-tips
-about_qt
-about_smplayer2
-play_next Down
-play_prev Up
-move_up Ctrl+Up
-move_down Ctrl+Down
-move_left Ctrl+Left
-move_right Ctrl+Right
-inc_zoom Z
-dec_zoom Shift+Z
-reset_zoom Ctrl+Z
-exit_fullscreen
-next_osd
-dec_contrast 1
-inc_contrast 2
-dec_brightness 3
-inc_brightness 4
-dec_hue 5
-inc_hue 6
-dec_saturation 7
-inc_saturation 8
-dec_gamma 9
-inc_gamma 0
-next_audio T
-next_subtitle Ctrl+T
-next_chapter /
-prev_chapter .
-toggle_double_size Ctrl+Return
-reset_video_equalizer Shift+E
-reset_audio_equalizer Ctrl+E
-show_context_menu Shift+F10
-osd_none Ctrl+Backspace
-osd_seek Shift+Backspace
-osd_timer
-osd_total Backspace
-denoise_none Ctrl+N
-denoise_normal N
-denoise_soft Shift+N
-size_50 Ctrl+5
-size_75 Ctrl+7
-size_100 Ctrl+0
-size_125
-size_150 Ctrl+1
-size_175
-size_200 Ctrl+2
-size_300 Ctrl+3
-size_400 Ctrl+4
-deinterlace_none Ctrl+I
-deinterlace_l5
-deinterlace_yadif0 Shift+I
-deinterlace_yadif1 I
-deinterlace_lb
-deinterlace_kern
-channels_stereo Ctrl+C
-channels_surround Shift+C
-channels_ful51 C
-stereo Ctrl+A
-left_channel A
-right_channel Shift+A
-aspect_detect Ctrl+W
-aspect_4:3 Shift+W
-aspect_5:4
-aspect_14:9
-aspect_16:9 W
-aspect_16:10
-aspect_2.35:1
-aspect_none
-rotate_none Ctrl+R
-rotate_clockwise R
-rotate_counterclockwise Shift+R
-rotate_clockwise_flip
-rotate_counterclockwise_flip
-quit Ctrl+Q
-show_tray_icon F4
-restore/hide H
-pl_open Ctrl+O
-pl_save Ctrl+S
-pl_play Shift+P
-pl_next Shift+Down
-pl_prev Shift+Up
-pl_move_up Alt+Up
-pl_move_down Alt+Down
-pl_repeat F7
-pl_shuffle F8
-pl_preferences Shift+F2
-pl_add_current Shift+Ins
-pl_add_files Ins
-pl_add_directory Ctrl+Ins
-pl_remove_selected Del
-pl_remove_all Ctrl+Del
-pl_edit Shift+Del
-show_main_toolbar F5
-show_language_toolbar F6
5 src/smplayer2.cpp
View
@@ -19,11 +19,10 @@
#include "smplayer2.h"
#include "defaultgui.h"
#include "minigui.h"
-#include "mpcgui.h"
+#include "mpcgui/mpcgui.h"
#include "global.h"
#include "paths.h"
#include "translator.h"
-#include "version.h"
#include "constants.h"
#include "myclient.h"
#include "clhelp.h"
@@ -373,7 +372,7 @@ void SMPlayer2::showInfo() {
}
#endif
QString s = QObject::tr("This is SMPlayer2 v. %1 running on %2")
- .arg(smplayer2Version())
+ .arg(SMPLAYER2_VERSION)
#ifdef Q_OS_LINUX
.arg("Linux")
#else
314 src/smplayer2.pro
View
@@ -1,314 +0,0 @@
-TEMPLATE = app
-LANGUAGE = C++
-
-CONFIG += qt warn_on release
-
-QT += network xml
-
-RESOURCES = icons.qrc
-
-INCLUDEPATH += findsubtitles videopreview mpcgui
-DEPENDPATH += findsubtitles videopreview mpcgui
-
-#DEFINES += USE_QXT
-
-DEFINES += DOWNLOAD_SUBS
-
-HEADERS += guiconfig.h \
- config.h \
- constants.h \
- version.h \
- global.h \
- paths.h \
- helper.h \
- colorutils.h \
- translator.h \
- subtracks.h \
- tracks.h \
- titletracks.h \
- discname.h \
- extensions.h \
- desktopinfo.h \
- myprocess.h \
- mplayerprocess.h \
- infoprovider.h \
- mplayerwindow.h \
- mediadata.h \
- audioequalizerlist.h \
- mediasettings.h \
- assstyles.h \
- filters.h \
- preferences.h \
- filesettingsbase.h \
- filesettings.h \
- filesettingshash.h \
- tvsettings.h \
- images.h \
- inforeader.h \
- deviceinfo.h \
- recents.h \
- urlhistory.h \
- core.h \
- logwindow.h \
- infofile.h \
- seekwidget.h \
- mytablewidget.h \
- shortcutgetter.h \
- actionseditor.h \
- filechooser.h \
- preferencesdialog.h \
- mycombobox.h \
- tristatecombo.h \
- languages.h \
- selectcolorbutton.h \
- prefwidget.h \
- prefgeneral.h \
- prefdrives.h \
- prefinterface.h \
- prefperformance.h \
- prefinput.h \
- prefsubtitles.h \
- prefadvanced.h \
- prefplaylist.h \
- preftv.h \
- filepropertiesdialog.h \
- playlist.h \
- playlistdock.h \
- verticaltext.h \
- eqslider.h \
- videoequalizer.h \
- audioequalizer.h \
- myslider.h \
- timeslider.h \
- inputdvddirectory.h \
- inputurl.h \
- myaction.h \
- myactiongroup.h \
- myserver.h \
- myclient.h \
- filedialog.h \
- about.h \
- errordialog.h \
- timedialog.h \
- findsubtitles/simplehttp.h \
- findsubtitles/osparser.h \
- findsubtitles/findsubtitlesconfigdialog.h \
- findsubtitles/findsubtitleswindow.h \
- videopreview/videopreview.h \
- videopreview/videopreviewconfigdialog.h \
- favorites.h \
- tvlist.h \
- favoriteeditor.h \
- basegui.h \
- baseguiplus.h \
- floatingwidget.h \
- widgetactions.h \
- toolbareditor.h \
- defaultgui.h \
- minigui.h \
- mpcgui/mpcgui.h \
- mpcgui/mpcstyles.h \
- smplayer2.h \
- clhelp.h
-
-
-SOURCES += version.cpp \
- global.cpp \
- paths.cpp \
- helper.cpp \
- colorutils.cpp \
- translator.cpp \
- subtracks.cpp \
- tracks.cpp \
- titletracks.cpp \
- discname.cpp \
- extensions.cpp \
- desktopinfo.cpp \
- myprocess.cpp \
- mplayerprocess.cpp \
- infoprovider.cpp \
- mplayerwindow.cpp \
- mediadata.cpp \
- mediasettings.cpp \
- assstyles.cpp \
- filters.cpp \
- preferences.cpp \
- filesettingsbase.cpp \
- filesettings.cpp \
- filesettingshash.cpp \
- tvsettings.cpp \
- images.cpp \
- inforeader.cpp \
- deviceinfo.cpp \
- recents.cpp \
- urlhistory.cpp \
- core.cpp \
- logwindow.cpp \
- infofile.cpp \
- seekwidget.cpp \
- mytablewidget.cpp \
- shortcutgetter.cpp \
- actionseditor.cpp \
- filechooser.cpp \
- preferencesdialog.cpp \
- mycombobox.cpp \
- tristatecombo.cpp \
- languages.cpp \
- selectcolorbutton.cpp \
- prefwidget.cpp \
- prefgeneral.cpp \
- prefdrives.cpp \
- prefinterface.cpp \
- prefperformance.cpp \
- prefinput.cpp \
- prefsubtitles.cpp \
- prefadvanced.cpp \
- prefplaylist.cpp \
- preftv.cpp \
- filepropertiesdialog.cpp \
- playlist.cpp \
- playlistdock.cpp \
- verticaltext.cpp \
- eqslider.cpp \
- videoequalizer.cpp \
- audioequalizer.cpp \
- myslider.cpp \
- timeslider.cpp \
- inputdvddirectory.cpp \
- inputurl.cpp \
- myaction.cpp \
- myactiongroup.cpp \
- myserver.cpp \
- myclient.cpp \
- filedialog.cpp \
- about.cpp \
- errordialog.cpp \
- timedialog.cpp \
- findsubtitles/simplehttp.cpp \
- findsubtitles/osparser.cpp \
- findsubtitles/findsubtitlesconfigdialog.cpp \
- findsubtitles/findsubtitleswindow.cpp \
- videopreview/videopreview.cpp \
- videopreview/videopreviewconfigdialog.cpp \
- favorites.cpp \
- tvlist.cpp \
- favoriteeditor.cpp \
- basegui.cpp \
- baseguiplus.cpp \
- floatingwidget.cpp \
- widgetactions.cpp \
- toolbareditor.cpp \
- defaultgui.cpp \
- minigui.cpp \
- mpcgui/mpcgui.cpp \
- mpcgui/mpcstyles.cpp \
- clhelp.cpp \
- smplayer2.cpp \
- main.cpp
-
-#libqxt
-contains(DEFINES, USE_QXT) {
- CONFIG += qxt
- QXT += core
-}
-
-FORMS = inputdvddirectory.ui logwindowbase.ui filepropertiesdialog.ui \
- eqslider.ui seekwidget.ui inputurl.ui \
- preferencesdialog.ui prefgeneral.ui prefdrives.ui prefinterface.ui \
- prefperformance.ui prefinput.ui prefsubtitles.ui prefadvanced.ui \
- prefplaylist.ui preftv.ui favoriteeditor.ui \
- about.ui errordialog.ui timedialog.ui \
- filechooser.ui \
- findsubtitles/findsubtitleswindow.ui findsubtitles/findsubtitlesconfigdialog.ui \
- videopreview/videopreviewconfigdialog.ui
-
-TRANSLATIONS = translations/smplayer2_es.ts translations/smplayer2_de.ts \
- translations/smplayer2_sk.ts translations/smplayer2_it.ts \
- translations/smplayer2_fr.ts translations/smplayer2_zh_CN.ts \
- translations/smplayer2_ru_RU.ts translations/smplayer2_hu.ts \
- translations/smplayer2_en_US.ts translations/smplayer2_pl.ts \
- translations/smplayer2_ja.ts translations/smplayer2_nl.ts \
- translations/smplayer2_uk_UA.ts translations/smplayer2_pt_BR.ts \
- translations/smplayer2_ka.ts translations/smplayer2_cs.ts \
- translations/smplayer2_bg.ts translations/smplayer2_tr.ts \
- translations/smplayer2_sv.ts translations/smplayer2_sr.ts \
- translations/smplayer2_zh_TW.ts translations/smplayer2_ro_RO.ts \
- translations/smplayer2_pt.ts translations/smplayer2_el_GR.ts \
- translations/smplayer2_fi.ts translations/smplayer2_ko.ts \
- translations/smplayer2_mk.ts translations/smplayer2_eu.ts \
- translations/smplayer2_ca.ts translations/smplayer2_sl_SI.ts \
- translations/smplayer2_ar_SY.ts translations/smplayer2_ku.ts \
- translations/smplayer2_gl.ts translations/smplayer2_vi_VN.ts \
- translations/smplayer2_et.ts translations/smplayer2_lt.ts \
- translations/smplayer2_da.ts
-
-contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += findsubtitles/filedownloader
- DEPENDPATH += findsubtitles/filedownloader
-
- HEADERS += filedownloader.h subchooserdialog.h
- SOURCES += filedownloader.cpp subchooserdialog.cpp
-
- FORMS += subchooserdialog.ui
-
- LIBS += -lquazip
-
- LIBS += -lz
-}
-
-unix {
- UI_DIR = .ui
- MOC_DIR = .moc
- OBJECTS_DIR = .obj
-
- DEFINES += DATA_PATH=$(DATA_PATH)
- DEFINES += DOC_PATH=$(DOC_PATH)
- DEFINES += TRANSLATION_PATH=$(TRANSLATION_PATH)
- DEFINES += THEMES_PATH=$(THEMES_PATH)
- DEFINES += SHORTCUTS_PATH=$(SHORTCUTS_PATH)
- #DEFINES += NO_DEBUG_ON_CONSOLE
-
- #DEFINES += KDE_SUPPORT
- #INCLUDEPATH += /opt/kde3/include/
- #LIBS += -lkio -L/opt/kde3/lib/
-
- #contains( DEFINES, KDE_SUPPORT) {
- # HEADERS += mysystemtrayicon.h
- # SOURCES += mysystemtrayicon.cpp
- #}
-
- #HEADERS += prefassociations.h winfileassoc.h
- #SOURCES += prefassociations.cpp winfileassoc.cpp
- #FORMS += prefassociations.ui
-}
-
-win32 {
- DEFINES += SCREENSAVER_OFF
- contains( DEFINES, SCREENSAVER_OFF ) {
- HEADERS += screensaver.h
- SOURCES += screensaver.cpp
- }
-
- !contains( DEFINES, PORTABLE_APP ) {
- DEFINES += USE_ASSOCIATIONS
- }
-
- contains( DEFINES, USE_ASSOCIATIONS ) {
- HEADERS += prefassociations.h winfileassoc.h
- SOURCES += prefassociations.cpp winfileassoc.cpp
- FORMS += prefassociations.ui
- }
-
- contains(TEMPLATE,vcapp) {
- LIBS += ole32.lib user32.lib
- } else {
- LIBS += libole32
- }
-
- RC_FILE = smplayer2.rc
- DEFINES += NO_DEBUG_ON_CONSOLE
-# debug {
-# CONFIG += console
-# }
-}
-
109 src/testcorelib/test.cpp
View
@@ -1,109 +0,0 @@
-/* smplayer2, GUI front-end for mplayer2.
- Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-#include "test.h"
-#include "smplayer2corelib.h"
-#include "helper.h"
-#include "global.h"
-#include <QAction>
-#include <QMenuBar>
-#include <QToolBar>
-#include "timeslider.h"
-#include <QFileDialog>
-
-#include <QApplication>
-
-Gui::Gui( QWidget * parent, Qt::WindowFlags flags )
- : QMainWindow(parent, flags)
-{
- smplayer2lib = new SmplayerCoreLib(this);
- core = smplayer2lib->core();
- setCentralWidget(smplayer2lib->mplayerWindow());
-
- QAction * openAct = new QAction( tr("&Open..."), this);
- connect( openAct, SIGNAL(triggered()), this, SLOT(open()) );
-
- QAction * closeAct = new QAction( tr("&Close"), this);
- connect( closeAct, SIGNAL(triggered()), this, SLOT(close()) );
-
- QMenu * open_menu = menuBar()->addMenu( tr("&Open") );
- open_menu->addAction(openAct);
- open_menu->addAction(closeAct);
-
- QAction * playAct = new QAction( tr("&Play/Pause"), this);
- playAct->setShortcut( Qt::Key_Space );
- connect( playAct, SIGNAL(triggered()),
- core, SLOT(play_or_pause()) );
-
- QAction * stopAct = new QAction( tr("&Stop"), this);
- connect( stopAct, SIGNAL(triggered()),
- core, SLOT(stop()) );
-
- QMenu * play_menu = menuBar()->addMenu( tr("&Play") );
- play_menu->addAction(playAct);
- play_menu->addAction(stopAct);
-
-
- TimeSlider * time_slider = new TimeSlider(this);
- connect( time_slider, SIGNAL(posChanged(int)),
- core, SLOT(goToPos(int)) );
- connect( core, SIGNAL(posChanged(int)),
- time_slider, SLOT(setPos(int)) );
-
- QToolBar * control = new QToolBar( tr("Control"), this);
- control->addAction(playAct);
- control->addAction(stopAct);
- control->addSeparator();
- control->addWidget(time_slider);
-
- addToolBar(Qt::BottomToolBarArea, control);
-}
-
-Gui::~Gui() {