Commit Graph

6937 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
1a9fe125f6 Update the cursor shape also when the cursor shape changes without a mouse move actions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 22:14:31 +00:00
Edwin Leuven
4e5d3469f6 have pointing cursor when hovering something clickable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35806 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:41:47 +00:00
Stephan Witt
4b7ad8b864 validate version control status after buffer save-as, avoid that for saveBuffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 17:14:10 +00:00
Pavel Sanda
6147f97ddd Fix #6966.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35797 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 20:17:41 +00:00
Stephan Witt
b2137a65de validate version control status after buffer save or save-as
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 18:35:13 +00:00
Peter Kümmel
d0feccc7ed switch mouse to busy symbol every 3 seconds and then back to show the
user something is done in the background


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35795 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 10:49:45 +00:00
Jürgen Spitzmüller
d2b7bb6525 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 08:29:57 +00:00
Vincent van Ravesteijn
f3ed8071d8 Fix #6597: LyX Appears frozen if the process holding the clipboard is frozen
Implements CacheMimeData type so that we only need to query the
clipboard once on startup and once each time the contents of the
clipboard change. This is important as Qt takes 5 seconds to time-out when the clipboard is non-responsive.

Patch by John McCabe-Dansted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:21:58 +00:00
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
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
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
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
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
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
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
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
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
Richard Heck
b1df2bd306 Move the screen redraw call out of the selection-setting routine. This
avoids multiple screen redraws in some cases.

If someone knows how to fix the FIXMEs in GuiErrorList and
GuiSpellcheker, I'd really appreciate it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35651 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:02:48 +00:00
Richard Heck
3af1fa5abb I am basically trying here to get rid of random calls to
processUpdateFlags. This one is easy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35650 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:47:33 +00:00
Richard Heck
f0833aa774 This is already done by the previous call.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35632 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:03:10 +00:00
Richard Heck
6a80ce62ca DispatchResult::update() ==> DispatchResult::screenUpdate()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35631 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 17:28:55 +00:00