source: diffs/CoolReader_3.0.55.diff@ 179

Last change on this file since 179 was 159, checked in by Silvan Scherrer, 11 years ago

new qbit version

File size: 12.1 KB
  • .gitignore

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/.gitignore trunk/.gitignore
    old new  
    1 *.*~
    2 qtbuild
    3 v3build
    4 v5build
    5 wxbuild
    6 qtbuild
    7 qt-build
    8 qtcreator-build
    9 *~
  • cr3qt/CMakeLists.txt

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/CMakeLists.txt trunk/cr3qt/CMakeLists.txt
    old new  
    4848    ADD_DEFINITIONS(-DCR3_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/cr3/"
    4949          -DUSE_FONTCONFIG=1
    5050    )
     51ELSEIF (OS2)
     52    ADD_DEFINITIONS(-DCR3_DATA_DIR=""
     53          -DUSE_FONTCONFIG=1
     54    )
    5155ELSE()
    5256    ADD_DEFINITIONS(-DCR3_DATA_DIR=""
    5357          -DUSE_FONTCONFIG=0
     
    7175  endif(MINGW)
    7276ENDIF (WIN32)
    7377
     78IF (OS2)
     79 # init of the rc compiler
     80 set(RES_FILES "src/cr3_os2.rc")
     81 ENABLE_LANGUAGE(RC)
     82 set(CMAKE_RC_COMPILER_INIT rc)
     83    SET(CMAKE_RC_COMPILE_OBJECT
     84      "<CMAKE_RC_COMPILER> -n -r -i ${CMAKE_CURRENT_SOURCE_DIR}/src <SOURCE> <OBJECT>")
     85
     86 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Zstack 0x2000 -Zlinker \"DISABLE 1121\" -s -Zlinker /PM:PM -Zno-fork -Zhigh-mem -Zmap")
     87ENDIF (OS2)
    7488
    7589SET(LANGUAGES ru uk cs de es pl bg hu)
    7690message( "Languages: ${LANGUAGES}" )
     
    158172#${QT_LIBRARIES}
    159173ELSEIF (UNIX)
    160174    SET (EXTRA_LIBS ${QT_LIBRARIES} fontconfig ${STD_LIBS} )
     175ELSEIF (OS2)
     176    SET (EXTRA_LIBS ${QT_LIBRARIES} ${STD_LIBS} intl fontconfig xml2 mmap)
    161177ELSE()
    162178    SET (EXTRA_LIBS ${STD_LIBS} ${QT_LIBRARIES})
    163179ENDIF(MAC)
  • cr3qt/src/cr3_os2.rc

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/cr3_os2.rc trunk/cr3qt/src/cr3_os2.rc
    old new  
     1ICON    1       DISCARDABLE     "icons/cr3_os2.ico"
     2 Kein Zeilenumbruch am Dateiende.
  • cr3qt/src/icons/cr3_os2.ico

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/icons/cr3_os2.ico trunk/cr3qt/src/icons/cr3_os2.ico
    old new  
     1CI"
  • cr3qt/src/main.cpp

    :
    (PÿÿÿCI"
    º
    ((€’€€ª€€ª’ÁÁÁÌÌÌÿÛªªIÿImUmªmÿm$U’ª$ÿ’¶U¶ª¶ÿ¶ÛUÛªÛÿÛªÛÿUÿªÿªÿÿ+U+ª+ÿ+$+U$+ª$+ÿ$+I+UI+ªI+ÿI+m+Um+ªm+ÿm+’+U’+ª’+ÿ’+¶+U¶+ª¶+ÿ¶+Û+UÛ+ªÛ+ÿÛ+ÿ+Uÿ+ªÿ+ÿÿ+UUUªUÿU$UU$Uª$Uÿ$UIUUIUªIUÿIUmUUmUªmUÿmU’UU’Uª’Uÿ’U¶UU¶Uª¶Uÿ¶UÛUUÛUªÛUÿÛUÿUUÿUªÿUÿÿUUU€U$ÿ€$€U$€ª$€ÿ$€I€UI€ªI€ÿI€m€Um€ªm€ÿm€'''...666>>>FFFMMMUUU]]]dddlllttt|||Ûÿ‹‹‹“““›››ÿ¶ÿªªª²²²¹¹¹ÿ$IÑÑÑØØØàààèèèðððª¶ÿÿÛÿU’€ª’€ÿ’€¶€U¶€ª¶€ÿ¶€Û€UۀªÛ€ÿۀÿ€Uÿ€ªÿ€ÿÿ€ªUªªªÿª$ªU$ªª$ªÿ$ªIªUIªªIªÿIªmªUmªªmªÿmª’ªU’ªª’ªÿ’ª¶ªU¶ªª¶ªÿ¶ªÛªUÛªªÛªUIÿªUÿªªÿªÿÿªÕUÕªÕÿÕ$ÕU$Õª$Õÿ$ÕIÕUIÕªIÕÿIÕmÕUmÕªmÕÿmՒÕU’Õª’Õÿ’Õ¶ÕU¶Õª¶Õÿ¶ÕÛÕUÛÕªÛÕÿÛÕÿÕUÿÕªÿÕÿÿÕUÛÿUÿªÿUÿÿ$ÿU$ÿª$ÿÿ$ÿIÿUIÿªIÿÿIÿmÿUmÿªmÿÿmÿ’ÿU’ÿª’ÿÿ’ÿ¶ÿU¶ÿ÷÷÷¢¢¢ƒƒƒÿÿÿÿÿÿÿÿÿÿÿÿ’ÁÿÛªmmÿU’¶¶ÿUÛªÛÿªU++$$+ÿUI++mm+ÿU’++¶¶+ÿUÛ++ÿÿ+ÿUUU$$UÿUIUUmmUÿU’UU¶¶UÿUÛUUÿÿUÿU€€$$€ÿUI€€m''66>MMM]ddtt|‹‹‹›ÿ¶²²¹IØààððªU’€€¶¶€ÿUۀ€ÿÿ€ÿUªª$$ªÿUIªªmmªÿU’ªª¶¶ªÿUÛªÿÿªÿUÕÕ$$ÕÿUIÕÕmmÕÿU’ÕÕ¶¶Õÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷}‹ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‚ƒŽÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿƒ‹‡Šöÿÿÿÿÿÿÿÿÿÿÿÿÿÿ†Žööƒÿÿÿÿÿÿÿÿÿÿÿÿÿÿƒy÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿŒööŽŽÿÿÿÿÿÿÿÿÿÿÿÿÿö~ƒ÷†‡øöÿÿÿÿÿÿ†
    ÿÿÿöŽŽÿ†ÿÿÿÿÿÿÿÿÿÿÿÿÿÿöz
    ÷
    yÿÿÿÿÿ†
    †Ž
    Œÿ‡ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    †ƒ†
    ƒ
    †÷}}ÿÿ†÷z{r‚‡
    †öÿÿÿÿÿÿÿÿÿÿÿÿÿŠz÷†Š~÷ƒ
    ƒ
    ‹
    ppuuz{x‚÷‹Œöÿÿÿÿÿÿÿÿÿÿ‹÷ƒƒ‡‹‚ø‚ƒ‚zz
    q|ttyyzøy|‚‹ŽŽÿÿÿÿÿÿÿÿ|~ƒ‡ŽŒ‡~‚ø~øzvwv~~}y~~÷÷~|}‹‹ÿÿÿŽz~ŠŒŒ
    z~~|÷{vyxvt|{{‚~‚‚øwøÿÿöø~ŠŠŽ‹Œ{x~~{|zpywwy}ø{zƒ
    †ŠŠ‡
    öÿÿ||xŠ‹ŒŒŒ‹Šy|ty}zypy{||øø÷÷‡ŠŠŒ~ÿÿÿz‡‹Œ‹ŽŒ‡ywwruxq{~~÷†Š‹‹‡ÿÿö{x‹Ž‹ŒŽŒŽ‹
    ƒøurwrsr~†ƒ
    †ŠŒŒ‹ÿÿÿ‡Œ‹Œ‹öŽŒ‹†÷‚}~uuvvqqtxø‚‹ŒŒŽ‚ÿÿÿƒŒŽ‹‹ŒŽŽŒŽŠŒ†÷øøtwwyw|rqyzyyxz÷Š
    Žÿÿö
    ŒŒŒŒŒöŽŒŒŒŠŠ‚}uxwzzz~øwyy‹{ƒ‡†
    †ÿÿ÷ŒŽŽÿÿÿÿÿÿÿÿÿÿŒxvzz|~øŒÿ‡
    †
    ‹‡öÿö÷‹ÿ‡uÿ~ƒÿøÿƒ~ÿ‹ÿÿÿÿЇ‹Žqw‡ÿ~ƒÿpŠ‹ÿÿÿÿÿ‹Œöqpvy|}q~ÿƒÿwЇ‡ÿÿÿÿÿÿÿŽÿyø|yuxxv†qz
    qvö
    ÷ÿÿÿÿÿÿÿÿÿÿއ{uøywz|wŽrÿ÷öÿÿÿÿÿÿÿÿÿÿ
    ÷Œ‚ø|xv†ÿ}|z}~~øŠÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿöÿƒ|tøöÿÿöŽ|øøƒƒxpq‹ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿø~y÷Œÿÿÿÿÿƒ
    
    ƒqquŽÿÿÿÿÿÿÿÿÿÿÿÿÿpÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ‹öÿÿszÿÿÿÿÿÿÿÿÿÿÿvÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿørŽÿÿÿÿÿÿÿÿÿÿÿÿÿÿ}ÿÿÿÿÿÿÿŽ~ÿÿÿÿÿÿÿÿÿÿvÿÿuƒÿÿÿÿÿÿÿÿÿÿÿŠvŒÿÿÿÿ÷pöÿÿÿs~ÿÿÿ}~ÿrrÿÿÿÿÿÿÿÿÿÿÿ‡~
    ÷y†ÿÿÿ‡uŒpsŽÿÿÿÿÿÿÿÿÿÿÿÿw~ÿÿÿÿÿzöÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿxrÿÿÿÿÿÿÿÿŽw|öÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷}~ŠÿÿÿÿÿÿÿÿÿÿŒ‡}}ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    \ Kein Zeilenumbruch am Dateiende.
    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/main.cpp trunk/cr3qt/src/main.cpp
    old new  
    156156            QString exeDir = QDir::toNativeSeparators(qApp->applicationDirPath() + "/Contents/Resources/"); //QDir::separator();
    157157            QString translations = exeDir + "i18n";
    158158#else
    159 #if defined(_WIN32)
     159#if defined(_WIN32) || defined(Q_OS_OS2)
    160160            QString exeDir = QDir::toNativeSeparators(qApp->applicationDirPath() + "/"); //QDir::separator();
    161161            QString translations = exeDir + "i18n";
    162162#else
     
    308308bool InitCREngine( const char * exename, lString16Collection & fontDirs )
    309309{
    310310        CRLog::trace("InitCREngine(%s)", exename);
    311 #ifdef _WIN32
     311#if defined(_WIN32) || defined(Q_OS_OS2)
    312312    lString16 appname( exename );
    313313    int lastSlash=-1;
    314314    lChar16 slashChar = '/';
  • crengine/include/crsetup.h

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/include/crsetup.h trunk/crengine/include/crsetup.h
    old new  
    4848#define FILE_STREAM_BUFFER_SIZE              0x40000
    4949#endif
    5050
    51 #elif defined(_LINUX) || defined (LINUX)
     51#elif defined(_LINUX) || defined (LINUX) || defined(_OS2) || defined (OS2)
    5252
    5353#ifndef LDOM_USE_OWN_MEM_MAN
    5454#define LDOM_USE_OWN_MEM_MAN                 1
  • crengine/src/lvstream.cpp

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/src/lvstream.cpp trunk/crengine/src/lvstream.cpp
    old new  
    5454#include <sys/mman.h>
    5555#endif
    5656
    57 #ifdef _LINUX
     57#if defined(_LINUX) || defined(_OS2)
    5858#include <sys/types.h>
    5959#include <sys/stat.h>
    6060#include <unistd.h>
     
    302302
    303303
    304304//#if USE__FILES==1
    305 #if defined(_LINUX) || defined(_WIN32)
     305#if defined(_LINUX) || defined(_WIN32) || defined(_OS2)
    306306
    307307class LVFileMappedStream : public LVNamedStream
    308308{
     
    828828
    829829
    830830//#ifdef _LINUX
     831#ifndef _OS2
    831832#undef USE_ANSI_FILES
     833#endif
    832834//#endif
    833835
    834836#if (USE_ANSI_FILES==1)
     
    35173519    lChar16 c = pathName[0];
    35183520    if ( c=='\\' || c=='/' )
    35193521        return true;
    3520 #ifdef _WIN32
     3522#if defined(_WIN32) || defined(_OS2)
    35213523    if ( (c>='a' && c<='z') || (c>='A' && c<='Z') ) {
    35223524        return (pathName[1]==':');
    35233525    }
     
    37603762*/
    37613763LVStreamRef LVMapFileStream( const lChar16 * pathname, lvopen_mode_t mode, lvsize_t minSize )
    37623764{
    3763 #if !defined(_WIN32) && !defined(_LINUX)
     3765#if !defined(_WIN32) && !defined(_LINUX) && !defined(_OS2)
    37643766        // STUB for systems w/o mmap
    37653767    LVFileStream * stream = LVFileStream::CreateFileStream( pathname, mode );
    37663768    if ( stream!=NULL )
  • crengine/src/lvstring.cpp

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/src/lvstring.cpp trunk/crengine/src/lvstring.cpp
    old new  
    2424#include <malloc.h>
    2525#endif
    2626#endif
    27 
     27#include <stddef.h>
    2828#if (USE_ZLIB==1)
    2929#include <zlib.h>
    3030#endif
  • CMakeLists.txt

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/CMakeLists.txt trunk/CMakeLists.txt
    old new  
    9797  ADD_DEFINITIONS( -DMAC=1 -DLINUX=1 -D_LINUX=1 -DCR_EMULATE_GETTEXT=1 )
    9898elseif ( WIN32 )
    9999  ADD_DEFINITIONS( -DWIN32=1 -D_WIN32=1 -DCR_EMULATE_GETTEXT=1 )
     100elseif ( OS2 )
     101  ADD_DEFINITIONS( -DOS2=1 -D_OS2=1 )
    100102else()
    101103  ADD_DEFINITIONS( -DLINUX=1 -D_LINUX=1 )
    102104endif(MAC)
  • install.os2

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/install.os2 trunk/install.os2
    old new  
     1CoolReader3 installation
     2
     3
     4
     50. CONTENTS OF THIS FILE
     6========================
     7
     81. INTRODUCTION
     9
     102. REQUIREMENTS
     11
     123. INSTALLATION
     13
     144. BUGREPORTS
     15
     165. CREDITS
     17
     186. SUPPORT AND DONATIONS
     19
     207. HISTORY
     21
     22
     231. INTRODUCTION
     24===============
     25
     26Welcome to CoolReader3 port for OS/2 and eComStation.
     27
     28
     292. REQUIREMENTS
     30===============
     31
     32* klibc 0.6.3 or later
     33
     34    ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi
     35
     36
     37* Qt4 dll
     38
     39    see http://svn.netlabs.org/qt4 for more information whats needed and where to get the latest
     40
     41
     423. INSTALLATION
     43===============
     44         
     45To install CoolReader3, do the following:
     46
     47klibc
     48-----
     49
     50  1. Download klibc 0.6.3 csd3 or later.
     51  2. Install the package by double-clicking on the WPI file.
     52
     53
     54
     55Qt4 dll
     56-------
     57
     58  1. Download the package
     59  2. Install the package either with rpm or by zip.
     60
     61
     62
     63CoolReader3
     64-----------
     65
     66  1. Create a directory for CoolReader3.
     67  2. Extract the ColReader3 package to the new directory.
     68  3. Create a WPS object for cr3.exe.
     69  4. Start CoolReader3
     70  5. Happy reading
     71 
     72
     73
     744. BUGREPORTS
     75=============
     76
     77Please create bugreports at http://svn.netlabs.org/qtapps
     78Only bug reports with a reproducable bug are accepted. :-)
     79
     80
     81
     825. CREDITS
     83==========
     84
     85The port was done by:
     86
     87Silvan Scherrer aka _diver
     88
     89Thanks go to:
     90
     91  * Dmitry A. Kuminov
     92
     93They either helped me when I had some nasty questions or did some testing for
     94me.
     95
     96
     976. SUPPORT AND DONATIONS
     98========================
     99
     100CoolReader3 port is based on volunteer work. If you would like to support further
     101development, you can do so in one of the following ways:
     102
     103
     104  * Donate to the Qt4 project: see qt.netlabs.org for more information
     105
     106  * Contribute to the project: Besides actual development, this also includes
     107    maintaining the documentation and the project web site as well as help
     108    for users.
     109
     110
     1117. HISTORY
     112==========
     113
     1142012-09-13
     115
     116  * updated coolreader source to 3.0.55
     117
     1182011-09-30
     119
     120  * updated coolreader source to 3.0.51
     121  * updated Qt to 4.7.3
     122
     1232011-06-01
     124
     125  * initial port
     126
  • tinydict/tinydict.cpp

    diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/tinydict/tinydict.cpp trunk/tinydict/tinydict.cpp
    old new  
    994994                        }
    995995                }
    996996        }
    997 #ifdef _WIN32
     997#ifdef _WIN32 || defined(_OS2)
    998998        printf("Press any key...");
    999999        getchar();
    10001000#endif
Note: See TracBrowser for help on using the repository browser.