Commit Graph

6707 Commits

Author SHA1 Message Date
Pavel Sanda
f47878c5c1 Narrower Pref dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34170 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 18:30:50 +00:00
Pavel Sanda
ef0c8796a3 xpdf support for forward view via synctex. This is quite powerful tool.
To sum it up forward search support:
Okular and Skim can be supported directly if somebody comes with correct syntax.
Evince can be solved in the same way as xpdf, again syntax has to be reported.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34167 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:36:41 +00:00
Pavel Sanda
6ae70da778 Dont wait for forward search call
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34166 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:22:08 +00:00
Vincent van Ravesteijn
e8fcc92d8f Refactor GuiApplication::getStatus().
* I didn't like the fact that the heart of the dispatch/status machinery is in the default clause of a long switch statement. Now, it is clear that we enter the app in getStatus, which then asks the GuiApplication itself, the GuiView, the current BufferView, the current Buffer, the document BufferView, the document Buffer,

* Shouldn't we let BufferView call the Buffer getStatus() functions ?,

* This also makes sure that if a command is not handled, it is turned off. Before r34164 this was caused by the default clause in BufferView,

* Now it is prevented that if the document BufferView is the same as the current BufferView, that the getStatus() functions are called twice,

* A warning can be outputted if the LFUN is not handled.

PS I want to do the same for the dispatch function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34165 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 16:04:35 +00:00
Vincent van Ravesteijn
6708d2da7e * GuiView.cpp: Simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34162 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 12:49:27 +00:00
Vincent van Ravesteijn
5a77a063c1 Remove the unclear FuncStatus::operator|=. Without knowing the internals of FuncStatus it is unsafe to use this operator, so let's not use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34161 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 12:15:27 +00:00
Vincent van Ravesteijn
3417702346 * FuncStatus: unify naming of functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34160 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 10:51:20 +00:00
Pavel Sanda
499908ebab Add status message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 08:18:28 +00:00
Pavel Sanda
98f106f2ca Guify forward search.
No viewer set by default, which keeps context menu clean for uninterested users.
Settings are hinted at combobox.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 08:09:07 +00:00
Enrico Forestieri
ba57ee8a24 Modify the forward-search lfun such that no argument is needed.
If a dvi file exists in the temp dir, the command specified by the
\forward_search_dvi rc setting is used to initiate the search.
Otherwise, if a pdf file exists, the forward search is performed by
using the command specified by the \forward_search_pdf rc setting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 23:32:52 +00:00
Vincent van Ravesteijn
8156884090 Make Cursor::disp_ private as it should be.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34144 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 17:34:34 +00:00
Pavel Sanda
52756f5dc7 Join PrefDateUi and PrefPlaintextUi into PrefOutputUi
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34140 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 14:25:25 +00:00
Pavel Sanda
5862c1e414 Fix #94 - LYX forward DVI search
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34139 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-15 13:19:48 +00:00
Richard Heck
b81526bd8d Fix bug #6645.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34108 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 19:38:28 +00:00
Richard Heck
b79d8e5e2d Make members of FuncRequest private, per the FIXME there. Again, this is
basically a massive renaming, with no real changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34106 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 19:00:42 +00:00
Richard Heck
4c7a5d0024 This is just a giant renaming of member variables in FuncRequest,
preparatory to making them private.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34105 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-09 18:15:17 +00:00
Jean-Marc Lasgouttes
e8529a2ecf Get rid of all-insets-toggle and explain how to replace it with inset-forall.
Change inset-forall so that screen is not repainted at each iteration, since this lead to very slow opeartion on large files. This is not a problem for current uses, but can potentially lead to crashes.

See ticket #6641 for more thoughts and possible solutions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34092 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 12:39:41 +00:00
Jean-Marc Lasgouttes
a51d67dedd fix (again) monolithic build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34089 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 10:23:54 +00:00
Uwe Stöhr
bf83cc6359 ColorUi.ui: squash compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34084 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 01:09:30 +00:00
Uwe Stöhr
84a2af2edb fileformat change: support to specify the background color of shaded boxes
- new buffer parameter \boxbgcolor

