Commit Graph

369 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
658cee5ad4 Do not create a new file after 'new from template..' and cancel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:29:06 +00:00
Vincent van Ravesteijn
bd97d99c9a Add comment about r27991.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 09:56:37 +00:00
Vincent van Ravesteijn
cc3b9c61cf Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27991 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 00:00:19 +00:00
Georg Baum
ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Vincent van Ravesteijn
10b88864a8 Add *.lyx16 filter to File->Open..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-30 19:14:34 +00:00
Vincent van Ravesteijn
9c9cdd3912 Fix bug 5507: Full screen hangs LyX when no file is opened
http://bugzilla.lyx.org/show_bug.cgi?id=5507

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27744 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 17:29:13 +00:00
Vincent van Ravesteijn
d6f4fb4944 Some fixes for the buttons of the Document and Preferences dialog:
http://bugzilla.lyx.org/show_bug.cgi?id=5295
- set the bc status to INITIAL when the dialog is initialized, and
- enable the restore button in the Document dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:12:39 +00:00
Pavel Sanda
45624a5864 Since meeting we have new codename :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 01:38:18 +00:00
André Pönitz
f8f5a7b28d move updateLables to buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:43:49 +00:00
Stefan Schimanski
f54ef5c173 * open popup on complete-accept if there is a completion available
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:34:16 +00:00
André Pönitz
ad4f5eec6c even less framing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 15:32:11 +00:00
André Pönitz
be16d48d5d remove mourning border from workarea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 14:36:55 +00:00
Abdelrazak Younes
deef2728c7 The rest of Tommaso patch with some cleanups. Not very clean still but at least it compiles!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 01:20:34 +00:00
André Pönitz
8e2f971ada remove ispell and pspell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27472 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 18:47:25 +00:00
Pavel Sanda
25079068ea Fix fullscreen & settings dialog. Very annoying one.
http://bugzilla.lyx.org/show_bug.cgi?id=5274


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27460 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 16:33:02 +00:00
Stefan Schimanski
f9f5c3baa5 * proper mechanism to dispatch FuncRequests delayed, i.e. when the event loop is idle again
* fixes http://bugzilla.lyx.org/show_bug.cgi?id=5447

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 16:29:58 +00:00
André Pönitz
baa22609da latin1->utf8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27424 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:29:47 +00:00
André Pönitz
1fc477efac thrid attempt at changing the naming pattern of the intermediated 'mocced' files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27420 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 14:28:50 +00:00
Stefan Schimanski
5d9b126c96 * Fix for http://bugzilla.lyx.org/show_bug.cgi?id=5387
Gui is not setup yet when the file is opened from clicking on it in Finder
  with a closed LyX. We have to wait until the batch commands are executed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27264 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 14:04:37 +00:00
