diff --git a/.gitignore b/.gitignore index 7547a464..45ef94ca 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,9 @@ version.txt .DS_Store Info.plist GoldenDict.xcodeproj/ + +# visual studio files +*.sdf +*.opensdf +*.suo +*.vcxproj.user diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..9492cdc8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "winlibs/lib/msvc"] + path = winlibs/lib/msvc + url = git@github.com:Tvangeste/goldendict-winlibs-prebuilt.git diff --git a/MSBuild/QtExtensions/lrelease.props b/MSBuild/QtExtensions/lrelease.props new file mode 100644 index 00000000..0b9d2d4a --- /dev/null +++ b/MSBuild/QtExtensions/lrelease.props @@ -0,0 +1,18 @@ + + + + + + %(Filename).qm + false + $(QTDIR)\bin\lrelease.exe + %(LRELEASE) [AllOptions] [AdditionalOptions] [Inputs] + + + + $(BuildGenerateSourcesTargets);_QtTranslate + + diff --git a/MSBuild/QtExtensions/lrelease.targets b/MSBuild/QtExtensions/lrelease.targets new file mode 100644 index 00000000..a9642e31 --- /dev/null +++ b/MSBuild/QtExtensions/lrelease.targets @@ -0,0 +1,92 @@ + + + + + + + QtTranslate + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + + + + + + + + + + + + + @(QtTranslate, '|') + + + + + + + + + + + True + %(QtTranslate.Identity) + + + + + + diff --git a/MSBuild/QtExtensions/lrelease.xml b/MSBuild/QtExtensions/lrelease.xml new file mode 100644 index 00000000..2a8e1aff --- /dev/null +++ b/MSBuild/QtExtensions/lrelease.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/QtExtensions/moc.props b/MSBuild/QtExtensions/moc.props new file mode 100644 index 00000000..f08bd9c5 --- /dev/null +++ b/MSBuild/QtExtensions/moc.props @@ -0,0 +1,30 @@ + + + + + + %(Filename)%(Extension).$(Platform).$(Configuration).cpp + false + false + + + + false + + + + + $(QTDIR)\bin\moc.exe + + + + %(MOC) [AllOptions] [AdditionalOptions] [Inputs] + + + + $(BuildGenerateSourcesTargets);_QtMOCCompile + + diff --git a/MSBuild/QtExtensions/moc.targets b/MSBuild/QtExtensions/moc.targets new file mode 100644 index 00000000..5d3bb130 --- /dev/null +++ b/MSBuild/QtExtensions/moc.targets @@ -0,0 +1,137 @@ + + + + + + + QtMOCCompile + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + + + + + + + + + + + + + + + true + + + + + + @(BuddyClCompile->'%(AdditionalIncludeDirectories)') + @(BuddyClCompile->'%(PreprocessorDefinitions)') + @(BuddyClCompile->'%(UndefinePreprocessorDefinitions)') + + + + + @(QtMOCCompile, '|') + + + + + + + + + + + + + + + + + True + %(QtMOCCompile.Identity) + TurnOffAllWarnings + NotUsing + %(QtMOCCompile.AdditionalIncludeDirectories);%(QtMOCCompile.DefaultIncludeDirectories) + %(QtMOCCompile.DefaultPreprocessorDefinitions);%(QtMOCCompile.PreprocessorDefinitions) + %(QtMOCCompile.DefaultUndefinePreprocessorDefinitions);%(QtMOCCompile.UndefinePreprocessorDefinitions) + %(QtMOCCompile.ClCompileAssemblerListingLocation) + %(QtMOCCompile.ClCompileObjectFileName) + %(QtMOCCompile.ClCompileXMLDocumentationFileName) + + + + + + diff --git a/MSBuild/QtExtensions/moc.xml b/MSBuild/QtExtensions/moc.xml new file mode 100644 index 00000000..faa0d21d --- /dev/null +++ b/MSBuild/QtExtensions/moc.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/QtExtensions/rcc.props b/MSBuild/QtExtensions/rcc.props new file mode 100644 index 00000000..2ea13966 --- /dev/null +++ b/MSBuild/QtExtensions/rcc.props @@ -0,0 +1,27 @@ + + + + + + %(Filename)%(Extension).cpp + %(Filename) + + -1 + + true + false + $(QTDIR)\bin\rcc.exe + $(QTDIR)\bin\rcc.exe;$(MSBuildProjectFile) + + + + %(RCC) [AllOptions] [AdditionalOptions] [Inputs] + + + + $(BuildGenerateSourcesTargets);_QtRCCCompile + + diff --git a/MSBuild/QtExtensions/rcc.targets b/MSBuild/QtExtensions/rcc.targets new file mode 100644 index 00000000..147b0599 --- /dev/null +++ b/MSBuild/QtExtensions/rcc.targets @@ -0,0 +1,124 @@ + + + + + + + QtRCCCompile + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + + + + + + + + + + + + + + + + + + + + @(QtRCCDeps);%(QtRCCCompile.AdditionalDependencies) + + + + + + + + + + + @(QtRCCCompile, '|') + + + + + + + + + + + True + %(QtRCCCompile.Identity) + TurnOffAllWarnings + NotUsing + %(QtRCCCompile.ClCompileAssemblerListingLocation) + %(QtRCCCompile.ClCompileObjectFileName) + %(QtRCCCompile.ClCompileXMLDocumentationFileName) + + + + + + diff --git a/MSBuild/QtExtensions/rcc.xml b/MSBuild/QtExtensions/rcc.xml new file mode 100644 index 00000000..76627a58 --- /dev/null +++ b/MSBuild/QtExtensions/rcc.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/QtExtensions/uic.props b/MSBuild/QtExtensions/uic.props new file mode 100644 index 00000000..39e8d4fa --- /dev/null +++ b/MSBuild/QtExtensions/uic.props @@ -0,0 +1,19 @@ + + + + + + %(Filename)%(Extension).h + + false + $(QTDIR)\bin\uic.exe + %(UIC) [AllOptions] [AdditionalOptions] [Inputs] + + + + $(BuildGenerateSourcesTargets);_QtUICCompile + + diff --git a/MSBuild/QtExtensions/uic.targets b/MSBuild/QtExtensions/uic.targets new file mode 100644 index 00000000..3616fd8d --- /dev/null +++ b/MSBuild/QtExtensions/uic.targets @@ -0,0 +1,94 @@ + + + + + + + QtUICCompile + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + $(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml + + + + + + + + + + + + + @(QtUICCompile, '|') + + + + + + + + + + + True + %(QtUICCompile.Identity) + + + + + + diff --git a/MSBuild/QtExtensions/uic.xml b/MSBuild/QtExtensions/uic.xml new file mode 100644 index 00000000..fcdad7cd --- /dev/null +++ b/MSBuild/QtExtensions/uic.xml @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/custom.props b/MSBuild/custom.props new file mode 100644 index 00000000..30826fd3 --- /dev/null +++ b/MSBuild/custom.props @@ -0,0 +1,6 @@ + + + + diff --git a/MSBuild/custom.targets b/MSBuild/custom.targets new file mode 100644 index 00000000..ce64f431 --- /dev/null +++ b/MSBuild/custom.targets @@ -0,0 +1,43 @@ + + + + + $(ProjectDir)version.txt + $(IntDir)version.txt + + + + + + + + + + $([System.IO.File]::ReadAllText($(VersionFile)).Trim()) + $([System.IO.File]::ReadAllText($(NewVersionFile)).Trim()) + + + + + + + + + + + + diff --git a/README.md b/README.md index 98d048d3..1137e85c 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This code has been run and tested on Windows XP/Vista/7, Ubuntu Linux, Mac OS X. sudo apt-get install git pkg-config build-essential qt4-qmake \ libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev \ - qt4-qmake libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \ + libqt4-dev libqtwebkit-dev libxtst-dev liblzo2-dev libbz2-dev \ libao-dev libavutil-dev libavformat-dev ## How to build diff --git a/about.cc b/about.cc index 8b22e62d..1aad6e3e 100644 --- a/about.cc +++ b/about.cc @@ -21,9 +21,19 @@ About::About( QWidget * parent ): QDialog( parent ) version = QString::fromLatin1( versionFile.readAll() ).trimmed(); ui.version->setText( version ); + +#if defined (_MSC_VER) + QString compilerVersion = QString( "Visual C++ %1.%2.%3" ) + .arg( GD_CXX_MSVC_MAJOR ) + .arg( GD_CXX_MSVC_MINOR ) + .arg( GD_CXX_MSVC_BUILD ); +#else + QString compilerVersion = QLatin1String( "GCC " ) + QLatin1String( __VERSION__ ); +#endif + ui.qtVersion->setText( tr( "Based on Qt %1 (%2, %3 bit)" ).arg( QLatin1String( qVersion() ), - QLatin1String( "GCC " ) + QLatin1String( __VERSION__ ), + compilerVersion, QString::number( QSysInfo::WordSize ) ) ); QFile creditsFile( ":/CREDITS.txt" ); diff --git a/about.hh b/about.hh index 732ad13b..2376f19a 100644 --- a/about.hh +++ b/about.hh @@ -4,8 +4,22 @@ #ifndef ABOUT_HH #define ABOUT_HH -#include #include "ui_about.h" +#include + +// Microsoft Visual C++ version +#if defined (_MSC_VER) + // how many digits does the build number have? +# if _MSC_FULL_VER / 10000 == _MSC_VER +# define GD_CXX_MSVC_BUILD (_MSC_FULL_VER % 10000) // four digits +# elif _MSC_FULL_VER / 100000 == _MSC_VER +# define GD_CXX_MSVC_BUILD (_MSC_FULL_VER % 100000) // five digits +# else +# define GD_CXX_MSVC_BUILD 0 +# endif +# define GD_CXX_MSVC_MAJOR (_MSC_VER/100-6) +# define GD_CXX_MSVC_MINOR (_MSC_VER%100) +#endif class About: public QDialog { diff --git a/article_maker.cc b/article_maker.cc index e37b4790..a49d920b 100644 --- a/article_maker.cc +++ b/article_maker.cc @@ -447,13 +447,7 @@ void ArticleRequest::altSearchFinished() for( unsigned x = 0; x < altsVector.size(); ++x ) { - DPRINTF( "Alt: %ls\n", -#ifdef Q_OS_WIN - gd::toQString( altsVector[ x ] ).toStdWString().c_str() -#else - altsVector[ x ].c_str() -#endif - ); + qDebug() << "Alt:" << gd::toQString( altsVector[ x ] ); } wstring wordStd = gd::toWString( word ); diff --git a/article_netmgr.cc b/article_netmgr.cc index cfe75b36..284ef506 100644 --- a/article_netmgr.cc +++ b/article_netmgr.cc @@ -305,6 +305,11 @@ qint64 ArticleResourceReply::bytesAvailable() const qint64 ArticleResourceReply::readData( char * out, qint64 maxSize ) { + // From the doc: "This function might be called with a maxSize of 0, + // which can be used to perform post-reading operations". + if ( maxSize == 0 ) + return 0; + DPRINTF( "====reading %d bytes\n", (int)maxSize ); bool finished = req->isFinished(); diff --git a/chunkedstorage.cc b/chunkedstorage.cc index 4a3e0cbb..761eb1b8 100644 --- a/chunkedstorage.cc +++ b/chunkedstorage.cc @@ -125,7 +125,10 @@ Reader::Reader( File::Class & f, uint32_t offset ): file( f ) { file.seek( offset ); - offsets.resize( file.read< uint32_t >() ); + uint32_t size = file.read< uint32_t >(); + if ( size == 0 ) + return; + offsets.resize( size ); file.read( &offsets.front(), offsets.size() * sizeof( uint32_t ) ); } diff --git a/dictionary.cc b/dictionary.cc index 9adea842..ca71bf52 100644 --- a/dictionary.cc +++ b/dictionary.cc @@ -103,6 +103,9 @@ long DataRequest::dataSize() void DataRequest::getDataSlice( size_t offset, size_t size, void * buffer ) throw( exSliceOutOfRange ) { + if ( size == 0 ) + return; + Mutex::Lock _( dataMutex ); if ( offset + size > data.size() || !hasAnyData ) diff --git a/dictzip.c b/dictzip.c index 3b808a71..b1658373 100644 --- a/dictzip.c +++ b/dictzip.c @@ -460,6 +460,9 @@ dictData *dict_data_open( const char *filename, int computeCRC ) for(;;) { +#ifdef __WIN32 + wchar_t wname[16384]; +#endif if (dict_read_header( filename, h, computeCRC )) { break; /* err_fatal( __func__, @@ -467,7 +470,6 @@ dictData *dict_data_open( const char *filename, int computeCRC ) } #ifdef __WIN32 - wchar_t wname[16384]; if( MultiByteToWideChar( CP_UTF8, 0, filename, -1, wname, 16384 ) == 0 ) break; @@ -543,9 +545,8 @@ char *dict_data_read_ ( dictData *h, unsigned long start, unsigned long size, const char *preFilter, const char *postFilter ) { - (void) preFilter; - (void) postFilter; - char *buffer, *pt; + char * buffer; + char * pt; unsigned long end; int count; char *inBuffer; @@ -554,6 +555,8 @@ char *dict_data_read_ ( int firstOffset, lastOffset; int i, j; int found, target, lastStamp; + (void) preFilter; + (void) postFilter; end = start + size; @@ -670,6 +673,10 @@ char *dict_data_read_ ( count = h->cache[target].count; inBuffer = h->cache[target].inBuffer; } else { +#ifdef __WIN32 + DWORD pos ; + DWORD readed; +#endif h->cache[target].chunk = -1; if (!h->cache[target].inBuffer) h->cache[target].inBuffer = xmalloc( h->chunkLength ); @@ -688,8 +695,8 @@ char *dict_data_read_ ( } #ifdef __WIN32 - DWORD pos = SetFilePointer( h->fd, h->offsets[ i ], 0, FILE_BEGIN ); - DWORD readed = 0; + pos = SetFilePointer( h->fd, h->offsets[ i ], 0, FILE_BEGIN ); + readed = 0; if( pos != INVALID_SET_FILE_POINTER || GetLastError() != NO_ERROR ) ReadFile( h->fd, outBuffer, h->chunks[ i ], &readed, 0 ); if( h->chunks[ i ] != readed ) diff --git a/dsl.cc b/dsl.cc index db109768..eb8df435 100644 --- a/dsl.cc +++ b/dsl.cc @@ -348,7 +348,7 @@ void DslDictionary::doDeferredInit() chunks = new ChunkedStorage::Reader( idx, idxHeader.chunksOffset ); - // Open the .dict file + // Open the .dsl file dz = dict_data_open( getDictionaryFilenames()[ 0 ].c_str(), 0 ); @@ -1609,13 +1609,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( // Building the index initializing.indexingDictionary( Utf8::encode( scanner.getDictionaryName() ) ); - DPRINTF( "Dictionary name: %ls\n", -#ifdef Q_OS_WIN - gd::toQString( scanner.getDictionaryName() ).toStdWString().c_str() -#else - scanner.getDictionaryName().c_str() -#endif - ); + qDebug() << "Building the index for dictionary:" + << gd::toQString( scanner.getDictionaryName() ); File::Class idx( indexFile, "wb" ); @@ -1797,13 +1792,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( if ( isDslWs( curString[ 0 ] ) ) break; // No more headwords - DPRINTF( "Alt headword: %ls\n", -#ifdef Q_OS_WIN - gd::toQString( curString ).toStdWString().c_str() -#else - curString.c_str() -#endif - ); + qDebug() << "Alt headword" << gd::toQString( curString ); processUnsortedParts( curString, true ); expandTildes( curString, allEntryWords.front() ); diff --git a/dsl_details.cc b/dsl_details.cc index 231518b0..752015a0 100644 --- a/dsl_details.cc +++ b/dsl_details.cc @@ -2,16 +2,15 @@ * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ #include "dsl_details.hh" + #include "folding.hh" #include "langcoder.hh" -#include -#include #include "dprintf.hh" #include "ufile.hh" - -#ifdef Q_OS_WIN #include "wstring_qt.hh" -#endif + +#include +#include namespace Dsl { namespace Details { @@ -545,13 +544,8 @@ void ArticleDom::closeTag( wstring const & name, else if ( warn ) { - FDPRINTF( stderr, "Warning: no corresponding opening tag for closing tag \"/%ls\" found.\n", -#ifdef Q_OS_WIN - gd::toQString( name ).toStdWString().c_str() -#else - name.c_str() -#endif - ); + qWarning() << "Warning: no corresponding opening tag for closing tag" << + gd::toQString( name ) << "found."; } } @@ -592,7 +586,7 @@ void ArticleDom::nextChar() throw( eot ) DslScanner::DslScanner( string const & fileName ) throw( Ex, Iconv::Ex ): encoding( Windows1252 ), iconv( encoding ), readBufferPtr( readBuffer ), - readBufferLeft( 0 ), linesRead( 0 ) + readBufferLeft( 0 ), wcharBuffer( 64 ), linesRead( 0 ) { // Since .dz is backwards-compatible with .gz, we use gz- functions to // read it -- they are much nicer than the dict_data- ones. diff --git a/dsl_details.hh b/dsl_details.hh index 94c747d4..b2d7cc92 100644 --- a/dsl_details.hh +++ b/dsl_details.hh @@ -171,12 +171,12 @@ void expandOptionalParts( wstring & str, list< wstring > * result, /// them. void expandTildes( wstring & str, wstring const & tildeReplacement ); -// Unescapes any escaped chars. Be sure to handle all their special meanings -// before unescaping them. +/// Unescapes any escaped chars. Be sure to handle all their special meanings +/// before unescaping them. void unescapeDsl( wstring & str ); -// Normalizes the headword. Currently turns any sequences of consecutive spaces -// into a single space. +/// Normalizes the headword. Currently turns any sequences of consecutive spaces +/// into a single space. void normalizeHeadword( wstring & ); /// Strip DSL {{...}} comments diff --git a/file.cc b/file.cc index 50737675..aa4a51f5 100644 --- a/file.cc +++ b/file.cc @@ -9,7 +9,9 @@ #include #include +#ifndef _MSC_VER #include +#endif #ifdef __WIN32 #include @@ -248,7 +250,7 @@ bool Class::eof() throw( exWriteError ) if ( writeBuffer ) flushWriteBuffer(); - return feof( f ); + return feof( f ) != 0; } FILE * Class::file() throw( exWriteError ) diff --git a/forvo.cc b/forvo.cc index 9e5a7f76..c3900040 100644 --- a/forvo.cc +++ b/forvo.cc @@ -153,13 +153,7 @@ ForvoArticleRequest::ForvoArticleRequest( wstring const & str, void ForvoArticleRequest::addQuery( QNetworkAccessManager & mgr, wstring const & str ) { - DPRINTF( "Requesting article %ls\n", -#ifdef Q_OS_WIN - gd::toQString( str ).toStdWString().c_str() -#else - str.c_str() -#endif - ); + qDebug() << "Requesting article" << gd::toQString( str ); QString key; diff --git a/goldendict.pro b/goldendict.pro index c23e615a..8a00fed1 100644 --- a/goldendict.pro +++ b/goldendict.pro @@ -46,7 +46,41 @@ LIBS += \ !isEmpty(DISABLE_INTERNAL_PLAYER): DEFINES += DISABLE_INTERNAL_PLAYER win32 { - TARGET = GoldenDict + TARGET = GoldenDict + + win32-msvc* { + VERSION = 1.5.0 # More complicated things cause errors during compilation under MSVC++ + DEFINES += __WIN32 _CRT_SECURE_NO_WARNINGS + contains(QMAKE_TARGET.arch, x86_64) { + DEFINES += NOMINMAX __WIN64 + LIBS += -L$${PWD}/winlibs/lib/msvc/x64 + } else { + LIBS += -L$${PWD}/winlibs/lib/msvc + } + QMAKE_CXXFLAGS += /wd4290 # silence the warning C4290: C++ exception specification ignored + QMAKE_LFLAGS_RELEASE += /LTCG /OPT:REF /OPT:ICF + # QMAKE_CXXFLAGS_RELEASE += /GL # slows down the linking significantly + LIBS += -lshell32 -luser32 -lsapi -lole32 -lhunspell + HUNSPELL_LIB = hunspell + } else { + LIBS += -L$${PWD}/winlibs/lib + !x64:QMAKE_LFLAGS += -Wl,--large-address-aware + + isEmpty(HUNSPELL_LIB) { + greaterThan(QT_MAJOR_VERSION, 4) { + lessThan(QT_MINOR_VERSION, 1) { + LIBS += -lhunspell-1.3-sjlj + } else { + LIBS += -lhunspell-1.3-dw2 + } + } else { + LIBS += -lhunspell-1.3.2 + } + } else { + LIBS += -l$$HUNSPELL_LIB + } + } + LIBS += -liconv \ -lwsock32 \ -lpsapi \ @@ -64,30 +98,15 @@ win32 { -lavcodec-gd } - isEmpty(HUNSPELL_LIB) { - greaterThan(QT_MAJOR_VERSION, 4) { - lessThan(QT_MINOR_VERSION, 1) { - LIBS += -lhunspell-1.3-sjlj - } else { - LIBS += -lhunspell-1.3-dw2 - } - } else { - LIBS += -lhunspell-1.3.2 - } - } else { - LIBS += -l$$HUNSPELL_LIB - } RC_FILE = goldendict.rc INCLUDEPATH += winlibs/include - LIBS += -L$${PWD}/winlibs/lib # Enable console in Debug mode on Windows, with useful logging messages Debug:CONFIG += console Release:DEFINES += NO_CONSOLE - !x64:QMAKE_LFLAGS += -Wl,--large-address-aware gcc48:QMAKE_CXXFLAGS += -Wno-unused-local-typedefs } diff --git a/goldendict.rc b/goldendict.rc index 01fd5663..86e24eea 100644 --- a/goldendict.rc +++ b/goldendict.rc @@ -1,11 +1,13 @@ -#include "winuser.h" +#include "windows.h" IDI_ICON1 ICON DISCARDABLE "icons/programicon.ico" IDI_ICON2 ICON DISCARDABLE "icons/programicon_old.ico" #define GOLDENDICT_VER 1,5,0,0 #define GOLDENDICT_VER_STR "1.5.0" +#ifndef _MSC_VER // Visual Studio embeds the manifest automatically 1 RT_MANIFEST GoldenDict.exe.manifest +#endif 1 VERSIONINFO FILEVERSION GOLDENDICT_VER diff --git a/goldendict.sln b/goldendict.sln new file mode 100644 index 00000000..844420d9 --- /dev/null +++ b/goldendict.sln @@ -0,0 +1,38 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goldendict", "goldendict.vcxproj", "{C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Debug-Qt4|Win32 = Debug-Qt4|Win32 + Debug-Qt4|x64 = Debug-Qt4|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + Release-Qt4|Win32 = Release-Qt4|Win32 + Release-Qt4|x64 = Release-Qt4|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug|Win32.ActiveCfg = Debug|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug|Win32.Build.0 = Debug|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug|x64.ActiveCfg = Debug|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug|x64.Build.0 = Debug|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug-Qt4|Win32.ActiveCfg = Debug-Qt4|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug-Qt4|Win32.Build.0 = Debug-Qt4|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug-Qt4|x64.ActiveCfg = Debug-Qt4|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Debug-Qt4|x64.Build.0 = Debug-Qt4|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release|Win32.ActiveCfg = Release|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release|Win32.Build.0 = Release|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release|x64.ActiveCfg = Release|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release|x64.Build.0 = Release|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release-Qt4|Win32.ActiveCfg = Release-Qt4|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release-Qt4|Win32.Build.0 = Release-Qt4|Win32 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release-Qt4|x64.ActiveCfg = Release-Qt4|x64 + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8}.Release-Qt4|x64.Build.0 = Release-Qt4|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/goldendict.vcxproj b/goldendict.vcxproj new file mode 100644 index 00000000..3700add9 --- /dev/null +++ b/goldendict.vcxproj @@ -0,0 +1,1368 @@ + + + + + Debug-Qt4 + Win32 + + + Debug-Qt4 + x64 + + + Debug + x64 + + + Release-Qt4 + Win32 + + + Release-Qt4 + x64 + + + Release + Win32 + + + Debug + Win32 + + + Release + x64 + + + + {C3D65E5B-B7EE-3F85-B73F-6D65D9C501A8} + GoldenDict + Qt4VSv1.0 + + + + v110 + release\ + false + Unicode + Application + build\ + GoldenDict1 + true + + + v110 + release\ + false + Unicode + Application + build\ + GoldenDict1 + true + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + true + + + v110 + debug\ + false + Unicode + Application + build\ + GoldenDict1 + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + tmp\ + GoldenDict + GoldenDict + true + true + false + false + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + $(Configuration)\$(Platform)\ + tmp\ + tmp\ + GoldenDict + GoldenDict + GoldenDict + GoldenDict + GoldenDict + GoldenDict + true + true + true + true + true + true + + + + + + + false + $(ProjectDir)\tmp\$(Configuration)\$(Platform)\ + true + + + false + $(ProjectDir)\tmp\$(Configuration)\$(Platform)\ + true + + + + + + ".";"winlibs\include";"qtsingleapplication\src";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKitWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQuick";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimediaWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtOpenGL";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtPrintSupport";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSvg";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKit";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimedia";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSensors";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtNetwork";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtXml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtGui";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtANGLE";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtCore";"build";"build";..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + Sync + MaxSpeed + __LZO_EXPORT1XXXX#__declspec(dllimport);_WINDOWS;UNICODE;WIN32;NO_CONSOLE;PROGRAM_VERSION="1.5.0+git";QT_NO_DEBUG;QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;NDEBUG;__WIN32;NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + MultiThreadedDLL + true + true + true + Level3 + 4290;%(DisableSpecificWarnings) + true + Speed + false + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;hunspell.lib;lzo2.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\Qt5WebKitWidgets.lib;$(QTDIR)\lib\Qt5Quick.lib;$(QTDIR)\lib\Qt5MultimediaWidgets.lib;$(QTDIR)\lib\Qt5OpenGL.lib;$(QTDIR)\lib\Qt5PrintSupport.lib;$(QTDIR)\lib\Qt5Svg.lib;$(QTDIR)\lib\Qt5WebKit.lib;$(QTDIR)\lib\Qt5Qml.lib;$(QTDIR)\lib\Qt5Multimedia.lib;$(QTDIR)\lib\Qt5Widgets.lib;$(QTDIR)\lib\Qt5Sensors.lib;$(QTDIR)\lib\Qt5Network.lib;$(QTDIR)\lib\Qt5Xml.lib;$(QTDIR)\lib\Qt5Gui.lib;$(QTDIR)\lib\Qt5Core.lib;libEGL.lib;libGLESv2.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + false + true + false + $(OutDir)\GoldenDict.exe + true + Windows + true + 1.5 + true + + + Unsigned + None + 0 + + + _WINDOWS;UNICODE;WIN32;NO_CONSOLE;PROGRAM_VERSION=\"1.5.0+git\";QT_NO_DEBUG;QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + ".";"winlibs\include";"qtsingleapplication\src";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKitWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQuick";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimediaWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtOpenGL";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtPrintSupport";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSvg";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKit";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimedia";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSensors";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtNetwork";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtXml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtGui";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtANGLE";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtCore";"build";"build";..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + Sync + MaxSpeed + __WIN32;__WIN64;NOMINMAX;_CRT_SECURE_NO_WARNINGS;QT_NO_OPENSSL;UNICODE;WIN32;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + false + MultiThreadedDLL + true + true + true + Level3 + 4290;%(DisableSpecificWarnings) + true + Speed + false + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;hunspell.lib;lzo2.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\Qt5WebKitWidgets.lib;$(QTDIR)\lib\Qt5Quick.lib;$(QTDIR)\lib\Qt5MultimediaWidgets.lib;$(QTDIR)\lib\Qt5OpenGL.lib;$(QTDIR)\lib\Qt5PrintSupport.lib;$(QTDIR)\lib\Qt5Svg.lib;$(QTDIR)\lib\Qt5WebKit.lib;$(QTDIR)\lib\Qt5Qml.lib;$(QTDIR)\lib\Qt5Multimedia.lib;$(QTDIR)\lib\Qt5Widgets.lib;$(QTDIR)\lib\Qt5Sensors.lib;$(QTDIR)\lib\Qt5Network.lib;$(QTDIR)\lib\Qt5Xml.lib;$(QTDIR)\lib\Qt5Gui.lib;$(QTDIR)\lib\Qt5Core.lib;libEGL.lib;libGLESv2.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc\x64;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + false + true + false + $(OutDir)\GoldenDict.exe + true + Windows + true + 1.5 + true + + + Unsigned + None + 0 + + + _WINDOWS;UNICODE;WIN32;NO_CONSOLE;PROGRAM_VERSION=\"1.5.0+git\";QT_NO_DEBUG;QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\x64\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + ".";"winlibs\include";"qtsingleapplication\src";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKitWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQuick";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimediaWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtOpenGL";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtPrintSupport";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSvg";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKit";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimedia";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSensors";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtNetwork";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtXml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtGui";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtANGLE";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtCore";"build";"build";..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + ProgramDatabase + Sync + Disabled + __LZO_EXPORT1XXXX#__declspec(dllimport);_CONSOLE;UNICODE;WIN32;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;DISABLE_INTERNAL_PLAYER;__WIN32;NOMINMAX;HUNSPELL_STATIC;USING_STATIC_LIBICONV;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + MultiThreadedDebugDLL + true + true + Level3 + 4290;%(DisableSpecificWarnings) + EnableFastChecks + true + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;hunspell.lib;lzo2.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\Qt5WebKitWidgetsd.lib;$(QTDIR)\lib\Qt5Quickd.lib;$(QTDIR)\lib\Qt5MultimediaWidgetsd.lib;$(QTDIR)\lib\Qt5OpenGLd.lib;$(QTDIR)\lib\Qt5PrintSupportd.lib;$(QTDIR)\lib\Qt5Svgd.lib;$(QTDIR)\lib\Qt5WebKitd.lib;$(QTDIR)\lib\Qt5Qmld.lib;$(QTDIR)\lib\Qt5Multimediad.lib;$(QTDIR)\lib\Qt5Widgetsd.lib;$(QTDIR)\lib\Qt5Sensorsd.lib;$(QTDIR)\lib\Qt5Networkd.lib;$(QTDIR)\lib\Qt5Xmld.lib;$(QTDIR)\lib\Qt5Guid.lib;$(QTDIR)\lib\Qt5Cored.lib;libEGLd.lib;libGLESv2d.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + true + $(OutDir)\GoldenDict.exe + true + Console + true + NotSet + 1.5 + true + true + iconv.dll + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + ".";"winlibs\include";"qtsingleapplication\src";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKitWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQuick";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimediaWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtOpenGL";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtPrintSupport";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSvg";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWebKit";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtQml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtMultimedia";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtWidgets";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtSensors";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtNetwork";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtXml";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtGui";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtANGLE";"..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\include\QtCore";"build";"build";..\..\Qt\Qt5.1.0-msvc2012\5.1.0\msvc2012\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + ProgramDatabase + Sync + Disabled + __WIN32;__WIN64;NOMINMAX;_CRT_SECURE_NO_WARNINGS;QT_NO_OPENSSL;UNICODE;WIN32;DEBUG;_DEBUG;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + false + MultiThreadedDebugDLL + true + true + Level3 + 4290;%(DisableSpecificWarnings) + EnableFastChecks + true + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;hunspell.lib;lzo2.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\Qt5WebKitWidgetsd.lib;$(QTDIR)\lib\Qt5Quickd.lib;$(QTDIR)\lib\Qt5MultimediaWidgetsd.lib;$(QTDIR)\lib\Qt5OpenGLd.lib;$(QTDIR)\lib\Qt5PrintSupportd.lib;$(QTDIR)\lib\Qt5Svgd.lib;$(QTDIR)\lib\Qt5WebKitd.lib;$(QTDIR)\lib\Qt5Qmld.lib;$(QTDIR)\lib\Qt5Multimediad.lib;$(QTDIR)\lib\Qt5Widgetsd.lib;$(QTDIR)\lib\Qt5Sensorsd.lib;$(QTDIR)\lib\Qt5Networkd.lib;$(QTDIR)\lib\Qt5Xmld.lib;$(QTDIR)\lib\Qt5Guid.lib;$(QTDIR)\lib\Qt5Cored.lib;libEGLd.lib;libGLESv2d.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc\x64;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + true + $(OutDir)\GoldenDict.exe + true + Console + true + NotSet + 1.5 + true + true + iconv.dll + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\x64\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + ProgramDatabase + Sync + Disabled + __LZO_EXPORT1XXXX#__declspec(dllimport);QT_NO_OPENSSL;_CONSOLE;UNICODE;WIN32;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;DISABLE_INTERNAL_PLAYER;__WIN32;NOMINMAX;HUNSPELL_STATIC;USING_STATIC_LIBICONV;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + MultiThreadedDebugDLL + true + false + Level3 + 4290;%(DisableSpecificWarnings) + EnableFastChecks + true + .;winlibs\include;qtsingleapplication\src;$(QTDIR)\include;$(QTDIR)\include\QtSvg;$(QTDIR)\include\QtWebKit;$(QTDIR)\include\QtWidgets;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtXml;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtCore;build;$(QTDIR)\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;lzo2.lib;hunspell.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\QtSvg4.lib;$(QTDIR)\lib\QtWebKit4.lib;$(QTDIR)\lib\QtNetwork4.lib;$(QTDIR)\lib\QtXml4.lib;$(QTDIR)\lib\QtGui4.lib;$(QTDIR)\lib\QtCore4.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + true + $(OutDir)\GoldenDict.exe + true + Console + true + NotSet + 1.5 + true + true + + + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc;%(AdditionalLibraryDirectories) + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + .;winlibs\include;qtsingleapplication\src;$(QTDIR)\include;$(QTDIR)\include\QtSvg;$(QTDIR)\include\QtWebKit;$(QTDIR)\include\QtWidgets;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtXml;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtCore;build;$(QTDIR)\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + ProgramDatabase + Sync + Disabled + __WIN32;__WIN64;NOMINMAX;_CRT_SECURE_NO_WARNINGS;QT_NO_OPENSSL;UNICODE;WIN32;DEBUG;_DEBUG;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + false + MultiThreadedDebugDLL + true + false + Level3 + 4290;%(DisableSpecificWarnings) + EnableFastChecks + true + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;lzo2.lib;hunspell.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\QtSvg4.lib;$(QTDIR)\lib\QtWebKit4.lib;$(QTDIR)\lib\QtNetwork4.lib;$(QTDIR)\lib\QtXml4.lib;$(QTDIR)\lib\QtGui4.lib;$(QTDIR)\lib\QtCore4.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + true + $(OutDir)\GoldenDict.exe + true + Console + true + NotSet + 1.5 + true + true + + + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc\x64;%(AdditionalLibraryDirectories) + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\x64\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + .;winlibs\include;qtsingleapplication\src;$(QTDIR)\include;$(QTDIR)\include\QtSvg;$(QTDIR)\include\QtWebKit;$(QTDIR)\include\QtWidgets;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtXml;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtCore;build;$(QTDIR)\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + Sync + MaxSpeed + QT_NO_OPENSSL;UNICODE;WIN32;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;__WIN32;NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + false + MultiThreadedDLL + true + false + Level3 + 4290;%(DisableSpecificWarnings) + Default + Neither + false + true + false + + None + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;lzo2.lib;hunspell.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\QtSvg4.lib;$(QTDIR)\lib\QtWebKit4.lib;$(QTDIR)\lib\QtNetwork4.lib;$(QTDIR)\lib\QtXml4.lib;$(QTDIR)\lib\QtGui4.lib;$(QTDIR)\lib\QtCore4.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + $(OutDir)\GoldenDict.exe + true + Windows + true + NotSet + 1.5 + + + true + + + true + true + false + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)\GoldenDict.exe.manifest %(AdditionalManifestFiles) + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + .;winlibs\include;qtsingleapplication\src;$(QTDIR)\include;$(QTDIR)\include\QtSvg;$(QTDIR)\include\QtWebKit;$(QTDIR)\include\QtWidgets;$(QTDIR)\include\QtNetwork;$(QTDIR)\include\QtXml;$(QTDIR)\include\QtGui;$(QTDIR)\include\QtCore;build;$(QTDIR)\mkspecs\win32-msvc2012;%(AdditionalIncludeDirectories) + -Zm200 -w34100 -w34189 %(AdditionalOptions) + false + Sync + MaxSpeed + __WIN32;__WIN64;NOMINMAX;_CRT_SECURE_NO_WARNINGS;QT_NO_OPENSSL;UNICODE;WIN32;PROGRAM_VERSION="1.5.0+git";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;%(PreprocessorDefinitions) + false + MultiThreadedDLL + true + false + Level3 + 4290;%(DisableSpecificWarnings) + Default + Neither + false + true + false + + + None + + + qtmain.lib;avutil-gd.lib;avcodec-gd.lib;avformat-gd.lib;ao.lib;z.lib;bz2.lib;lzo2.lib;hunspell.lib;iconv.lib;vorbisfile.lib;vorbis.lib;ogg.lib;wsock32.lib;psapi.lib;ole32.lib;oleaut32.lib;advapi32.lib;comdlg32.lib;$(QTDIR)\lib\QtSvg4.lib;$(QTDIR)\lib\QtWebKit4.lib;$(QTDIR)\lib\QtNetwork4.lib;$(QTDIR)\lib\QtXml4.lib;$(QTDIR)\lib\QtGui4.lib;$(QTDIR)\lib\QtCore4.lib;gdi32.lib;user32.lib;%(AdditionalDependencies) + $(QTDIR)\lib;$(ProjectDir)\winlibs\lib\msvc\x64;%(AdditionalLibraryDirectories) + "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" %(AdditionalOptions) + true + true + $(OutDir)\GoldenDict.exe + true + Windows + true + NotSet + 1.5 + + + true + + + true + true + false + + + Unsigned + None + 0 + + + _CONSOLE;UNICODE;WIN32;PROGRAM_VERSION=\"1.5.0+git\";QT_WEBKITWIDGETS_LIB;QT_QUICK_LIB;QT_MULTIMEDIAWIDGETS_LIB;QT_OPENGL_LIB;QT_PRINTSUPPORT_LIB;QT_SVG_LIB;QT_WEBKIT_LIB;QT_QML_LIB;QT_MULTIMEDIA_LIB;QT_WIDGETS_LIB;QT_SENSORS_LIB;QT_NETWORK_LIB;QT_XML_LIB;QT_GUI_LIB;QT_CORE_LIB;QT_OPENGL_ES_2;QT_OPENGL_ES_2_ANGLE;_DEBUG;%(PreprocessorDefinitions) + + + copy $(ProjectDir)\winlibs\lib\msvc\x64\*.dll $(ProjectDir)\$(Configuration)\$(Platform) >NUL + + + $(ProjectDir)\GoldenDict.exe.manifest %(AdditionalManifestFiles) + + + $(ProjectDir)build\ui_%(Filename).h + $(QTDIR)\bin\uic.exe + + + false + $(OutDir)locale\%(Filename).qm + + + $(ProjectDir)build\moc_%(Filename).cpp + + + $(ProjectDir)build\qrc_%(Filename).cpp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CompileAsC + CompileAsC + CompileAsC + CompileAsC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + true + true + true + false + false + true + true + _MSC_VER;%(PreprocessorDefinitions) + _MSC_VER;%(PreprocessorDefinitions) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/goldendict.vcxproj.filters b/goldendict.vcxproj.filters new file mode 100644 index 00000000..dab5d734 --- /dev/null +++ b/goldendict.vcxproj.filters @@ -0,0 +1,1938 @@ + + + + + {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} + cpp;c;cxx;moc;h;def;odl;idl;res; + + + {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} + cpp;c;cxx;moc;h;def;odl;idl;res; + + + {3235203c-8555-42b3-9ec2-22de8a260dc6} + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + false + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} + qrc;* + false + + + {18a218fa-2efc-4ea0-a7d0-9cdea6a87bda} + png;* + + + {83b951bc-8d6e-48c9-a401-ab9d3f217987} + + + {5df1e6e9-52e2-4184-8424-291751501b81} + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} + ts;xlf + false + + + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + Sources + + + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + Generated Files + + + + + Resources + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Customizations + + + Customizations + + + + + Customizations + + + Customizations + + + Customizations + + + Customizations + + + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + Forms + + + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + Translations + + + + + Generated Files + + + Generated Files + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + Headers + + + + + Resources\Flags + + + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\CSS + + + Resources\Icons + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Flags + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + Resources\Icons + + + + + Resources + + + + + Resources + + + Resources + + + \ No newline at end of file diff --git a/hunspell.cc b/hunspell.cc index bc76cee2..8dfb21be 100644 --- a/hunspell.cc +++ b/hunspell.cc @@ -499,13 +499,7 @@ QVector< wstring > HunspellHeadwordsRequest::suggest( wstring & word ) if ( Folding::applySimpleCaseOnly( alt ) != lowercasedWord ) // No point in providing same word { - DPRINTF( ">>>>>Alt: %ls\n", -#ifdef Q_OS_WIN - gd::toQString( alt ).toStdWString().c_str() -#else - alt.c_str() -#endif - ); + qDebug() << ">>>>>Alt:" << gd::toQString( alt ); result.append( alt ); } } diff --git a/langcoder.cc b/langcoder.cc index 1ae3174b..ea410642 100644 --- a/langcoder.cc +++ b/langcoder.cc @@ -1,8 +1,15 @@ +/* This file is (c) 2008-2013 Konstantin Isakov + * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ + #include "langcoder.hh" #include "folding.hh" #include "wstring_qt.hh" #include "language.hh" +#ifdef _MSC_VER +#include +#endif + #include #include diff --git a/locale/es_AR.ts b/locale/es_AR.ts index 77a43143..1aabf7df 100644 --- a/locale/es_AR.ts +++ b/locale/es_AR.ts @@ -51,7 +51,7 @@ Based on Qt %1 (%2, %3 bit) - + Basado en Qt %1 (%2, %3 bit) @@ -59,12 +59,12 @@ Expand article - + Expandir artículo Collapse article - + Plegar artículo @@ -131,12 +131,12 @@ Expand article - + Expandir artículo Collapse article - + Plegar artículo @@ -169,12 +169,12 @@ Copy as text - + Copiar como texto Inspect - + Inspeccionar @@ -199,12 +199,12 @@ Video - + Video Video: %1 - + Video: %1 @@ -278,7 +278,7 @@ WARNING: FFmpeg Audio Player: %1 - + ATENCIÓN: Reproductor de audio FFmpeg: %1 Save &image @@ -338,7 +338,7 @@ Failed to run a player to play sound file: %1 - No fue posible ejecutar un programa reproductor de audios: %1 + No fue posible ejecutar un programa reproductor de audio: %1 @@ -560,12 +560,12 @@ between classic and school orthography in cyrillic) Open folder - + Abrir carpeta Edit dictionary - Editar diccionario + Editar diccionario @@ -581,7 +581,8 @@ between classic and school orthography in cyrillic) Edit the dictionary via command: %1 - + Editar el diccionario vía comando: +%1 @@ -606,7 +607,7 @@ between classic and school orthography in cyrillic) Extended menu with all dictionaries... - + Menú extendido con todos los diccionarios... @@ -621,7 +622,7 @@ between classic and school orthography in cyrillic) Open dictionary folder - + Abrir carpeta del diccionario @@ -787,7 +788,7 @@ between classic and school orthography in cyrillic) Are you sure you want to remove the group <b>%1</b>? - ¿Esta seguro que desea eliminar el grupo <b>%1</b>? + ¿Está seguro que desea eliminar el grupo <b>%1</b>? @@ -798,7 +799,7 @@ between classic and school orthography in cyrillic) Are you sure you want to remove all the groups? - ¿Esta seguro que desea eliminar todos los grupos? + ¿Está seguro que desea eliminar todos los grupos? Groups @@ -2740,7 +2741,7 @@ Reordene los grupos usando el mouse sobre las pestañas con los nombres de los m Error in configuration file. Continue with default settings? - + Error en archivo de configuración. ¿Desea continuar con los valores por defecto? @@ -2811,12 +2812,12 @@ Reordene los grupos usando el mouse sobre las pestañas con los nombres de los m Article, Complete (*.html) - + Artículo, Completo (*.html) Article, HTML Only (*.html) - + Artículo, sólo HTML (*.html) @@ -2974,7 +2975,7 @@ Reordene los grupos usando el mouse sobre las pestañas con los nombres de los m Saving article... - + Guardando artículo... @@ -3013,7 +3014,7 @@ Reordene los grupos usando el mouse sobre las pestañas con los nombres de los m Open dictionary folder - + Abrir carpeta del diccionario @@ -3368,12 +3369,12 @@ Reordene los grupos usando el mouse sobre las pestañas con los nombres de los m Dictionary file was tampered or corrupted - + El archivo del diccionario ha sido manipulado o corrompido Failed loading article from %1, reason: %2 - + Error al cargar artículo de %1, motivo: %2 @@ -3662,12 +3663,12 @@ Sin embargo, si esta opción se activa se cerrará la ventana principal. Adjust this value to avoid huge context menus. - + Ajuste este valor para evitar menús contextuales enormes. Context menu dictionaries limit: - + Límite de diccionarios en menú contextual: @@ -3921,32 +3922,32 @@ p, li { white-space: pre-wrap; } Play audio files via FFmpeg(libav) and libao - + Reproducir archivos de audio vía FFmpeg(libav) y libao Use internal player - + Utilizar reproductor de audio interno Select this option to automatic collapse big articles - + Seleccionar esta opción para automáticamente plegar artículos grandes Collapse articles more than - + Plegar artículos con más de Articles longer than this size will be collapsed - + Los artículos que superen este tamaño aparecerán automáticamente plegados symbols - + símbolos Use Windows native playback API. Limited to .wav files only, @@ -3990,12 +3991,12 @@ you must place bass.dll (http://www.un4seen.com) into GoldenDict folder. Some sites detect GoldenDict via HTTP headers and block the requests. Enable this option to workaround the problem. - + Algunos sitios web detectan GoldenDict vía encabezados HTTP y de esta manera lo bloquean. Active esta opción para eludir este problema. Do not identify GoldenDict in HTTP headers - + No identificar GoldenDict en encabezados HTTP @@ -4333,97 +4334,97 @@ página web de descarga utilizando el navegador de internet. Article loading error - + Error al cargar artículo Article decoding error - + Error al decodificar artículo avformat_alloc_context() failed. - + Fallo en avformat_alloc_context(). av_malloc() failed. - + Fallo en av_malloc(). avio_alloc_context() failed. - + Fallo en avio_alloc_context(). avformat_open_input() failed: %1. - + Fallo en avformat_open_input(): %1. avformat_find_stream_info() failed: %1. - + Fallo en avformat_find_stream_info(): %1. Could not find audio stream. - + No pudo encontrarse un stream de audio. Codec [id: %1] not found. - + Códec [id: %1] no encontrado. avcodec_open2() failed: %1. - + Fallo en avcodec_open2(): %1. Cannot find usable audio output device. - + No se encuentra disponible un dispositivo de salida de audio. Unsupported sample format. - + Formato de muestreo no soportado. ao_open_live() failed: - + Fallo en ao_open_live(): No driver. - + No existe controlador de dispositivo disponible. This driver is not a live output device. - + Este controlador no es un dispositivo de salida activo. A valid option key has an invalid value. - + Una opción de clave válida contiene un valor inválido. Cannot open the device: %1, channels: %2, rate: %3, bits: %4. - + No se puede abrir el dispositivo: %1, channels: %2, rate: %3, bits: %4. Unknown error. - + Error desconocido. avcodec_alloc_frame() failed. - + Fallo en avcodec_alloc_frame(). @@ -4450,17 +4451,17 @@ página web de descarga utilizando el navegador de internet. ERROR: %1 - ERROR: %1 + ERROR: %1 Resource saving error: - Error al guardar recurso: + Error al guardar recurso: The referenced resource failed to download. - No fue posible descargar el recurso referenciado. + No fue posible descargar el recurso referenciado. @@ -4812,7 +4813,7 @@ respectivamente, %GDBIG5% para Big-5, %GDBIG5HKSCS% para Big5-HKSCS, %GDGBK% par Any external programs. A string %GDWORD% will be replaced with the query word. If such string is not presented, the word will be fed into standard input. - + Ingrese todos los programas externos que quiera. La ocurrencia %GDWORD% se reemplazará por el término de búsqueda especificado. Si la ocurrencia no esta presente, el término será enviado a la entrada estándar. diff --git a/maclibs/install_aoplugin.sh b/maclibs/install_aoplugin.sh deleted file mode 100755 index a3d56024..00000000 --- a/maclibs/install_aoplugin.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -# -# Run this script for properly play of the sounds under Mac OS X -# -if test -f "/usr/local/lib/ao/plugins-4/libmacosx.so"; then : -else - mkdir -p /usr/local/lib/ao/plugins-4 - cp lib/libmacosx.so /usr/local/lib/ao/plugins-4/ -fi diff --git a/maclibs/lib/ao/libmacosx.so b/maclibs/lib/ao/libmacosx.so new file mode 100644 index 00000000..05afa474 Binary files /dev/null and b/maclibs/lib/ao/libmacosx.so differ diff --git a/maclibs/lib/libao.dylib b/maclibs/lib/libao.dylib index 889b8f66..1e73f0bc 100644 Binary files a/maclibs/lib/libao.dylib and b/maclibs/lib/libao.dylib differ diff --git a/maclibs/lib/libmacosx.so b/maclibs/lib/libmacosx.so deleted file mode 100644 index 1f8819f3..00000000 Binary files a/maclibs/lib/libmacosx.so and /dev/null differ diff --git a/maclibs/scripts/libao-build.sh b/maclibs/scripts/libao-build.sh new file mode 100644 index 00000000..1bc7d618 --- /dev/null +++ b/maclibs/scripts/libao-build.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# $1 - GoldenDict source directory + +if [ ${OSTYPE:0:6} != "darwin" ]; then + echo "OSX Only" + exit 1 +fi + + +if [[ -n "$1" && ! -d "$1" ]]; then + echo "Invalid GoldenDict source directory" + exit 1 +fi + +./configure \ + CFLAGS="-arch i386 -arch x86_64 -DCUSTOM_AO_PLUGIN_PATH=\\\"@executable_path/../Frameworks/ao\\\"" \ + LDFLAGS="-arch i386 -arch x86_64" \ + --disable-dependency-tracking + +make clean && make + + +install_name_tool \ + -id @executable_path/../Frameworks/libao.dylib \ + src/.libs/libao.dylib + +for PLUGIN_DIR in `find src/plugins -type d -maxdepth 1`; do + PLUGIN_NAME=$(basename "$PLUGIN_DIR") + PLUGIN_PATH=$PLUGIN_DIR/.libs/lib$PLUGIN_NAME.so + if [ -f "$PLUGIN_PATH" ]; then + install_name_tool \ + -id @executable_path/../Frameworks/ao/$PLUGIN_NAME.so \ + $PLUGIN_PATH + fi +done + +if [ -n "$1" ]; then + cp src/.libs/libao.dylib $1/maclibs/lib + # Copy plugins + mkdir -p $1/maclibs/lib/ao + find src/plugins -type f -maxdepth 3 -name "*.so" -exec cp {} $1/maclibs/lib/ao \; +fi diff --git a/maclibs/scripts/libao.txt b/maclibs/scripts/libao.txt new file mode 100644 index 00000000..e2fef536 --- /dev/null +++ b/maclibs/scripts/libao.txt @@ -0,0 +1,9 @@ +Patched libao source for OSX can be found here: +https://github.com/timonwong/libao/tree/goldendict + +You can checkout the source directly using git: + git clone -b goldendict https://github.com/timonwong/libao.git + +Then, copy libao-build.sh (along with this file) to libao source directory, and build using following commands: + chmod +x libao-build.sh + ./libao-build.sh [goldendict source directory] diff --git a/mediawiki.cc b/mediawiki.cc index 908133c6..1fd1f6ef 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -255,13 +255,7 @@ MediaWikiArticleRequest::MediaWikiArticleRequest( wstring const & str, void MediaWikiArticleRequest::addQuery( QNetworkAccessManager & mgr, wstring const & str ) { - DPRINTF( "Requesting article %ls\n", -#ifdef Q_OS_WIN - gd::toQString( str ).toStdWString().c_str() -#else - str.c_str() -#endif - ); + qDebug() << "Requesting article" << gd::toQString( str ); QUrl reqUrl( url + "/api.php?action=parse&prop=text|revid&format=xml&redirects" ); @@ -368,8 +362,6 @@ void MediaWikiArticleRequest::requestFinished( QNetworkReply * r ) QByteArray articleBody = articleString.toUtf8(); - DPRINTF( "Article body after: %s\n", articleBody.data() ); - articleBody.prepend( dictPtr->isToLanguageRTL() ? "
" : "
" ); articleBody.append( "
" ); diff --git a/mouseover.cc b/mouseover.cc index ed634064..df2826e1 100644 --- a/mouseover.cc +++ b/mouseover.cc @@ -25,16 +25,16 @@ MouseOver & MouseOver::instance() #ifdef Q_OS_WIN32 const UINT WM_MY_SHOW_TRANSLATION = WM_USER + 301; static wchar_t className[] = L"GoldenDictMouseover"; -typedef BOOL WINAPI ( *ChangeWindowMessageFilterFunc )( UINT, DWORD ); +typedef BOOL ( WINAPI *ChangeWindowMessageFilterFunc )( UINT, DWORD ); -#ifndef CHANGEFILTERSTRUCT +#ifndef WINAPI_FAMILY typedef struct tagCHANGEFILTERSTRUCT { DWORD cbSize; DWORD ExtStatus; } CHANGEFILTERSTRUCT, *PCHANGEFILTERSTRUCT; #endif -typedef BOOL WINAPI ( *ChangeWindowMessageFilterExFunc )( HWND, UINT, DWORD, PCHANGEFILTERSTRUCT ); +typedef BOOL ( WINAPI *ChangeWindowMessageFilterExFunc )( HWND, UINT, DWORD, PCHANGEFILTERSTRUCT ); #endif // Q_OS_WIN32 diff --git a/termination.cc b/termination.cc index c01c6787..0828bdf6 100644 --- a/termination.cc +++ b/termination.cc @@ -4,7 +4,11 @@ #include "termination.hh" #include #include + +#ifndef _MSC_VER #include +#endif + #include #ifndef __WIN32 @@ -28,13 +32,24 @@ static void termHandler() char * function = 0; size_t functionLength = 0; +#ifdef _MSC_VER + std::type_info * ti = 0; +#else std::type_info * ti = __cxxabiv1::__cxa_current_exception_type(); +#endif if ( ti ) { char const * name = ti->name(); +#ifdef _MSC_VER + char * ret = 0; + // avoid 'unused' warnings + (void) status; + (void) functionLength; +#else char * ret = abi::__cxa_demangle( name, function, &functionLength, &status ); +#endif if ( ret ) { diff --git a/ufile.cc b/ufile.cc index 71145c84..c78079ee 100644 --- a/ufile.cc +++ b/ufile.cc @@ -1,6 +1,7 @@ #ifdef __WIN32 #include +#include #include #include diff --git a/ufile.hh b/ufile.hh index 36dc12e8..a7a9d3d4 100644 --- a/ufile.hh +++ b/ufile.hh @@ -5,6 +5,11 @@ #include "zlib.h" +// eliminate some VC++ warnings +#ifdef _MSC_VER +#define fileno _fileno +#endif + #ifdef __cplusplus extern "C" { diff --git a/utf8.cc b/utf8.cc index d5151b7d..9d8e66dc 100644 --- a/utf8.cc +++ b/utf8.cc @@ -141,6 +141,10 @@ string encode( wstring const & in ) throw() wstring decode( string const & in ) throw( exCantDecode ) { + + if ( in.size() == 0 ) + return wstring(); + std::vector< wchar > buffer( in.size() ); long result = decode( in.data(), in.size(), &buffer.front() ); diff --git a/winlibs/lib/msvc b/winlibs/lib/msvc new file mode 160000 index 00000000..36a76110 --- /dev/null +++ b/winlibs/lib/msvc @@ -0,0 +1 @@ +Subproject commit 36a7611087f93eae4f645bbae6b8a71b3c8c986f diff --git a/wordbyauto.cc b/wordbyauto.cc index bc20309d..c56b415f 100644 --- a/wordbyauto.cc +++ b/wordbyauto.cc @@ -1,6 +1,5 @@ #include #include -#include #include "wordbyauto.hh" #include "uiauto.hh" @@ -12,7 +11,7 @@ public: GDAutomationClient(); ~GDAutomationClient(); bool getWordAtPoint( POINT pt ); - WCHAR *getText() { return buffer; }; + WCHAR *getText() { return buffer; } private: WCHAR buffer[256]; IUIAutomation *pGDAutomation; diff --git a/xdxf.cc b/xdxf.cc index b8814155..4735b9b6 100644 --- a/xdxf.cc +++ b/xdxf.cc @@ -25,6 +25,10 @@ #include "indexedzip.hh" #include "filetype.hh" +#ifdef _MSC_VER +#include +#endif + #include #include #include @@ -96,7 +100,11 @@ struct IdxHeader // resource index. uint32_t zipIndexRootOffset; uint32_t revisionNumber; // Format revision -} __attribute__((packed)); +} +#ifndef _MSC_VER +__attribute__((packed)) +#endif +; bool indexIsOldOrBad( string const & indexFile ) { diff --git a/zipfile.cc b/zipfile.cc index 397a111c..7c4f1562 100644 --- a/zipfile.cc +++ b/zipfile.cc @@ -16,7 +16,11 @@ struct EndOfCdirRecord quint16 numDisk, numDiskCd, totalEntriesDisk, totalEntries; quint32 size, offset; quint16 commentLength; -} __attribute__((packed)); +} +#ifndef _MSC_VER +__attribute__((packed)) +#endif +; struct CentralFileHeaderRecord { @@ -26,7 +30,11 @@ struct CentralFileHeaderRecord quint16 fileNameLength, extraFieldLength, fileCommentLength, diskNumberStart, intFileAttrs; quint32 externalFileAttrs, offsetOfLocalHeader; -} __attribute__((packed)); +} +#ifndef _MSC_VER +__attribute__((packed)) +#endif +; struct LocalFileHeaderRecord { @@ -34,7 +42,11 @@ struct LocalFileHeaderRecord quint16 verNeeded, gpBits, compressionMethod, fileTime, fileDate; quint32 crc32, compressedSize, uncompressedSize; quint16 fileNameLength, extraFieldLength; -} __attribute__((packed)); +} +#ifndef _MSC_VER +__attribute__((packed)) +#endif +; #pragma pack( pop )