Peter Kümmel
12efe108db
Add Pavel's lyxerr extension, add ui for debug levels.
...
Still needs some fiddling with line endings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32670 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-29 15:05:37 +00:00
Peter Kümmel
e479ed5b45
remove debug code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32657 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-27 13:43:42 +00:00
Peter Kümmel
99116c8d64
cleanup process output
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32656 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-27 10:53:28 +00:00
Peter Kümmel
74d47d843e
add some debug info
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32655 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-27 10:11:50 +00:00
Peter Kümmel
3c5fe7a93b
fix formatting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32648 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 17:14:53 +00:00
Peter Kümmel
0f8003c25a
be sure processFinished() is only called once.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32647 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 16:53:29 +00:00
Peter Kümmel
94ab8c8f74
workaround for Qt (4.5.2) bug: QProcess::started() is emitted twice
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-26 16:07:16 +00:00
Peter Kümmel
dd4cbb3591
- Show progress information in status bar.
...
- Remove progress view because ATM we don't have to show anything usefull.
- move Alert:: void functions into GUI thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32604 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-21 11:48:19 +00:00
Peter Kümmel
0c19763f60
add progress widget
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32599 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-20 14:27:19 +00:00
Peter Kümmel
aa613aaf01
add progress widget
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32598 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-20 14:26:55 +00:00
Peter Kümmel
ea6d20295a
Don't process gui events by default it's too dangerous because we have no synchronization ATM.
...
And not needed any more because we export buffers in a thread.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32597 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 20:33:30 +00:00
Enrico Forestieri
04580d2122
Improve the command-line parser meant to be used for QProcess.
...
Now, both single- and double-quotes posix-like quoting styles are implemented,
such that a command-line meant for the shell can also be used for QProcess.
However, only redirecting the output to a file is supported. Supporting piping
would require a (major?) rewrite of the Systemcall class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32590 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-19 17:26:09 +00:00
Peter Kümmel
21686c0bbf
UNDO: single quotes in filenames are possible
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32582 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 19:35:32 +00:00
Peter Kümmel
4d5c24e80d
Ticket 6266 Quoting Problem with QProcess: don't think we need any quotes (at least on Linux)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32579 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 12:20:22 +00:00
Peter Kümmel
62adbdd307
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:32:38 +00:00
Peter Kümmel
68957712dd
cleanup error messages
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:30:28 +00:00
Vincent van Ravesteijn
472b09d735
Fix compilation without QProcess.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 14:04:21 +00:00
Peter Kümmel
6fa6bcf1a9
just discovered qtcreators feature 'replace tabs on save' ;)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:43:38 +00:00
Peter Kümmel
f69ec61315
no timeout when starting up a process, cleanup error message when error code in not 0
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:40:16 +00:00
Peter Kümmel
11020c50f1
add argument to suppress event processing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:28:30 +00:00
Peter Kümmel
eac9f84482
fix unused var warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32331 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:51:39 +00:00
Peter Kümmel
5dabc94547
fix init order
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:48:38 +00:00
Peter Kümmel
0af92c85e9
Enable user input processing when an external process is busy.
...
If it breaks it anything just flip the bool to disable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32329 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:20:00 +00:00
Peter Kümmel
74e77476b5
also process user input, trigger more processEvents
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:08:24 +00:00
Pavel Sanda
6598b9e2a4
gcc complains because of inicialization order
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:06:29 +00:00
Peter Kümmel
248712bc64
coding style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:39:48 +00:00
Peter Kümmel
1eb72710eb
also delete process on errors, use RAII therefore
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:35:32 +00:00
Peter Kümmel
314b79576e
more cleanup without behavior changes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:11:06 +00:00
Peter Kümmel
a0bdf5e666
Move some code from the process branch into trunk.
...
Don't incorporated any progess stuff.
Behavior when starting a process is UNTOUCHED, but could simply changed by setting progessEvents to true.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 09:51:13 +00:00
Enrico Forestieri
ae3f95b8f0
Fix scons and revert the now not needed r29669.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29692 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 15:55:08 +00:00
Enrico Forestieri
a5a05e7dfc
Really flush output buffers.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29675 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-15 09:20:59 +00:00
Enrico Forestieri
8fe984090f
Allow immediate output of spawned processes for all platforms.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29668 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 15:13:58 +00:00
Enrico Forestieri
2301c5af8f
Fix problem with the nul device on Windows.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29663 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 00:12:07 +00:00
Enrico Forestieri
70696182dd
Take into account output redirection when spawning a program.
...
Now things should behave as before the QProcess era (I hope).
The parser only accounts for output redirection, no fancy
things such as piping are possible, yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29656 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 18:29:58 +00:00
Enrico Forestieri
0ed38ed1f4
Allow to separately redirect stdout and stderr.
...
Now "lyx > stdout.log" should produce the same output as before
the switch to QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29655 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 12:55:01 +00:00
Enrico Forestieri
3cdf2acb95
Clarify comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29654 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 09:56:47 +00:00
Enrico Forestieri
97303baac2
Avoid #ifdef's and use OS specific code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 09:48:11 +00:00
Enrico Forestieri
50ddeeb77e
MSVC does not define WIN32 but _WIN32.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29650 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 22:04:26 +00:00
Enrico Forestieri
cd9b169d76
Restore line buffered output at least on posix systems. I failed to do
...
that on Windows, as using CONOUT$ in place of /dev/stdout didn't work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29642 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 18:21:27 +00:00
Enrico Forestieri
c73eb3497a
Fix QProcess code on posix systems and reenable it by default, in order
...
to catch early possible problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29634 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 22:03:52 +00:00
Abdelrazak Younes
58cac2e4db
Allow more time for latex... process launching can be slow on Windows...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29630 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:58:28 +00:00
Abdelrazak Younes
bff46f987c
revert unwanted change.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29629 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:55:31 +00:00
Abdelrazak Younes
54aefd360c
Read standard output and error upon completion. And properly close the channels before killing the process.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29628 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:51:52 +00:00
Abdelrazak Younes
416a6cd1c0
Reorganize the code a bit and Disable QProcess evaluation for now as nothing works...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29626 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 09:01:44 +00:00
Abdelrazak Younes
dc267d6dd9
Add some debugging code to QProcess. Reconfigure (python) starts and finishes here (ubuntu9.04) but doesn't proceed and returns this:
...
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(66): Qprocess python -tt '/home/younes/devel/lyx/trunk/lib/configure.py' --with-version-suffix=2.0 finished!
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(67): exitCode 2
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(68): error 5
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(69): state 0
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(70): status 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 08:34:08 +00:00
Vincent van Ravesteijn
2b2e0e8a12
Patch from Peter.
...
Commit the patch posted at beginning of this thread and see how big the problems are, especially Pavel's svn code.
After solving the problems, I planned to integrate my previous GUI patches.
see:
http://marc.info/?l=lyx-devel&m=124136994215110&w=2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29614 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 19:39:56 +00:00
Abdelrazak Younes
9abb7db468
getting rid of superfluous std:: statements.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
Enrico Forestieri
d73f28eec1
Revert qprocess code. Revisions reverted: 22026, 22030, 22044, 22048,
...
22077, 22078, 22079, 22080, 22081.
Sorry Peter, but this was breaking too many things, see discussions
on lyx-devel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:25:53 +00:00
Peter Kümmel
3af56311a7
add progress view of system calls
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 20:46:03 +00:00
Bo Peng
f212b48335
Rename .C ==> .cpp for files in src/support, part two
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18025 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 05:13:44 +00:00