(I'm still working on the remaining issue #6626 as this affect not only this feature.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34083 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 00:14:08 +00:00
Richard Heck
b3ae6c671f One final bit of cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34075 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:50:47 +00:00
Richard Heck
37889247df A little more lv cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34074 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-07 12:47:19 +00:00
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
8043c693e2 Make better use of the available space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34066 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-06 11:58:14 +00:00
Uwe Stöhr
9b26c150ee ColorUi.ui: forgot to update button label in last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34060 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 21:51:02 +00:00
Uwe Stöhr
9b072f6e64 don't use any longer the page background color white as being the default (equal no color) because document classes might have other colors as default
(The default color is still internally white because we have to set a color but the color is only used when the user explicitly specified it.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 20:31:10 +00:00
Peter Kümmel
4b99d089cb fix typo, tabs for indentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:51:41 +00:00
Abdelrazak Younes
a7734edf8e TabWorkArea::workArea(): add a FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:24:56 +00:00
Abdelrazak Younes
05ca681dcf Fix instant preview for split views showing the same document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34054 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 14:24:27 +00:00
Peter Kümmel
318774fe1a don't allow closing a buffer when it is used by a thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34053 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 13:04:52 +00:00
Abdelrazak Younes
002c33387a Remove GuiView parent from DialogView based dialogs. This is because these dialogs always use the currently focused GuiView, not the one passed at construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34051 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-05 09:26:14 +00:00
Jürgen Spitzmüller
adc4dc2a84 * ColorUi.ui: more compact labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34049 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-03 15:13:10 +00:00
Uwe Stöhr
ed3a831261 ColorUi.ui: some tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34048 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-03 00:29:45 +00:00
Enrico Forestieri
b7545bb87a Clean up left over
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34046 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:52:31 +00:00
Uwe Stöhr
5ed3236425 GuiDocument.cpp: follow Qt's StyleSheet guideline and use the the explicit "background-color" string
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34045 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:50:39 +00:00
Uwe Stöhr
4e2cd30657 fileformat change: support to specify a document-wide font color
- new buffer parameter \fontcolor
- the default color is internally black because we have to set a color
- the font color is only used when the user explicitly specified a color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34042 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:39:36 +00:00
Uwe Stöhr
729c0655aa introduce a new color module to GuiDocument as suggested:
- move the background color settings from PageLayoutUi.ui to ColorUi.ui

- move the greyed-out font color from FontUi.ui to ColorUi.ui

- some sorting and whitespace unification

- the group boxes will get the next days each a further entry
 (one for the document-wide text color and one for the shaded box background)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34040 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 22:11:50 +00:00
Uwe Stöhr
a6ce03f20a FontUi.ui: remove senseless tooltip I accidentally introduced in r34015
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34039 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 21:06:21 +00:00
Uwe Stöhr
a8825b88c2 FontUi.ui: remove HTML and use plain text
(it turned out that Qt's designer uses by default HTML when there are linebreaks)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34015 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 13:04:40 +00:00
Pavel Sanda
8fcccc7b6b Next header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33980 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:06:00 +00:00
Pavel Sanda
a5cb2afc1b Next headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 19:38:05 +00:00
Uwe Stöhr
33978c0b1b fileformat change:
- support to change the greyed-out note font color (fixes #3865)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 00:46:50 +00:00
Uwe Stöhr
2a39fcd60b PageLayoutUi.ui: add tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 23:40:42 +00:00
Richard Heck
f1912e1c33 Read the citation formats from a file, rather than hardcoding them. This
allows for layout- or module-level customization of the display in the
citation dialog and of the XHTML bibliography output.

There is more of this to come, by the way. The next step is to allow
macros. That will make it easier to deal with translation issues, which
ought to be the final step.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 18:37:25 +00:00
Vincent van Ravesteijn
111bb60932 Fix bug #2009:'|'-character in headings confuses TOC list in navigate menu.
Solution is to search backwards for the last '|' in the string, and to add a '|' to the ones without a shortcut.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 17:58:00 +00:00
Vincent van Ravesteijn
e4b3e9b7bc Fix the painting I broke in r33909.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 16:00:49 +00:00
Vincent van Ravesteijn
6a9f44eaa2 Refactorization: Buffer::changed() can update the metrics as well, so we don't have to do it in scrollToCursor if we call Buffer::changed() anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33909 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 15:29:26 +00:00
Vincent van Ravesteijn
fa0f6cf9be Allow to assign the shortcut to an action not only if this was an unknown action, but also when it is a no-action.
This could be seen by adding a shortcut "Ctrl-R" to accent-acute. Then changing this to "Ctrl-R Ctrl-R". And then changing this back to "Ctrl-R". Now the oldBinding is NOACTION and a warning is issued that "Ctrl-R" was already bound.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33906 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-29 09:15:27 +00:00