Commit Graph

7435 Commits

Author SHA1 Message Date
Richard Heck
6e6f036f03 Fix bug #7709. Seems we need to reset the source model here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40245 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:52:46 +00:00
Richard Heck
05194fa79b Simplify code a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40244 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:49:34 +00:00
Richard Heck
66af29735c Fix bug #7906. Check the widgets after creating the dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40243 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-23 16:44:31 +00:00
Richard Heck
6be38da1ff This commented-out line has been there since r13692! I think we can
get rid of it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40217 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-18 23:32:58 +00:00
Richard Heck
2b4fb23941 Clarify by renaming some arguments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40200 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-16 00:38:06 +00:00
Georg Baum
0dee3eff18 Fix bug #4213: Change tracking support for tex2lyx.
Of course this will only work if output_changes was true when creating the
.tex file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40139 a592a061-630c-0410-9148-cb99ea01b6c8
2011-11-06 17:03:59 +00:00
Vincent van Ravesteijn
e9df4d552c Fix the messaging after an autosave
We need to have a special callback for when the autosave thread is finished
such that we can process the return values properly (and different as in
case of export or preview).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40103 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 21:34:12 +00:00
Richard Heck
256e16d0c2 Fix the outstanding part of #7764, which involves sorting the file lists
under Document>Settings>Output.

It turns out that we always want this list to be sorted when we get it,
so we can sort it in BufferParams rather than in three different places.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40101 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 20:02:14 +00:00
Vincent van Ravesteijn
05eff0e344 Use the format's pretty name in the statusmessages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40100 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 19:52:33 +00:00
Vincent van Ravesteijn
5cdcc4f7ef Correctly message that the export is cancelled
Uptil now, it was said that the export was succesful.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40099 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 19:52:27 +00:00
Vincent van Ravesteijn
a32c12834b Fix the warning about the unused msg parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40086 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-30 08:53:22 +00:00
Richard Heck
9eaa64b2cb Initial work for view source improvements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40073 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 21:00:23 +00:00
Vincent van Ravesteijn
7287a259c5 Change the type of the context menu name to string
There is no need for GUI-elements to use docstring.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40058 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 14:48:55 +00:00
Vincent van Ravesteijn
ab8a290040 Fix the synchronous export functionality
- Handle the return value in a special helper function

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40056 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-29 11:14:47 +00:00
Vincent van Ravesteijn
e02df14faa Return ExportStatus from Buffer to GuiView
Now GuiView composes the message string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40045 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 20:00:11 +00:00
Vincent van Ravesteijn
a7eb3c4c6e Simplify the public interface of Buffer::doExport
All calls to doExport from outside of Buffer have the same algorithm to
determine whether the included children parameter should be true. Moreover,
this decision is only based on information from the Buffer itself.

Now, Buffer only has 1 public function doExport and preview.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40041 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 15:50:50 +00:00
Vincent van Ravesteijn
b787d0090b Remove unused functions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40034 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 12:54:14 +00:00
Vincent van Ravesteijn
5014b38cb7 Add a preference option to specify the default length unit (cm or in).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40030 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:52:11 +00:00
Vincent van Ravesteijn
a5a5757b3e Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40029 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:49:15 +00:00
Vincent van Ravesteijn
269695aa5f Remove the prefence default_papersize
- This preference was used for specifying the papersize to xdvi, dvipdfm,
  dvips. However, I can't seem to see any effect on the result.

- The papersize should instead be defined in the document settings.

- The global papersize default was misused to also change the tex
  output by specifying the papersize as if it was specified in the
  document settings. This caused the same lyx document to be outputted
  differently on different pcs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40028 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 11:48:16 +00:00
