Commit Graph

4991 Commits

Author SHA1 Message Date
Pavel Sanda
97ad52467f Try to deuglify RTL in Language preferences a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23743 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:50:02 +00:00
Stefan Schimanski
09fe21bd11 * QWidget::show is synchronous, hence we see the LyX logo for a moment, even if
in the next moment the new buffer appears. So we first create the buffer and
  then show the view.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:33:05 +00:00
Stefan Schimanski
2aff4838f9 * Some work was done in 2007 and 2008 which should deserve a copyright, no?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23741 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:32:34 +00:00
Stefan Schimanski
3658d7fe4d * comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:31:44 +00:00
Stefan Schimanski
fc816dba30 * comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:30:28 +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
cc4955b4a2 * in fact we have more than one menubar at the moment, even on Mac. It
should be possible to only keep one, but then the reference to
  menuBar() in GuiView must go or point to the global one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23733 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:38 +00:00
Stefan Schimanski
9adb5cef26 * release keyboard grab from global menubar again when a new GuiView is created
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23732 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:24 +00:00
Stefan Schimanski
d63821939c * create global menubar on Mac without a parent. It will be shown if no GuiView exists.
* fill global menubar with the normal actions
* capture the keyboard on the menubar if no GuiView exists. This
  enables the shortcuts on Mac in those cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:25:11 +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
6f26243e13 * only for Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 23:07:40 +00:00
Pavel Sanda
4f2d2e8fea Distinguish layout and preference string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 22:19:40 +00:00
Pavel Sanda
ee5f679545 Get rid of minimalistic comboboxes with oversensitive
scrollbars in settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23726 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 21:59:31 +00:00
Pavel Sanda
50fbaa337e Silence uic warning.
Spellchecker doesn't work anyway.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 20:20:24 +00:00
André Pönitz
90a17377f2 compile fix (missing forward declaration)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23723 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 19:51:42 +00:00
Stefan Schimanski
09e90f10ae * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23721 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:39:51 +00:00
Stefan Schimanski
dd9a03b910 * copy icon size to new GuiView from the last GuiView
* use small Mac combobox widget for small icon size. Otherwise the combobox is bigger than the icons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23720 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 16:39:34 +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
Stefan Schimanski
3a7c68d3f7 * we have not only one instance of the menu bar. Hence we better take the right Menu objects of the current buffer. Otherwise we easily get crashes if the last GuiView is closed. The Menu objects are gone then too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 15:34:31 +00:00
Stefan Schimanski
23b74676a2 * put "group layout list" option into tab list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-14 15:31:59 +00:00
Bo Peng
4ce363fcc6 Embedding: move file validation from InsetExternal to GuiExternal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23711 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 17:27:20 +00:00
Bo Peng
3192307c86 Embedding: move file validation from InsetBibtex to GuiBibtex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 17:19:36 +00:00
Bo Peng
dc177e2546 Embedding: move file validation from InsetGraphics to GuiGraphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23709 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 16:49:04 +00:00
Bo Peng
ded962802e Embedding: prepare params()[embed] in GuiInclude rather than InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 14:16:47 +00:00
Jean-Marc Lasgouttes
72c26ac6d1 two uninitialized variables uncovered by valgrind, and a gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-13 10:28:02 +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
Pavel Sanda
314b684501 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4194 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 16:17:25 +00:00
Stefan Schimanski
bde87d4ce7 * recover the status bar by only showing the layout list hints when the layout list is visible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:07:53 +00:00
Bo Peng
48f9225e27 Embed: allow the use of embedded layout and class (.cls, .sty) files.
* src/EmbeddedFiles.h|cpp: add validate() function to validate loaded .lyx file.
	* src/LayoutFile.h|cpp: add Layout_Type parameter to addLayoutFile to load an embedded layout.
	* src/BufferParams.h|cpp: read layout from temp directory, then local directory.
	* src/frontends/qt4/GuiDocument.cpp: handle embedded layout type
	* src/LyXFunc.cpp: handle embedded layout when a layout is re-read.
	* src/Buffer.cpp: validate after a buffer is read. handle exceptions properly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 18:31:38 +00:00
Abdelrazak Younes
94ff60ec7e Navigator: default to table of contents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:34:20 +00:00
Stefan Schimanski
c81e3a0203 * use base color for layout list background. Qt docs say:
QPalette::Base:	Used mostly as the background color for text
entry widgets, but can also be used for other painting - such as the
background of combobox drop down lists and toolbar handles. It is
usually white or another light color.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:29:14 +00:00
Abdelrazak Younes
04e46436ad * add "List of Graphics"
* don't append "(embedded)" to embedded list items.
* limit the number of entry to 30 items and offer to open the Navigator if above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:27:33 +00:00
Abdelrazak Younes
f53467871f add "Embedded Files" to Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23658 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 09:04:09 +00:00
Abdelrazak Younes
4f1d3f2162 * add "Child Documents" navigate submenu.
* move secondary lists to "Other Lists" navigate submenu as the menu started to be crowded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 08:25:13 +00:00
Bo Peng
99a5b638c3 refine browseRelFile in function addExtraEmbeddedFile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 02:26:20 +00:00
Stefan Schimanski
361d4d9a16 * simplified layout list a lot by subclassing QItemDelegate instead of
trying to simulate a menu with a QListView (that's what QComboBox does
on some platforms, but not on all).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23654 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 23:00:53 +00:00
André Pönitz
46c83df1cd less pointers...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23653 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 22:23:16 +00:00
Bo Peng
14eeac2e1c Allow selection of a local layout file from the document->settings dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23652 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 21:31:22 +00:00
Stefan Schimanski
e627e6fb53 * remove style, left from debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 18:44:28 +00:00
Stefan Schimanski
c6fff07103 * patch by Pavel to make the layout list look like it used to be in 1.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 17:11:14 +00:00
Stefan Schimanski
ae89d2a6b4 * made compatible with Qt 4.2 again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 16:20:33 +00:00
Stefan Schimanski
3be96448d5 * use small font for the header metrics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:43:47 +00:00
Stefan Schimanski
3e8e012355 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:42:35 +00:00
Stefan Schimanski
06a5803eab * reduce spacing in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:41:30 +00:00
Stefan Schimanski
edf9667025 * center RTF text vertically correctly in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:44:40 +00:00