[texworks] 08/73: Imported Debian patch 0.3~svn606-1
This is an automated email from the git hooks/post-receive script.
preining pushed a commit to branch master
in repository texworks.
commit 83908e50f0c2538f8aff58add70b4a3c705e9f1f
Merge: e347365 04d660e
Author: Atsuhito KOHDA <kohda@debian.org>
Date: Thu Apr 15 08:15:38 2010 +0900
Imported Debian patch 0.3~svn606-1
.svn/all-wcprops | 71 -
.svn/entries | 420 --
.svn/prop-base/TeXworks-doc.icns.svn-base | 5 -
.svn/prop-base/TeXworks.icns.svn-base | 5 -
.svn/prop-base/getDefaultBinPaths.sh.svn-base | 5 -
.svn/prop-base/getSvnRev.sh.svn-base | 5 -
.svn/prop-base/mkresfilelist.sh.svn-base | 5 -
.svn/prop-base/texworks-setup-script.iss.svn-base | 5 -
.svn/text-base/COPYING.svn-base | 339 -
.svn/text-base/README.svn-base | 44 -
.svn/text-base/TeXworks-doc.icns.svn-base | Bin 144952 -> 0 bytes
.svn/text-base/TeXworks.icns.svn-base | Bin 262966 -> 0 bytes
.svn/text-base/TeXworks.plist.in.svn-base | 69 -
.svn/text-base/TeXworks.pro.svn-base | 210 -
.svn/text-base/getDefaultBinPaths.sh.svn-base | 85 -
.svn/text-base/getSvnRev.sh.svn-base | 36 -
.svn/text-base/mkresfilelist.sh.svn-base | 37 -
.svn/text-base/texworks-setup-script.iss.svn-base | 104 -
.../TeXworks.plist.svn-base => Info.plist | 6 +-
TeXworks.plist | 6 +-
TeXworks.pro | 1 +
debian/changelog | 7 +
debian/patch-luatex | 2 +-
debian/patch-plugin | 8 +-
debian/patch-print | 26 +-
extra-setup-languages/.svn/all-wcprops | 41 -
extra-setup-languages/.svn/entries | 232 -
.../.svn/text-base/Arabic-4-5.1.11.isl.svn-base | 317 -
.../text-base/ChineseSimp-12-5.1.11.isl.svn-base | 320 -
.../.svn/text-base/Farsi-2-5.1.11.isl.svn-base | 318 -
.../.svn/text-base/Japanese-5-5.1.11.isl.svn-base | 312 -
.../.svn/text-base/Korean-5-5.1.11.isl.svn-base | 324 -
.../.svn/text-base/Turkish-3-5.1.11.isl.svn-base | 310 -
plugins-src/.svn/all-wcprops | 5 -
plugins-src/.svn/entries | 34 -
plugins-src/TWLuaPlugin/.svn/all-wcprops | 23 -
plugins-src/TWLuaPlugin/.svn/entries | 130 -
.../.svn/text-base/TWLuaPlugin.cpp.svn-base | 411 -
.../.svn/text-base/TWLuaPlugin.h.svn-base | 182 -
.../.svn/text-base/TWLuaPlugin.pro.svn-base | 68 -
plugins-src/TWLuaPlugin/Makefile | 24 +-
plugins-src/TWLuaPlugin/TWLuaPlugin.cpp | 7 +-
plugins-src/TWLuaPlugin/TWLuaPlugin.h | 2 +-
plugins-src/TWLuaPlugin/TWLuaPlugin.pro | 3 +-
plugins-src/TWPythonPlugin/.svn/all-wcprops | 23 -
plugins-src/TWPythonPlugin/.svn/entries | 130 -
.../.svn/text-base/TWPythonPlugin.cpp.svn-base | 497 --
.../.svn/text-base/TWPythonPlugin.h.svn-base | 188 -
.../.svn/text-base/TWPythonPlugin.pro.svn-base | 76 -
plugins-src/TWPythonPlugin/Makefile | 24 +-
plugins-src/TWPythonPlugin/TWPythonPlugin.cpp | 35 +-
plugins-src/TWPythonPlugin/TWPythonPlugin.h | 2 +-
plugins-src/TWPythonPlugin/TWPythonPlugin.pro | 3 +-
poppler-patches/.svn/all-wcprops | 23 -
poppler-patches/.svn/entries | 130 -
poppler-patches/.svn/text-base/README.svn-base | 11 -
.../text-base/poppler-font-handling.patch.svn-base | 568 --
.../poppler-qt4-globalparams.patch.svn-base | 80 -
res/.svn/all-wcprops | 23 -
res/.svn/entries | 139 -
res/.svn/text-base/TeXworks.rc.svn-base | 36 -
res/.svn/text-base/resfiles.qrc.svn-base | 58 -
res/.svn/text-base/resources.qrc.svn-base | 48 -
res/images/.svn/all-wcprops | 299 -
res/images/.svn/entries | 1694 -----
.../.svn/prop-base/TeXworks-doc-48.png.svn-base | 5 -
.../.svn/prop-base/TeXworks-doc.ico.svn-base | 5 -
.../.svn/prop-base/TeXworks-doc.png.svn-base | 5 -
.../.svn/prop-base/TeXworks-small.bmp.svn-base | 5 -
res/images/.svn/prop-base/TeXworks.ico.svn-base | 5 -
res/images/.svn/prop-base/TeXworks.png.svn-base | 5 -
res/images/.svn/prop-base/actualsize.png.svn-base | 5 -
res/images/.svn/prop-base/back.PSD.svn-base | 5 -
res/images/.svn/prop-base/back.png.svn-base | 5 -
res/images/.svn/prop-base/back2.PSD.svn-base | 5 -
res/images/.svn/prop-base/back2.png.svn-base | 5 -
res/images/.svn/prop-base/down.png.svn-base | 5 -
res/images/.svn/prop-base/editcopy.png.svn-base | 5 -
res/images/.svn/prop-base/editcut.png.svn-base | 5 -
res/images/.svn/prop-base/editgrid.png.svn-base | 5 -
res/images/.svn/prop-base/edithlayout.png.svn-base | 5 -
res/images/.svn/prop-base/editlower.png.svn-base | 5 -
res/images/.svn/prop-base/editpaste.png.svn-base | 5 -
res/images/.svn/prop-base/editredo.png.svn-base | 5 -
res/images/.svn/prop-base/editundo.png.svn-base | 5 -
res/images/.svn/prop-base/editvlayout.png.svn-base | 5 -
res/images/.svn/prop-base/filenew.png.svn-base | 5 -
res/images/.svn/prop-base/fileopen.png.svn-base | 5 -
res/images/.svn/prop-base/fileprint.png.svn-base | 5 -
res/images/.svn/prop-base/filesave.png.svn-base | 5 -
res/images/.svn/prop-base/first.PSD.svn-base | 5 -
res/images/.svn/prop-base/first.png.svn-base | 5 -
res/images/.svn/prop-base/fitwidth.png.svn-base | 5 -
res/images/.svn/prop-base/fitwindow.png.svn-base | 5 -
res/images/.svn/prop-base/forward.png.svn-base | 5 -
res/images/.svn/prop-base/forward2.PSD.svn-base | 5 -
res/images/.svn/prop-base/forward2.png.svn-base | 5 -
res/images/.svn/prop-base/hand.png.svn-base | 5 -
res/images/.svn/prop-base/last.PSD.svn-base | 5 -
res/images/.svn/prop-base/last.png.svn-base | 5 -
.../.svn/prop-base/magnifiercursor.png.svn-base | 5 -
res/images/.svn/prop-base/minus.png.svn-base | 5 -
res/images/.svn/prop-base/pdfdoc.png.svn-base | 5 -
res/images/.svn/prop-base/plus.png.svn-base | 5 -
res/images/.svn/prop-base/rect-select.png.svn-base | 5 -
res/images/.svn/prop-base/runtool.png.svn-base | 5 -
res/images/.svn/prop-base/searchfind.png.svn-base | 5 -
res/images/.svn/prop-base/texdoc.png.svn-base | 5 -
res/images/.svn/prop-base/text-tool.png.svn-base | 5 -
res/images/.svn/prop-base/up.png.svn-base | 5 -
res/images/.svn/prop-base/zoomin.png.svn-base | 5 -
.../.svn/prop-base/zoomincursor.png.svn-base | 5 -
res/images/.svn/prop-base/zoomout.png.svn-base | 5 -
.../.svn/prop-base/zoomoutcursor.png.svn-base | 5 -
.../.svn/text-base/TeXworks-doc-48.png.svn-base | Bin 5248 -> 0 bytes
.../.svn/text-base/TeXworks-doc.ico.svn-base | Bin 105063 -> 0 bytes
.../.svn/text-base/TeXworks-doc.png.svn-base | Bin 105368 -> 0 bytes
.../.svn/text-base/TeXworks-small.bmp.svn-base | Bin 9800 -> 0 bytes
res/images/.svn/text-base/TeXworks.ico.svn-base | Bin 175905 -> 0 bytes
res/images/.svn/text-base/TeXworks.png.svn-base | Bin 203924 -> 0 bytes
res/images/.svn/text-base/actualsize.png.svn-base | Bin 1338 -> 0 bytes
res/images/.svn/text-base/back.PSD.svn-base | Bin 3706 -> 0 bytes
res/images/.svn/text-base/back.png.svn-base | Bin 678 -> 0 bytes
res/images/.svn/text-base/back2.PSD.svn-base | Bin 3641 -> 0 bytes
res/images/.svn/text-base/back2.png.svn-base | Bin 1200 -> 0 bytes
res/images/.svn/text-base/down.png.svn-base | Bin 594 -> 0 bytes
res/images/.svn/text-base/editcopy.png.svn-base | Bin 1468 -> 0 bytes
res/images/.svn/text-base/editcut.png.svn-base | Bin 1512 -> 0 bytes
res/images/.svn/text-base/editgrid.png.svn-base | Bin 751 -> 0 bytes
res/images/.svn/text-base/edithlayout.png.svn-base | Bin 1395 -> 0 bytes
res/images/.svn/text-base/editlower.png.svn-base | Bin 595 -> 0 bytes
res/images/.svn/text-base/editpaste.png.svn-base | Bin 1906 -> 0 bytes
res/images/.svn/text-base/editredo.png.svn-base | Bin 1752 -> 0 bytes
res/images/.svn/text-base/editundo.png.svn-base | Bin 1746 -> 0 bytes
res/images/.svn/text-base/editvlayout.png.svn-base | Bin 586 -> 0 bytes
res/images/.svn/text-base/filenew.png.svn-base | Bin 1172 -> 0 bytes
res/images/.svn/text-base/fileopen.png.svn-base | Bin 2185 -> 0 bytes
res/images/.svn/text-base/fileprint.png.svn-base | Bin 2106 -> 0 bytes
res/images/.svn/text-base/filesave.png.svn-base | Bin 1206 -> 0 bytes
res/images/.svn/text-base/first.PSD.svn-base | Bin 4341 -> 0 bytes
res/images/.svn/text-base/first.png.svn-base | Bin 1309 -> 0 bytes
res/images/.svn/text-base/fitwidth.png.svn-base | Bin 1169 -> 0 bytes
res/images/.svn/text-base/fitwindow.png.svn-base | Bin 1130 -> 0 bytes
res/images/.svn/text-base/forward.png.svn-base | Bin 655 -> 0 bytes
res/images/.svn/text-base/forward2.PSD.svn-base | Bin 3816 -> 0 bytes
res/images/.svn/text-base/forward2.png.svn-base | Bin 1189 -> 0 bytes
res/images/.svn/text-base/hand.png.svn-base | Bin 5030 -> 0 bytes
res/images/.svn/text-base/last.PSD.svn-base | Bin 4504 -> 0 bytes
res/images/.svn/text-base/last.png.svn-base | Bin 1292 -> 0 bytes
.../.svn/text-base/magnifiercursor.png.svn-base | Bin 3798 -> 0 bytes
res/images/.svn/text-base/minus.png.svn-base | Bin 250 -> 0 bytes
res/images/.svn/text-base/pdfdoc.png.svn-base | Bin 844 -> 0 bytes
res/images/.svn/text-base/plus.png.svn-base | Bin 462 -> 0 bytes
res/images/.svn/text-base/rect-select.png.svn-base | Bin 499 -> 0 bytes
res/images/.svn/text-base/runtool.png.svn-base | Bin 5047 -> 0 bytes
res/images/.svn/text-base/searchfind.png.svn-base | Bin 1836 -> 0 bytes
res/images/.svn/text-base/texdoc.png.svn-base | Bin 744 -> 0 bytes
res/images/.svn/text-base/text-tool.png.svn-base | Bin 3075 -> 0 bytes
res/images/.svn/text-base/up.png.svn-base | Bin 692 -> 0 bytes
res/images/.svn/text-base/zoomin.png.svn-base | Bin 1714 -> 0 bytes
.../.svn/text-base/zoomincursor.png.svn-base | Bin 4162 -> 0 bytes
res/images/.svn/text-base/zoomout.png.svn-base | Bin 1711 -> 0 bytes
.../.svn/text-base/zoomoutcursor.png.svn-base | Bin 4113 -> 0 bytes
res/resfiles/.svn/all-wcprops | 5 -
res/resfiles/.svn/entries | 43 -
res/resfiles/completion/.svn/all-wcprops | 23 -
res/resfiles/completion/.svn/entries | 130 -
.../.svn/text-base/tw-basic.txt.svn-base | 98 -
.../.svn/text-base/tw-context.txt.svn-base | 3 -
.../.svn/text-base/tw-latex.txt.svn-base | 614 --
res/resfiles/completion/tw-latex.txt | 14 +-
res/resfiles/configuration/.svn/all-wcprops | 41 -
res/resfiles/configuration/.svn/entries | 232 -
.../text-base/auto-indent-patterns.txt.svn-base | 18 -
.../.svn/text-base/delimiter-pairs.txt.svn-base | 12 -
.../.svn/text-base/smart-quotes-modes.txt.svn-base | 20 -
.../.svn/text-base/syntax-patterns.txt.svn-base | 64 -
.../.svn/text-base/tag-patterns.txt.svn-base | 29 -
.../.svn/text-base/texworks-config.txt.svn-base | 35 -
res/resfiles/scripts/.svn/all-wcprops | 29 -
res/resfiles/scripts/.svn/entries | 173 -
.../scripts/.svn/text-base/launchPdf.js.svn-base | 10 -
.../scripts/.svn/text-base/makeBold.lua.svn-base | 15 -
.../scripts/.svn/text-base/makeBold.py.svn-base | 14 -
.../scripts/.svn/text-base/system.js.svn-base | 16 -
res/resfiles/scripts/Hooks/.svn/all-wcprops | 17 -
res/resfiles/scripts/Hooks/.svn/entries | 96 -
.../Hooks/.svn/text-base/babelLanguage.js.svn-base | 63 -
.../Hooks/.svn/text-base/latexErrors.js.svn-base | 119 -
res/resfiles/scripts/Hooks/latexErrors.js | 2 +-
res/resfiles/scripts/LaTeX styles/.svn/all-wcprops | 17 -
res/resfiles/scripts/LaTeX styles/.svn/entries | 96 -
.../.svn/text-base/toggleBold.js.svn-base | 30 -
.../.svn/text-base/toggleEmph.js.svn-base | 30 -
.../scripts/Text transforms/.svn/all-wcprops | 11 -
res/resfiles/scripts/Text transforms/.svn/entries | 62 -
.../.svn/text-base/titlecase.js.svn-base | 61 -
res/resfiles/templates/.svn/all-wcprops | 5 -
res/resfiles/templates/.svn/entries | 43 -
.../Basic LaTeX documents/.svn/all-wcprops | 17 -
.../templates/Basic LaTeX documents/.svn/entries | 96 -
.../.svn/text-base/article.tex.svn-base | 72 -
.../.svn/text-base/letter.tex.svn-base | 26 -
.../Beamer presentations/.svn/all-wcprops | 23 -
.../templates/Beamer presentations/.svn/entries | 130 -
.../conference-ornate-20min.en.tex.svn-base | 288 -
.../generic-ornate-15min-45min.en.tex.svn-base | 219 -
...peaker_introduction-ornate-2min.en.tex.svn-base | 105 -
res/resfiles/templates/ConTeXt/.svn/all-wcprops | 5 -
res/resfiles/templates/ConTeXt/.svn/entries | 28 -
.../templates/More LaTeX classes/.svn/all-wcprops | 17 -
.../templates/More LaTeX classes/.svn/entries | 96 -
.../.svn/text-base/KOMA-letter.tex.svn-base | 30 -
.../.svn/text-base/memoir.tex.svn-base | 71 -
.../templates/XeLaTeX documents/.svn/all-wcprops | 11 -
.../templates/XeLaTeX documents/.svn/entries | 62 -
.../.svn/text-base/article-fontspec.tex.svn-base | 39 -
res/resfiles/translations/.svn/all-wcprops | 65 -
res/resfiles/translations/.svn/entries | 368 -
.../translations/.svn/prop-base/qt_ar.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_de.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_es.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_fr.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_ja.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_ko.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_nl.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_pl.qm.svn-base | 5 -
.../translations/.svn/prop-base/qt_ru.qm.svn-base | 5 -
.../.svn/prop-base/qt_zh_CN.qm.svn-base | 5 -
.../translations/.svn/text-base/qt_ar.qm.svn-base | Bin 116781 -> 0 bytes
.../translations/.svn/text-base/qt_de.qm.svn-base | Bin 181348 -> 0 bytes
.../translations/.svn/text-base/qt_es.qm.svn-base | Bin 81845 -> 0 bytes
.../translations/.svn/text-base/qt_fr.qm.svn-base | Bin 168579 -> 0 bytes
.../translations/.svn/text-base/qt_ja.qm.svn-base | Bin 55805 -> 0 bytes
.../translations/.svn/text-base/qt_ko.qm.svn-base | Bin 68364 -> 0 bytes
.../translations/.svn/text-base/qt_nl.qm.svn-base | Bin 85620 -> 0 bytes
.../translations/.svn/text-base/qt_pl.qm.svn-base | Bin 158795 -> 0 bytes
.../translations/.svn/text-base/qt_ru.qm.svn-base | Bin 36218 -> 0 bytes
.../.svn/text-base/qt_zh_CN.qm.svn-base | Bin 31960 -> 0 bytes
res/tango/.svn/all-wcprops | 167 -
res/tango/.svn/entries | 946 ---
res/tango/.svn/prop-base/document-new.png.svn-base | 5 -
.../.svn/prop-base/document-open.png.svn-base | 5 -
.../.svn/prop-base/document-save.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-copy.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-cut.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-delete.png.svn-base | 5 -
.../.svn/prop-base/edit-find-replace.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-find.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-paste.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-redo.png.svn-base | 5 -
.../.svn/prop-base/edit-select-all.png.svn-base | 5 -
res/tango/.svn/prop-base/edit-undo.png.svn-base | 5 -
.../.svn/prop-base/format-indent-less.png.svn-base | 5 -
.../.svn/prop-base/format-indent-more.png.svn-base | 5 -
res/tango/.svn/prop-base/go-down.png.svn-base | 5 -
res/tango/.svn/prop-base/go-first.png.svn-base | 5 -
res/tango/.svn/prop-base/go-jump.png.svn-base | 5 -
res/tango/.svn/prop-base/go-last.png.svn-base | 5 -
res/tango/.svn/prop-base/go-next.png.svn-base | 5 -
res/tango/.svn/prop-base/go-previous.png.svn-base | 5 -
res/tango/.svn/prop-base/go-up.png.svn-base | 5 -
res/tango/.svn/prop-base/list-add.png.svn-base | 5 -
res/tango/.svn/prop-base/list-remove.png.svn-base | 5 -
.../.svn/prop-base/preferences-system.png.svn-base | 5 -
res/tango/.svn/prop-base/process-stop.png.svn-base | 5 -
.../.svn/prop-base/text-x-generic.png.svn-base | 5 -
.../.svn/prop-base/view-fullscreen.png.svn-base | 5 -
res/tango/.svn/text-base/document-new.png.svn-base | Bin 1008 -> 0 bytes
.../.svn/text-base/document-open.png.svn-base | Bin 1437 -> 0 bytes
.../.svn/text-base/document-save.png.svn-base | Bin 1971 -> 0 bytes
res/tango/.svn/text-base/edit-copy.png.svn-base | Bin 723 -> 0 bytes
res/tango/.svn/text-base/edit-cut.png.svn-base | Bin 2087 -> 0 bytes
res/tango/.svn/text-base/edit-delete.png.svn-base | Bin 2049 -> 0 bytes
.../.svn/text-base/edit-find-replace.png.svn-base | Bin 2104 -> 0 bytes
res/tango/.svn/text-base/edit-find.png.svn-base | Bin 1636 -> 0 bytes
res/tango/.svn/text-base/edit-paste.png.svn-base | Bin 1027 -> 0 bytes
res/tango/.svn/text-base/edit-redo.png.svn-base | Bin 1502 -> 0 bytes
.../.svn/text-base/edit-select-all.png.svn-base | Bin 631 -> 0 bytes
res/tango/.svn/text-base/edit-undo.png.svn-base | Bin 1601 -> 0 bytes
.../.svn/text-base/format-indent-less.png.svn-base | Bin 767 -> 0 bytes
.../.svn/text-base/format-indent-more.png.svn-base | Bin 766 -> 0 bytes
res/tango/.svn/text-base/go-down.png.svn-base | Bin 1187 -> 0 bytes
res/tango/.svn/text-base/go-first.png.svn-base | Bin 1331 -> 0 bytes
res/tango/.svn/text-base/go-jump.png.svn-base | Bin 1491 -> 0 bytes
res/tango/.svn/text-base/go-last.png.svn-base | Bin 1342 -> 0 bytes
res/tango/.svn/text-base/go-next.png.svn-base | Bin 1219 -> 0 bytes
res/tango/.svn/text-base/go-previous.png.svn-base | Bin 1200 -> 0 bytes
res/tango/.svn/text-base/go-up.png.svn-base | Bin 1193 -> 0 bytes
res/tango/.svn/text-base/list-add.png.svn-base | Bin 601 -> 0 bytes
res/tango/.svn/text-base/list-remove.png.svn-base | Bin 317 -> 0 bytes
.../.svn/text-base/preferences-system.png.svn-base | Bin 2129 -> 0 bytes
res/tango/.svn/text-base/process-stop.png.svn-base | Bin 1927 -> 0 bytes
.../.svn/text-base/text-x-generic.png.svn-base | Bin 744 -> 0 bytes
.../.svn/text-base/view-fullscreen.png.svn-base | Bin 1256 -> 0 bytes
src/.svn/all-wcprops | 311 -
src/.svn/entries | 1762 -----
src/.svn/prop-base/synctex_parser.c.svn-base | 5 -
src/.svn/prop-base/synctex_parser.h.svn-base | 5 -
src/.svn/text-base/CompletingEdit.cpp.svn-base | 1143 ---
src/.svn/text-base/CompletingEdit.h.svn-base | 199 -
src/.svn/text-base/ConfirmDelete.cpp.svn-base | 105 -
src/.svn/text-base/ConfirmDelete.h.svn-base | 52 -
src/.svn/text-base/ConfirmDelete.ui.svn-base | 133 -
src/.svn/text-base/Find.ui.svn-base | 271 -
src/.svn/text-base/FindDialog.cpp.svn-base | 694 --
src/.svn/text-base/FindDialog.h.svn-base | 165 -
src/.svn/text-base/HardWrapDialog.cpp.svn-base | 59 -
src/.svn/text-base/HardWrapDialog.h.svn-base | 53 -
src/.svn/text-base/HardWrapDialog.ui.svn-base | 155 -
src/.svn/text-base/PDFDocks.cpp.svn-base | 331 -
src/.svn/text-base/PDFDocks.h.svn-base | 177 -
src/.svn/text-base/PDFDocument.cpp.svn-base | 1735 -----
src/.svn/text-base/PDFDocument.h.svn-base | 316 -
src/.svn/text-base/PDFDocument.ui.svn-base | 754 --
src/.svn/text-base/PDFFind.ui.svn-base | 152 -
src/.svn/text-base/PrefsDialog.cpp.svn-base | 803 --
src/.svn/text-base/PrefsDialog.h.svn-base | 109 -
src/.svn/text-base/PrefsDialog.ui.svn-base | 1022 ---
src/.svn/text-base/Replace.ui.svn-base | 267 -
src/.svn/text-base/ScriptManager.cpp.svn-base | 216 -
src/.svn/text-base/ScriptManager.h.svn-base | 65 -
src/.svn/text-base/ScriptManager.ui.svn-base | 82 -
src/.svn/text-base/SearchResults.ui.svn-base | 60 -
src/.svn/text-base/SvnRev.h.svn-base | 2 -
src/.svn/text-base/TWApp.cpp.svn-base | 937 ---
src/.svn/text-base/TWApp.h.svn-base | 269 -
src/.svn/text-base/TWScript.cpp.svn-base | 295 -
src/.svn/text-base/TWScript.h.svn-base | 369 -
src/.svn/text-base/TWScriptable.cpp.svn-base | 426 --
src/.svn/text-base/TWScriptable.h.svn-base | 207 -
src/.svn/text-base/TWUtils.cpp.svn-base | 1021 ---
src/.svn/text-base/TWUtils.h.svn-base | 187 -
src/.svn/text-base/TWVersion.h.svn-base | 4 -
src/.svn/text-base/TeXDocks.cpp.svn-base | 153 -
src/.svn/text-base/TeXDocks.h.svn-base | 88 -
src/.svn/text-base/TeXDocument.cpp.svn-base | 2796 -------
src/.svn/text-base/TeXDocument.h.svn-base | 276 -
src/.svn/text-base/TeXDocument.ui.svn-base | 1324 ----
src/.svn/text-base/TeXHighlighter.cpp.svn-base | 257 -
src/.svn/text-base/TeXHighlighter.h.svn-base | 86 -
src/.svn/text-base/TemplateDialog.cpp.svn-base | 102 -
src/.svn/text-base/TemplateDialog.h.svn-base | 54 -
src/.svn/text-base/TemplateDialog.ui.svn-base | 118 -
src/.svn/text-base/ToolConfig.ui.svn-base | 212 -
src/.svn/text-base/main.cpp.svn-base | 113 -
src/.svn/text-base/synctex_parser.c.svn-base | 4157 -----------
src/.svn/text-base/synctex_parser.h.svn-base | 345 -
src/.svn/text-base/synctex_parser_utils.c.svn-base | 451 --
src/.svn/text-base/synctex_parser_utils.h.svn-base | 123 -
src/CompletingEdit.cpp | 4 +-
src/CompletingEdit.h | 11 +
src/PDFDocks.cpp | 3 +
src/PDFDocument.cpp | 86 +-
src/PDFDocument.h | 12 +-
src/SvnRev.h | 4 +-
src/TWApp.cpp | 73 +-
src/TWApp.h | 9 +-
src/TWScript.cpp | 59 +-
src/TWScript.h | 30 +-
src/TWScriptAPI.h | 153 +
src/TWScriptable.cpp | 54 +-
src/TWScriptable.h | 18 +-
src/TWUtils.cpp | 83 +-
src/TWUtils.h | 2 +-
src/TeXDocks.cpp | 1 +
src/TeXDocument.cpp | 192 +-
src/TeXDocument.h | 25 +-
src/TeXDocument.ui | 12 +
src/TeXHighlighter.h | 4 +
trans/.svn/all-wcprops | 233 -
trans/.svn/entries | 1320 ----
trans/.svn/prop-base/TeXworks_af.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_ar.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_ca.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_cs.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_de.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_es.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_fa.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_fr.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_fr.ts.svn-base | 5 -
trans/.svn/prop-base/TeXworks_it.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_ja.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_ko.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_nl.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_pl.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_pt_BR.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_ru.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_sl.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_tr.qm.svn-base | 5 -
trans/.svn/prop-base/TeXworks_zh_CN.qm.svn-base | 5 -
trans/.svn/text-base/TeXworks_af.qm.svn-base | Bin 44617 -> 0 bytes
trans/.svn/text-base/TeXworks_af.ts.svn-base | 2497 -------
trans/.svn/text-base/TeXworks_ar.qm.svn-base | Bin 37751 -> 0 bytes
trans/.svn/text-base/TeXworks_ar.ts.svn-base | 2238 ------
trans/.svn/text-base/TeXworks_ca.qm.svn-base | Bin 40632 -> 0 bytes
trans/.svn/text-base/TeXworks_ca.ts.svn-base | 2172 ------
trans/.svn/text-base/TeXworks_cs.qm.svn-base | Bin 39851 -> 0 bytes
trans/.svn/text-base/TeXworks_cs.ts.svn-base | 2178 ------
trans/.svn/text-base/TeXworks_de.qm.svn-base | Bin 47267 -> 0 bytes
trans/.svn/text-base/TeXworks_de.ts.svn-base | 2465 ------
trans/.svn/text-base/TeXworks_es.qm.svn-base | Bin 46832 -> 0 bytes
trans/.svn/text-base/TeXworks_es.ts.svn-base | 1979 -----
trans/.svn/text-base/TeXworks_fa.qm.svn-base | Bin 38435 -> 0 bytes
trans/.svn/text-base/TeXworks_fa.ts.svn-base | 1740 -----
trans/.svn/text-base/TeXworks_fr.qm.svn-base | Bin 38859 -> 0 bytes
trans/.svn/text-base/TeXworks_fr.ts.svn-base | 2179 ------
trans/.svn/text-base/TeXworks_it.qm.svn-base | Bin 39875 -> 0 bytes
trans/.svn/text-base/TeXworks_it.ts.svn-base | 1787 -----
trans/.svn/text-base/TeXworks_ja.qm.svn-base | Bin 32212 -> 0 bytes
trans/.svn/text-base/TeXworks_ja.ts.svn-base | 1782 -----
trans/.svn/text-base/TeXworks_ko.qm.svn-base | Bin 31679 -> 0 bytes
trans/.svn/text-base/TeXworks_ko.ts.svn-base | 1712 -----
trans/.svn/text-base/TeXworks_nl.qm.svn-base | Bin 38588 -> 0 bytes
trans/.svn/text-base/TeXworks_nl.ts.svn-base | 1682 -----
trans/.svn/text-base/TeXworks_pl.qm.svn-base | Bin 40893 -> 0 bytes
trans/.svn/text-base/TeXworks_pl.ts.svn-base | 2205 ------
trans/.svn/text-base/TeXworks_pt_BR.qm.svn-base | Bin 40296 -> 0 bytes
trans/.svn/text-base/TeXworks_pt_BR.ts.svn-base | 1737 -----
trans/.svn/text-base/TeXworks_ru.qm.svn-base | Bin 45951 -> 0 bytes
trans/.svn/text-base/TeXworks_ru.ts.svn-base | 2465 ------
trans/.svn/text-base/TeXworks_sl.qm.svn-base | Bin 40749 -> 0 bytes
trans/.svn/text-base/TeXworks_sl.ts.svn-base | 2212 ------
trans/.svn/text-base/TeXworks_tr.qm.svn-base | Bin 39563 -> 0 bytes
trans/.svn/text-base/TeXworks_tr.ts.svn-base | 1757 -----
trans/.svn/text-base/TeXworks_zh_CN.qm.svn-base | Bin 32571 -> 0 bytes
trans/.svn/text-base/TeXworks_zh_CN.ts.svn-base | 1871 -----
trans/.svn/text-base/qt_ar.ts.svn-base | 7843 --------------------
trans/.svn/text-base/qt_ko.ts.svn-base | 4460 -----------
429 files changed, 723 insertions(+), 90546 deletions(-)
diff --cc Info.plist
index 044854a,d4fd11d..b56ddac
--- a/Info.plist
+++ b/Info.plist
@@@ -48,7 -48,7 +48,7 @@@
<key>CFBundleIconFile</key>
<string>TeXworks.icns</string>
<key>CFBundleGetInfoString</key>
- <string>TeXworks version 0.3 (r.567)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
- <string>TeXworks version 0.3 (r.)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
++ <string>TeXworks version 0.3 (r.1)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
<key>CFBundleExecutable</key>
<string>TeXworks</string>
<key>CFBundleIdentifier</key>
@@@ -60,9 -60,9 +60,9 @@@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
- <string>0.3 (r.567)</string>
- <string>0.3 (r.)</string>
++ <string>0.3 (r.1)</string>
<key>CFBundleVersion</key>
- <string>0.3 (r.567)</string>
- <string>0.3 (r.)</string>
++ <string>0.3 (r.1)</string>
<key>CSResourcesFileMapped</key>
<true/>
</dict>
diff --cc TeXworks.plist
index 044854a,d4fd11d..b56ddac
--- a/TeXworks.plist
+++ b/TeXworks.plist
@@@ -48,7 -48,7 +48,7 @@@
<key>CFBundleIconFile</key>
<string>TeXworks.icns</string>
<key>CFBundleGetInfoString</key>
- <string>TeXworks version 0.3 (r.567)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
- <string>TeXworks version 0.3 (r.)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
++ <string>TeXworks version 0.3 (r.1)
(c) 2007-2010 Jonathan Kew
Released under GPL v2.0</string>
<key>CFBundleExecutable</key>
<string>TeXworks</string>
<key>CFBundleIdentifier</key>
@@@ -60,9 -60,9 +60,9 @@@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
- <string>0.3 (r.567)</string>
- <string>0.3 (r.)</string>
++ <string>0.3 (r.1)</string>
<key>CFBundleVersion</key>
- <string>0.3 (r.567)</string>
- <string>0.3 (r.)</string>
++ <string>0.3 (r.1)</string>
<key>CSResourcesFileMapped</key>
<true/>
</dict>
diff --cc debian/changelog
index 9319100,0000000..71b34ea
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,41 -1,0 +1,48 @@@
++texworks (0.3~svn606-1) experimental; urgency=low
++
++ * New Upstream Release. (Rev.606)
++ * Updated patches.
++
++ -- Atsuhito KOHDA <kohda@debian.org> Thu, 15 Apr 2010 08:15:38 +0900
++
+texworks (0.3~svn569-3) experimental; urgency=low
+
+ * Fixed TWPythonPlugin compilation problems on AMD64 by consulting
+ a package of Stefan Löffler. (Closes: #570841)
+ * Modified TW_HELPPATH as a package of Stefan Löffler. I expect one can
+ use a texworks-help-en package by Stefan Löffler now.
+ * Added LuaTeX in a list of Typeset engines for experiment.
+
+ -- Atsuhito KOHDA <kohda@debian.org> Mon, 22 Feb 2010 12:52:39 +0900
+
+texworks (0.3~svn569-2) experimental; urgency=low
+
+ * Added Lua and Python scripting plugins. These are called
+ texworks-scripting-lua and texworks-scripting-python following packages
+ (Ubuntu version) of Stefan Löffler.
+
+ -- Atsuhito KOHDA <kohda@debian.org> Thu, 18 Feb 2010 09:14:31 +0900
+
+texworks (0.3~svn569-1) experimental; urgency=low
+
+ * SVN version for experiment.
+
+ -- Atsuhito KOHDA <kohda@debian.org> Mon, 15 Feb 2010 22:09:05 +0900
+
+texworks (0.2.3-2) unstable; urgency=low
+
+ * Rebuild under poppler 0.12 (Closes: #551435)
+ * Added note on synctex feature in README.Debian
+ * Fixed copyright file to express Jérôme Laurens correctly
+ * Added texlive-latex-base and texlive-xetex to Recommends and Suggests
+ respectively.
+ * Moved "uudecode debian/document-print.png.enc" to configure-stamp
+ from build-stamp because configure searched it.
+
+ -- Atsuhito KOHDA <kohda@debian.org> Sun, 18 Oct 2009 19:16:52 +0900
+
+texworks (0.2.3-1) unstable; urgency=low
+
+ * Initial release (Closes: #538211)
+
+ -- Atsuhito KOHDA <kohda@debian.org> Sun, 11 Oct 2009 15:25:52 +0900
diff --cc debian/patch-luatex
index 2505ddb,0000000..27e5de3
mode 100644,000000..100644
--- a/debian/patch-luatex
+++ b/debian/patch-luatex
@@@ -1,11 -1,0 +1,11 @@@
+--- texworks-0.3/src/TWApp.cpp.orig 2010-02-22 13:19:33.000000000 +0900
++++ texworks-0.3/src/TWApp.cpp 2010-02-22 13:20:27.000000000 +0900
- @@ -587,6 +587,8 @@
++@@ -599,6 +599,8 @@
+ << Engine("pdfLaTeX", "pdflatex" EXE, QStringList("$synctexoption") << "$fullname", true)
+ << Engine("XeTeX", "xetex" EXE, QStringList("$synctexoption") << "$fullname", true)
+ << Engine("XeLaTeX", "xelatex" EXE, QStringList("$synctexoption") << "$fullname", true)
++ << Engine("LuaTeX", "luatex" EXE, QStringList("$synctexoption") << "$fullname", true)
++ << Engine("LuaLaTeX", "lualatex" EXE, QStringList("$synctexoption") << "$fullname", true)
+ << Engine("ConTeXt", "texmfstart" EXE, QStringList("texexec") << "$fullname", true)
+ << Engine("XeConTeXt", "texmfstart" EXE, QStringList("texexec") << "--xtx" << "$fullname", true)
+ << Engine("BibTeX", "bibtex" EXE, QStringList("$basename"), false)
diff --cc debian/patch-plugin
index 4955255,0000000..4a835d7
mode 100644,000000..100644
--- a/debian/patch-plugin
+++ b/debian/patch-plugin
@@@ -1,42 -1,0 +1,42 @@@
+--- texworks-0.3~svn569.orig/TeXworks.pro
++++ texworks-0.3~svn569/TeXworks.pro
+@@ -87,8 +87,8 @@
+
+ # Enclose the path in \\\" (which later gets expanded to \", which in turn
+ # gets expanded to " in the c++ code)
+- QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\"
+- QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"
++ QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/share/doc/texworks-help\\\"
++ QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/lib/texworks\\\"
+ QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\"
+ }
+
+--- texworks-0.3~svn569/plugins-src/TWPythonPlugin/TWPythonPlugin.cpp 2010-02-16 12:38:52.000000000 +0900
++++ texworks-scripting-python-0.3.0~svn558~karmic1/plugins-src/TWPythonPlugin/TWPythonPlugin.cpp 2010-01-31 18:00:06.000000000 +0900
- @@ -27,17 +27,6 @@
- #include <QStringList>
- #include <QTextStream>
++@@ -44,17 +44,6 @@
++ typedef int Py_ssize_t;
++ #endif
+
+-/* macros that may not be available in older python headers */
+-#ifndef Py_RETURN_NONE
+-#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+-#endif
+-#ifndef Py_RETURN_TRUE
+-#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
+-#endif
+-#ifndef Py_RETURN_FALSE
+-#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
+-#endif
+-
+ /** \brief Structure to hold data for the pyQObject wrapper */
+ typedef struct {
+ PyObject_HEAD
- @@ -431,7 +420,7 @@
++@@ -458,7 +447,7 @@
+ QVariantList list;
+ QVariantMap map;
+ PyObject * key, * value;
+- int i = 0;
++ Py_ssize_t i = 0;
+ QString str;
+
+ // in Python 3.x, the PyInt_* were removed in favor of PyLong_*
diff --cc debian/patch-print
index 5a4d067,0000000..e128069
mode 100644,000000..100644
--- a/debian/patch-print
+++ b/debian/patch-print
@@@ -1,378 -1,0 +1,378 @@@
+--- texworks-0.0.1~svn337.orig/src/TeXDocument.h
++++ texworks-0.0.1~svn337/src/TeXDocument.h
- @@ -124,6 +124,7 @@
- void selectWindow(bool activate = true);
++@@ -127,6 +127,7 @@
++ public slots:
+ void typeset();
+ void interrupt();
++ void print();
+ void newFile();
+ void newFromTemplate();
+ void open();
+--- texworks-0.0.1~svn337.orig/src/PDFDocument.cpp
++++ texworks-0.0.1~svn337/src/PDFDocument.cpp
- @@ -50,6 +50,11 @@
++@@ -49,6 +49,11 @@
+ #include <QFileSystemWatcher>
+ #include <QDebug>
+ #include <QToolTip>
++#include <QPrinter>
++#include <QPrintDialog>
++#include <QPrintEngine>
++#include <QBuffer>
++#include <QProgressDialog>
+
+ #include <math.h>
+
- @@ -1115,6 +1120,7 @@
++@@ -1131,6 +1136,7 @@
+ connect(actionNew, SIGNAL(triggered()), qApp, SLOT(newFile()));
+ connect(actionNew_from_Template, SIGNAL(triggered()), qApp, SLOT(newFromTemplate()));
+ connect(actionOpen, SIGNAL(triggered()), qApp, SLOT(open()));
++ connect(actionPrintPDF, SIGNAL(triggered()), this, SLOT(print()));
+
+ connect(actionQuit_TeXworks, SIGNAL(triggered()), TWApp::instance(), SLOT(maybeQuit()));
+
- @@ -1733,3 +1739,203 @@
++@@ -1711,3 +1717,203 @@
+ }
+ }
+
++void PDFDocument::print()
++{
++ QPrinter printer(QPrinter::HighResolution);
++ QPrintDialog printDlg(&printer, this);
++ QPainter painter;
++ QProgressDialog progressDlg(this);
++ Poppler::Page * page;
++ QImage pageImage;
++ QRect viewport;
++ int dpiX, dpiY;
++ double dpiXScale = 1.0, dpiYScale = 1.0;
++ double scale;
++ unsigned int firstPage, lastPage, i;
++ bool success = false;
++
++ // check if there's a pdf document to print
++ if(!document) return;
++
++ // check if we have permission to print the document
++ if(!document->okToPrint()) {
++ QMessageBox::critical(this, tr("Printing denied"), tr("You are not permitted to print this document"));
++ return;
++ }
++
++ // Set up some basic information about the document
++ printer.setCreator(TEXWORKS_NAME);
++ printer.setDocName(document->info("Title"));
++ if(printer.docName().isEmpty()) printer.setDocName(QFileInfo(curFile).baseName());
++
++ // do some setup for the print dialog
++ printDlg.setMinMax(1, document->numPages());
++ printDlg.setOption(QAbstractPrintDialog::PrintToFile, true);
++ printDlg.setOption(QAbstractPrintDialog::PrintSelection, false);
++ printDlg.setOption(QAbstractPrintDialog::PrintPageRange, true);
++ printDlg.setOption(QAbstractPrintDialog::PrintCollateCopies, true);
++ printDlg.setWindowTitle(tr("Print %1").arg(QFileInfo(curFile).fileName()));
++
++ // show the print dialog to the user
++ if(printDlg.exec() != QDialog::Accepted) return;
++
++ // determine the print range
++ switch(printDlg.printRange()) {
++ case QAbstractPrintDialog::PageRange:
++ firstPage = printDlg.fromPage();
++ lastPage = printDlg.toPage();
++ break;
++ default:
++ firstPage = 1;
++ lastPage = document->numPages();
++ }
++
++ // On *nix-like platforms, try using lp for printing
++ #if defined(Q_WS_X11) || defined(Q_WS_MAC)
++ // Catch empty printer names (e.g. used by CUPS for "printing to pdf")
++ if(!printer.printerName().isEmpty()) {
++ QStringList arguments;
++
++ arguments << "lp";
++
++ arguments << QString("-d %1").arg(printer.printerName());
++ arguments << QString("-n %1").arg(printer.numCopies());
++ arguments << QString("-t \"%1\"").arg(printer.docName());
++ arguments << QString("-P %1-%2").arg(firstPage).arg(lastPage);
++
++ switch(printer.duplex()) {
++ case QPrinter::DuplexNone:
++ arguments << "-o sides=one-sided";
++ break;
++ case QPrinter::DuplexShortSide:
++ arguments << "-o sides=two-sided-short-edge";
++ break;
++ case QPrinter::DuplexLongSide:
++ arguments << "-o sides=two-sided-long-edge";
++ break;
++ default:
++ break;
++ }
++ arguments << "--";
++
++ arguments << QString("\"%1\"").arg(curFile);
++
++ // passing arguments as QStringList didn't work for me - probably
++ // because of improper quoting of spaces
++ if(QProcess::execute(arguments.join(" ")) == 0) return;
++ }
++ #endif // On *nix, try using lpr for printing
++
++ // On Windows, try using OS native operation
++ #if defined(Q_WS_WIN)
++ {
++ // First try: directly passing postscript to the printer (if supported)
++ // I'm not sure if this is supported anywhere
++ // Note: QPrinter::getDC and QPrinter::releaseDC are undocumented
++ HDC dc;
++ Poppler::PSConverter * psConv;
++
++ dc = printer.getDC();
++
++ if(dc) {
++ int nEscapeCode = POSTSCRIPT_PASSTHROUGH;
++ if(ExtEscape(dc, QUERYESCSUPPORT, sizeof(int), (LPCSTR)&nEscapeCode, 0, NULL ) > 0 && (psConv = document->psConverter())) {
++ // Convert the pdf to postscript instructions
++ QBuffer buffer;
++
++ buffer.open(QBuffer::ReadWrite);
++ psConv->setOutputDevice(&buffer);
++ psConv->convert();
++
++ // and send them to the printer
++ success = (ExtEscape(dc, POSTSCRIPT_PASSTHROUGH, buffer.data().size(), buffer.data().data(), 0, NULL) > 0);
++
++ buffer.close();
++ }
++ printer.releaseDC(dc);
++ if(success) return;
++ }
++ // Second try: print by calling the system's standard printing program for pdf
++ // Seems to only print to the default printer, hence disabled for now
++/*
++ wchar_t * filename;
++ HRESULT coInit;
++ filename = new wchar_t[curFile.size()];
++
++ curFile.toWCharArray(filename);
++ coInit = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
++ if(coInit == S_OK || coInit == S_FALSE) {
++ success = ((int)ShellExecute(NULL, L"print", filename, NULL, NULL, SW_NORMAL) > 32);
++ CoUninitialize();
++ }
++ delete[] filename;
++ if(success) return;
++*/
++ }
++ #endif // On Windows, try using OS native operation
++
++ // Fallback: use Qt for printing
++ //
++ // This means rendering the pages as images via poppler and printing those
++ // To keep the rendering time and file size reasonable, resolution is
++ // clamped to a maximum of 300dpi. If you need more, use another program ;).
++
++ {
++ // ignore printer margins while painting - the margins are included in the
++ // pdf file
++ printer.setFullPage(true);
++
++ painter.begin(&printer);
++ viewport = painter.viewport();
++
++ dpiX = printer.printEngine()->metric(QPaintDevice::PdmDpiX);
++ dpiY = printer.printEngine()->metric(QPaintDevice::PdmDpiY);
++
++ // clamp the resolution to 300 dpi (postscript devices return 1200 dpi to
++ // Qt by default) to reduce file size and render time
++ dpiXScale = qMax(1, dpiX / 300);
++ dpiYScale = qMax(1, dpiY / 300);
++ dpiX = qMin(300, dpiX);
++ dpiY = qMin(300, dpiY);
++
++ progressDlg.setAutoClose(true);
++ progressDlg.setRange(firstPage, lastPage + 1);
++ progressDlg.setWindowModality(Qt::WindowModal);
++ for(i = firstPage; i <= lastPage && !progressDlg.wasCanceled(); ++i) {
++ progressDlg.setValue(i - firstPage);
++ progressDlg.setLabelText(tr("Printing page %1 of %2").arg(i - firstPage + 1).arg(lastPage - firstPage + 1));
++
++ page = document->page(i - 1);
++ if(page) {
++ pageImage = page->renderToImage(dpiX, dpiY);
++ painter.save();
++
++ // calculate the scale factor necessary to resize the page image to
++ // the real page while retaining the aspect ratio
++ scale = qMin((double)viewport.width() / (dpiXScale * pageImage.width()), (double)viewport.height() / (dpiYScale * pageImage.height()));
++
++ // if we need to shrink the page, so be it
++ if(scale < 1) {
++ painter.scale(scale, scale);
++ }
++ // otherwise center the page image on the page
++ // TODO: handle landscape etc.
++ else {
++ painter.translate( (viewport.width() - dpiXScale * pageImage.width()) / 2, (viewport.height() - dpiYScale * pageImage.height()) / 2);
++ }
++ painter.scale(dpiXScale, dpiYScale);
++
++ painter.drawImage(0, 0, pageImage);
++
++ painter.restore();
++ }
++
++ if(i != lastPage) printer.newPage();
++ }
++
++ if(progressDlg.wasCanceled()) printer.abort();
++ else painter.end();
++
++ progressDlg.reset();
++ }
++}
+--- texworks-0.0.1~svn337.orig/src/TeXDocument.ui
++++ texworks-0.0.1~svn337/src/TeXDocument.ui
+@@ -163,7 +163,7 @@
+ <x>0</x>
+ <y>0</y>
+ <width>780</width>
+- <height>22</height>
++ <height>25</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="menuFile">
- @@ -179,6 +179,7 @@
- <addaction name="actionSave"/>
++@@ -180,6 +180,7 @@
+ <addaction name="actionSave_As"/>
++ <addaction name="actionSave_All"/>
+ <addaction name="actionRevert_to_Saved"/>
++ <addaction name="actionPrintSource"/>
+ <addaction name="separator"/>
+ <addaction name="actionRemove_Aux_Files"/>
+ <addaction name="separator"/>
- @@ -1084,6 +1085,18 @@
++@@ -1096,6 +1097,18 @@
+ <enum>QAction::NoRole</enum>
+ </property>
+ </action>
++ <action name="actionPrintSource">
++ <property name="icon">
++ <iconset resource="../res/resources.qrc">
++ <normaloff>:/images/tango/document-print.png</normaloff>:/images/tango/document-print.png</iconset>
++ </property>
++ <property name="text">
++ <string>Print</string>
++ </property>
++ <property name="shortcut">
++ <string>Ctrl+P</string>
++ </property>
++ </action>
+ </widget>
+ <customwidgets>
+ <customwidget>
+--- texworks-0.0.1~svn337.orig/src/TeXDocument.cpp
++++ texworks-0.0.1~svn337/src/TeXDocument.cpp
+@@ -58,6 +58,8 @@
+ #include <QPushButton>
+ #include <QFileSystemWatcher>
+ #include <QDebug>
++#include <QPrinter>
++#include <QPrintDialog>
+
+ #ifdef Q_WS_WIN
+ #include <windows.h>
- @@ -167,6 +169,7 @@
- connect(actionSave_As, SIGNAL(triggered()), this, SLOT(saveAs()));
++@@ -169,6 +171,7 @@
++ connect(actionSave_All, SIGNAL(triggered()), this, SLOT(saveAll()));
+ connect(actionRevert_to_Saved, SIGNAL(triggered()), this, SLOT(revert()));
+ connect(actionClose, SIGNAL(triggered()), this, SLOT(close()));
++ connect(actionPrintSource, SIGNAL(triggered()), this, SLOT(print()));
+
+ connect(actionRemove_Aux_Files, SIGNAL(triggered()), this, SLOT(removeAuxFiles()));
+
- @@ -2794,3 +2797,26 @@
++@@ -2866,3 +2869,26 @@
+ pdfDoc = NULL;
+ }
+ }
++
++void TeXDocument::print()
++{
++ QPrinter printer(QPrinter::HighResolution);
++ QPrintDialog printDlg(&printer, this);
++
++ // Set up some basic information about the document
++ printer.setCreator(TEXWORKS_NAME);
++ printer.setDocName(QFileInfo(curFile).baseName());
++
++ // do some setup for the print dialog
++ // Note: no page range since we don't know how many pages this will be.
++ printDlg.setOption(QAbstractPrintDialog::PrintToFile, true);
++ printDlg.setOption(QAbstractPrintDialog::PrintSelection, true);
++ printDlg.setOption(QAbstractPrintDialog::PrintPageRange, false);
++ printDlg.setOption(QAbstractPrintDialog::PrintCollateCopies, true);
++ printDlg.setWindowTitle(tr("Print %1").arg(QFileInfo(curFile).fileName()));
++
++ // show the print dialog to the user
++ if(printDlg.exec() != QDialog::Accepted) return;
++
++ textEdit->print(&printer);
++}
+--- texworks-0.0.1~svn337.orig/src/PDFDocument.ui
++++ texworks-0.0.1~svn337/src/PDFDocument.ui
+@@ -23,7 +23,7 @@
+ <x>0</x>
+ <y>0</y>
+ <width>800</width>
+- <height>22</height>
++ <height>25</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="menuHelp">
+@@ -43,6 +43,7 @@
+ <addaction name="actionNew_from_Template"/>
+ <addaction name="actionOpen"/>
+ <addaction name="actionOpen_Recent"/>
++ <addaction name="actionPrintPDF"/>
+ <addaction name="separator"/>
+ <addaction name="actionClose"/>
+ <addaction name="separator"/>
+@@ -729,6 +730,18 @@
+ <enum>QAction::NoRole</enum>
+ </property>
+ </action>
++ <action name="actionPrintPDF">
++ <property name="icon">
++ <iconset resource="../res/resources.qrc">
++ <normaloff>:/images/tango/document-print.png</normaloff>:/images/tango/document-print.png</iconset>
++ </property>
++ <property name="text">
++ <string>Print...</string>
++ </property>
++ <property name="shortcut">
++ <string>Ctrl+P</string>
++ </property>
++ </action>
+ </widget>
+ <resources>
+ <include location="../res/resources.qrc"/>
+--- texworks-0.0.1~svn337.orig/src/PDFDocument.h
++++ texworks-0.0.1~svn337/src/PDFDocument.h
- @@ -250,6 +250,7 @@
- void selectWindow(bool activate = true);
++@@ -251,6 +251,7 @@
++ public slots:
+ void texClosed(QObject *obj);
+ void reload();
++ void print();
+ void retypeset();
+ void interrupt();
+ void sideBySide();
+--- texworks-0.0.1~svn337.orig/res/resources.qrc
++++ texworks-0.0.1~svn337/res/resources.qrc
+@@ -19,6 +19,7 @@
+ <file>tango/document-open.png</file>
+ <file>images/fileprint.png</file>
+ <file>tango/document-save.png</file>
++ <file>tango/document-print.png</file>
+ <file>tango/go-first.png</file>
+ <file>images/fitwidth.png</file>
+ <file>images/fitwindow.png</file>
diff --cc plugins-src/TWLuaPlugin/Makefile
index 57457c1,0000000..6fcf648
mode 100644,000000..100644
--- a/plugins-src/TWLuaPlugin/Makefile
+++ b/plugins-src/TWLuaPlugin/Makefile
@@@ -1,234 -1,0 +1,244 @@@
+#############################################################################
+# Makefile for building: libTWLuaPlugin.so
- # Generated by qmake (2.01a) (Qt 4.5.3) on: ? 2? 22 13:25:43 2010
++# Generated by qmake (2.01a) (Qt 4.5.3) on: ? 4? 15 09:21:30 2010
+# Project: TWLuaPlugin.pro
+# Template: lib
+# Command: /usr/bin/qmake-qt4 -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWLuaPlugin.pro
+#############################################################################
+
+####### Compiler, tools and options
+
+CC = gcc
+CXX = g++
+DEFINES = -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
+CFLAGS = -pipe -O2 -I/usr/include/lua5.1 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
+CXXFLAGS = -pipe -O2 -I/usr/include/lua5.1 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
+INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../src -Imoc
+LINK = g++
+LFLAGS = -Wl,-O1 -shared
+LIBS = $(SUBLIBS) -L/usr/lib -llua5.1 -lQtGui -lQtCore -lpthread
+AR = ar cqs
+RANLIB =
+QMAKE = /usr/bin/qmake-qt4
+TAR = tar -cf
+COMPRESS = gzip -9f
+COPY = cp -f
+SED = sed
+COPY_FILE = $(COPY)
+COPY_DIR = $(COPY) -r
+INSTALL_FILE = install -m 644 -p
+INSTALL_DIR = $(COPY_DIR)
+INSTALL_PROGRAM = install -m 755 -p
+DEL_FILE = rm -f
+SYMLINK = ln -sf
+DEL_DIR = rmdir
+MOVE = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR = mkdir -p
+
+####### Output directory
+
+OBJECTS_DIR = obj/
+
+####### Files
+
+SOURCES = TWLuaPlugin.cpp \
+ ../../src/TWScript.cpp moc/moc_TWLuaPlugin.cpp \
- moc/moc_TWScript.cpp
++ moc/moc_TWScript.cpp \
++ moc/moc_TWScriptAPI.cpp
+OBJECTS = obj/TWLuaPlugin.o \
+ obj/TWScript.o \
+ obj/moc_TWLuaPlugin.o \
- obj/moc_TWScript.o
++ obj/moc_TWScript.o \
++ obj/moc_TWScriptAPI.o
+DIST = /usr/share/qt4/mkspecs/common/g++.conf \
+ /usr/share/qt4/mkspecs/common/unix.conf \
+ /usr/share/qt4/mkspecs/common/linux.conf \
+ /usr/share/qt4/mkspecs/qconfig.pri \
+ /usr/share/qt4/mkspecs/features/qt_functions.prf \
+ /usr/share/qt4/mkspecs/features/qt_config.prf \
+ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+ /usr/share/qt4/mkspecs/features/default_pre.prf \
+ /usr/share/qt4/mkspecs/features/release.prf \
+ /usr/share/qt4/mkspecs/features/default_post.prf \
+ /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+ /usr/share/qt4/mkspecs/features/warn_on.prf \
+ /usr/share/qt4/mkspecs/features/qt.prf \
+ /usr/share/qt4/mkspecs/features/unix/thread.prf \
+ /usr/share/qt4/mkspecs/features/moc.prf \
+ /usr/share/qt4/mkspecs/features/resources.prf \
+ /usr/share/qt4/mkspecs/features/uic.prf \
+ /usr/share/qt4/mkspecs/features/yacc.prf \
+ /usr/share/qt4/mkspecs/features/lex.prf \
+ /usr/share/qt4/mkspecs/features/include_source_dir.prf \
+ TWLuaPlugin.pro
+QMAKE_TARGET = TWLuaPlugin
+DESTDIR =
+TARGET = libTWLuaPlugin.so
+TARGETD = libTWLuaPlugin.so
+
+first: all
+####### Implicit rules
+
+.SUFFIXES: .o .c .cpp .cc .cxx .C
+
+.cpp.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cc.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cxx.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.C.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.c.o:
+ $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
+
+####### Build rules
+
+all: Makefile $(TARGET)
+
+$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
+ -$(DEL_FILE) $(TARGET)
+ $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
+
+
+
+Makefile: TWLuaPlugin.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
+ /usr/share/qt4/mkspecs/common/unix.conf \
+ /usr/share/qt4/mkspecs/common/linux.conf \
+ /usr/share/qt4/mkspecs/qconfig.pri \
+ /usr/share/qt4/mkspecs/features/qt_functions.prf \
+ /usr/share/qt4/mkspecs/features/qt_config.prf \
+ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+ /usr/share/qt4/mkspecs/features/default_pre.prf \
+ /usr/share/qt4/mkspecs/features/release.prf \
+ /usr/share/qt4/mkspecs/features/default_post.prf \
+ /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+ /usr/share/qt4/mkspecs/features/warn_on.prf \
+ /usr/share/qt4/mkspecs/features/qt.prf \
+ /usr/share/qt4/mkspecs/features/unix/thread.prf \
+ /usr/share/qt4/mkspecs/features/moc.prf \
+ /usr/share/qt4/mkspecs/features/resources.prf \
+ /usr/share/qt4/mkspecs/features/uic.prf \
+ /usr/share/qt4/mkspecs/features/yacc.prf \
+ /usr/share/qt4/mkspecs/features/lex.prf \
+ /usr/share/qt4/mkspecs/features/include_source_dir.prf \
+ /usr/lib/libQtGui.prl \
+ /usr/lib/libQtCore.prl
+ $(QMAKE) -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWLuaPlugin.pro
+/usr/share/qt4/mkspecs/common/g++.conf:
+/usr/share/qt4/mkspecs/common/unix.conf:
+/usr/share/qt4/mkspecs/common/linux.conf:
+/usr/share/qt4/mkspecs/qconfig.pri:
+/usr/share/qt4/mkspecs/features/qt_functions.prf:
+/usr/share/qt4/mkspecs/features/qt_config.prf:
+/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
+/usr/share/qt4/mkspecs/features/default_pre.prf:
+/usr/share/qt4/mkspecs/features/release.prf:
+/usr/share/qt4/mkspecs/features/default_post.prf:
+/usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
+/usr/share/qt4/mkspecs/features/warn_on.prf:
+/usr/share/qt4/mkspecs/features/qt.prf:
+/usr/share/qt4/mkspecs/features/unix/thread.prf:
+/usr/share/qt4/mkspecs/features/moc.prf:
+/usr/share/qt4/mkspecs/features/resources.prf:
+/usr/share/qt4/mkspecs/features/uic.prf:
+/usr/share/qt4/mkspecs/features/yacc.prf:
+/usr/share/qt4/mkspecs/features/lex.prf:
+/usr/share/qt4/mkspecs/features/include_source_dir.prf:
+/usr/lib/libQtGui.prl:
+/usr/lib/libQtCore.prl:
+qmake: FORCE
+ @$(QMAKE) -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWLuaPlugin.pro
+
+dist:
+ @$(CHK_DIR_EXISTS) obj/TWLuaPlugin1.0.0 || $(MKDIR) obj/TWLuaPlugin1.0.0
- $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/TWLuaPlugin1.0.0/ && $(COPY_FILE) --parents TWLuaPlugin.h ../../src/TWScript.h obj/TWLuaPlugin1.0.0/ && $(COPY_FILE) --parents TWLuaPlugin.cpp ../../src/TWScript.cpp obj/TWLuaPlugin1.0.0/ && (cd `dirname obj/TWLuaPlugin1.0.0` && $(TAR) TWLuaPlugin1.0.0.tar TWLuaPlugin1.0.0 && $(COMPRESS) TWLuaPlugin1.0.0.tar) && $(MOVE) `dirname obj/TWLuaPlugin1.0.0`/TWLuaPlugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/TWLuaPlugin1.0.0
++ $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/TWLuaPlugin1.0.0/ && $(COPY_FILE) --parents TWLuaPlugin.h ../../src/TWScript.h ../../src/TWScriptAPI.h obj/TWLuaPlugin1.0.0/ && $(COPY_FILE) --parents TWLuaPlugin.cpp ../../src/TWScript.cpp obj/TWLuaPlugin1.0.0/ && (cd `dirname obj/TWLuaPlugin1.0.0` && $(TAR) TWLuaPlugin1.0.0.tar TWLuaPlugin1.0.0 && $(COMPRESS) TWLuaPlugin1.0.0.tar) && $(MOVE) `dirname obj/TWLuaPlugin1.0.0`/TWLuaPlugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/TWLuaPlugin1.0.0
+
+
+clean:compiler_clean
+ -$(DEL_FILE) $(OBJECTS)
+ -$(DEL_FILE) *~ core *.core
+
+
+####### Sub-libraries
+
+distclean: clean
+ -$(DEL_FILE) $(TARGET)
+ -$(DEL_FILE) Makefile
+
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
- compiler_moc_header_make_all: moc/moc_TWLuaPlugin.cpp moc/moc_TWScript.cpp
++compiler_moc_header_make_all: moc/moc_TWLuaPlugin.cpp moc/moc_TWScript.cpp moc/moc_TWScriptAPI.cpp
+compiler_moc_header_clean:
- -$(DEL_FILE) moc/moc_TWLuaPlugin.cpp moc/moc_TWScript.cpp
++ -$(DEL_FILE) moc/moc_TWLuaPlugin.cpp moc/moc_TWScript.cpp moc/moc_TWScriptAPI.cpp
+moc/moc_TWLuaPlugin.cpp: TWLuaPlugin.h
+ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) TWLuaPlugin.h -o moc/moc_TWLuaPlugin.cpp
+
+moc/moc_TWScript.cpp: ../../src/TWScript.h
+ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) ../../src/TWScript.h -o moc/moc_TWScript.cpp
+
++moc/moc_TWScriptAPI.cpp: ../../src/TWScript.h \
++ ../../src/TWScriptAPI.h
++ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) ../../src/TWScriptAPI.h -o moc/moc_TWScriptAPI.cpp
++
+compiler_rcc_make_all:
+compiler_rcc_clean:
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+ -$(DEL_FILE) qmake_image_collection.cpp
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_uic_make_all:
+compiler_uic_clean:
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean
+
+####### Compile
+
+obj/TWLuaPlugin.o: TWLuaPlugin.cpp TWLuaPlugin.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/TWLuaPlugin.o TWLuaPlugin.cpp
+
- obj/TWScript.o: ../../src/TWScript.cpp ../../src/TWScript.h
++obj/TWScript.o: ../../src/TWScript.cpp ../../src/TWScript.h \
++ ../../src/TWScriptAPI.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/TWScript.o ../../src/TWScript.cpp
+
+obj/moc_TWLuaPlugin.o: moc/moc_TWLuaPlugin.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWLuaPlugin.o moc/moc_TWLuaPlugin.cpp
+
+obj/moc_TWScript.o: moc/moc_TWScript.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWScript.o moc/moc_TWScript.cpp
+
++obj/moc_TWScriptAPI.o: moc/moc_TWScriptAPI.cpp
++ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWScriptAPI.o moc/moc_TWScriptAPI.cpp
++
+####### Install
+
+install_target: first FORCE
+ @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib/texworks/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib/texworks/
+ -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+ -strip --strip-unneeded "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+
+uninstall_target: FORCE
+ -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+ -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib/texworks/
+
+
+install: install_target FORCE
+
+uninstall: uninstall_target FORCE
+
+FORCE:
+
diff --cc plugins-src/TWPythonPlugin/Makefile
index 710d8d9,0000000..aee409d
mode 100644,000000..100644
--- a/plugins-src/TWPythonPlugin/Makefile
+++ b/plugins-src/TWPythonPlugin/Makefile
@@@ -1,231 -1,0 +1,241 @@@
+#############################################################################
+# Makefile for building: libTWPythonPlugin.so
- # Generated by qmake (2.01a) (Qt 4.5.3) on: ? 2? 22 13:25:48 2010
++# Generated by qmake (2.01a) (Qt 4.5.3) on: ? 4? 15 09:21:37 2010
+# Project: TWPythonPlugin.pro
+# Template: lib
+# Command: /usr/bin/qmake-qt4 -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWPythonPlugin.pro
+#############################################################################
+
+####### Compiler, tools and options
+
+CC = gcc
+CXX = g++
+DEFINES = -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
+CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
+CXXFLAGS = -pipe -fno-strict-aliasing -O2 -Wall -W -D_REENTRANT -fPIC $(DEFINES)
+INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I../../src -I/usr/include/python2.6 -Imoc
+LINK = g++
+LFLAGS = -Wl,-O1 -shared
+LIBS = $(SUBLIBS) -L/usr/lib -lpython2.6 -lQtGui -lQtCore -lpthread
+AR = ar cqs
+RANLIB =
+QMAKE = /usr/bin/qmake-qt4
+TAR = tar -cf
+COMPRESS = gzip -9f
+COPY = cp -f
+SED = sed
+COPY_FILE = $(COPY)
+COPY_DIR = $(COPY) -r
+INSTALL_FILE = install -m 644 -p
+INSTALL_DIR = $(COPY_DIR)
+INSTALL_PROGRAM = install -m 755 -p
+DEL_FILE = rm -f
+SYMLINK = ln -sf
+DEL_DIR = rmdir
+MOVE = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR = mkdir -p
+
+####### Output directory
+
+OBJECTS_DIR = obj/
+
+####### Files
+
+SOURCES = TWPythonPlugin.cpp \
+ ../../src/TWScript.cpp moc/moc_TWPythonPlugin.cpp \
- moc/moc_TWScript.cpp
++ moc/moc_TWScript.cpp \
++ moc/moc_TWScriptAPI.cpp
+OBJECTS = obj/TWPythonPlugin.o \
+ obj/TWScript.o \
+ obj/moc_TWPythonPlugin.o \
- obj/moc_TWScript.o
++ obj/moc_TWScript.o \
++ obj/moc_TWScriptAPI.o
+DIST = /usr/share/qt4/mkspecs/common/g++.conf \
+ /usr/share/qt4/mkspecs/common/unix.conf \
+ /usr/share/qt4/mkspecs/common/linux.conf \
+ /usr/share/qt4/mkspecs/qconfig.pri \
+ /usr/share/qt4/mkspecs/features/qt_functions.prf \
+ /usr/share/qt4/mkspecs/features/qt_config.prf \
+ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+ /usr/share/qt4/mkspecs/features/default_pre.prf \
+ /usr/share/qt4/mkspecs/features/release.prf \
+ /usr/share/qt4/mkspecs/features/default_post.prf \
+ /usr/share/qt4/mkspecs/features/warn_on.prf \
+ /usr/share/qt4/mkspecs/features/qt.prf \
+ /usr/share/qt4/mkspecs/features/unix/thread.prf \
+ /usr/share/qt4/mkspecs/features/moc.prf \
+ /usr/share/qt4/mkspecs/features/resources.prf \
+ /usr/share/qt4/mkspecs/features/uic.prf \
+ /usr/share/qt4/mkspecs/features/yacc.prf \
+ /usr/share/qt4/mkspecs/features/lex.prf \
+ /usr/share/qt4/mkspecs/features/include_source_dir.prf \
+ TWPythonPlugin.pro
+QMAKE_TARGET = TWPythonPlugin
+DESTDIR =
+TARGET = libTWPythonPlugin.so
+TARGETD = libTWPythonPlugin.so
+
+first: all
+####### Implicit rules
+
+.SUFFIXES: .o .c .cpp .cc .cxx .C
+
+.cpp.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cc.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cxx.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.C.o:
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.c.o:
+ $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
+
+####### Build rules
+
+all: Makefile $(TARGET)
+
+$(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
+ -$(DEL_FILE) $(TARGET)
+ $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
+
+
+
+Makefile: TWPythonPlugin.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
+ /usr/share/qt4/mkspecs/common/unix.conf \
+ /usr/share/qt4/mkspecs/common/linux.conf \
+ /usr/share/qt4/mkspecs/qconfig.pri \
+ /usr/share/qt4/mkspecs/features/qt_functions.prf \
+ /usr/share/qt4/mkspecs/features/qt_config.prf \
+ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+ /usr/share/qt4/mkspecs/features/default_pre.prf \
+ /usr/share/qt4/mkspecs/features/release.prf \
+ /usr/share/qt4/mkspecs/features/default_post.prf \
+ /usr/share/qt4/mkspecs/features/warn_on.prf \
+ /usr/share/qt4/mkspecs/features/qt.prf \
+ /usr/share/qt4/mkspecs/features/unix/thread.prf \
+ /usr/share/qt4/mkspecs/features/moc.prf \
+ /usr/share/qt4/mkspecs/features/resources.prf \
+ /usr/share/qt4/mkspecs/features/uic.prf \
+ /usr/share/qt4/mkspecs/features/yacc.prf \
+ /usr/share/qt4/mkspecs/features/lex.prf \
+ /usr/share/qt4/mkspecs/features/include_source_dir.prf \
+ /usr/lib/libQtGui.prl \
+ /usr/lib/libQtCore.prl
+ $(QMAKE) -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWPythonPlugin.pro
+/usr/share/qt4/mkspecs/common/g++.conf:
+/usr/share/qt4/mkspecs/common/unix.conf:
+/usr/share/qt4/mkspecs/common/linux.conf:
+/usr/share/qt4/mkspecs/qconfig.pri:
+/usr/share/qt4/mkspecs/features/qt_functions.prf:
+/usr/share/qt4/mkspecs/features/qt_config.prf:
+/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
+/usr/share/qt4/mkspecs/features/default_pre.prf:
+/usr/share/qt4/mkspecs/features/release.prf:
+/usr/share/qt4/mkspecs/features/default_post.prf:
+/usr/share/qt4/mkspecs/features/warn_on.prf:
+/usr/share/qt4/mkspecs/features/qt.prf:
+/usr/share/qt4/mkspecs/features/unix/thread.prf:
+/usr/share/qt4/mkspecs/features/moc.prf:
+/usr/share/qt4/mkspecs/features/resources.prf:
+/usr/share/qt4/mkspecs/features/uic.prf:
+/usr/share/qt4/mkspecs/features/yacc.prf:
+/usr/share/qt4/mkspecs/features/lex.prf:
+/usr/share/qt4/mkspecs/features/include_source_dir.prf:
+/usr/lib/libQtGui.prl:
+/usr/lib/libQtCore.prl:
+qmake: FORCE
+ @$(QMAKE) -unix -after target.path\ =\ /usr/lib/texworks -o Makefile TWPythonPlugin.pro
+
+dist:
+ @$(CHK_DIR_EXISTS) obj/TWPythonPlugin1.0.0 || $(MKDIR) obj/TWPythonPlugin1.0.0
- $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/TWPythonPlugin1.0.0/ && $(COPY_FILE) --parents TWPythonPlugin.h ../../src/TWScript.h obj/TWPythonPlugin1.0.0/ && $(COPY_FILE) --parents TWPythonPlugin.cpp ../../src/TWScript.cpp obj/TWPythonPlugin1.0.0/ && (cd `dirname obj/TWPythonPlugin1.0.0` && $(TAR) TWPythonPlugin1.0.0.tar TWPythonPlugin1.0.0 && $(COMPRESS) TWPythonPlugin1.0.0.tar) && $(MOVE) `dirname obj/TWPythonPlugin1.0.0`/TWPythonPlugin1.0.0.tar.gz . && $(DEL_FILE) -r obj/TWPythonPl [...]
++ $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/TWPythonPlugin1.0.0/ && $(COPY_FILE) --parents TWPythonPlugin.h ../../src/TWScript.h ../../src/TWScriptAPI.h obj/TWPythonPlugin1.0.0/ && $(COPY_FILE) --parents TWPythonPlugin.cpp ../../src/TWScript.cpp obj/TWPythonPlugin1.0.0/ && (cd `dirname obj/TWPythonPlugin1.0.0` && $(TAR) TWPythonPlugin1.0.0.tar TWPythonPlugin1.0.0 && $(COMPRESS) TWPythonPlugin1.0.0.tar) && $(MOVE) `dirname obj/TWPythonPlugin1.0.0`/TWPythonPlugin1.0.0.tar.gz . && $(DEL [...]
+
+
+clean:compiler_clean
+ -$(DEL_FILE) $(OBJECTS)
+ -$(DEL_FILE) *~ core *.core
+
+
+####### Sub-libraries
+
+distclean: clean
+ -$(DEL_FILE) $(TARGET)
+ -$(DEL_FILE) Makefile
+
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
- compiler_moc_header_make_all: moc/moc_TWPythonPlugin.cpp moc/moc_TWScript.cpp
++compiler_moc_header_make_all: moc/moc_TWPythonPlugin.cpp moc/moc_TWScript.cpp moc/moc_TWScriptAPI.cpp
+compiler_moc_header_clean:
- -$(DEL_FILE) moc/moc_TWPythonPlugin.cpp moc/moc_TWScript.cpp
++ -$(DEL_FILE) moc/moc_TWPythonPlugin.cpp moc/moc_TWScript.cpp moc/moc_TWScriptAPI.cpp
+moc/moc_TWPythonPlugin.cpp: TWPythonPlugin.h
+ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) TWPythonPlugin.h -o moc/moc_TWPythonPlugin.cpp
+
+moc/moc_TWScript.cpp: ../../src/TWScript.h
+ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) ../../src/TWScript.h -o moc/moc_TWScript.cpp
+
++moc/moc_TWScriptAPI.cpp: ../../src/TWScript.h \
++ ../../src/TWScriptAPI.h
++ /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) ../../src/TWScriptAPI.h -o moc/moc_TWScriptAPI.cpp
++
+compiler_rcc_make_all:
+compiler_rcc_clean:
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+ -$(DEL_FILE) qmake_image_collection.cpp
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_uic_make_all:
+compiler_uic_clean:
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean
+
+####### Compile
+
+obj/TWPythonPlugin.o: TWPythonPlugin.cpp TWPythonPlugin.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/TWPythonPlugin.o TWPythonPlugin.cpp
+
- obj/TWScript.o: ../../src/TWScript.cpp ../../src/TWScript.h
++obj/TWScript.o: ../../src/TWScript.cpp ../../src/TWScript.h \
++ ../../src/TWScriptAPI.h
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/TWScript.o ../../src/TWScript.cpp
+
+obj/moc_TWPythonPlugin.o: moc/moc_TWPythonPlugin.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWPythonPlugin.o moc/moc_TWPythonPlugin.cpp
+
+obj/moc_TWScript.o: moc/moc_TWScript.cpp
+ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWScript.o moc/moc_TWScript.cpp
+
++obj/moc_TWScriptAPI.o: moc/moc_TWScriptAPI.cpp
++ $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_TWScriptAPI.o moc/moc_TWScriptAPI.cpp
++
+####### Install
+
+install_target: first FORCE
+ @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/lib/texworks/ || $(MKDIR) $(INSTALL_ROOT)/usr/lib/texworks/
+ -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+ -strip --strip-unneeded "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+
+uninstall_target: FORCE
+ -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib/texworks/$(TARGET)"
+ -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib/texworks/
+
+
+install: install_target FORCE
+
+uninstall: uninstall_target FORCE
+
+FORCE:
+
diff --cc plugins-src/TWPythonPlugin/TWPythonPlugin.cpp
index 384b16a,79a2430..399d4b5
--- a/plugins-src/TWPythonPlugin/TWPythonPlugin.cpp
+++ b/plugins-src/TWPythonPlugin/TWPythonPlugin.cpp
@@@ -38,6 -39,11 +39,22 @@@
#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
#endif
+ /* Py_ssize_t is new in Python 2.5 */
+ #if PY_VERSION_HEX < 0x02050000
+ typedef int Py_ssize_t;
+ #endif
+
++/* macros that may not be available in older python headers */
++#ifndef Py_RETURN_NONE
++#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
++#endif
++#ifndef Py_RETURN_TRUE
++#define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
++#endif
++#ifndef Py_RETURN_FALSE
++#define Py_RETURN_FALSE return Py_INCREF(Py_False), Py_False
++#endif
++
/** \brief Structure to hold data for the pyQObject wrapper */
typedef struct {
PyObject_HEAD
diff --cc src/SvnRev.h
index 2665417,fd57341..9a568c9
--- a/src/SvnRev.h
+++ b/src/SvnRev.h
@@@ -1,2 -1,2 +1,2 @@@
- #define SVN_REVISION 567
- #define SVN_REVISION_STR "567"
-#define SVN_REVISION
-#define SVN_REVISION_STR ""
++#define SVN_REVISION 1
++#define SVN_REVISION_STR "1"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texworks.git
Reply to: