Commit Graph

18463 Commits

Author SHA1 Message Date
Peter Kümmel
ad51a8e88e bind makes a copy of the arguments by default. This is secure if the
bound object survives the existance of the arguments, but it also breaks
"change by non-const reference"  parameter passing, like in
Alert::askForString. Here the arguments exists the whole bound function
call so we could pass by refernce.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:06:22 +00:00
Vincent van Ravesteijn
d9c6263c6a Fix crashes and asserts if LyX doesn't have a view (on Mac for example).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 20:54:18 +00:00
Vincent van Ravesteijn
56bce65dd0 Restructure processFuncRequest* function family:
- move a comment back from to GuiApplication to GuiView.cpp, so we have the comment in the place where we decide to process the func request asynchronously;

- rename dispatchDelayed to processFuncRequestAsync to have the same terminology as in the other processFuncRequest* methods;

- introduce a new function processFuncRequest to complete the set of processFuncRequest* methods. It is strange that for the normal processFuncRequest one should suddenly use lyx::dispatch. Besides, I think it is good that the whole GUI will dispatch funcRequests through GuiApplication::processFuncRequest from now on;

- use the slotProcessFuncRequestQueue to relay to processFuncRequestQueue;

- properly camelBump addToFuncRequestQueue;

- group the implementation of the processFuncRequest* functions;

- document the side-effect of processFuncRequestAsync.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 18:08:21 +00:00
Vincent van Ravesteijn
f6c7f63f0b GuiApplication.h cosmetics:
- reorder some function declarations,
- remove some declarations from the list of functions that inherit from Application,
- add and clarify some comments,
- whitespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:53:09 +00:00
Richard Heck
723b619317 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:08:57 +00:00
Jürgen Spitzmüller
a94fe452ff Fix bug 6944: crash on drag and drop multiple files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35779 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 15:46:46 +00:00
Jean-Marc Lasgouttes
9ebd4405cf Make sweave process files with the correct encoding (#6625).
The required the introduction of the new converter token $$e, that holds
the iconv name of the latex file encoding.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 07:51:39 +00:00
Richard Heck
b7b5c8cecd Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35764 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 22:04:06 +00:00
Peter Kümmel
d3392418c4 use QWaitCondition instead of QEventLoop for waiting on GUI thread-call finished, it's cheaper
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35763 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 21:29:08 +00:00
Richard Heck
eafafd8121 Revert r35760, as suggested by Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35762 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:33:29 +00:00
Richard Heck
c5200a848e This one didn't make it to Unicode for some reason.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35761 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:15:31 +00:00
Richard Heck
1f87b2ef5d Restore should, uh, restore the initial state. Other half of #6964.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35760 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:25:15 +00:00
Richard Heck
74c8cfc5f5 Fix bug #6964. Problem was that we always saw the first branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:20:12 +00:00
Richard Heck
5aba6f4fab Make this a switch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35758 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:01:06 +00:00
Richard Heck
bfa9991f93 Fix bug #6962. I hadn't see how these were being escaped.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:56:00 +00:00
Richard Heck
1c059dba29 Simplify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:53:21 +00:00
Vincent van Ravesteijn
725591221f Fix bug #6963: LaTeXUi.ui: add some accelerators and fix some clashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35751 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:06:06 +00:00
Abdelrazak Younes
e0f9645186 DialogView: make GuiView the parent widget to partly solve bug #6710.
This make sense anyway for all dialogs to be above the GuiView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:40:49 +00:00
Jürgen Spitzmüller
2cf666e3cd * InsetCommandParams.cpp (prepareCommand):
- properly terminate LaTeX macros (reported in bug 6959). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35746 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:16:28 +00:00
Peter Kümmel
9cfeaf4c0a only connect when needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 08:02:09 +00:00
Peter Kümmel
cf570e0a8d update .am files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35742 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 01:15:12 +00:00
Peter Kümmel
fc8d5ee0b6 enable EXPORT_in_THREAD to prevent gui calls in non gui-threads
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35741 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:24:57 +00:00
Peter Kümmel
f54200b078 no QtGui in support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35740 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:07:48 +00:00
Peter Kümmel
391634eb67 first include config.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35738 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:58:22 +00:00
Peter Kümmel
699ff50301 line ending
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35736 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:51:31 +00:00
Peter Kümmel
c259957b69 add generic helper class for calling functions in gui thread
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35735 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:50:49 +00:00
Uwe Stöhr
e35f55975e GuiTabular.cpp: fix #6957
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:35:05 +00:00
Uwe Stöhr
8c4b64cf83 TabularUi.ui: fix position of spacer to make alignment entry "At Decimal Separator" readable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35733 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:33:32 +00:00
Peter Kümmel
a024d3aee6 use bind, is this really better?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 01:45:51 +00:00
Richard Heck
00e6dfb14b Make updateMacros() descend into tables. Fixes #6897.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35718 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:36:11 +00:00
Richard Heck
65e871e100 Cut and paste solution to get export working. The issue is that the old
exportAndDestroy was calling:

    buffer->doExport(format, true, update_unincluded);

where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35717 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:34:13 +00:00
Richard Heck
97910b056e Revert r35715. Didn't mean to commit both.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35716 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:33:39 +00:00
Richard Heck
a773428fce Cut and paste solution to get export working. The issue is that the old
exportAndDestroy was calling:
  buffer->doExport(format, true, update_unincluded);
where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35715 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:10:13 +00:00
Vincent van Ravesteijn
4968c32293 Fix bug #6950: Cursor remains in waiting state after incompatible command.
P.S. How do we prevent other cases like this? By throwing exceptions, we never know whether it's assured that we will return to the function to call setBusy(false). In JAVA you always have to either make a function throwable or to catch the exception, but AFAICS you have to crawl through the code to find out whether a function can throw an exception.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35714 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 10:42:54 +00:00
Vincent van Ravesteijn
152491f916 Some cosmetics (from my local cosmetics branch).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35708 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 14:20:03 +00:00
Vincent van Ravesteijn
5b2ede473e Let asyncBufferProcessing return a value also if EXPORT_in_THREAD is turned off.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35706 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 11:30:30 +00:00
Peter Kümmel
e237d57020 fix formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35704 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:59:23 +00:00
Peter Kümmel
75a9d47628 fix comment:
We have to copy the files because export is asynchronous now,
What about the children?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35703 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:55:01 +00:00
Vincent van Ravesteijn
f35d1a2a4c Fix bug #6869: Crash when unindenting empty lines in listings inset.
- Remove some duplicated code;
- Do not call par.getChar(0) when the par is empty.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:48:29 +00:00
Peter Kümmel
131edd61dc For testing: export asynchronous, #412
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35701 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:16:32 +00:00
Peter Kümmel
c5cf867e89 also use update_unincluded for preview,
maybe we could use bind here


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35700 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:35:33 +00:00
Peter Kümmel
c54fd8c74a split out common async code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35699 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:31:50 +00:00
Peter Kümmel
d3312032ee I assume this was a c&p error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35697 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:23:29 +00:00
Peter Kümmel
40d2aed83a prepare splitting out c&p code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35696 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:18:56 +00:00
Richard Heck
680b6e78e4 Fix bug #6953.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 18:46:35 +00:00
Peter Kümmel
496f7a23fd Fix bug 6650: Error Messages Repeated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35664 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 12:06:47 +00:00
Peter Kümmel
5520817bd3 Use DispatchResult also in GuiView::dispatchVC to handle messages.
Make it possible to suppress messages stored in DispatchResult objects.
BUG: 6417


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35662 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 10:44:53 +00:00
Jürgen Spitzmüller
ee2eabd416 * GuiDelimiter.cpp: disable cut and paste inside the listviews (bug 6942).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35654 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-15 07:12:49 +00:00
Richard Heck
ee7dd4a11e Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35653 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 20:49:34 +00:00
Richard Heck
aa473bb568 Comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35652 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:04:57 +00:00