Commit Graph

213 Commits

Author SHA1 Message Date
Richard Heck
6031b5cb31 A bit more cleanup: Again, we do not need lv, and the last check is
useless.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34073 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:43:41 +00:00
Richard Heck
23eade51a8 The lv variable was used back in LyXView.cpp, where we didn't have such
easy access to the current view. So we don't need it. Moreover, it seems
to me that using lv in some of these places could cause bugs. What if
the current_view_ has changed? Then we could be updating completion on
the wrong thing?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34072 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:41:19 +00:00
Richard Heck
1d1b204eb2 Fix bug #6519. This is some of the "instability" that resulted from
Abdel's moving the LyXFunc code to GuiApplication. This restores some of
the structure of that code: The early returns bypassed the code that
marked the buffer dirty.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34071 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:35:32 +00:00
Enrico Forestieri
d95b35dad8 Fix for Qt 4.2 (patch mostly from JMarc).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33848 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-24 08:50:06 +00:00
Abdelrazak Younes
44fb52d1a2 Fix potential bug affecting export and preview with threads.
QThreadPool::maxThreadCount() defaults in general to 2 on single or
dual-processor. This is clearly not enough in a time where we use
threads for document preview and/or export. 20 should be OK.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-18 12:42:34 +00:00
Abdelrazak Younes
545d7bb431 white space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33750 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-15 16:26:09 +00:00
Richard Heck
d65020b293 s/updateLabels/updateBuffer/g, per a suggestion of Abdel's.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33613 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-03 22:13:45 +00:00
Abdelrazak Younes
b5049e769b * InsetTabular cleanup:
- proper message passing for all tabular features
- properly define which feature needs an argument

* replace LFUN_TABULAR_FEATURE with LFUN_INSET_MODIFY
- The math tables are also affected. In the future a common base class
between math and text table will solve this inconsistency.
- There is a hack in GuiApplication in order to not rename the toolbar
icons. This will have to be cleaned up with a general icon naming for
LFUN_INSET_MODIFY... to be discussed.

* Tabular Dialog:
- big cleanup, lots and lots of bug fixing here
- migrated to InsetParamsWidget


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33495 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-18 08:28:46 +00:00
Jürgen Spitzmüller
6f3e447afa * GuiApplication.cpp: prevent null pointer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33447 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-12 12:32:15 +00:00
Jürgen Spitzmüller
5c59e8c7cb * Spellchecker dialog:
- mark languages that can be spell checked.
* Thesaurus dialog:
	- mark languages that have a thesaurus dictionary.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33405 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-10 08:10:31 +00:00
Pavel Sanda
defa62aa3d Use readonly for manuals only in released versions.
Closing #6518.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg157541.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33402 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-10 04:03:35 +00:00
Abdelrazak Younes
70d5b8fe06 Application: get rid of 2 virtual interface.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33394 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 17:25:44 +00:00
Abdelrazak Younes
d77a22e2f9 Today is a sad day, LyXView has passed over... long live GuiView!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33393 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 17:06:40 +00:00
Richard Heck
1cc2d538e7 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33391 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 16:30:12 +00:00
Abdelrazak Younes
377cdd5f6c Transfer LyXfunc code to GuiApplication::dispatch() and getStatus(). Now
a lot of simplification is possible. Except some instability period...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 16:11:13 +00:00
Abdelrazak Younes
e1c713faf0 Temporarily fix bug #6412. The side effect is that, in LyX/Mac, when a
dialog is open, the menu entries that are buffer or view-related are not
going to be disabled. I'll try to solve that last issue later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33380 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 12:42:38 +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
Jürgen Spitzmüller
96dc966114 really fix the Diamond toolbar item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33176 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-23 09:59:48 +00:00
Vincent van Ravesteijn
570f96bc6e Add a boolean to GuiWorkArea::redraw to indicate whether the metrics must be updated. The current test "lyx_view_ != guiApp->currentView() || lyx_view_->currentWorkArea() != this" is not enough, especially not if the buffer is changed and buffer->changed() is called. Moreover, there are a lot of combinations of updateMetrics() followed by buffer->changed(), these can now be replaced by one call to buffer->changed(bool).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32874 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-08 02:03:54 +00:00
Tommaso Cucinotta
78874e5f27 When zooming in/out with [Ctrl] + [Mouse Wheel], document WA's font is immediately updated, but if the Advanced F&R dialog is shown, its own WAs' font (find WA and replace WA) is not immediately updated, but delayed until the next editing action.
This commit fixes such behaviour, and performs the update immediately.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32794 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-06 18:36:13 +00:00
Vincent van Ravesteijn
b9a507932f Happy new year!
The best and no more typos wished for 2010!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32726 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-31 23:00:07 +00:00
Peter Kümmel
daba8bda2e cmake: fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31891 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-07 12:50:30 +00:00
Abdelrazak Younes
6abd0d0edf use GuiView instead of LyXView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31532 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 21:31:45 +00:00
Abdelrazak Younes
b794a8efb1 Kornel's gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31530 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-05 14:56:51 +00:00
Pavel Sanda
a11372fa6b squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31528 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 22:58:53 +00:00
Abdelrazak Younes
1375c489eb gcc compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31527 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 22:40:00 +00:00
Abdelrazak Younes
b34763a4c8 Avoid indirection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31521 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 21:23:22 +00:00
Abdelrazak Younes
3890ee964e Remove dead code and associated comments. This encoded_last_key member was never used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31520 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 21:09:39 +00:00
Abdelrazak Younes
1cd45c2ae1 Transfer all keyboard related code and actions from LyXFunc to GuiApplication. Part of it should be transfered later to GuiView and BufferView. This code can probably be simplified a lot...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31518 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-04 20:58:20 +00:00
Abdelrazak Younes
5c2dad7029 Fix crash noticed by Bennett:
Open new document; LyX > Preferences; change
anything; click on "Save" button --> Crash. Backtrace is below.

