Vincent van Ravesteijn
7bf7fabb13
Correct bug number and typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36329 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 03:22:37 +00:00
Vincent van Ravesteijn
c701342593
Reset the autosave timers also for the threaded case. This fixes the bug that autosave doesn't work in beta-1.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36328 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:27:02 +00:00
Vincent van Ravesteijn
ce0304e6f4
Buffer::getAutosaveFileName() can now be private as it should.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36327 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:25:12 +00:00
Vincent van Ravesteijn
ae852848fa
Let GuiViewPrivate::autosaveAndDestroy use Buffer::autoSave() and remove the now unneeded parameter filename.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36326 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:23:39 +00:00
Vincent van Ravesteijn
208acbc728
Generalize Buffer::autoSave() for both the threaded as the forked process call. Also move out the resetAutosaveTimers as this is the task of the frontend as the core shouldn't know about any timer.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36325 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:18:12 +00:00
Vincent van Ravesteijn
a0916d4fef
Rename GuiViewPrivate::saveAndDestroy to autosaveAndDestroy (because that's what it actually does according to the return string).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36324 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 02:07:54 +00:00
Pavel Sanda
630f72ed6c
UI naming synchro.
...
Actually, I wonder how is this dialog triggered.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36321 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:39:44 +00:00
Pavel Sanda
29849a143c
tooltip
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36320 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 19:20:28 +00:00
Richard Heck
b8d207901b
Fix crash reported by Enrico. Thinko or something in r35856.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36317 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 18:26:21 +00:00
Jürgen Spitzmüller
1aa5a0d1f1
Introduce PolyglossiaName and PolyglossiaOpts.
...
Not yet functional.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36312 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-16 11:07:43 +00:00
Pavel Sanda
13d63e5ce6
ui tooltip
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36305 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-15 15:50:30 +00:00
Pavel Sanda
058c815515
Fix order of return value
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 23:23:20 +00:00
Vincent van Ravesteijn
ff8ac45920
Compile fix for windows for r36278.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 16:27:08 +00:00
Jürgen Spitzmüller
cc5dd37a2a
Introduce a new Language option "AsBabelOptions" that specifies whether a language requires to be passed to babel itself (instead of globally to the class).
...
This allows us to remove some ugly hardcoding of languages in the source.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 10:35:35 +00:00
Jürgen Spitzmüller
12c7e7dde3
* add PreBabelPreamble to Language definition ( fixes #4786 ).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 09:54:24 +00:00
Pavel Sanda
4c952c612b
Clash of accelerators
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:28:24 +00:00
Pavel Sanda
b197c99449
This should be fixed.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36288 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 23:01:30 +00:00
Jürgen Spitzmüller
148f2d648c
The languages file rewrite.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 17:25:03 +00:00
Jürgen Spitzmüller
a85ae19bf8
* GuiView: puzzle-constructions like this will make proper translations impossible (and it was not even correct English).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 15:47:42 +00:00
Tommaso Cucinotta
d5eb8c0968
(finishing patch -- question was restored, but there were still problems)
...
Restore the wrap-around question when no more hits found while searching with Advanced Search.
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36279 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 12:02:04 +00:00
Enrico Forestieri
22ffc93467
The "single instance" patch.
...
By default, if the lyxpipe is set up and working, loading of documents
is deferred to an already running instance. Note that an already running
instance is only used for loading, such that export from command line
still works as usual.
The default behavior can be changed through a preference setting, and,
whatever the default is, it can be overridden by command line options.
Unticking the "Single instance" check box in the preferences, LyX behaves
exactly as before the introduction of this feature.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:55:05 +00:00
Tommaso Cucinotta
112246ae9f
Restore the wrap-around question when no more hits found while searching with Advanced Search.
...
The dispatched() flag is used currently in FindAndReplace.cpp in order to discriminate between
match found and not found and, in the latter case, pop-up the wrap-around question dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36277 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 11:35:37 +00:00
Pavel Sanda
0dd3ea40f1
Add accelerators to Line UI
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36274 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 01:44:07 +00:00
Pavel Sanda
018029e248
ui glitch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36273 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 00:37:43 +00:00
Pavel Sanda
19d0eea9c0
Reintroduce expandMacrosCB, code partially knows it. Sorry.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36272 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-13 00:25:09 +00:00
Pavel Sanda
ae4df32c25
Kill disabled items of advanced search, they won't be implemented any time soon.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36271 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 20:55:33 +00:00
Pavel Sanda
71501eb543
Next indices
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36268 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 20:15:25 +00:00
Jürgen Spitzmüller
56faf7474c
* Author.cpp:
...
- to_ascii is a bad idea if your name contains two umlauts.
(LyX asserted on my for any document).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36258 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 09:41:41 +00:00
Jürgen Spitzmüller
2afa7eabd0
* revert r36189, since there is no consensus for this change.
...
Happy Friday, everybody!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36257 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-12 09:31:55 +00:00
Pavel Sanda
87db71a61a
Return title back, I was too fast.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36250 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 20:06:08 +00:00
Pavel Sanda
4e8e58cc14
Synchro for index strings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36248 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:53:21 +00:00
Pavel Sanda
0070191c4e
Kill title never used
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36247 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:49:02 +00:00
Pavel Sanda
7923b74d1d
propset eoln
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36246 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:47:45 +00:00
Pavel Sanda
9ad45aa03d
Tooltip string
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:09:06 +00:00
Vincent van Ravesteijn
98f07840fc
Fix bug #6561 : Crash when using Spellchecker's language box when cursor is in math.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 20:06:21 +00:00
Richard Heck
6f76593069
Fix a bug in getFormattedReference().
...
Also, change from using the "cha" prefix for chapters, a la prettyref,
to the "chap" prefix, a la refstyle. We alias \pr@chap to \pr@cha for
prettyref users.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36238 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 16:45:55 +00:00
Enrico Forestieri
91208a2f79
Fix the 100% cpu load problem when previewing with Qt 4.2 and 4.3.
...
Now it works fine again with those Qt versions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36235 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 15:35:56 +00:00
Enrico Forestieri
74a3fa9cf1
Correct style and squash compiler warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 14:36:35 +00:00
Enrico Forestieri
06e963f73e
Fix export for Qt < 4.4.0.
...
The 100% cpu problem is still there and the culprit turns out to be r35795.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36231 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 13:45:33 +00:00
Pavel Sanda
b71e606b94
Standard button label
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36217 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 01:54:28 +00:00
Enrico Forestieri
1f6370dfd7
Fix bug #6939 (Using math-insert to input math macros overwrites math expressions)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36216 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 00:03:32 +00:00
Richard Heck
1b46ff6989
Refstyle doesn't (yet) provide a default "subsection" reference. Nor,
...
actually, does prettyref, but we should do something here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36212 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:52:43 +00:00
Richard Heck
19aa16756c
Fix bug in fallback reference output with refstyle. Based on idea by
...
Jean-Pierre Chretien.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36211 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:50:02 +00:00
Peter Kümmel
433f4621cc
don't eat a CPU core when using Qt < 4.4 or EXPORT_in_THREAD == 1
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36208 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 08:40:12 +00:00
Uwe Stöhr
0a6f607c81
GuiTabular.cpp: workaround fix for #7022
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36207 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 04:36:11 +00:00
Peter Kümmel
6513556867
fix linker errors when using Qt 4.2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36205 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 00:37:58 +00:00
Vincent van Ravesteijn
8e7d7e4295
Move the buffer related part from GuiView::renameBuffer to Buffer::saveAs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36202 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 21:26:02 +00:00
Pavel Sanda
a83995b2c6
Squash warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36195 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 18:45:26 +00:00
Abdelrazak Younes
7ff3e84c5d
Fix assert in all InsetParamsWidget's for unicode characters (bug #7017 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36194 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 17:38:39 +00:00
Uwe Stöhr
e94a9732b1
stdinsets.inc, InsetERT.cpp: change "ERT" to "TeX" to be consistent - the documentation and all other menus use consequently since LyX 1.6.0 "TeX-code" because it turned out that ERT is a meaningless abbreviation for new users
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36189 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 15:31:05 +00:00
Uwe Stöhr
86b99f8f32
GuiTabular: support for multirow offset; fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36182 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 05:32:28 +00:00
Uwe Stöhr
930729048f
GuiTabular.cpp:
...
- apply our naming scheme to unit comboboxes
- set default units
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36180 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 03:01:26 +00:00
Jean-Marc Lasgouttes
b9b619641b
This patch implements proper ERT behaviour for normal layouts.
...
In particular, it makes paragraph breaks generate single \n in latex output
when ParbreakIsNewline is true
This means that it is not necessary anymore to use newlines to break lines.
Plain paragraph breaks can be used instead, like is done now in ERT/Listings.
This is mainly aimed at sweave support.
lyx2lyx support courtesy of Richard Heck
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36163 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 15:06:19 +00:00
Pavel Sanda
04e6076ebb
Comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36162 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:32:47 +00:00
Stephan Witt
2c7a7e72c2
implementation for "Compare with older revision" for CVS, correct return value of SVN::prepareFileRevision for failure to create tmp file
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36161 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:18:09 +00:00
Stephan Witt
ba00acbd65
check for user cancel or errors on vcs revert before reload of buffer in LFUN_VC_REVERT
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36160 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 11:54:08 +00:00
Richard Heck
da1e7e14ce
Squash warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36159 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 03:17:23 +00:00
Enrico Forestieri
79ef98205d
Fix bug #7019 (Math labels should not be escaped on saving)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:53:29 +00:00
Pavel Sanda
c9332413e5
Quickfix closing #6396 .
...
sleep sleep
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36154 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:38:35 +00:00
Pavel Sanda
69520456e0
Fix RCS part of #6396 . Btw revert is slightly broken now...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36153 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:21:04 +00:00
Pavel Sanda
0586a14d63
Compil fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:34:03 +00:00
Vincent van Ravesteijn
4397cef1f8
src/support/debug.h/cpp:
...
- rename the private member dt to dt_,
- rename second_ and second_used_ to second_stream and second_enabled_ to have the same terminology as the stream_ and enabled_ member,
- remove FIXME because now we have a Qt pane showing the messages,
- adjust some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:22:47 +00:00
Stephan Witt
69dd56d6c4
CVS implementation for buffer-info vcs-author, cvs-date and cvs-time
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:20:42 +00:00
Pavel Sanda
badbd3dcc3
Compil fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:04:21 +00:00
Vincent van Ravesteijn
38e43ce4ca
Clarify comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36146 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:23:26 +00:00
Vincent van Ravesteijn
afa873dc5f
Remove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFileNameFor and getEmergencyFileNamefor can be removed too. Last, the call to lyxvc.file_found_hook can now be centralized and can be given the correct parameter (d->filename instead of the name of the emergency/autosave file).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36145 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:21:01 +00:00
Vincent van Ravesteijn
ab8d87f26a
Allow for nested setBusy calls.
...
Before, LyX could crash when calling setBusy(false) while LyX is still in a busy state due to a surrounding setBusy(true)/setBusy(false) construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36140 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 20:24:58 +00:00
Vincent van Ravesteijn
f226c9d3fc
Fix bug #6058 : Change tracking and versioning.
...
Computes a hash value for the authors when using change tracking.
Text.cpp, BufferParams.h, Author.h:
Change unsigned int to int because the hash values can be negative.
lyx2lyx:
Allow to convert negative author_ids.
See also: r30756.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36134 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 18:25:29 +00:00
Vincent van Ravesteijn
a4fd294373
Add a static assert to prevent compilation on platforms where int/usigned int are not 32-bits/4-bytes.
...
This is added to be sure that the to-be-added author hash is always 32-bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36126 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 16:51:09 +00:00
Vincent van Ravesteijn
2810b7aef7
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36062 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:35:12 +00:00
Vincent van Ravesteijn
6f61652605
Fix part of bug #5561 : Issues with image pasting
...
Now the path to the pasted graphics is saved as a relative path if possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:28:33 +00:00
Richard Heck
f652f90af9
LyX does \makeat for us.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36030 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:08:01 +00:00
Richard Heck
f7e80e6681
More safety here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36013 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:15:04 +00:00
Richard Heck
01af564dc2
Fix bug #7014 . The problem here is that we get DEFSKIP if we don't
...
recognize the argument, but that leads to an infinite loop.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36012 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:12:18 +00:00
Uwe Stöhr
bbb8671328
GuiTabular.cpp: add comments
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36011 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 01:29:01 +00:00
Enrico Forestieri
31b5ba7e25
Be compatible with Qt 4.2 and 4.3 (Q_EMIT).
...
Actually, it still fails to link with anything less than Qt 4.4.0
due to the xxxAndDestroy() business in GuiView.cpp ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36009 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 00:38:35 +00:00
Richard Heck
dc5934737d
Improve display of index names under Insert>Lists/TOC.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36006 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 20:38:42 +00:00
Richard Heck
cddf32f152
Use bformat so we get RTL etc correct here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36005 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 20:31:52 +00:00
Pavel Sanda
f5123ccfa8
Add comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36003 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 19:54:08 +00:00
Pavel Sanda
70db6e30c8
Be compatible with Qt 4.2.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg162871.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36002 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 16:37:47 +00:00
Richard Heck
2a0fcda936
Perhaps this is overkill, but it can't hurt....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36001 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:42:45 +00:00
Richard Heck
efa0da26c8
Fix the following sort of crash, reported on the list. This is also
...
#6884 .
1. Open LyX. File>New. Document>Outline, to make sure the TOC is open.
That isn't necessary, but it helps you to see what is happening.
2. Create a section heading (alt-P, 2) with an x in it.
3. Split the screen.
4. File>New. You should now still see the TOC for the OLD buffer.
5. Click in the top screen. You now see an empty TOC (the one for the
empty buffer).
6. Click in the empty buffer. Other TOC!
7. Back to the "x" buffer. Empty TOC. Type something. Boom!
The problem is that teh setCurrentWorkArea() call eventually gets us to
structureChanged(), which accesses documentBufferView(). But that
doesn't get reset until later, and hence everything is out of sync.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35999 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:33:52 +00:00
Richard Heck
4645e3c56f
Make sure that the members of this enum get the same value on every
...
platform.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35995 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 14:50:07 +00:00
Abdelrazak Younes
3142a62c7a
Table dialog: Fix enabling/disabling of first header and last footer
...
check boxes.
This should fix bug #7008
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35993 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 13:35:16 +00:00
Pavel Sanda
07fc85d3e2
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35986 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 23:24:24 +00:00
Stephan Witt
2f10f8edd0
first step to cure the VCS load problem
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35985 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 22:20:54 +00:00
Richard Heck
96dfec471f
Partially fix #5108 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35984 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:54:20 +00:00
Uwe Stöhr
f0b79f00fc
GuiTabular.cpp: fix #7006 : the caption checkbox was simply not connected
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35983 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:52:08 +00:00
Peter Kümmel
8718c455a6
check also if there is a QApplication instance
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35981 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:32:59 +00:00
Uwe Stöhr
3e7d87f489
GuiTabular.cpp: add a comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35979 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:20:27 +00:00
Abdelrazak Younes
8b7584846c
Fix bug #6997
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35977 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:00:03 +00:00
Richard Heck
fa6118e4af
Revert unintentional commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:58:24 +00:00
Richard Heck
64e77d6c14
Fix bug #6888 .
...
This is why it was worth doing the updateBuffer() rewrite.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35975 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:57:10 +00:00
Pavel Sanda
5075f0f25f
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35973 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:24:29 +00:00
Richard Heck
9b105fc6bf
Fix bug #7002 . I think this is correct, but Peter should check.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35970 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 19:37:59 +00:00
Uwe Stöhr
7c2b2c464b
InsetTabular.cpp: multirows are always left-aligned thus allow left alignment and forbid center alignment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35969 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:45:02 +00:00
Uwe Stöhr
90291acefb
InsetTabular.cpp: typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35968 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:12:46 +00:00
Uwe Stöhr
98b8e1eb81
InsetTabular.cpp: multirow cells are ALWAYS left aligned and thus cannot inherit the alignment of the column
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35967 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:09:38 +00:00
Uwe Stöhr
bc30270b35
InsetTabular.cpp: fix #7003 that I accidentally introduced when fixing #6958
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35966 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 16:16:40 +00:00
Stephan Witt
85b09e9d04
remove the translation context for vcs buffer info message for unimplemented features, the name of vcs info is hardcoded and ascii only
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35965 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 15:16:59 +00:00
Jürgen Spitzmüller
9ef7efd85a
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35964 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 15:15:38 +00:00
Richard Heck
5c9dde4d3b
Had to be a typo, right?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 11:54:18 +00:00
Stephan Witt
17b3e30335
correct the gettext context for the format of the displayed error message for unknown vcs buffer-info insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35961 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 07:03:47 +00:00
Stephan Witt
81b0f275a8
correct the gettext format of the displayed error message for unknown vcs buffer-info insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35960 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 06:32:09 +00:00
Uwe Stöhr
c6fa2fa10e
InsetTabular.cpp: fix #7000
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35957 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 04:30:06 +00:00
Vincent van Ravesteijn
34338c474a
Remove unnecessary breaks.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35956 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 03:54:23 +00:00
Uwe Stöhr
fa695f939c
InsetTabular.cpp: fix #6985 - we need to break after unsetting otherwise case Tabular::MULTICOLUMN: would be executed afterwards reverting the unsetting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35955 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 03:26:25 +00:00
Vincent van Ravesteijn
892bc7dac3
In r35952 we reverted r35933, but InsetParamsWidget.h was forgotten.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35954 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 23:59:07 +00:00
Uwe Stöhr
e882f797bf
GuiTabular.cpp: apply immediately for all edit fields in the table dialog as discusses in #7001
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35953 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 22:32:53 +00:00
Richard Heck
79811671e9
Revert r35933. There are insets not based upon InsetCommand, such as
...
VSpace, that use InsetParamsWidget, so we cannot have code that requires
InsetCommandParams there.
Stephen Witt reported a similar crash with the info dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35952 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 18:56:32 +00:00
Vincent van Ravesteijn
a59fec10ff
Squash warning about unused variable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35949 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 14:41:59 +00:00
Vincent van Ravesteijn
dad3c8ce74
Fix compilation for platforms besides Windows
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35948 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 14:39:50 +00:00
Vincent van Ravesteijn
f90f3d146b
More include frenzy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 01:26:50 +00:00
Vincent van Ravesteijn
222b3580d2
More include frenzy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35940 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 01:04:03 +00:00
Vincent van Ravesteijn
a7e2b7eea9
Remove some unneeded includes from some header files.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35939 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 00:31:57 +00:00
Abdelrazak Younes
766e300f42
Migrate GuiPrintNomencl to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 20:14:57 +00:00
Stephan Witt
4b57639ad0
after successfuly load of autosave or emergency file the VCS state has to be checked for the original name
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 20:05:55 +00:00
Uwe Stöhr
30879d6553
GuiTabular.cpp: display width and alignment for multirows, fixes rest of #6958
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 19:00:23 +00:00
Abdelrazak Younes
5320ce0206
GuiLabel: generalize initialiseParams() and transfer to InsetParamsWidget as this will be used by other insets. The implementation of the new paramsToDialog(InsetCommandParams) is optional.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35933 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 18:40:53 +00:00
Uwe Stöhr
eb0c10b6b4
InsetTabular.cpp: multirows inherit the width and the alignment from the column; this fixes #6958 partly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35932 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 18:11:37 +00:00
Uwe Stöhr
eef6b32eff
InsetTabular.cpp; remove SET_SPECIAL_MULTIROW because according to the multirow documentation multirows inherit the LaTeX-argument from the current column since they don't span multiple columns
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35931 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 16:36:08 +00:00
Uwe Stöhr
7c6a642f01
GuiTabular.cpp: fix #7001
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35930 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 16:26:12 +00:00
Jürgen Spitzmüller
a3a51b545c
* InsetTabular.cpp:
...
- only set/unset a caption if necessary.
This fixes the setting of multicols via dialog (part of bug 6985)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35929 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 11:28:16 +00:00
Jürgen Spitzmüller
023afde520
* GuiTabular.cpp:
...
- fix console warning about unknown feature.
Not sure if SET_SPECIAL_MULTIROW is supposed to do something eventually, but if not, specialAlignmentED should probably be disabled in multirows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35928 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 10:41:46 +00:00
Vincent van Ravesteijn
3bb31a04dd
Remove saveCheckSum from Buffer::reload again. Now, the saveCheckSum call is already in Buffer::readFile, so it is not needed here anymore.
...
Also move the saveCheckSum declaration to the section of functions involving reading/writing. And note that it should be made private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35925 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 23:51:13 +00:00
Richard Heck
3a4ebf380c
Squash warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35923 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 20:54:26 +00:00
Vincent van Ravesteijn
eff06951a9
Centralize preview generation/deletion code to Buffer::updatePreviews and Buffer::removePreviews.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35922 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 20:00:51 +00:00
Vincent van Ravesteijn
0c9da47505
BufferList should not determine that the current author has id = 0. This should really be in AuthorList. Besides BufferList shouldn't have to create an Author by itself.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35921 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:27:55 +00:00
Vincent van Ravesteijn
be40bdeb3e
Write code in a language that everyone understands ?
...
Does anyone have a clue why nvec is declared static here ? Or can I remove it ?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:10:54 +00:00
Vincent van Ravesteijn
e703e02db5
Compile fix in case DEVEL_VERSION is defined.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35919 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:07:41 +00:00
Vincent van Ravesteijn
076803fdb1
BufferList.h: adjust some comments and group the functions that are just here because they iterate over all buffers.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:00:06 +00:00
Vincent van Ravesteijn
e9e577f6a4
All occurrences of buf->errors("Parse") in GuiApplication an GuiView are positioned after a call to GuiView::loadDocument which already should handle any errors.
...
GuiView::loadDocument also already calls setBuffer(), so this is not needed everytime too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35917 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 18:57:40 +00:00
Vincent van Ravesteijn
e82cd410c1
Pass the Buffer to GuiView::reloadBuffer. We always know which buffer we want to reload, so don't ask the documentBufferView again.
...
Besides, now we can always call GuiView::reloadBuffer instead of calling Buffer::reload directly. This means we don't have to do the error handling each time over and over again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35916 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 18:50:48 +00:00
Richard Heck
455ac11cfc
Bit of cleanup around the Format view and edit code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35914 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:14:00 +00:00
Richard Heck
2b067ed466
Constness.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35913 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:08:31 +00:00
Jürgen Spitzmüller
3381784318
fix #6998 . Center alignment is the default, also with multirow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:02:01 +00:00
Vincent van Ravesteijn
ef7ecea2b3
Move the call to Buffer::errors("Parse") from BufferView::insertLyXFile to GuiView::insertLyXFile.
...
Buffer::errors("Parse") is called 7 times in the whole project. 4 times from GuiView and three times from functions in other classes, but which are (almost) only called from the GuiView.
Buffer::errors is used to signal the GUI that there might be an error occuring, but what sense does it make if it is only called from the Gui ?
Isn't it better to let the function return wether it succeeded or not and let the GuiView take action in doing something with the possible errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35911 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 16:51:50 +00:00
Vincent van Ravesteijn
c9a91c5474
Relay the ReadStatus all the way up to the GUI also for Buffer::reload().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35908 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 16:26:32 +00:00
Richard Heck
91b4afa3c1
This has to be delayed, since otherwise it provides the command before
...
the user gets to do so.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35907 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 14:31:52 +00:00
Richard Heck
16a1c042ef
Fix prettyref output.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35906 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 13:07:05 +00:00
Richard Heck
6fa8ea97c4
Complete Jurgen's fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 13:06:52 +00:00
Jürgen Spitzmüller
40f06a50de
* InsetTabular.cpp: simplification; no change in functionality.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35902 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 11:33:48 +00:00
Jürgen Spitzmüller
ec1fd2a860
* InsetTabular.cpp: simplification; no change in functionality.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35899 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 10:15:50 +00:00
Jürgen Spitzmüller
2b604413e7
* GuiDocument.cpp:
...
use translateIfPossible here, since the module names might be non-ASCII
(thanks rgh).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35898 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 08:34:26 +00:00
Uwe Stöhr
fadde98eb3
InsetTabular: implement some SET/UNSET functions as prerequisite to fix #6985
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35897 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 04:09:49 +00:00
Uwe Stöhr
b47d15cb71
GuiTabular.cpp: table caption inside table is only allowed for longtables (fixes regression to LyX 1.6.x)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35896 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:38:58 +00:00
Uwe Stöhr
c378fede8b
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35895 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:29:53 +00:00
Uwe Stöhr
a0b84e0ba0
GuiTabular.cpp: fix #6585
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35894 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:18:18 +00:00
Vincent van Ravesteijn
2bbf8e5f2d
Remove InsetCommand::mailer_name_.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35893 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:46:21 +00:00
Vincent van Ravesteijn
aafe985042
Remove the now unused parameter of createDialogStr();
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35892 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:42:40 +00:00
Vincent van Ravesteijn
c5b9664476
Remove the name parameter from string2params and params2string. We can always derive the name with insetName(params.code()).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35891 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:25:28 +00:00
Richard Heck
e313d3a12b
Move saveCheckSum() call to Buffer::readFile(). Also, remove the
...
argument from that function. We are always saving the checksum for the
Buffer's file. The argument is a left-over from a time when we did the
wrong thing and saved it for e.g. the emergency file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 22:12:29 +00:00
Richard Heck
2101b37a0f
Rename invisible buffers to hidden ones, thanks to John McC-D.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35889 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 22:00:50 +00:00
Richard Heck
c4f5d8fae2
Typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 20:23:39 +00:00
Richard Heck
84717d0fcc
Lemma definition for refstyle.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35887 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 17:35:28 +00:00
Richard Heck
d8d239cae0
InsetParamsWidget should not just ignore the initialization data. I
...
don't know if there are similar issues with other dialogs based on it,
but this seems to fix it for GuiLabel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35886 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:31:14 +00:00
Richard Heck
c4faeb75db
Comments mostly.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35885 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:28:57 +00:00
Richard Heck
98525b5d3d
Fix typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35884 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:28:16 +00:00
Richard Heck
249fe0167e
Took out too much in r35582.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:04:46 +00:00
Richard Heck
1fbddcb149
Change the way we output formatted references under refstyle to avoid
...
some problems with the previous \\lyxref macro.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35882 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 15:15:14 +00:00
Enrico Forestieri
8590a51f9b
Fix bug #6589 (Crash when reverting to saved while cursor is in mathed)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35880 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 12:32:32 +00:00
Enrico Forestieri
3ebcbf5b32
Fix bug #6965 (Crash editing ERT in math mode)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35879 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 11:13:47 +00:00
Vincent van Ravesteijn
6d82aacf48
Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer nowadays from the Inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35874 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 22:34:18 +00:00
Vincent van Ravesteijn
c75d667e78
Organize header files in src\insets.
...
- Functions that inherit from the same baseclass are grouped together with a command;
- Functions that inherit should not have a doxy entry;
- Other functions are also grouped together as much as possible;
- Some function don't need to be implemented if they return the same as the baseclass;
- and more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35873 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 21:35:13 +00:00
Abdelrazak Younes
716cfaea68
Another compile fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35872 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:18:50 +00:00
Abdelrazak Younes
ea96796437
Compile fix, sorry.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35871 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:15:35 +00:00
Abdelrazak Younes
190439eccf
GuiNomencl.xxx: Rename to be in line with class name.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35870 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:05:38 +00:00
Abdelrazak Younes
ee535fa8ea
Migrate GuiNomencl to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35869 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:01:49 +00:00
Abdelrazak Younes
585f8b9fda
Migrate GuiLabel to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35868 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 17:25:55 +00:00
Abdelrazak Younes
26dc500557
Migrate GuiHyperlink to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35867 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 17:02:42 +00:00
Abdelrazak Younes
77713af558
InsetParamsDialog: fix Restore button enabling/disabling.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35866 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 12:55:57 +00:00
Vincent van Ravesteijn
e52a8ba627
Revert r32909: make input completion case sensitive again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35864 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 08:45:21 +00:00
Vincent van Ravesteijn
49beed7437
Fix bug #6989 : Be somewhat more secure with the homebrew dynamic asserts that were changed in r35855.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35863 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 07:04:58 +00:00
Vincent van Ravesteijn
faab3618ae
Fix two potential crashes due to invalid static_casts.
...
An example of a fatal function call is "gotoInset(this, NOTE_CODE, true)". Luckily we don't check for the contents in LFUN_NOTE_NEXT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 00:42:43 +00:00
Kornel Benko
48a8d24328
Make it compilable, missing parentheses
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35859 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 19:38:45 +00:00
Vincent van Ravesteijn
afc87eb625
Let's add one step of security more here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35858 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 17:00:43 +00:00
Jürgen Spitzmüller
74b9bce881
* GuiDocument.cpp: translate module names also in descriptions (bug 6987)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35857 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 16:53:59 +00:00
Vincent van Ravesteijn
07924ac300
Remove some unnecessary static_casts and add two FIXMEs about casts that don't look safe.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35856 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 16:45:21 +00:00
Vincent van Ravesteijn
573500dd04
Remove unneccessary uses of dynamic_cast from the code.
...
A dynamic_cast is necessary when:
- the object to be casted is from an external library because we can't add Qxxx::asXxxx() to Qt e.g.:
* QAbstractListModel to GuiIdListModel,
* QValidator to PathValidator,
* QWidget to TabWorkArea,
* QWidget to GuiWorkArea;
- the object is to be casted from an interface to the implementing class, because the Interface does not know by whom it is implemented:
* ProgressInterface to GuiProgress,
* Application to GuiApplication.
A dynamic_cast can be replaced by:
- already existing as***Inset() functions, e.g.:
* asHullInset(),
* asInsetMath()->asMacro(),
* asInsetText();
- a static_cast when we are sure this can't go wrong, e.g.:
* we are sure that CellData::inset->clone() is an InsetTableCell,
* in cases where we explicitly check it->lyxCode().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 15:03:51 +00:00
Vincent van Ravesteijn
8d10d82392
Buffer: Rename function names:
...
- rename readFromVC to extractFromVC because this function actually doesn't read anything as compared to readEmergency, readAutosave and so on.
- rename readEmergency and readAutosave to loadEmergency and loadAutosave just like loadLyXFile and loadThisLyXFile. Only in loadThisLyXFile we switch to the actually reading of a file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35854 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:27:06 +00:00
Vincent van Ravesteijn
6ba6d4120d
Compile fix.
...
I forgot this in the previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35853 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:19:26 +00:00
Vincent van Ravesteijn
f311377671
Buffer: Make Buffer::readFile() private.
...
It's strange to have a public interface which has a function loadLyXFile and a function readFile. A user of this class will be confused about the difference.
Therefore, loadThisLyXFile will be next to loadLyXFile to stress that loadThisLyXFile will not load another file ;). I don't know whether all of you like that this function just calls readFile, but it feels good this way. All public paths for loading a file will now go through loadThisLyXFile (i.e. the paths that come from loadLyXFile), while readFile is a pure private function. If this doesn't make sense, just shout.
I think this improves the readability of the class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35852 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:17:10 +00:00
Vincent van Ravesteijn
9063402fca
Buffer.h: Cleanup, Sorting, and Improvements:
...
- group the read and emergency/autosave functions,
- add comments to the functions,
- adjust visibility of functions,
- add FIXMEs to some functions which are still unneccesarily public.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35851 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 12:54:31 +00:00
Vincent van Ravesteijn
5518b04248
Adjust comments to the truth.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35850 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 12:34:04 +00:00
Uwe Stöhr
dbe3d79e15
InsetTabular.cpp: remove comment, we already discussed this and the star as default was the result
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35847 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 02:02:10 +00:00
Vincent van Ravesteijn
8693ae474b
Proper implementatiom of isInToc()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35846 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 01:10:19 +00:00
Vincent van Ravesteijn
2e42a7b645
We don't want InsetCommand to have a function updateCommand while this is not a special function of an InsetCommand, but only accidentally a shared function of two children. So, in this case I think we should just (dynamically) cast these objecten and call their own insetCommand function.
...
This also fixes compilation again. I forgot to cherry-pick all commits in git ;)...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35845 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 23:20:05 +00:00
Uwe Stöhr
b7764dbe42
InsetCommand.h: revert my last commit - makes it worse than it helps as quick workaround
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35843 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 22:13:52 +00:00
Uwe Stöhr
8a4933f250
InsetCommand.h: reintroduce updateCommand from r35840 to make it compilable (this void is used in CutAndPaste.cpp); Vincent, can you please have a look?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35842 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 21:51:28 +00:00
Enrico Forestieri
f967cd1c45
Proper fix for #6967 that does not reintroduce #6793
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35841 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 21:36:25 +00:00
Vincent van Ravesteijn
6e0f8f89b0
InsetCommand.h: Reorder and add comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35840 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 20:20:44 +00:00
Vincent van Ravesteijn
f270358904
Correct toc to floatlist
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35839 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 19:53:40 +00:00
Stephan Witt
85b1bba640
in client server mode CVS does not like full path operand for directory operation; LyX is in the repo dir already, so "." is used as target
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35836 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 17:49:45 +00:00
Vincent van Ravesteijn
e48942bbbb
Fix bug #6550 : "Any Changes will be lost" even when there are no changes.
...
Patch from JOhn McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35835 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 16:10:01 +00:00
Richard Heck
3e53707570
Little bit of cleanup, motivated by need to squash a warning.
...
The only substantive change here is moving the markDirty() call into the
first case. If we don't load the file successfully, then there is no
need to mark dirty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35834 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 15:33:51 +00:00
Vincent van Ravesteijn
314232d2ff
Properly convert from ReadStatus to boolean.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35833 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 15:21:08 +00:00
Vincent van Ravesteijn
80a09f4ea6
Merge readFile and readFile; and readFile and readString.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35832 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 14:14:44 +00:00
Vincent van Ravesteijn
5a30a98346
Buffer.cpp:
...
Extract convertLyXFormat function that runs LyX2LyX.
(and some compile fixes)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35831 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:55:39 +00:00
Vincent van Ravesteijn
5f9b12ec39
Buffer.cpp:
...
We need to save the checksum of the requested file. Not of the autosave file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35830 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:32:38 +00:00
Vincent van Ravesteijn
aab708c594
Buffer.cpp:
...
- Move the saveCheckSum to both autosave file as emergency file read function.
- Extract the function parseLyxFormat.
- Improve comment about the older LyX format numbers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35829 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:29:50 +00:00
Stephan Witt
c6d4080694
#6396 no dialog when no doc changes were done and check-in or revert is done
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35828 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:27:48 +00:00
Vincent van Ravesteijn
80a5dd8144
Buffer.cpp:
...
- Move some lines of code to more proper places.
- Let Buffer::readFile(FileName const &) return ReadStatus as well.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35827 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:04:13 +00:00
Vincent van Ravesteijn
c1a1d16967
Centralize the generation of the emergency and autosave filenames.
...
Forgot this one in the previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35826 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:46:16 +00:00
Vincent van Ravesteijn
375db69d99
Centralize the generation of the emergency and autosave filenames.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35825 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:31:22 +00:00
Richard Heck
5cd48620f1
Return early again if there's nothing to do. Also, mark the buffer dirty
...
only if we manage to read the autosave file successfully.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35824 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:24:15 +00:00
Vincent van Ravesteijn
1d55e97b2d
Oops.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35823 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:19:39 +00:00
Vincent van Ravesteijn
1102636923
FFix warnings in Buffer::readString.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35822 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:18:09 +00:00
Richard Heck
1edd77ca30
Lessen indentation by returning early if there's nothing to do.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35821 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:14:10 +00:00
Vincent van Ravesteijn
df1c5ef611
Refactor Buffer.cpp: loadLyXFile():
...
- make a new function readFromVC(),
if the file does not exist, try to extract it from the version control (RCS),
- make a new function readEmergency(),
try to read the emergency file that is associated to the file we are trying to read,
- make a new function readAutosave(),
try to read the autosave file that is associated to the file we are trying to read,
- merge loadLyXFile() and readFileHelper(),
this new function now determines which file to read.
- add more ReadStatus elements to describe failures.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35819 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 11:57:56 +00:00
Vincent van Ravesteijn
75773f3c22
Use Buffer::ReadStatus as a return value for Buffer::loadLyXFile.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35818 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 10:18:42 +00:00
Vincent van Ravesteijn
058035bf2c
One should use dynamic_casts for inheritance-based casting.
...
(This is a little necessary clean-up of my tree.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35817 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 09:49:24 +00:00
Stephan Witt
a2c998d5d0
avoid warnings for unused parameters
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35816 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 08:12:01 +00:00
Stephan Witt
bcbe6ae960
* implementation of status check and use it for checkIn and revert.
...
helps the user to avoid errors and leads to more informative messages.
* implementation of diff and use it for the repoUpdate operation.
* add the check for merge conflicts in checkOut.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 05:37:04 +00:00
Vincent van Ravesteijn
ba19e8b5dd
Fix bug #1839 : Ctrl+arrows don't move to next/prev table cell.
...
Patch from Punyashloka Biswal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35812 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 01:18:48 +00:00
Vincent van Ravesteijn
9fbc3dd5ba
Fix bug #5878 : Cursor position not restored in hidden documents.
...
A hidden document does not have an associated Cursor. So, each time we create a new workArea, we should restore the cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35811 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 23:41:15 +00:00
Vincent van Ravesteijn
1a9fe125f6
Update the cursor shape also when the cursor shape changes without a mouse move actions.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 22:14:31 +00:00
Pavel Sanda
0590c77d47
gcc spits out million warnings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35807 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:46:28 +00:00
Edwin Leuven
4e5d3469f6
have pointing cursor when hovering something clickable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35806 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:41:47 +00:00
Vincent van Ravesteijn
943288066d
Fix bug #6968 : isExternallyModified remains "true" after "Revert to Saved".
...
I forgot to save the checksum after reloading.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35805 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:38:19 +00:00
Vincent van Ravesteijn
72a93582b0
Add virtual bool Inset::clickable(..) to be used to change the cursor.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35804 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 20:11:40 +00:00
Vincent van Ravesteijn
72569c42ba
Implement mouse hovering for InsetExternal.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35803 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 19:25:36 +00:00
Vincent van Ravesteijn
a77d991e24
setMouseHover() functions can be const.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35802 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 19:24:36 +00:00
Vincent van Ravesteijn
8a550ba48a
I don't like negated logic. Especially not if it leads to the use of more !-operations.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 17:27:32 +00:00
Stephan Witt
4b7ad8b864
validate version control status after buffer save-as, avoid that for saveBuffer()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 17:14:10 +00:00
Vincent van Ravesteijn
70ed1095ec
Fix bug #6967 : Insert->Display Math should not insert a numbered formula and vice versa.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 16:12:22 +00:00
Stephan Witt
6749b1fa0a
invalidate vcs data if user cancelled the registrer operation, otherwise the registrer cannot be called again
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35798 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 13:26:00 +00:00
Pavel Sanda
6147f97ddd
Fix #6966 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35797 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 20:17:41 +00:00
Stephan Witt
b2137a65de
validate version control status after buffer save or save-as
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 18:35:13 +00:00
Peter Kümmel
d0feccc7ed
switch mouse to busy symbol every 3 seconds and then back to show the
...
user something is done in the background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35795 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 10:49:45 +00:00
Jürgen Spitzmüller
d2b7bb6525
compile fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 08:29:57 +00:00
Vincent van Ravesteijn
f3ed8071d8
Fix #6597 : LyX Appears frozen if the process holding the clipboard is frozen
...
Implements CacheMimeData type so that we only need to query the
clipboard once on startup and once each time the contents of the
clipboard change. This is important as Qt takes 5 seconds to time-out when the clipboard is non-responsive.
Patch by John McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:21:58 +00:00
Peter Kümmel
ad51a8e88e
bind makes a copy of the arguments by default. This is secure if the
...
bound object survives the existance of the arguments, but it also breaks
"change by non-const reference" parameter passing, like in
Alert::askForString. Here the arguments exists the whole bound function
call so we could pass by refernce.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:06:22 +00:00
Vincent van Ravesteijn
d9c6263c6a
Fix crashes and asserts if LyX doesn't have a view (on Mac for example).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 20:54:18 +00:00
Vincent van Ravesteijn
56bce65dd0
Restructure processFuncRequest* function family:
...
- move a comment back from to GuiApplication to GuiView.cpp, so we have the comment in the place where we decide to process the func request asynchronously;
- rename dispatchDelayed to processFuncRequestAsync to have the same terminology as in the other processFuncRequest* methods;
- introduce a new function processFuncRequest to complete the set of processFuncRequest* methods. It is strange that for the normal processFuncRequest one should suddenly use lyx::dispatch. Besides, I think it is good that the whole GUI will dispatch funcRequests through GuiApplication::processFuncRequest from now on;
- use the slotProcessFuncRequestQueue to relay to processFuncRequestQueue;
- properly camelBump addToFuncRequestQueue;
- group the implementation of the processFuncRequest* functions;
- document the side-effect of processFuncRequestAsync.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 18:08:21 +00:00
Vincent van Ravesteijn
f6c7f63f0b
GuiApplication.h cosmetics:
...
- reorder some function declarations,
- remove some declarations from the list of functions that inherit from Application,
- add and clarify some comments,
- whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:53:09 +00:00
Richard Heck
723b619317
Typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:08:57 +00:00
Jürgen Spitzmüller
a94fe452ff
Fix bug 6944: crash on drag and drop multiple files
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35779 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 15:46:46 +00:00
Jean-Marc Lasgouttes
9ebd4405cf
Make sweave process files with the correct encoding ( #6625 ).
...
The required the introduction of the new converter token $$e, that holds
the iconv name of the latex file encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 07:51:39 +00:00
Richard Heck
b7b5c8cecd
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35764 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 22:04:06 +00:00
Peter Kümmel
d3392418c4
use QWaitCondition instead of QEventLoop for waiting on GUI thread-call finished, it's cheaper
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35763 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 21:29:08 +00:00
Richard Heck
eafafd8121
Revert r35760, as suggested by Vincent.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35762 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:33:29 +00:00
Richard Heck
c5200a848e
This one didn't make it to Unicode for some reason.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35761 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:15:31 +00:00
Richard Heck
1f87b2ef5d
Restore should, uh, restore the initial state. Other half of #6964 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35760 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:25:15 +00:00
Richard Heck
74c8cfc5f5
Fix bug #6964 . Problem was that we always saw the first branch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:20:12 +00:00
Richard Heck
5aba6f4fab
Make this a switch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35758 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:01:06 +00:00
Richard Heck
bfa9991f93
Fix bug #6962 . I hadn't see how these were being escaped.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:56:00 +00:00
Richard Heck
1c059dba29
Simplify comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:53:21 +00:00
Vincent van Ravesteijn
725591221f
Fix bug #6963 : LaTeXUi.ui: add some accelerators and fix some clashes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35751 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:06:06 +00:00
Abdelrazak Younes
e0f9645186
DialogView: make GuiView the parent widget to partly solve bug #6710 .
...
This make sense anyway for all dialogs to be above the GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:40:49 +00:00
Jürgen Spitzmüller
2cf666e3cd
* InsetCommandParams.cpp (prepareCommand):
...
- properly terminate LaTeX macros (reported in bug 6959).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35746 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:16:28 +00:00
Peter Kümmel
9cfeaf4c0a
only connect when needed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 08:02:09 +00:00
Peter Kümmel
cf570e0a8d
update .am files
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35742 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 01:15:12 +00:00
Peter Kümmel
fc8d5ee0b6
enable EXPORT_in_THREAD to prevent gui calls in non gui-threads
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35741 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:24:57 +00:00
Peter Kümmel
f54200b078
no QtGui in support
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35740 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:07:48 +00:00
Peter Kümmel
391634eb67
first include config.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35738 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:58:22 +00:00
Peter Kümmel
699ff50301
line ending
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35736 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:51:31 +00:00
Peter Kümmel
c259957b69
add generic helper class for calling functions in gui thread
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35735 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:50:49 +00:00
Uwe Stöhr
e35f55975e
GuiTabular.cpp: fix #6957
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:35:05 +00:00
Uwe Stöhr
8c4b64cf83
TabularUi.ui: fix position of spacer to make alignment entry "At Decimal Separator" readable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35733 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:33:32 +00:00
Peter Kümmel
a024d3aee6
use bind, is this really better?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 01:45:51 +00:00
Richard Heck
00e6dfb14b
Make updateMacros() descend into tables. Fixes #6897 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35718 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:36:11 +00:00
Richard Heck
65e871e100
Cut and paste solution to get export working. The issue is that the old
...
exportAndDestroy was calling:
buffer->doExport(format, true, update_unincluded);
where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35717 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:34:13 +00:00
Richard Heck
97910b056e
Revert r35715. Didn't mean to commit both.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35716 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:33:39 +00:00
Richard Heck
a773428fce
Cut and paste solution to get export working. The issue is that the old
...
exportAndDestroy was calling:
buffer->doExport(format, true, update_unincluded);
where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35715 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:10:13 +00:00
Vincent van Ravesteijn
4968c32293
Fix bug #6950 : Cursor remains in waiting state after incompatible command.
...
P.S. How do we prevent other cases like this? By throwing exceptions, we never know whether it's assured that we will return to the function to call setBusy(false). In JAVA you always have to either make a function throwable or to catch the exception, but AFAICS you have to crawl through the code to find out whether a function can throw an exception.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35714 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 10:42:54 +00:00
Vincent van Ravesteijn
152491f916
Some cosmetics (from my local cosmetics branch).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35708 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 14:20:03 +00:00
Vincent van Ravesteijn
5b2ede473e
Let asyncBufferProcessing return a value also if EXPORT_in_THREAD is turned off.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35706 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 11:30:30 +00:00
Peter Kümmel
e237d57020
fix formatting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35704 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:59:23 +00:00
Peter Kümmel
75a9d47628
fix comment:
...
We have to copy the files because export is asynchronous now,
What about the children?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35703 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:55:01 +00:00
Vincent van Ravesteijn
f35d1a2a4c
Fix bug #6869 : Crash when unindenting empty lines in listings inset.
...
- Remove some duplicated code;
- Do not call par.getChar(0) when the par is empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:48:29 +00:00
Peter Kümmel
131edd61dc
For testing: export asynchronous, #412
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35701 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:16:32 +00:00
Peter Kümmel
c5cf867e89
also use update_unincluded for preview,
...
maybe we could use bind here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35700 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:35:33 +00:00
Peter Kümmel
c54fd8c74a
split out common async code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35699 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:31:50 +00:00
Peter Kümmel
d3312032ee
I assume this was a c&p error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35697 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:23:29 +00:00
Peter Kümmel
40d2aed83a
prepare splitting out c&p code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35696 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:18:56 +00:00
Richard Heck
680b6e78e4
Fix bug #6953 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 18:46:35 +00:00
Peter Kümmel
496f7a23fd
Fix bug 6650: Error Messages Repeated
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35664 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 12:06:47 +00:00
Peter Kümmel
5520817bd3
Use DispatchResult also in GuiView::dispatchVC to handle messages.
...
Make it possible to suppress messages stored in DispatchResult objects.
BUG: 6417
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35662 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 10:44:53 +00:00
Jürgen Spitzmüller
ee2eabd416
* GuiDelimiter.cpp: disable cut and paste inside the listviews (bug 6942).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35654 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-15 07:12:49 +00:00
Richard Heck
ee7dd4a11e
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35653 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 20:49:34 +00:00
Richard Heck
aa473bb568
Comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35652 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:04:57 +00:00
Richard Heck
b1df2bd306
Move the screen redraw call out of the selection-setting routine. This
...
avoids multiple screen redraws in some cases.
If someone knows how to fix the FIXMEs in GuiErrorList and
GuiSpellcheker, I'd really appreciate it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35651 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:02:48 +00:00
Richard Heck
3af1fa5abb
I am basically trying here to get rid of random calls to
...
processUpdateFlags. This one is easy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35650 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:47:33 +00:00
Richard Heck
97b82d285d
Fix up some of the find and replace code again. This solves a bug
...
involving the messages and will also help sort out some dispatch stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35649 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:32:58 +00:00
Richard Heck
b3d854fc96
Update doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35648 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:27:05 +00:00
Richard Heck
4ff48f1d54
Need ifthen for this, too.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35647 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:02:49 +00:00
Pavel Sanda
0978e91ecf
This stuff is general enough for lstrings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35646 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 11:01:15 +00:00
Vincent van Ravesteijn
824780b8a9
Rowpainter.cpp: Squeeze warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35643 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 20:18:16 +00:00
Richard Heck
3fe55bccc4
const
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35642 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:59:24 +00:00
Richard Heck
03046ddfb0
We only need to set this once.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35641 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:58:12 +00:00
Richard Heck
e9cf7aabcb
Const.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35640 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:57:57 +00:00
Richard Heck
d3e4bfb124
Change how some of the updating stuff is handled in lyxfind. I had no
...
idea what a mess this was.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35639 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:53:41 +00:00
Richard Heck
3b00f19cc2
Anonymize some things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35638 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:30:37 +00:00
Richard Heck
9511e345c1
Why have an argument in an anonymous method if you aren't going to use
...
it?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35637 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:27:40 +00:00
Richard Heck
77a9dfcdba
More find cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35636 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:24:53 +00:00
Richard Heck
b261a6d247
Begin some cleanup of the find code. I'm trying to sort out some odd
...
dispatch behavior, but can't understand this code as it is. Why isn't
there any documenation here?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35635 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:19:21 +00:00
Richard Heck
07fd1d6b63
The inset DOES know what kind of update is needed, and it is supposed to
...
be telling us. I'm not sure why this wasn't being used any more.
If we find any missing updates, it may be because the inset dispatch
stuff wasn't doing its job.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35634 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:06:01 +00:00
Richard Heck
2e1d9ee944
Clean up a few update things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35633 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:04:44 +00:00
Richard Heck
f0833aa774
This is already done by the previous call.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35632 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:03:10 +00:00
Richard Heck
6a80ce62ca
DispatchResult::update() ==> DispatchResult::screenUpdate()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35631 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 17:28:55 +00:00
Richard Heck
35eb1a2405
Fix bug #6316 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35630 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 17:12:25 +00:00
Stephan Witt
db16795b32
whitespace correction
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35627 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 16:01:06 +00:00
Richard Heck
85904c550d
Add ResetsFont tag to InsetLayout, toward fixing bug #5657 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35626 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 15:54:39 +00:00
Richard Heck
a08ab87d1e
Indicate alternative.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35625 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 15:10:57 +00:00
Richard Heck
28bf6a66ac
Fix #6948 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35624 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:43:13 +00:00
Richard Heck
01013c0785
Refstyle support. The user can now choose between prettyref and restyle
...
for formatted references. Fixes #2295 , in so far as it makes it possible
to translate formatted references.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:36:53 +00:00
Stephan Witt
3167edeb48
#6945 correct refresh range maximum on char erase
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35616 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 19:05:47 +00:00
Richard Heck
2a63b2d1cb
Customize getLayout for InsetFlex and change how we report name() back
...
to the simple version. We need to do it this way because we should NOT
really require the "Flex" prefix and, in fact, should permit other
prefixes to be used. Next commit for that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35613 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 15:37:02 +00:00
Richard Heck
226853c060
style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35611 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 15:07:27 +00:00
Richard Heck
d4634167cc
Get rid of "CharStyle:", "Custom:", and "Element:" prefixes, per a
...
suggestion of JMarc's. Docs to follow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35608 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 14:46:17 +00:00
Uwe Stöhr
e8a1fed47c
InsetBibtex.cpp:
...
- fix #1881 , fileformat change
- fix #6470
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35590 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-11 01:05:20 +00:00
Uwe Stöhr
5606b7d875
InsetBibitem.cpp: fix #5786
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35582 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-09 16:02:19 +00:00
Stephan Witt
034ee290b7
add implementation for CVS::checkOut
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35575 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:40:16 +00:00
Stephan Witt
fd341b3a0e
correct typo of button link init of open-from-template dialog
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35574 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:34:48 +00:00
Stephan Witt
1b93af1009
add some tests for LFUN_VC_REVERT and LFUN_VC_REPO_UPDATE
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35573 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:30:07 +00:00
Stephan Witt
de5aab29d4
add missing implementation of the check method for repo-update availability
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35572 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:26:12 +00:00
Stephan Witt
d87cdfa5e1
#5970 more exact modifier check for Tab keys filter
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35571 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:23:59 +00:00
Stephan Witt
0dc22fb82f
cell movement inside tables should not mark the document as modified
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35570 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:21:19 +00:00
Richard Heck
3b87f59e42
Fix bug #6929 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35564 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-05 15:21:14 +00:00
Uwe Stöhr
27423f93ba
InsetTabular.cpp: fix #6907 , patch by goriccardo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35561 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-05 01:14:34 +00:00
Stephan Witt
eec0a82dec
shift misspelled line slightly lower when inside running change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35558 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-04 18:18:37 +00:00
Stephan Witt
f9956c2d36
shift misspelled line slightly lower when inside running change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35557 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-04 16:26:12 +00:00
Stephan Witt
4127f57e32
#6796 add sizePolicy to get the size of pushbuttons proper in spell checker and find/replace ui
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35544 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-30 06:43:04 +00:00
Stephan Witt
e32396ba76
add missing spell check request on early return for deletion of text in change tracking mode
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35543 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:32:41 +00:00
Stephan Witt
cc7db294e2
#6917 correct spell check for deleted text in change tracking mode
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35542 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:31:16 +00:00
Stephan Witt
029ac601a8
disable the check box for compound word handling because of missing API for it with apples native spell checker
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35541 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:05:28 +00:00
Richard Heck
346f3aa503
Clean up this code a little bit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35540 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:14:20 +00:00
Richard Heck
4e799ee358
Simplify Buffer::allRelatives() now.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35539 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:07:12 +00:00
Richard Heck
5a46224f73
Remove the magic boolean in getChildren() from the public interface.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35538 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:05:57 +00:00
Richard Heck
a6d22abf03
Keep the "find the master" recursion in masterDocument().
...
We should probably be checking for recursive includes here, and we want
to do that in one place.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35537 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:55:39 +00:00
Richard Heck
da0f528287
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35536 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:50:45 +00:00
Richard Heck
d07c00032a
Simplify some of the find and replace code now, since allRelatives() is
...
stable and always has the root document at the beginning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35535 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:50:24 +00:00
Richard Heck
6a85b8a96e
I am pretty sure we do not want duplicates here. What's worse, recursive
...
includes could crash this if we allow them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35534 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:30:31 +00:00
Richard Heck
2f1af8892b
I prefer this style....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35533 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:19:57 +00:00
Richard Heck
1def3de92e
This doesn't need to be a vector. Should be no change of behavior.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35532 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:19:23 +00:00
Richard Heck
7ff1a60d12
Introduce Buffer::hasChildren() and use it.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35531 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:17:24 +00:00
Richard Heck
f5696b8872
Use getChildren() to collect all the relatives. Note that this makes
...
allRelatives() "stable", in the sense that what it returns does not
depend upon which Buffer we start with.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35530 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 11:59:31 +00:00
Richard Heck
2291614a6c
Introduce a typedef for vector<Buffer *>. No change in behavior
...
anticipated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35529 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 11:55:10 +00:00
Richard Heck
b05e674e6f
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35526 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-28 18:35:04 +00:00
Stephan Witt
1a681aaf24
#6917 move forward after adding a word to personal dictionary or the list of ignored words
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35525 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-28 15:09:06 +00:00
Uwe Stöhr
03a2216981
InsetGraphics.cpp and InsetInclude.cpp: whitespace fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35517 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-27 03:21:59 +00:00
Uwe Stöhr
b33182bc3d
filetools.cpp: introduce a new method to be able to distinguish between valid LaTeX filenames and filenames causing troubles on some DVI viewers.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35514 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-27 02:39:22 +00:00
Uwe Stöhr
f772315090
filetools.cpp: revert r35499 until we found a proper solution as discussed in http://article.gmane.org/gmane.editors.lyx.devel/129471
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 16:04:52 +00:00
Uwe Stöhr
052f689daa
filetools.cpp: fix #6916 - round parentheses are valid in filenames (they are even standard in paths in WinXP 64bit); they should also make no problems on UNIX systems
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35499 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 14:25:19 +00:00
Uwe Stöhr
9fa49ecafa
GuiPainter.cpp: correct attempt from r35491
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35498 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 14:14:50 +00:00
Richard Heck
4244a15ca3
Keeping the comma leads to bug #6914 , since we end up with mangled names
...
like:
0_tmp_the,_test_tst.bib
and then code like:
\bibliography{0_tmp_the,_test_tst}
which confuses LaTeX. Easy solution: Mangle the comma.
Jurgen, this is in branch, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35493 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 16:12:02 +00:00
Edwin Leuven
ad12fa6eb5
correct icon size in math panels
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35492 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 12:59:43 +00:00
Pavel Sanda
b1b1e13ad4
My compilator issues warning. Uwe, please check that this was intended.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35491 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 12:26:28 +00:00
Uwe Stöhr
3c9928285a
LineUi.ui: Qt's designer use XML as default - revert this from previous commit
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35489 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 04:29:07 +00:00
Uwe Stöhr
1557a6f2f9
LineUi.ui: a line has a thickness rather then a height
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35487 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 04:26:13 +00:00