Commit Graph

23650 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
3f40e63e1b Finally add some comments to the currentBufferView() and documentBufferView() functions.
Text from Tommaso (adjusted to my own taste) from the devel-list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33311 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 15:58:29 +00:00
Jürgen Spitzmüller
4b7f1b3c39 * GuiDocument.cpp: before accessing the buffer() in paramsToDialog(), check
if we have a bufferview() (fixes bug 6499)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33310 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 14:44:12 +00:00
Kornel Benko
0ba70d9328 Use better include for 'struct QHeaderView'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33309 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 09:54:41 +00:00
Kornel Benko
05aa189394 Make it compilable for QT4.3. (/usr/include/QtGui/qtreeview.h:51: error: forward declaration of ‘struct QHeaderView’)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33308 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 06:00:46 +00:00
Enrico Forestieri
a7c9c14b23 According to André, QLatin1String is cheaper.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33306 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-01 01:07:32 +00:00
Enrico Forestieri
10b3f73e19 Update it.po
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33305 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 23:49:00 +00:00
Tommaso Cucinotta
e9e6463de7 Removed obsolete FIXME (the invoked isInternal() method already does that).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33304 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 22:18:21 +00:00
Tommaso Cucinotta
dff3792986 Refactor of r33302 (addressing #6457) according to vfr comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33303 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 22:12:23 +00:00
Tommaso Cucinotta
0881479c48 Inhibits insertion of Regexp insets within InsetERT context (and fixes #6495).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33302 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 21:38:18 +00:00
Vincent van Ravesteijn
046a43fe5f Revert r33295. This seems to be a not so great idea. The assert already fires when copying something.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33301 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 20:51:15 +00:00
Uwe Stöhr
fcdad6f7e7 UserGuide.lyx: fix some typos and add an information
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 18:22:58 +00:00
Uwe Stöhr
d5a1c38bb4 - EmbeddedObjects.lyx: fix spelling of the KOMA-Script package
- English EmbeddedObjects.lyx: fix some typos

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 17:52:51 +00:00
Uwe Stöhr
13b8b19f6a UserGuide.lyx:
- accept most of Richard's changes
- fix some typos

(again: please add all non LyX 2.0-specific stuff only to the docs in branch.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33296 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 17:23:50 +00:00
Vincent van Ravesteijn
9065f48ead Add an assert to check for a fully loaded Buffer before trying to save it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33295 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 16:20:47 +00:00
Vincent van Ravesteijn
f0c386fa6b Fix bug #6491: Empty .emergency file causes crash.
If the load fails, we should not try to save an emergency file as the file was not yet fully loaded and weird things may happen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33294 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 16:17:17 +00:00
Vincent van Ravesteijn
d49438e76c Return failure if the file ended unexpectedly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33293 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 15:59:23 +00:00
Vincent van Ravesteijn
8f09cda025 Please Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 13:38:47 +00:00
Jürgen Spitzmüller
e916213ac0 * GuiSetBorder.cpp: lighter colour for disabled borders (not used currently).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 13:15:26 +00:00
Vincent van Ravesteijn
00bbabd00f Fix bug #6489: Assertion triggered when deleting contents of math ERT. (probably a stdlib assertion).
Do not access name_[0] if name_ has size 0.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33290 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 13:03:31 +00:00
Uwe Stöhr
126e78e408 EmbeddedObjects.lyx: fix several typos I have overwritten with r33287
(Please apply changes to the docs that are not LyX 2.0-specific only to branch, otherwise I loose the track.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 04:14:11 +00:00
Uwe Stöhr
55b2e360e6 EmbeddedObjects.lyx: fix a typo spotted by a user
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33287 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 03:53:31 +00:00
Vincent van Ravesteijn
c1c2629ffc Fix bug #5446: Cursor gets stuck in InsetInfo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 01:44:49 +00:00
Vincent van Ravesteijn
b7ff36304d Use Change::isSimilarTo to find a change when merging changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-31 00:21:52 +00:00
Uwe Stöhr
76b4383571 scons_manifest.py: fix SCons (tabs are invalid in this Python script)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33283 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 23:42:30 +00:00
Vincent van Ravesteijn
974c9ae069 Fix r33279.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33282 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 18:11:51 +00:00
Vincent van Ravesteijn
0dbfbabc6b Move the message() function from lfunUiToggle to GuiView::dispatch(). Also, let the lfunUiToggle return a bool and let the parameter be a string instead of the FuncRequest.
(Pavel, what was "FuncRequest fr(LFUN_INSET_INSERT, "fullscreen")" supposed to mean ?).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33279 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 16:41:28 +00:00
Vincent van Ravesteijn
6ab07eb870 Do not set the statusbar message in GuiView::toolbar(). We don't really want to see the statusbar message when this function is called from initToolbars or from LFUN_COMMAND_EXECUTE. Instead, set the message in getStatus to indicate why the LFUN cannot be executed.
Also, disable the LFUN if the toolbar is not found.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 16:07:53 +00:00
Vincent van Ravesteijn
8186ecfef9 Use the DispatchResult also for LFUN_MESSAGE and LFUN_BUFFER_WRITE_ALL.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33277 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 15:40:18 +00:00
Abdelrazak Younes
db19378bbe GuiInfo: Migrate [New] push button slot to InsetDialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33276 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 15:30:49 +00:00
Vincent van Ravesteijn
01897c7013 Fix assertions when there is no document open and the LFUN is handled by GuiView::dispatch().
This was forgotten in r33258.

(also reported as bug #6484)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33275 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 15:12:44 +00:00
Jürgen Spitzmüller
971d1fb7a4 GuiRef.cpp: sort categories.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33273 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 12:13:00 +00:00
Peter Kümmel
3f379915a6 CMake: fix merged build, seems GCC could not handle the namespaces correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33272 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 11:34:28 +00:00
Jürgen Spitzmüller
f6e81bbb95 * GuiRef: improve filter UI
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33271 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 11:19:48 +00:00
Abdelrazak Younes
d3487d106c Inset::validateModifyArgument(): new virtual interface for using LFUN_INSET_MODIFY.
GuiInfo: extract generic code into new class InsetDialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33270 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 11:15:05 +00:00
Jürgen Spitzmüller
10caadcdbe * FindAndReplaceUi.ui: adapt tooltips
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33269 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 10:56:20 +00:00
Jürgen Spitzmüller
e0d2a2adff Add search and grouping facility to Crossref dialog (bug #6304).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33268 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 10:51:24 +00:00
Tommaso Cucinotta
c0d42b97ee Made replace behaviour more standard: when pressing replace (next or previous) button:
-) if a selection exists, and it matches, then it is replaced;
-) next match is searched for and, if found, it is selected.
After a replace, next match is searched for only beyond the replaced text
(and not inside the replaced text).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33267 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 10:11:24 +00:00
Vincent van Ravesteijn
973968afce Fix a crash when the child document is already closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33266 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-30 00:50:36 +00:00
Vincent van Ravesteijn
8c5626cf13 Use the Buffer::reload() function also in buffer_func.cpp::checkAndLoadLyXFile().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33265 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 21:09:59 +00:00
Jürgen Spitzmüller
3410d6ad3e revert unintended commit parts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33263 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 14:52:15 +00:00
Jürgen Spitzmüller
425d092204 * fix spelling in comments to please John.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33262 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 14:44:21 +00:00
Jean-Marc Lasgouttes
167b6dc0f2 Make LFUN_HELP_OPEN open the document in read-only mode.
This fixes problems where Mac users can modify the documentation
by mistake. Note that it is still possible to open those document by
explicit path or to toggle off the read-only status (but this is only
useful to documentors anyway).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33260 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 12:01:17 +00:00
Jean-Marc Lasgouttes
a1e991a82e Get rid of the errorstat and dispatch_buffer members of LyXFunc.
This required to make Cursor::disp_ mutable.

Also, the server parts now pass a DispatchResult object to dispatch (which is
a good thing anyway).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33259 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 11:22:33 +00:00
Jean-Marc Lasgouttes
00338d3747 add a dispatchresult parameter to lyxview::dispatch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33258 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 10:42:39 +00:00
Jürgen Spitzmüller
818aeeddc6 * de.po: resolve some conflicting shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33257 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 10:06:58 +00:00
Jürgen Spitzmüller
1d6745f618 * po/*.po: remerge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33256 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 09:04:24 +00:00
Jürgen Spitzmüller
676aca028d * FindAndReplace.cpp:
- correct strings, following the attempt at r33252.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33255 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 08:59:09 +00:00
Jürgen Spitzmüller
d907d5421e * GuiView.cpp:
- use tabbed dock area for multiple docks (such as "source" and "messages")
	  by default (requires Qt 4.3).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33254 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 08:19:45 +00:00
Tommaso Cucinotta
52c059e68a Make the fake sequence for braces highly unlikely (addressing #6478).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33253 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 07:35:13 +00:00
Tommaso Cucinotta
a75fd08b65 Changed "from begin" to "from the beginning", as suggested by gmatht (in #6478)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33252 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-29 07:29:25 +00:00