Vincent van Ravesteijn
2a9f282cc4 Fix a crash in adv F&R when the a manual could not be loaded
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40027 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-27 09:31:17 +00:00
Uwe Stöhr
981e958b9d GuiPrintNomencl.cpp: fix bug #7853
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39959 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-24 23:35:01 +00:00
Abdelrazak Younes
5c5850e28f First step towards a little bit more independence of GuiWorkArea (WRT GuiView). Ideally, GuiWorkArea should not at all about GuiView. GuiWorkArea now uses a new signal busy() to inform its container (GuiView) about its status.
I also added 2 FIXME where we should not call GuiView directly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39948 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 20:21:01 +00:00
Georg Baum
8e8c214bef Fix some bugs related to spaces in math:
- Interpret argument of LFUN_SPACE_INSERT correctly
- Use InsetMathSpace instead of InsetMathSpecialChar for "\ " (bug # 7728)
- Use InsetMathSpace instead of InsetMathChar for ~ (bug # 7728).
  This fixes also the display in LyX (previously a literal ~ was displayed).
Using InsetMathSpace enables also the "Insert Formatting" menu entries.
No file format change is needed, since the LaTeX export is unchanged.
Note that there are still some bugs related to spaces in math:
#7746, #7747, #7749, #7842


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39947 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 20:19:49 +00:00
Abdelrazak Younes
383b31a868 Introduce new USE_QIMAGE macro to optionally use a QImage drawing backend instead of a QPixmap. This may help when running locally under X11 with some graphics cards (there were some complain about that in the user list).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39932 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-23 06:52:03 +00:00
Pavel Sanda
e1416341fd Discrimination of "New" string per Jean-Pierre's request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39902 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-21 12:59:30 +00:00
Julien Rioux
6c96473ac8 Revert "Don't allow newline characters in the command buffer."
This reverts commit r39809. Some LFUNs require newline characters,
and while at the moment we don't have a proper interface for such
LFUNs, copy-pasting newlines has been a long-time workaround.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39893 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-19 22:52:34 +00:00
Tommaso Cucinotta
ec0fce7d44 Fixing ASSERT on re-opening of Advanced F&R with cursor on a text style non-existing in the currently opened document.
Addressing #7812.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39886 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-18 22:04:42 +00:00
Abdelrazak Younes
e621339aae get rid of GuiWorkArea::Private::setReadOnly(). Calling updateWindowTitle() is cheap compared to redraw and GuiView::updateDialogs() will be called anyway (with restartCursor() among others).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39880 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 21:19:00 +00:00
Jean-Marc Lasgouttes
69a993312d compilation fix; a couple of warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39873 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-17 08:57:28 +00:00
Abdelrazak Younes
52ef90c2cf GuiWorkArea: Move private stuff to GuiWorkArea_Private.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39872 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-16 22:48:26 +00:00
Tommaso Cucinotta
f134fcd153 Make trunk compile again after recent switch to QString * for selectedFilter param in FileDialog::save().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39866 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:41:15 +00:00
Tommaso Cucinotta
f4400845af Cleanup private part of Layout Box on destructor (probably not really an
issue, but brings less noise about memory leaks when using valgrind).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39864 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:34:14 +00:00
Tommaso Cucinotta
cb9e09f29e Take Vincent's advice: using a pointer for selectedFilter
avoids a useless object creation, as Qt tolerates the
pointer to be null as well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39863 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-15 13:32:14 +00:00
Uwe Stöhr
1db7ad00fe PrefLanguageUi.ui: this string was forgotten in r39449
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39848 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-14 04:18:28 +00:00
Tommaso Cucinotta
dfd8a97bff Presenting prettyname of formats in filedialog filter dropdown box (instead of shortnames), sorted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39816 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 08:21:31 +00:00
Stephan Witt
d29f1f6930 avoid compiler warning regarding operator precedence
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39815 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-07 07:59:50 +00:00
Tommaso Cucinotta
b87cf553c4 Removing meaningless assignment (mostly a typo).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39811 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 22:53:22 +00:00
Tommaso Cucinotta
61f2924b9f Fixing compilation on some Qt version (?!?).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39810 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 22:20:50 +00:00
Julien Rioux
bb4f6360c3 Don't allow newline characters in the command buffer.
I actually got it by this bug while copy-pasting LFUNs into the toolbar.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39809 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 16:30:37 +00:00
Tommaso Cucinotta
164ae1584a Added Export As... dialog, exploiting the new destination path that can
be specified when exporting.
This fixes #3402.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39805 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 13:47:42 +00:00
Stephan Witt
bae12f7328 #2511 implementation of spell check of the current text selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39802 a592a061-630c-0410-9148-cb99ea01b6c8
2011-10-06 10:28:34 +00:00
Stephan Witt
3971728bde close floating dock widgets (not currently docked) with escape keypress event
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39787 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-29 18:52:36 +00:00
Julien Rioux
660d2e9814 Fix the tab ordering of GuiDocument components.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39747 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:29 +00:00
Julien Rioux
39d569661a Fix the tab ordering of PanelStack and PrefsUi.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39746 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:26 +00:00
Julien Rioux
c48091f33a Don't allow newline characters in document settings.
Set a validator on QLineEdit widgets. The validator removes any
\n and \r characters, thus preventing users from copy-pasting
newline characters into these fields, and subsequently saving
them, inadvertantly, to their lyx file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39745 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:23 +00:00
Julien Rioux
f24b24464a Rename QLineEdit widgets to have a LE suffix (consistent within GuiDocument).
bibtexOptionsED   -> bibtexOptionsLE
  indexOptionsED    -> indexOptionsLE
  languagePackageED -> languagePackageLE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39744 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:20 +00:00
Julien Rioux
566d1f1b00 Move the NoNewLineValidator to Validator.cpp where it fits better.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39743 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-24 16:39:17 +00:00
Richard Heck
4ad010e3a1 Another unused variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39738 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:52:11 +00:00
Richard Heck
ea50cd71f9 Fix a couple unused variable warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39737 a592a061-630c-0410-9148-cb99ea01b6c8
2011-09-23 17:51:39 +00:00