Stefan Schimanski
09399b45f7 * Trivial fix to set the icon size to normal, not 32 as Qt sets it by default on Mac (fixes #5388)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 09:06:50 +00:00
Stefan Schimanski
e8d264e998 * don't rely on the restartCursor call to update the dialog on fullscreen switch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 20:46:53 +00:00
Stefan Schimanski
eb80fcdf69 * fix crashing special menu items on Mac after preferences have been changed.
* fix duplicated special menu items in Mac (fixed bug #5168)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-22 18:02:09 +00:00
Abdelrazak Younes
b23058c578 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5319
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-15 08:42:43 +00:00
Abdelrazak Younes
e29edccc3f GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:17:22 +00:00
Abdelrazak Younes
ac55ec0f56 It seems that somebody added the code to show the dockwidget at layout restoration time. This is wrong so I reverted this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:12:58 +00:00
Abdelrazak Younes
4ea899a7af Make sure that the focus is correctly set before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26690 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:54:32 +00:00
Abdelrazak Younes
d8a6c1fc1e potential bug fix, reported by Richard:
Open LyX. Open a new window. Open a new window. Close the first. Close the second.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:38:51 +00:00
Abdelrazak Younes
7bd33462a0 Avoid a complete Toc reset in case when only a toc item update is needed.
* Buffer: new updateTocItem() signal (with Delegates and GuiView associates).
* TocBackend: take care of the signal emission instead of the Cursor::checkBufferStructure()
* TocModel: new updateTocItem() method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:50:54 +00:00
Abdelrazak Younes
3a0ee2070c Add fall back code to assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 08:42:18 +00:00
Jean-Marc Lasgouttes
1db80d4df6 make sure that INSET_APPLY dispatching is inside an undo group
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26539 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 13:20:53 +00:00
Abdelrazak Younes
475a48b78d GuiView::saveLayout(): Use QSettings::beginGroup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 06:50:35 +00:00
Abdelrazak Younes
305079fb23 X11 compil fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26489 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-22 06:48:08 +00:00
Abdelrazak Younes
ed1122f86b Use QSettings::beginGroup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 22:34:19 +00:00
Abdelrazak Younes
8e4d2d66ce Reset the geometry and ui settings whenever a change in the ui files is selected. This commit will destroy any current geometry session. The "view-id/" nodes are converted into "view/id/" nodes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26484 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-21 21:28:37 +00:00
Jean-Marc Lasgouttes
d585528d50 fix properly http://bugzilla.lyx.org/show_bug.cgi?id=2040
* BufferView.cpp (setCursorFromInset): new method, useful to find
	an inset that is known to be in the document.

	* frontends/qt4/GuiView.cpp (dispatch): do a proper recordUndo
	befire appplying changes to an inset. The insets are responsible
	for recording additional undo steps that could be needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26428 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-17 14:51:27 +00:00
Jean-Marc Lasgouttes
cf7fdf78bb fix a bunch of harmless warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-16 11:33:07 +00:00
Pavel Sanda
1d25a38fc1 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26362 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:21:14 +00:00
Pavel Sanda
a6df920f6b Try to fix the rest of bug http://bugzilla.lyx.org/show_bug.cgi?id=5082 .
(Initialize dialogs after lyx launch).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26359 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 02:02:56 +00:00
Pavel Sanda
e6a27a4724 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5234 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 15:46:23 +00:00
Pavel Sanda
cc5d0478c6 Move code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:27:07 +00:00
Pavel Sanda
375a2e6e1c Add completion-accept lfun.
Fixes first part of http://bugzilla.lyx.org/show_bug.cgi?id=5062 .

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143281.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26331 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:24:47 +00:00
Stefan Schimanski
f6084eaaa9 * LFUNs complete and complete-cancel. No key interception anymore. For now you have to bind the two LFUNs yourself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:13:55 +00:00
Richard Heck
1c5003c4ef Make sure that in_show_ is reset to false, even if an exception is thrown
when we're trying to show a dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:25:56 +00:00
Richard Heck
8c6ba1dd6c Patch from Vincent. This resets the window title appropriately, after
the last BufferView has been closed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-11 12:57:02 +00:00
Pavel Sanda
c611a1311e Disabling Fullscreen menu feature under X11, until bug
http://bugzilla.lyx.org/show_bug.cgi?id=4888 is fixed.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-05 13:03:31 +00:00
Pavel Sanda
d3e62cfe31 Better string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 13:25:07 +00:00
Pavel Sanda
432c3b23ce VCS: add some message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25973 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 11:55:27 +00:00
Abdelrazak Younes
d56faa70c4 BufferList::getBuffer(): migrate to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25958 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 08:16:09 +00:00
Jürgen Spitzmüller
89af456100 * GuiView.cpp:
- disable non-working splitting actions (bug 5044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 13:17:46 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
11e1821284 Fix crash when tab group is closed while Outline is opened.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:44:50 +00:00
Abdelrazak Younes
a54850d762 GuiApplication::resetGui(): reset as many things as possible, including menus and toolbars (not sure about Mac global menubar yet). This means that except for already opened dialog, all ui rc settings are taken into account without the need to restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 18:03:38 +00:00
Abdelrazak Younes
162b3b3b30 Fix toc and source-view initial showing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 07:23:30 +00:00
Pavel Sanda
07af8fecb5 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 23:07:38 +00:00
Abdelrazak Younes
c3727bc147 fix initial outline disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:43:43 +00:00
Abdelrazak Younes
efd6dc8a0c One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:35:42 +00:00
Abdelrazak Younes
2ab92aba67 retro commit a bit. Should hopefully fix the crashes on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 20:48:49 +00:00
Abdelrazak Younes
65b37dfbb8 Some more fixes to multi-windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 17:30:30 +00:00
Abdelrazak Younes
4441cd8a4a GuiView::on_lastWorkAreaRemoved(): the window closing doesn't have to be delayed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:55:34 +00:00
Abdelrazak Younes
fb47b716d7 Polish the one window per document user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25325 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:39:15 +00:00
Abdelrazak Younes
b5252b737f Don't close child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 14:53:08 +00:00
Abdelrazak Younes
28b77e4f72 GuiView: Moving updateStatusBar() out of updateDialogs() because this is no end of trouble WRT recursive paintings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:00:36 +00:00
Abdelrazak Younes
158863fd3b TocWidget: Small reorg in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=4940
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 18:13:14 +00:00
Abdelrazak Younes
16420e5263 Allow the toc and view-source dock widget to be restored if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:01:45 +00:00
Abdelrazak Younes
f276338227 Preliminar InsetInfo dialog. This was done as an exercise to show Bo (an others) how easy it is to create a new dialog. This dialog needs to be filled in, right now, there is just an OK button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:08:46 +00:00
Richard Heck
77ed747114 FuncStatus::enabled(bool) --> FuncStatus::setEnabled(bool)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 15:14:00 +00:00
Abdelrazak Younes
891cfdda68 bug fix with minibuffer focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 17:29:36 +00:00
Abdelrazak Younes
7e127a496b fix focus problem with minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 16:15:56 +00:00
Abdelrazak Younes
af442b7369 fullscreen tweaking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:30:40 +00:00
Abdelrazak Younes
57fb699944 Temptatively fix fullscreen problems on X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24960 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:16:50 +00:00
Abdelrazak Younes
a2db0e8ed4 Fix crash with multiple windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:33:06 +00:00
Abdelrazak Younes
5c0c53ccf8 Switch off fullscreen before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:01:50 +00:00
Abdelrazak Younes
1c7f411c10 save/restore toolbars state when toggling fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:34:59 +00:00
Abdelrazak Younes
7bb8a5f183 Re-engineer the toolbar support code:
- We now rely more upon Qt features,
- the initial toolbar positioning defined in "lib/ui/default.ui" is now only used if there is no session or if session handling is disabled,
- The session saving/restoring is window dependent.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:15:17 +00:00
Abdelrazak Younes
033c3df44c a bunch of toolbar related renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:30:06 +00:00
André Pönitz
225e9e5547 slightly more compact code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24918 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 18:09:40 +00:00
Abdelrazak Younes
5d32aace21 Potential bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:16:23 +00:00
Abdelrazak Younes
26e8409172 simplify GuiApplication::unregisterView().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:54:34 +00:00
Abdelrazak Younes
d2a96bcdc3 Get rid of GuiApplication::view_ids_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:45:55 +00:00
Jean-Marc Lasgouttes
b5d3d3b722 * frontends/LyXView.h:
* frontends/qt4/GuiView.h:
	* frontends/qt4/GuiView.cpp (getStatus): change signature to return a 
	bool indicating whether the view knows something about the lfun.

	* LyXFunc.cpp (getStatus): remove knowledge about what lfuns are 
	handled in view. Call LyXView::getStatus() when nothing is known at
	LyXFunc level.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:01:36 +00:00
Abdelrazak Younes
956b2cd11d Revert 24816, this didn't not work with the minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 08:25:17 +00:00
Abdelrazak Younes
69dd2ac3a7 Ensure the focus is returned to the editing area after a dispatch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 13:59:52 +00:00
Abdelrazak Younes
fc22b68e37 Menubar autohiding: add some more comments and hide it a bit earlier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24797 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 08:11:37 +00:00
Abdelrazak Younes
eadef99854 add a hack to autohide the menubar in fullscreen mode for LyX specific shortcuts beginning with Alt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24795 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:55:00 +00:00
Abdelrazak Younes
34dc63da87 menubar autoshowing: go back to r24786
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24794 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:26:31 +00:00
Abdelrazak Younes
e5b6e5c58b Restoring autohiding and showing of menubar upon Pavel's request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 11:02:23 +00:00
Abdelrazak Younes
40f50f2a94 - using Alt key in fullscreen mode: don't autoshow the menubar but popup directly relevant menu if possible. This code will I guess not work on Mac. The solution is I think for GlobalMenuBar to subclass MenuBar instead of QMenuBar.
- remove autohide of menu and status bar.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 10:18:49 +00:00
Abdelrazak Younes
5691d8d8ce - Don't popup the menubar if only Alt is pressed.
- add a FIXME wrt LyX own shortcuts using Alt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:42:28 +00:00
Abdelrazak Younes
a72c205638 Autoshow and autohide menubar while in fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:14:09 +00:00
Pavel Sanda
13e42a8c73 Introduce groups for graphics insets. That includes:
- GuiGraphics dialog field for setup new groups.
- Graphics context menu for assigning to certain group.
- Fileformat change for groupId field in Graphics inset.
- Undo mechanism added to inset-apply, for catching changes
  in preference dialog.
- Qt designer 4.4 used now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 21:13:09 +00:00
Abdelrazak Younes
fc12716a97 We don't want the document dialog to be reset for each new paragraph.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 07:50:00 +00:00
Abdelrazak Younes
a04284c2b8 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4816
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-03 08:24:05 +00:00
Abdelrazak Younes
b9c526aaa2 * Delegates.h: clarify some comments.
* Dialog: get rid of updateData()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 21:38:23 +00:00
Abdelrazak Younes
32fac28acf Simplify dialogs updating.
* GuiView::updateDialogs(): merge with GuiView::checkStatus()

* LyXFunc::processKeySym(): remove call to GuiView::restartCursor(), this has already been called in the call to dispatch() at the end of the methof.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 20:58:25 +00:00
Abdelrazak Younes
ffa722e0b7 Cleanup Toc dialog and GuiView interaction. The toc models are now part of GuiView. The TocWidget is just a view of this model.
* GuiView::tocModel(): new method to access the toc models.
* TocModels: new class with code transferred from GuiToc.
* TocWidget: only needs a TocModels reference.

Thoughts:
- We should find a way to get rid of GuiToc.{c,h}
- tocModels() should perhaps be transferred to GuiWorkArea instead of GuiView in order to have Buffer dependent navigators.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 12:09:51 +00:00
Jean-Marc Lasgouttes
9b4a26a252 rename assert.h to lassert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
Jürgen Spitzmüller
74d1f2cb2f * GuiView.{cpp, h}:
- fix compilation (gcc didn't like the string arguments in the header file)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 04:57:31 +00:00
Abdelrazak Younes
bf27334cfa Some dialog consistency work:
* Dialog::updateData(): try to reset the dialog even if there's no Buffer.
* GuiView::updateBufferDependent():
- renamed to updateDialogs()
- don't hide when there's no current work area, try to disable instead.
- now also take care of toolbars and other elements. 
* TocWidget: delay item selection to avoid unwanted node collapsing after setting a new model.

Expect crash and/or assertions for dialogs that are not ready for this non-hiding change. I will fix them iteratively.
There are still too many dialogs updates going on...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 22:24:20 +00:00
Abdelrazak Younes
f1d25c23f8 Don't hide dialogs upon buffer switch. I've been wanting to do this for a looonnng time...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24502 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-25 12:45:39 +00:00
André Pönitz
5d61ceb81d fix #4758
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 19:12:15 +00:00