From 762b2310376ece27b224cb0026d45857700e48fa Mon Sep 17 00:00:00 2001 From: lordmulder Date: Tue, 19 Apr 2011 16:14:05 +0200 Subject: [PATCH] Now using Qt v4.7.3, available trough Qt SDK v1.1 RC. --- LameXP_VS2010.vcxproj | 2 +- doc/Changelog.html | 1 + doc/FAQ.html | 2 +- doc/Translate.html | 2 +- etc/Deployment/buildenv.template.txt | 2 +- src/Config.h | 2 +- src/Global.cpp | 39 ++++++++++++++-------------- 7 files changed, 26 insertions(+), 24 deletions(-) diff --git a/LameXP_VS2010.vcxproj b/LameXP_VS2010.vcxproj index 6c7211c7..add5f55c 100644 --- a/LameXP_VS2010.vcxproj +++ b/LameXP_VS2010.vcxproj @@ -203,7 +203,7 @@ del "$(TargetDir)imageformats\q???d4.dll" "/MANIFESTDEPENDENCY:type=%27win32%27 name=%27Microsoft.Windows.Common-Controls%27 version=%276.0.0.0%27 publicKeyToken=%276595b64144ccf1df%27 language=%27*%27 processorArchitecture=%27*%27" %(AdditionalOptions) - qtmain.lib;QtCore.lib;QtGui.lib;QtSvg.lib;qsvg.lib;qico.lib;Winmm.lib;imm32.lib;ws2_32.lib;Shlwapi.lib;%(AdditionalDependencies) + qtmain.lib;QtCore.lib;QtGui.lib;QtSvg.lib;qgif.lib;qsvg.lib;qico.lib;Winmm.lib;imm32.lib;ws2_32.lib;Shlwapi.lib;%(AdditionalDependencies) LinkVerboseLib $(SolutionDir)\etc\Prerequisites\qt4_static\lib;$(SolutionDir)\etc\Prerequisites\qt4_static\plugins\imageformats;%(AdditionalLibraryDirectories) %(IgnoreSpecificDefaultLibraries) diff --git a/doc/Changelog.html b/doc/Changelog.html index 42446259..196fc86c 100644 --- a/doc/Changelog.html +++ b/doc/Changelog.html @@ -21,6 +21,7 @@ a:visited { color: #0000EE; }
  • Dropping support for Windows 2000 and for Windows XP RTM/SP1, Windows XP needs SP2 or SP3 now!
  • Added a new translation: Korean
  • Added a method to use custom tools instead of the "built-in" ones (see FAQ doc for details) +
  • Updated Qt runtime libraries to v4.7.3
  • Updated LAME encoder to v3.99.1.0 (2011-04-15), compiled with ICL 12.0.3 and MSVC 10.0 (details)
  • Updated MediaInfo to v0.7.43 (2011-04-10), compiled with ICL 12.0.3 and MSVC 10.0
  • Updated language files (big thank-you to all contributors !!!) diff --git a/doc/FAQ.html b/doc/FAQ.html index b790de54..c4c4e8cd 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -542,7 +542,7 @@ LameXP is developed using the Qt cross-platform application framework. The good news for translators is that Qt provides full Unicode support, which was also one of the main reasons for the re-write. Consequently there will be no more headache with different Codepages! Furthermore the Qt framework provides a sophisticated translation system, which allows for easy internationalization and localization. There even is an easy-to-use graphical tool for translating Qt application, the Qt Linguist. So before you start translating, you should make yourself familiar with the Qt Linguist application first. As a translator, having a quick look at the guide for translators should be sufficient.

    -

    You can download Qt Linguist as a part of the Qt Framework, which is available as a free download from the Qt download site. You should pick the "LGPL" version and the "Qt: Framework Only" download. If you are using Microsoft Windows, then the "VS 2008" version should be preferred. Moreover people who don't like to download the complete framework (230 MB) can find Qt Linguist for Windows as a stand-alone download at this location (4 MB).

    +

    You can download Qt Linguist as a part of the Qt Framework, which is available as a free download from the Qt download site. You should pick the "LGPL" version and the "Qt: Framework Only" download. If you are using Microsoft Windows, then the "VS 2008" version should be preferred. Moreover people who don't like to download the complete framework (approx. 230 MB) can find Qt Linguist for Windows as a stand-alone download at this location (only 5 MB).


    Editing the language file:

    LameXP v4.xx translations are created as TS (translation) files, which can be edited using the Qt Linguist application. For new translations an empty TS file ("Blank.ts") is provided in the LameXP Git repository. When you open the empty TS file for the first time, Qt Linguist will ask for some basic settings. Here you must keep the "Source language" options at "English" and "Any Country". Change the "Target language" options to whatever language (region) you are going to translate to. Once you have edited all (or some) text strings, you can save your work to a TS file again. It is recommended to save your work to "LameXP_XX.ts", where XX should be replaced with the suitable upper-case ISO 3166-1 or ISO 639-1 country/language code (for example the German translation is saved as "LameXP_DE.ts"). You can re-open your TS file at any time in order to continue with your work. In case you want to improve an existing LameXP translation, simply download the corresponding TS file from the LameXP Git repository and edit it using the Qt Linguist tool.

    diff --git a/etc/Deployment/buildenv.template.txt b/etc/Deployment/buildenv.template.txt index 139435e5..b9bbb210 100644 --- a/etc/Deployment/buildenv.template.txt +++ b/etc/Deployment/buildenv.template.txt @@ -3,6 +3,6 @@ #define PATH_UPXBIN "C:\Program Files\UPX" #define PATH_MKNSIS "C:\Program Files\NSIS\Unicode" #define PATH_MSVC90 "C:\Program Files\Microsoft Visual Studio 9.0" -#define PATH_QTMSVC "C:\Qt\4.7.2" +#define PATH_QTMSVC "C:\QtSDK\Desktop\Qt\4.7.3\msvc2008" #define PATH_GNUPG1 "C:\Program Files\GNU\GnuPG" #define PATH_VCPROJ "LameXP_VS2008.sln" diff --git a/src/Config.h b/src/Config.h index 089d7e7d..3b3e3947 100644 --- a/src/Config.h +++ b/src/Config.h @@ -30,7 +30,7 @@ #define VER_LAMEXP_MINOR_LO 2 #define VER_LAMEXP_TYPE Alpha #define VER_LAMEXP_PATCH 4 -#define VER_LAMEXP_BUILD 449 +#define VER_LAMEXP_BUILD 451 /////////////////////////////////////////////////////////////////////////////// // Tools versions diff --git a/src/Global.cpp b/src/Global.cpp index 87c645c0..e7a9ef57 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -55,16 +55,15 @@ #include //Debug only includes -#ifdef _DEBUG +#if LAMEXP_DEBUG #include -#endif //_DEBUG +#endif -//Static build only macros +//Initialize static Qt plugins #ifdef QT_NODLL -#pragma warning(disable:4101) -#define LAMEXP_INIT_QT_STATIC_PLUGIN(X) Q_IMPORT_PLUGIN(X) -#else -#define LAMEXP_INIT_QT_STATIC_PLUGIN(X) +Q_IMPORT_PLUGIN(qgif) +Q_IMPORT_PLUGIN(qico) +Q_IMPORT_PLUGIN(qsvg) #endif /////////////////////////////////////////////////////////////////////////////// @@ -560,10 +559,9 @@ lamexp_cpu_t lamexp_detect_cpu_features(void) } /* - * Check for debugger + * Check for debugger (thread proc) */ -#if !defined(_DEBUG) || defined(NDEBUG) -void WINAPI lamexp_debug_thread_proc(__in LPVOID lpParameter) +static void WINAPI lamexp_debug_thread_proc(__in LPVOID lpParameter) { while(!IsDebuggerPresent()) { @@ -571,7 +569,11 @@ void WINAPI lamexp_debug_thread_proc(__in LPVOID lpParameter) } TerminateProcess(GetCurrentProcess(), -1); } -HANDLE lamexp_debug_thread_init(void) + +/* + * Check for debugger (startup routine) + */ +static HANDLE lamexp_debug_thread_init(void) { if(IsDebuggerPresent()) { @@ -580,8 +582,6 @@ HANDLE lamexp_debug_thread_init(void) } return CreateThread(NULL, NULL, reinterpret_cast(&lamexp_debug_thread_proc), NULL, NULL, NULL); } -static const HANDLE g_debug_thread = lamexp_debug_thread_init(); -#endif /* * Check for compatibility mode @@ -717,10 +717,6 @@ bool lamexp_init_qt(int argc, char* argv[]) QCoreApplication::setLibraryPaths(QStringList() << QApplication::applicationDirPath()); qDebug("Library Path:\n%s\n", QApplication::libraryPaths().first().toUtf8().constData()); - //Init static Qt plugins - LAMEXP_INIT_QT_STATIC_PLUGIN(qico); - LAMEXP_INIT_QT_STATIC_PLUGIN(qsvg); - //Check for supported image formats QList supportedFormats = QImageReader::supportedImageFormats(); for(int i = 0; g_lamexp_imageformats[i]; i++) @@ -1448,17 +1444,22 @@ void lamexp_finalization(void) LAMEXP_DELETE(g_lamexp_ipc_ptr.semaphore_write); } +/* + * Initialize debug thread + */ +static const HANDLE g_debug_thread = LAMEXP_DEBUG ? NULL : lamexp_debug_thread_init(); + /* * Get number private bytes [debug only] */ SIZE_T lamexp_dbg_private_bytes(void) { -#ifdef _DEBUG +#if LAMEXP_DEBUG PROCESS_MEMORY_COUNTERS_EX memoryCounters; memoryCounters.cb = sizeof(PROCESS_MEMORY_COUNTERS_EX); GetProcessMemoryInfo(GetCurrentProcess(), (PPROCESS_MEMORY_COUNTERS) &memoryCounters, sizeof(PROCESS_MEMORY_COUNTERS_EX)); return memoryCounters.PrivateUsage; #else throw "Cannot call this function in a non-debug build!"; -#endif //_DEBUG +#endif //LAMEXP_DEBUG }