Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
66b337c2b1
Add missing superclass init calls.
2015-10-26 21:07:08 +01:00
Florian Bruhin
d229e90724
Fix some splelling mistakes.
2015-10-04 15:41:42 +02:00
Florian Bruhin
ca5a78dfc7
Attach numerical code to Qt OSErrors and fix tests.
...
This fixes tests with tox < 2.0.0 on systems with a non-english locale, as it's
no longer the errorString which gets compared.
Fixes #806 .
2015-07-12 11:20:28 +02:00
Florian Bruhin
9ca06ecfa2
Use pkg_resources instead of distutils for version
...
Fixes #767 . See #770 .
2015-06-18 20:54:05 +02:00
Florian Bruhin
163bc2e12e
Add GUIProcess.
...
This aims to unify the code which spawns a process and then shows statusbar
notifications when it exited, etc.
2015-06-11 20:30:03 +02:00
Florian Bruhin
17bb9fc21c
Use QProcess instead of subprocess.
...
Closes #646 .
Fixes #688 .
2015-06-11 20:28:04 +02:00
Florian Bruhin
6452c8f883
PyQIODevice: Add context manager support.
2015-05-26 20:57:11 +02:00
Florian Bruhin
b8dd71a343
PyQIODevice: Add .open()/.close().
2015-05-26 20:57:11 +02:00
Florian Bruhin
460308f388
PyQIODevice: Don't use errorString for failed seek.
2015-05-26 20:57:11 +02:00
Florian Bruhin
6a26bc23ab
PyQIODevice: Remove unneeded check.
2015-05-26 20:57:11 +02:00
Florian Bruhin
48de8b145b
PyQIODevice: Properly fix read/readLine.
2015-05-26 20:57:01 +02:00
Florian Bruhin
0788054dd3
PyQIODevice: Expose underlying device.
2015-05-26 20:57:01 +02:00
Florian Bruhin
b2d763f993
PyQIODevice: Check if device is readable/writable.
2015-05-26 20:57:01 +02:00
Florian Bruhin
35f0b26f4a
PyQIODevice: Remove readinto().
...
Our implementation was broken, and the BufferedIOBase mixin does a better job
at doing this.
2015-05-26 20:57:01 +02:00
Florian Bruhin
ba9c782824
PyQIODevice: First attempt at fixing read().
...
This was completely broken because one read overload doesn't exist in PyQt and
apparently it was never tested...
2015-05-26 20:56:51 +02:00
Florian Bruhin
fa69786b0f
PyQIODevice: Raise ValueError when closed.
2015-05-26 20:49:58 +02:00
Florian Bruhin
27e82ce6c8
Improve exception handling in qsavefile_open.
...
Sometimes exceptions were shadowed with new exceptions because of the file
flushing.
2015-05-26 19:25:05 +02:00
Florian Bruhin
120d2e12b0
Improve QtValueError wording for ensure_not_null.
2015-05-25 01:21:57 +02:00
Florian Bruhin
e8e6d8409b
Adjust pylint exceptions.
2015-03-11 20:14:39 +01:00
Florian Bruhin
359482b511
Fix getting Qt arguments.
2015-02-21 18:52:14 +01:00
Florian Bruhin
9534deb2e7
Add a context manager to unset organizationName.
2015-02-18 22:18:55 +01:00
Florian Bruhin
8f1d81a644
Add session support.
...
Closes #12 .
See #499 .
See #11 .
This adds PyYAML as a new dependency.
It adds the following new commands:
:session-delete <name>
Delete a session.
:session-load <name>
Load a session.
:session-save [<name>]
Save a session.
:wq [<name>]
Save open pages and quit.
And the following new settings:
general -> save-session:
Whether to always save the open pages.
2015-02-16 20:26:09 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Florian Bruhin
2a4e884e1b
Set window icon. Closes #325 .
2014-12-28 14:35:28 +01:00
Florian Bruhin
ec07e4f8be
Handle OSError exceptions where appropriate.
...
Fixes #25 .
2014-12-10 18:00:49 +01:00
Florian Bruhin
ea76bdfb0f
Replace all IOError by OSErrors.
...
Starting with Python 3.3, IOError is just an alias for OSError.
2014-12-10 16:48:23 +01:00
Florian Bruhin
0b82fdb4d8
Fix text/newline handling with QSaveFile.
...
Fixes #309 .
We use io.TextIOWrapper which already handles newline converting, so we
shouldn't open the QSaveFile with QIODevice.Text in the mode, as this lead to
double-converting newlines, which in turn produced this error message on
Windows.
2014-12-10 10:58:55 +01:00
Florian Bruhin
bf24578dfd
Use QSaveFile for saving files. Fixes #234 .
2014-12-08 23:42:26 +01:00
Florian Bruhin
98a384c167
Properly ignore distutils-bug in qtutils.
2014-12-05 12:56:32 +01:00
Florian Bruhin
653fbe81d0
pylint: Ignore distutils ImportError.
...
See https://bitbucket.org/logilab/pylint/issue/73/
2014-12-05 12:46:57 +01:00
Florian Bruhin
6349a6a213
Remove Emit:/Raise: from docstrings.
...
They got out-of-sync fast and provided no real benefit.
2014-10-07 23:08:37 +02:00
Florian Bruhin
d674b90240
Clean up FIXMEs and add github URLs
2014-10-01 22:23:27 +02:00
Florian Bruhin
c9d5928dce
Fix lint
2014-09-27 23:21:13 +02:00
Florian Bruhin
4410536f69
Refactor :undo and save/restore history.
2014-09-27 22:56:50 +02:00
Florian Bruhin
4caec2becb
Document and mark workarounds.
2014-09-02 20:44:58 +02:00
Florian Bruhin
8bd64382bd
Rename utils.qt to utils.qtutils.
2014-08-26 20:25:11 +02:00