Commit Graph

321 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
89af456100 * GuiView.cpp:
- disable non-working splitting actions (bug 5044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 13:17:46 +00:00
Abdelrazak Younes
79beb91e3a Sanitize LyX singleton access by getting rid of ref() and cref() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 08:35:00 +00:00
Abdelrazak Younes
11e1821284 Fix crash when tab group is closed while Outline is opened.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 12:44:50 +00:00
Abdelrazak Younes
a54850d762 GuiApplication::resetGui(): reset as many things as possible, including menus and toolbars (not sure about Mac global menubar yet). This means that except for already opened dialog, all ui rc settings are taken into account without the need to restart.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25390 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 18:03:38 +00:00
Abdelrazak Younes
162b3b3b30 Fix toc and source-view initial showing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 07:23:30 +00:00
Pavel Sanda
07af8fecb5 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25383 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 23:07:38 +00:00
Abdelrazak Younes
c3727bc147 fix initial outline disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:43:43 +00:00
Abdelrazak Younes
efd6dc8a0c One view/doc: more fixes and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25329 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-20 06:35:42 +00:00
Abdelrazak Younes
2ab92aba67 retro commit a bit. Should hopefully fix the crashes on Mac.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 20:48:49 +00:00
Abdelrazak Younes
65b37dfbb8 Some more fixes to multi-windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 17:30:30 +00:00
Abdelrazak Younes
4441cd8a4a GuiView::on_lastWorkAreaRemoved(): the window closing doesn't have to be delayed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:55:34 +00:00
Abdelrazak Younes
fb47b716d7 Polish the one window per document user experience.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25325 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-19 15:39:15 +00:00
Abdelrazak Younes
b5252b737f Don't close child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 14:53:08 +00:00
Abdelrazak Younes
28b77e4f72 GuiView: Moving updateStatusBar() out of updateDialogs() because this is no end of trouble WRT recursive paintings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-12 16:00:36 +00:00
Abdelrazak Younes
158863fd3b TocWidget: Small reorg in order to fix http://bugzilla.lyx.org/show_bug.cgi?id=4940
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 18:13:14 +00:00
Abdelrazak Younes
16420e5263 Allow the toc and view-source dock widget to be restored if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:01:45 +00:00
Abdelrazak Younes
f276338227 Preliminar InsetInfo dialog. This was done as an exercise to show Bo (an others) how easy it is to create a new dialog. This dialog needs to be filled in, right now, there is just an OK button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:08:46 +00:00
Richard Heck
77ed747114 FuncStatus::enabled(bool) --> FuncStatus::setEnabled(bool)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 15:14:00 +00:00
Abdelrazak Younes
891cfdda68 bug fix with minibuffer focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 17:29:36 +00:00
Abdelrazak Younes
7e127a496b fix focus problem with minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 16:15:56 +00:00
Abdelrazak Younes
af442b7369 fullscreen tweaking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:30:40 +00:00
Abdelrazak Younes
57fb699944 Temptatively fix fullscreen problems on X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24960 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:16:50 +00:00
Abdelrazak Younes
a2db0e8ed4 Fix crash with multiple windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:33:06 +00:00
Abdelrazak Younes
5c0c53ccf8 Switch off fullscreen before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:01:50 +00:00
Abdelrazak Younes
1c7f411c10 save/restore toolbars state when toggling fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:34:59 +00:00
Abdelrazak Younes
7bb8a5f183 Re-engineer the toolbar support code:
- We now rely more upon Qt features,
- the initial toolbar positioning defined in "lib/ui/default.ui" is now only used if there is no session or if session handling is disabled,
- The session saving/restoring is window dependent.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:15:17 +00:00
Abdelrazak Younes
033c3df44c a bunch of toolbar related renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:30:06 +00:00
André Pönitz
225e9e5547 slightly more compact code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24918 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 18:09:40 +00:00
Abdelrazak Younes
5d32aace21 Potential bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:16:23 +00:00
Abdelrazak Younes
26e8409172 simplify GuiApplication::unregisterView().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:54:34 +00:00
Abdelrazak Younes
d2a96bcdc3 Get rid of GuiApplication::view_ids_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:45:55 +00:00
Jean-Marc Lasgouttes
b5d3d3b722 * frontends/LyXView.h:
* frontends/qt4/GuiView.h:
	* frontends/qt4/GuiView.cpp (getStatus): change signature to return a 
	bool indicating whether the view knows something about the lfun.

	* LyXFunc.cpp (getStatus): remove knowledge about what lfuns are 
	handled in view. Call LyXView::getStatus() when nothing is known at
	LyXFunc level.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:01:36 +00:00
Abdelrazak Younes
956b2cd11d Revert 24816, this didn't not work with the minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 08:25:17 +00:00
Abdelrazak Younes
69dd2ac3a7 Ensure the focus is returned to the editing area after a dispatch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 13:59:52 +00:00
Abdelrazak Younes
fc22b68e37 Menubar autohiding: add some more comments and hide it a bit earlier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24797 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 08:11:37 +00:00
Abdelrazak Younes
eadef99854 add a hack to autohide the menubar in fullscreen mode for LyX specific shortcuts beginning with Alt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24795 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:55:00 +00:00
Abdelrazak Younes
34dc63da87 menubar autoshowing: go back to r24786
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24794 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:26:31 +00:00
Abdelrazak Younes
e5b6e5c58b Restoring autohiding and showing of menubar upon Pavel's request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 11:02:23 +00:00
Abdelrazak Younes
40f50f2a94 - using Alt key in fullscreen mode: don't autoshow the menubar but popup directly relevant menu if possible. This code will I guess not work on Mac. The solution is I think for GlobalMenuBar to subclass MenuBar instead of QMenuBar.
- remove autohide of menu and status bar.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 10:18:49 +00:00
Abdelrazak Younes
5691d8d8ce - Don't popup the menubar if only Alt is pressed.
- add a FIXME wrt LyX own shortcuts using Alt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:42:28 +00:00
Abdelrazak Younes
a72c205638 Autoshow and autohide menubar while in fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:14:09 +00:00
Pavel Sanda
13e42a8c73 Introduce groups for graphics insets. That includes:
- GuiGraphics dialog field for setup new groups.
- Graphics context menu for assigning to certain group.
- Fileformat change for groupId field in Graphics inset.
- Undo mechanism added to inset-apply, for catching changes
  in preference dialog.
- Qt designer 4.4 used now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 21:13:09 +00:00
Abdelrazak Younes
fc12716a97 We don't want the document dialog to be reset for each new paragraph.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 07:50:00 +00:00
Abdelrazak Younes
a04284c2b8 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4816
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-03 08:24:05 +00:00
Abdelrazak Younes
b9c526aaa2 * Delegates.h: clarify some comments.
* Dialog: get rid of updateData()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 21:38:23 +00:00
Abdelrazak Younes
32fac28acf Simplify dialogs updating.
* GuiView::updateDialogs(): merge with GuiView::checkStatus()

* LyXFunc::processKeySym(): remove call to GuiView::restartCursor(), this has already been called in the call to dispatch() at the end of the methof.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 20:58:25 +00:00
Abdelrazak Younes
ffa722e0b7 Cleanup Toc dialog and GuiView interaction. The toc models are now part of GuiView. The TocWidget is just a view of this model.
* GuiView::tocModel(): new method to access the toc models.
* TocModels: new class with code transferred from GuiToc.
* TocWidget: only needs a TocModels reference.

Thoughts:
- We should find a way to get rid of GuiToc.{c,h}
- tocModels() should perhaps be transferred to GuiWorkArea instead of GuiView in order to have Buffer dependent navigators.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 12:09:51 +00:00
Jean-Marc Lasgouttes
9b4a26a252 rename assert.h to lassert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
Jürgen Spitzmüller
74d1f2cb2f * GuiView.{cpp, h}:
- fix compilation (gcc didn't like the string arguments in the header file)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 04:57:31 +00:00
Abdelrazak Younes
bf27334cfa Some dialog consistency work:
* Dialog::updateData(): try to reset the dialog even if there's no Buffer.
* GuiView::updateBufferDependent():
- renamed to updateDialogs()
- don't hide when there's no current work area, try to disable instead.
- now also take care of toolbars and other elements. 
* TocWidget: delay item selection to avoid unwanted node collapsing after setting a new model.

Expect crash and/or assertions for dialogs that are not ready for this non-hiding change. I will fix them iteratively.
There are still too many dialogs updates going on...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 22:24:20 +00:00
Abdelrazak Younes
f1d25c23f8 Don't hide dialogs upon buffer switch. I've been wanting to do this for a looonnng time...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24502 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-25 12:45:39 +00:00
André Pönitz
5d61ceb81d fix #4758
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 19:12:15 +00:00
André Pönitz
3e729d8743 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24407 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 06:53:00 +00:00
André Pönitz
aff97fe9b5 move the filefilter stuff closer to the only place where it is used
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24395 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 19:56:01 +00:00
Jürgen Spitzmüller
4d88adcde5 Fix bug 4750
* src/frontends/qt4/GuiView.{cpp,h}:
	- (closeBuffer): only add buffer to list of last opened files
	  if close buffer is called from within GuiView::closeEvent

* src/Session.cpp: typo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24384 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 12:20:40 +00:00
Richard Heck
8a69ffd3bf Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got everything, but this does compile, and it seems to work at least reasonably well. Any problems should of course be reported to the list.
For the record, this developer is sorry that the problems with this code were not noticed much earlier. It's not fun to do so much work and then have it all reverted.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 03:08:11 +00:00
André Pönitz
fa804db4ab fix leak in the undo stack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-16 22:02:26 +00:00
André Pönitz
7f461f4392 infrastructure for 'graceful asserts'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 21:49:34 +00:00
Jürgen Spitzmüller
ab3ffd3a59 * src/frontends/qt4/GuiView.cpp:
- make version string in the banner at least partially translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 15:51:35 +00:00
Joost Verburg
26763681bb new logo graphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 12:50:54 +00:00
Pavel Sanda
8a20f27f6e Fullscreen: correct restoring of window state.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-30 22:27:17 +00:00
Stefan Schimanski
72068adf9c * infinite loops are not good
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 10:32:20 +00:00
André Pönitz
de17493932 simpliofy {Gui}FontLoader architecture a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23842 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 00:00:53 +00:00
Pavel Sanda
42eb8a373a Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-19 17:31:09 +00:00
Pavel Sanda
824ac5f2c8 Add checkbox to fullscreen menu entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23793 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 14:22:30 +00:00
Jean-Marc Lasgouttes
ad00d81144 use consistent ifdefs for the mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 10:23:02 +00:00
Jürgen Spitzmüller
f2e8cd3cd9 *** File Format Change: UI and enhancement for InsetSpace ***
* src/insets/InsetSpace.{cpp,h}:
	- merge in HFill inset, add support for dotfill, hrulefill,
	  hspace and hspace*
* src/insets/InsetHFill.{cpp,h}:
	- remove

* src/frontends/qt4/GuiHSpace.{cpp,h}:
* src/frontends/qt4/ui/HSpaceUi.ui:
* src/frontends/qt4/GuiView:
	- new GUI for Space insets.

* src/insets/Inset.{cpp,h}:
* src/insets/InsetCode.h:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetCommandParams.cpp:
	- remove HFILL_CODE and LFUN_HFILL_INSERT, add SPACE_CODE where necessary,
	  new Inset member isStretchableSpace() to indicate HFill and friends.

* Buffer.cpp: 
	- increase format to 319
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion/reversion routines
* development/FORMAT:
	- document file format change

* src/Makefile.am:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- deal with UI changes.

* src/LyXAction.cpp:
	- remove LFUN_HFILL_INSERT

* src/LyXFunc.cpp:
	- handle space dialog.

* src/factory.cpp:
* src/Paragraph.cpp (isHFill):
* src/Text.cpp:
* src/Text3.cpp:
* src/TextMetrics.cpp:
	- adapt to changes

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- add HSpace dialog, remove HFill.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 09:23:43 +00:00
Stefan Schimanski
f9f0b26bd3 * make sure the Mac special menu item are only created once per QMenuBar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:58:05 +00:00
Stefan Schimanski
7269440c83 * reset current_view_ when deleting a GuiView.
* check for current_view_ when exiting to avoid segfaults


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:42:59 +00:00
Stefan Schimanski
4e223167ff * activate the view from the constructor. This makes sure that the
special menu item for Mac see the "right" status of the LFUNs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23738 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:29:11 +00:00
Stefan Schimanski
25e0113c9c * Use open_buffers_in_tabs instead of single_window. The latter even confused me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:27:31 +00:00
Stefan Schimanski
5496ff053f * only autoclose GuiView on last removed tab if the tab mode is not enabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23736 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:26:47 +00:00
Stefan Schimanski
83661da26a * When clicking the close button on a background window, it can be that the window does
not get the current view when the closeEvent arrives. So better make sure it is the current
  explicitly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23734 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:56 +00:00
Stefan Schimanski
fda541d46a * on Mac close GuiView when the last tab was closed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:24:59 +00:00
Stefan Schimanski
0ba2a1e6f8 * preference option to open buffers in tabs or new windows
* moved the open/new file dispatches into GuiApplication to make them GuiView independent


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:24:45 +00:00
Stefan Schimanski
6688fc1f1e * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:35:44 +00:00
Stefan Schimanski
5d112c185c * remove the need of an active GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:33:16 +00:00
Bo Peng
bde7e6ef80 Fix loading opened files from last session
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 22:02:22 +00:00
Abdelrazak Younes
51a5db7110 General support for InsetCommand context menu. For this to work properly I had to disable all actions triggered by mouse right-clicking. This was bad ui in any case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23579 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:22:39 +00:00
Abdelrazak Younes
f7f67fa95e Encapsulate all menu related stuff inside Menu.cpp and simplify a few things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:33:52 +00:00
André Pönitz
be624b3de0 less string conversions as long as we stay in the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 07:59:47 +00:00
André Pönitz
88293cbcfb a few more docstring<->QString conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:10:53 +00:00
Stefan Schimanski
d8df65532e * make lyx look a bit more like a Mac application by removing frames around the work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23459 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 18:53:44 +00:00
Jean-Marc Lasgouttes
0320d29531 fix some compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:04:59 +00:00
Abdelrazak Younes
b45b4a0e87 GuiView: Avoid unnecessary GUI updates if it was the current view already.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23431 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 10:43:35 +00:00
Stefan Schimanski
8c4b08920e * bug fix to only do paragraph redraws, not fullscreen
* avoid an extra redraw due to completion when typing


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 09:18:46 +00:00
Abdelrazak Younes
8c8ff137da Get rid of 'quitting' global variable. It is not needed anymore because all windows are closed in order now and the frontend/core is properly separated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23280 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 12:30:41 +00:00
Abdelrazak Younes
3128c45b24 GuiView ctor: wrong property!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23279 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:56:36 +00:00
Abdelrazak Younes
b39e9e6c8e * GuiView: Make use of the default settings WRT last window closed and app quiting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23276 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:35:12 +00:00
Abdelrazak Younes
7ca1eacac1 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4498
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23275 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:23:41 +00:00
Abdelrazak Younes
8446d3dbfc Get rid of LyXFunc::closeBuffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23274 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 11:05:58 +00:00
Abdelrazak Younes
9940ca7730 Cleanup app quitting and window closing now that there is a clean separation between the frontend and the core.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23271 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 10:35:28 +00:00
Abdelrazak Younes
d1511fcb47 * GuiView::closeEvent(): adjust buffer closing WRT multi-view and child documents.
- a child document is kept loaded in any case. It is saved if needed before being hidden.
- a document which is not viewed in another window is closed now.
- we do nothing for documents that are also viewed in another window. There is two FIXME related to this last item in the code:

// FIXME 1: should we put an alert box here that the buffer
// is viewed elsewhere?
// FIXME 2: should we try to save this buffer in any case?
//saveBuffer(b);


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-26 14:15:32 +00:00
Abdelrazak Younes
21489f6a29 GuiView::dispatch(): Fix cut&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 17:36:40 +00:00
Stefan Schimanski
1bf7b59d60 * completion infrastructure
* completion support for mathed
* experimental completion support for text


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:42:34 +00:00
Abdelrazak Younes
7794aeadf6 LFUN_CLOSE_TAB_GROUP: bug fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:09:10 +00:00
Abdelrazak Younes
2a725d7c23 Introduce LFUN_CLOSE_TAB_GROUP.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:53:09 +00:00
Abdelrazak Younes
9ae75dddf6 * LFUN_SPLIT_VIEW: add support for vertical split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23089 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 12:48:05 +00:00
Abdelrazak Younes
95b9cbb4c4 Fix buffer-switching in split view.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23086 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 11:48:31 +00:00
Abdelrazak Younes
9d40f89b58 Introducing LFUN_SPLIT_VIEW
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23084 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-20 21:46:49 +00:00