Enrico Forestieri
70351330a0
Another tweak to account for when both paths end with '/'.
...
The problem here is making sure that path_prefix_is() behaves exactly
as would a case insensitive prefixIs(). Anyway, this is still better
than trying to fix the semantics of common_path().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29846 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 18:37:03 +00:00
Enrico Forestieri
2fb21c28b5
Simpler things are almost always better.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29843 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 17:30:02 +00:00
Enrico Forestieri
eb9151060d
Account for the corner case p2.length() == 1.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29838 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 00:23:44 +00:00
Enrico Forestieri
e2c763d9f6
Avoid a string copy and a small tweak.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29837 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-24 21:09:41 +00:00
Enrico Forestieri
7ae4f6ac6f
Avoid calling prefixIs() if not needed.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29824 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-23 13:16:13 +00:00
Enrico Forestieri
6d1d27eb90
Take into account file system case sensitivity when checking whether
...
a path starts with a given prefix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 22:34:43 +00:00
Uwe Stöhr
8f3acbb484
remove unused includes of convert.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29772 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 21:02:14 +00:00
Enrico Forestieri
9b9a3cf0c0
Another compile fix for msvc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29741 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 20:28:50 +00:00
Jürgen Spitzmüller
233ff911de
* potential compile fix for msvc.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29739 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 19:59:48 +00:00
Jürgen Spitzmüller
d5a41946a6
* calculate the size of the iconv output buffer (bug 5951).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29735 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 15:27:54 +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
Vincent van Ravesteijn
501349b4ae
Compile fix for r29647.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29648 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:16:43 +00:00
Vincent van Ravesteijn
44afac0e4a
Do the same as r29646, now for FileName::set.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29647 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:15:20 +00:00
Vincent van Ravesteijn
2f8a71056b
Fix the assert on Windows when starting LyX by double-clicking on a file.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:12:04 +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
Abdelrazak Younes
fae3c1669f
gcc warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29624 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 07:52:39 +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
Enrico Forestieri
aa1a673077
Find thesauri files even if \thesaurusdir_path is specified without
...
a trailing slash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29603 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 02:25:25 +00:00
Vincent van Ravesteijn
b5fc687888
Fix bug #4177 : Lyx fails to open files with a $ character in their name.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29587 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 17:06:54 +00:00
Abdelrazak Younes
e9be0fae66
Integrate mythes-1.1 into our source and remove support for aiksaurus. I have tested only the Cmake build system. Please test autotools and scons.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 21:38:50 +00:00
Richard Heck
47595faf93
Forgot these bits.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 20:44:07 +00:00
Richard Heck
675925f659
This patch introduces wrapped tooltips for some more insets.
...
New method wrapParas() in support, deployed in various
insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 18:04:05 +00:00
Richard Heck
fedf5aebe3
Thinko.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 13:56:21 +00:00
Richard Heck
cc23968475
Minor fixups.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 13:53:28 +00:00
Richard Heck
cca51a04c2
Move the word-wrapping code to support, so that it can be re-used.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 12:23:12 +00:00
Enrico Forestieri
6e7031dc5a
File names must be compared taking into account filesystem case sensitivity,
...
otherwise the same file could be opened in different buffers by simply
changing the case of a character in the name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29538 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 22:16:37 +00:00
Vincent van Ravesteijn
3045d9b4ff
Fix the construction of a filepath after r29498. The '/' between the path and suffix was omitted when the path is a directory.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29503 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 21:29:54 +00:00
Enrico Forestieri
ccc77c73da
Speed up FileName operator== (Georg's solution).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29498 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 17:12:31 +00:00
Enrico Forestieri
e0941bdb4b
Revert r29444 (to be soon replaced by Georg's solution).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 16:39:14 +00:00
Uwe Stöhr
88015a178a
os_win32.cpp: compile fix for r29476
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 19:08:14 +00:00
Enrico Forestieri
b0936fac4c
When performing a reverse DVI search and the tmpdir is a symlink, the
...
DVI viewer passes back the resolved path, such that the search fails,
as internally LyX uses the unresolved path.
This patch fixes this bug by using the new method FileName::realPath
which resolves a path by getting rid of any '.', '..', or symlink
path components.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29476 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 15:18:11 +00:00
Enrico Forestieri
4053db1858
Speed up FileName operator==, such that working with child documents on
...
Windows and Solaris is again possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29444 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-29 22:42:26 +00:00
Jean-Marc Lasgouttes
fcc4a0f794
Sometimes, iconv on windows returns -1, but sets errno to 0. I do not
...
know what this means, but tex2lyx did not like it at all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 12:28:00 +00:00
Jean-Marc Lasgouttes
f3038bed06
Remove bogus ifdocstream constructor argument, which _may_ be the cause of
...
tex2lyx woes under windows. It may also help chktex under windows
(does it works currently?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 15:40:01 +00:00
Richard Heck
876dc0d54e
Fix up a few little things after r29065. If we're calculating the autosave
...
filename in a different way, we need to make sure we always do it the same
way. Makes more sense to do this in Buffer anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29073 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:13:46 +00:00
Jürgen Spitzmüller
5be56b517a
Fix bug 5827 (validate date-insert argument):
...
* src/support/os*.{cpp,h}:
- new function is_valid_strftime that validates strftime arguments,
OS dependant (win32 differs here)
* src/Text3.cpp:
- use is_valid_strftime in LFUN_DATE_INSERT status check.
* src/frontends/qt4/GuiPrefs.{cpp, h}:
- new GUI validator for strftime.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28932 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:22:54 +00:00