Commit b16143c8 authored by Atsuhito Kohda's avatar Atsuhito Kohda

Imported Upstream version 0.5~svn1363

parent 098cb6eb
......@@ -2,7 +2,7 @@ Unless noted otherwise, all files in this directory and are released under the
following terms:
Copyright (C) 2011-2012 Charlie Sharpsteen
Copyright (C) 2011-2014 Charlie Sharpsteen, Stefan Löffler
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
......
......@@ -29,7 +29,7 @@ Mailing list: http://tug.org/mailman/listinfo/texworks
License
=======
TeXworks is copyright (C) 2007-2013 by Jonathan Kew, Stefan Löffler, and Charlie
TeXworks is copyright (C) 2007-2014 by Jonathan Kew, Stefan Löffler, and Charlie
Sharpsteen. Distributed under the terms of the GNU General Public License,
version 2 or (at your option) any later version.
See the file COPYING for details.
......
......@@ -51,7 +51,7 @@
<key>CFBundleIconFile</key>
<string>TeXworks.icns</string>
<key>CFBundleGetInfoString</key>
<string>TeXworks version @VER@ (r.@REV@)&#xA;(C) 2007-2013 Jonathan Kew, Stefan L&#xF6;ffler, Charlie Sharpsteen&#xA;Released under GPL (v2.0 or later)</string>
<string>TeXworks version @VER@ (r.@REV@)&#xA;(C) 2007-2014 Jonathan Kew, Stefan L&#xF6;ffler, Charlie Sharpsteen&#xA;Released under GPL (v2.0 or later)</string>
<key>CFBundleExecutable</key>
<string>TeXworks</string>
<key>CFBundleIdentifier</key>
......
......@@ -69,7 +69,7 @@ If you find a bug, please report it at \%http://code.google.com/p/texworks/issue
Jonathan Kew, Stefan Löffler, Charlie Sharpsteen, and others
.SH COPYRIGHT
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2014 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
License GPLv2+: GNU GPL (version 2 or later) <http://gnu.org/licenses/gpl.html>
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
......@@ -22,7 +22,7 @@ BEGIN
VALUE "FileDescription", "TeXworks editor & previewer"
VALUE "FileVersion", TEXWORKS_VERSION ".r" SVN_REVISION_STR
VALUE "InternalName", "TeXworks"
VALUE "LegalCopyright", "Copyright (C) 2007-2013 Jonathan Kew, Stefan Lffler, Charlie Sharpsteen"
VALUE "LegalCopyright", "Copyright (C) 2007-2014 Jonathan Kew, Stefan Lffler, Charlie Sharpsteen"
VALUE "OriginalFilename", "TeXworks.exe"
VALUE "ProductName", "TeXworks"
VALUE "ProductVersion", "TeXworks " TEXWORKS_VERSION
......
......@@ -16,6 +16,11 @@ FILE(GLOB TEXWORKS_RCS "${TeXworks_SOURCE_DIR}/res/*.qrc")
FILE(GLOB TEXWORKS_TRANS_TS "${TeXworks_SOURCE_DIR}/trans/*.ts")
FILE(GLOB TEXWORKS_TRANS_QM "${TeXworks_SOURCE_DIR}/trans/*.qm")
IF ( WIN32 )
FILE(GLOB TEXWORKS_WIN_RCS "${TeXworks_SOURCE_DIR}/res/*.rc")
LIST(APPEND TEXWORKS_SRCS ${TEXWORKS_WIN_RCS})
ENDIF ( WIN32 )
# These source files along with the `.moc` files generated from some headers
# form the TeXworks scripting API. We export them to variables in the
# `PARENT_SCOPE` (top level CMake file) so that they will be available to the
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2011-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2011-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2013 Stefan Löffler
Copyright (C) 2013 Stefan Löffler
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2011-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2011-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
#define SVN_REVISION 1350
#define SVN_REVISION_STR "1350"
#define SVN_REVISION 1361
#define SVN_REVISION_STR "1361"
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2014 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -289,7 +289,7 @@ void TWApp::about()
{
QString aboutText = tr("<p>%1 is a simple environment for editing, typesetting, and previewing TeX documents.</p>").arg(TEXWORKS_NAME);
aboutText += "<small>";
aboutText += "<p>&#xA9; 2007-2013 Jonathan Kew, Stefan L&#xF6;ffler, Charlie Sharpsteen";
aboutText += "<p>&#xA9; 2007-2014 Jonathan Kew, Stefan L&#xF6;ffler, Charlie Sharpsteen";
aboutText += tr("<br>Version %1 r.%2 (%3)").arg(TEXWORKS_VERSION).arg(SVN_REVISION).arg(TW_BUILD_ID_STR);
aboutText += tr("<p>Distributed under the <a href=\"http://www.gnu.org/licenses/gpl-2.0.html\">GNU General Public License</a>, version 2 or (at your option) any later version.");
aboutText += tr("<p><a href=\"http://qt.nokia.com/\">Qt application framework</a> v%1 by Qt Software, a division of Nokia Corporation.").arg(qVersion());
......@@ -685,7 +685,7 @@ QObject* TWApp::openFile(const QString &fileName, int pos /* = 0 */)
if (doc != NULL) {
if (pos > 0)
doc->widget()->goToPage(pos - 1);
doc->selectWindow();
QTimer::singleShot(0, doc, SLOT(selectWindow()));
return doc;
}
return NULL;
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2009-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2010-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2014 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -2643,6 +2643,7 @@ void TeXDocument::typeset()
}
// ensure the window is visible - otherwise we can't see the output
// panel (and the typeset process appears to hang in case of an error)
consoleTabs->setCurrentIndex(0);
raise();
inputLine->setFocus(Qt::OtherFocusReason);
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2014 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -33,16 +33,18 @@ QList<TeXHighlighter::HighlightingSpec> *TeXHighlighter::syntaxRules = NULL;
QList<TeXHighlighter::TagPattern> *TeXHighlighter::tagPatterns = NULL;
TeXHighlighter::TeXHighlighter(QTextDocument *parent, TeXDocument *texDocument)
: QSyntaxHighlighter(parent)
: QSyntaxHighlighter((QObject*)NULL)
, texDoc(texDocument)
, highlightIndex(-1)
, isTagging(true)
, pHunspell(NULL)
, spellingCodec(NULL)
, textDoc(parent)
{
loadPatterns();
spellFormat.setUnderlineStyle(QTextCharFormat::SpellCheckUnderline);
spellFormat.setUnderlineColor(Qt::red);
QTimer::singleShot(1000, this, SLOT(delayedInstallParent()));
}
void TeXHighlighter::spellCheckRange(const QString &text, int index, int limit, const QTextCharFormat &spellFormat)
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2007-2014 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -86,6 +86,10 @@ private:
Hunhandle *pHunspell;
QTextCodec *spellingCodec;
QTextDocument * textDoc;
private slots:
void delayedInstallParent() { setDocument(textDoc); }
};
#endif
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
/*
This is part of TeXworks, an environment for working with TeX documents
Copyright (C) 2007-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
Copyright (C) 2008-2012 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......
......@@ -84,10 +84,10 @@ int main(int argc, char *argv[])
QTextStream strm(stdout);
strm << QString("TeXworks %1r%2 (%3)\n\n").arg(TEXWORKS_VERSION).arg(SVN_REVISION_STR).arg(TW_BUILD_ID_STR);
strm << QString::fromUtf8("\
Copyright (C) 2007-2013 Jonathan Kew, Stefan Löffler, Charlie Sharpsteen\n\
Copyright (C) %1 %2\n\
License GPLv2+: GNU GPL (version 2 or later) <http://gnu.org/licenses/gpl.html>\n\
This is free software: you are free to change and redistribute it.\n\
There is NO WARRANTY, to the extent permitted by law.\n\n");
There is NO WARRANTY, to the extent permitted by law.\n\n").arg("2007-2014", "Jonathan Kew, Stefan Löffler, Charlie Sharpsteen");
strm.flush();
}
if ((i = clp.getNextSwitch("help")) >= 0) {
......
......@@ -119,7 +119,7 @@ typedef union _synctex_info_t {
} synctex_info_t;
# if defined(SYNCTEX_USE_CHARINDEX)
# define SYNCTEX_DECLARE_CHARINDEX synctex_charindex_t char_index
# define SYNCTEX_DECLARE_CHARINDEX synctex_charindex_t char_index;
# define SYNCTEX_CHARINDEX(NODE) (NODE->char_index)
# define SYNCTEX_PRINT_CHARINDEX printf("#%i\n",SYNCTEX_CHARINDEX(node))
# define SYNCTEX_DECLARE_CHAR_OFFSET synctex_charindex_t charindex_offset
......@@ -133,7 +133,7 @@ typedef union _synctex_info_t {
# endif
struct _synctex_node {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t * implementation;
};
......@@ -357,7 +357,7 @@ SYNCTEX_MAKE_GET(_synctex_implementation_4,4)
SYNCTEX_MAKE_GET(_synctex_implementation_5,5)
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[3+SYNCTEX_PAGE_IDX+1];/* child, sibling, next box,
* SYNCTEX_PAGE_IDX */
......@@ -425,7 +425,7 @@ DEFINE_synctex_new_NODE(sheet)
# define SYNCTEX_ABS_DEPTH(NODE) ((SYNCTEX_DEPTH(NODE)>0?SYNCTEX_DEPTH(NODE):-SYNCTEX_DEPTH(NODE)))
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[5+SYNCTEX_DEPTH_IDX+1]; /* parent,child,sibling,friend,next box,
* SYNCTEX_TAG,SYNCTEX_LINE,SYNCTEX_COLUMN,
......@@ -478,7 +478,7 @@ DEFINE_synctex_new_NODE(vbox)
# define SYNCTEX_ABS_DEPTH_V(NODE) ((SYNCTEX_DEPTH_V(NODE)>0?SYNCTEX_DEPTH_V(NODE):-SYNCTEX_DEPTH_V(NODE)))
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[5+SYNCTEX_DEPTH_V_IDX+1]; /*parent,child,sibling,friend,next box,
* SYNCTEX_TAG,SYNCTEX_LINE,SYNCTEX_COLUMN,
......@@ -514,7 +514,7 @@ DEFINE_synctex_new_NODE(hbox)
* It does not contain a child field.
*/
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[3+SYNCTEX_DEPTH_IDX+1]; /* parent,sibling,friend,
* SYNCTEX_TAG,SYNCTEX_LINE,SYNCTEX_COLUMN,
......@@ -569,7 +569,7 @@ DEFINE_synctex_new_NODE(void_hbox)
/* The medium nodes correspond to kern, glue, penalty and math nodes.
* In LuaTeX, the size of the nodes may have changed. */
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[3+SYNCTEX_WIDTH_IDX+1]; /* parent,sibling,friend,
* SYNCTEX_TAG,SYNCTEX_LINE,SYNCTEX_COLUMN,
......@@ -634,7 +634,7 @@ DEFINE_synctex_new_NODE(kern)
/* The small nodes correspond to glue and boundary nodes. */
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[3+SYNCTEX_VERT_IDX+1]; /* parent,sibling,friend,
* SYNCTEX_TAG,SYNCTEX_LINE,SYNCTEX_COLUMN,
......@@ -692,7 +692,7 @@ DEFINE_synctex_new_NODE(boundary)
/* Input nodes only know about their sibling, which is another input node.
* The synctex information is the SYNCTEX_TAG and SYNCTEX_NAME*/
typedef struct {
SYNCTEX_DECLARE_CHARINDEX;
SYNCTEX_DECLARE_CHARINDEX
synctex_class_t class;
synctex_info_t implementation[1+SYNCTEX_NAME_IDX+1]; /* sibling,
* SYNCTEX_TAG,SYNCTEX_NAME */
......@@ -4328,9 +4328,9 @@ typedef int (*synctex_fprintf_t)(void *, const char * , ...); /* print formatte
# define SYNCTEX_BITS_PER_BYTE 8
struct __synctex_updater_t {
void *file; /* the foo.synctex or foo.synctex.gz I/O identifier */
synctex_fprintf_t fprintf; /* either fprintf or gzprintf */
int length; /* the number of chars appended */
gzFile file; /* the foo.synctex or foo.synctex.gz I/O identifier */
synctex_fprintf_t fprintf; /* either fprintf or gzprintf */
int length; /* the number of chars appended */
struct _flags {
unsigned int no_gz:1; /* Whether zlib is used or not */
unsigned int reserved:SYNCTEX_BITS_PER_BYTE*sizeof(int)-1; /* Align */
......
......@@ -57,6 +57,10 @@ authorization from the copyright holder.
#define SYNCTEX_WINDOWS 1
#endif
#if defined(__OS2__)
#define SYNCTEX_OS2 1
#endif
#ifdef _WIN32_WINNT_WINXP
#define SYNCTEX_RECENT_WINDOWS 1
#endif
......@@ -121,7 +125,7 @@ void _synctex_strip_last_path_extension(char * string) {
last_component = next+1;
}
}
# ifdef SYNCTEX_WINDOWS
# if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
/* On Windows, the '\' is also a path separator. */
while((next = strstr(last_component,"\\"))){
last_component = next+1;
......@@ -207,7 +211,7 @@ synctex_bool_t _synctex_path_is_absolute(const char * name) {
if(!strlen(name)) {
return synctex_NO;
}
# if SYNCTEX_WINDOWS
# if defined(SYNCTEX_WINDOWS) || defined(SYNCTEX_OS2)
if(strlen(name)>2) {
return (name[1]==':' && SYNCTEX_IS_PATH_SEPARATOR(name[2]))?synctex_YES:synctex_NO;
}
......
......@@ -61,18 +61,15 @@ authorization from the copyright holder.
extern "C" {
#endif
#define FALSE 0
#define TRUE !FALSE
# if _WIN32
# define SYNCTEX_CASE_SENSITIVE_PATH FALSE
# if defined(_WIN32) || defined(__OS2__)
# define SYNCTEX_CASE_SENSITIVE_PATH 0
# define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c || '\\' == c)
# else
# define SYNCTEX_CASE_SENSITIVE_PATH TRUE
# define SYNCTEX_CASE_SENSITIVE_PATH 1
# define SYNCTEX_IS_PATH_SEPARATOR(c) ('/' == c)
# endif
# if _WIN32
# if defined(_WIN32) || defined(__OS2__)
# define SYNCTEX_IS_DOT(c) ('.' == c)
# else
# define SYNCTEX_IS_DOT(c) ('.' == c)
......
No preview for this file type
......@@ -130,6 +130,10 @@
<source>Re-wrap paragraphs</source>
<translation>Переразбить абзацы</translation>
</message>
<message>
<source>Unwrap</source>
<translation>Объединить строки</translation>
</message>
</context>
<context>
<name>PDFDocument</name>
......
#!/usr/bin/python
# This script requires pysvn
# Under Debian/Ubuntu, you can install it via
# sudo apt-get install python-svn
import pysvn, datetime, re, os, sys
def infoMsg(msg):
sys.stdout.write(msg)
sys.stdout.flush()
def svnModified():
for s in svnClient.status('.', get_all = False):
if not s['text_status'] in [pysvn.wc_status_kind.none, pysvn.wc_status_kind.unversioned, pysvn.wc_status_kind.normal, pysvn.wc_status_kind.ignored]:
return True
if not s['prop_status'] in [pysvn.wc_status_kind.none, pysvn.wc_status_kind.unversioned, pysvn.wc_status_kind.normal, pysvn.wc_status_kind.ignored]:
return True
return False
# Uses globals: svnClient, svnLog
def getCopyrightYears(filename):
global svnClient, svnLog
# Get canonical path (as shown in the changelog)
info = svnClient.info2(filename)[0][1]
path = info['URL'].replace(info['repos_root_URL'], "")
minYear = maxYear = None
for rev in svnLog:
for p in rev['changed_paths']:
if path == p['path']:
year = datetime.datetime.utcfromtimestamp(rev['date']).year
if not minYear or year < minYear:
minYear = year
if not maxYear or year > maxYear:
maxYear = year
# Follow copies