Once again, this does not happen when no document is open.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31486 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-30 14:30:16 +00:00
Abdelrazak Younes
ab8e0596a9 Mac compil fix, sorry Bennett.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31481 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-28 19:19:02 +00:00
Abdelrazak Younes
414571cf68 Get rid of LyXView::hasFocus().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31452 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 09:17:11 +00:00
Abdelrazak Younes
6e800efcaf Transfer special getStatus() code from LyXFunc to BufferView, GuiView and GuiApplication.
I tested this on Windows and Linux/X11 but not on Mac so...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31451 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-23 09:07:24 +00:00
Abdelrazak Younes
a3adb3a21b Introduce Application::currentWindow() and get rid of lyx_view_ member in LyXFunc.
This commit also move the Selection saving to  QEvent::WindowActivate in GuiView.cpp.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31443 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 21:25:32 +00:00
Abdelrazak Younes
a6201e6d63 Transfer LFUN_HELP_OPEN to GuiApplication. There's some code factorization to do in there...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31441 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-22 19:55:15 +00:00
Vincent van Ravesteijn
6494fc15c1 Fix bug #6188: Assertion with multiple views of same document.
We have to prevent that two views share the same ID, also when an id was supplied (because we can open the same document twice).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31381 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 23:50:03 +00:00
Abdelrazak Younes
475fb5e65b X11 compile fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:40:07 +00:00
Abdelrazak Younes
9f4bd2eb42 * copy&paste fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:12:51 +00:00
Abdelrazak Younes
184345e4e7 * GuiView: get rid of Buffer() and documentBuffer() access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:09:45 +00:00
Vincent van Ravesteijn
9c44cc7360 Clear the LastOpened list when choosing "Close Window".
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31148 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 20:29:16 +00:00
Vincent van Ravesteijn
f9952369ca Make new function writeSession(). Now it's no longer entangled with closing the workareas/buffers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31147 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 20:06:57 +00:00
Richard Heck
c5487a3682 Move emergencyWrite() from BufferList to Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31056 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-15 16:34:54 +00:00
Vincent van Ravesteijn
768b216c83 Fix bug #4906: Files always reopened in tabbed window on launch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30690 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 14:34:14 +00:00
Richard Heck
277e74ff9c Move these declarations closer to where they are used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30654 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:44:19 +00:00
Richard Heck
660b950aa7 Make sure these are the same....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30653 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:41:04 +00:00
Richard Heck
4f6f4cf7ab Fix problem noted by Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-17 21:36:34 +00:00
Jean-Marc Lasgouttes
70e6cac727 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30637 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:29:05 +00:00
Richard Heck
fd8c379545 Fix bug #6076. As said there, other configuration files probably need to be checked.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30636 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 22:24:39 +00:00
Jürgen Spitzmüller
7720592b2d * GuiApplication.cpp (readUiFiles):
- only reset settings if a file with Toolbars has changed. This should significantly decrease
	  the number of circumstances where the settings are lost unnecessarily.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-30 11:00:16 +00:00
Jürgen Spitzmüller
2efcbb74d6 * do not change name of QSettings config file on LyX version change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30301 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-29 08:44:32 +00:00