Commit Graph

5006 Commits

Author SHA1 Message Date
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
Pavel Sanda
e921847e12 Change strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 02:49:47 +00:00
Richard Heck
c17a8122cf Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23780 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 01:10:45 +00:00
Stefan Schimanski
9e499117e3 * possibility to disable the completion cursor in text. All those
"*supported" methods maybe should be merged with a bit-enum as return value.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23776 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 17:07:10 +00:00
Stefan Schimanski
a015e133ab * getSpeller create a new speller, so call it create*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 17:06:26 +00:00
Bo Peng
0f9a8fcad4 Add use_bundled_format rc entry to allow creation of new buffers in bundled format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 22:41:54 +00:00
Bo Peng
47c5be88e3 Tools->Preference: move editing and fullscreen from user interface to a new panel editing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23767 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 22:12:19 +00:00
Stefan Schimanski
c3c58bbb72 * make Qt 4.2 happy. Please complain if it is not.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 10:19:12 +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
214828d961 * fix drag pixmap
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23751 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:42:48 +00:00
Stefan Schimanski
cb45bc6a22 * drag'n'drop for tabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23750 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 02:13:01 +00:00
André Pönitz
a98f82c292 s/kb_action/FuncCode/g
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23749 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 01:20:36 +00:00
Stefan Schimanski
b607775ad7 Implementation of the conclusion of the "LyX/Mac 1.6 -- Window issues" thread:
* add tab popup menu to hide and close a buffer.
* remove the very non-standard hide-button on the left of the tabbar.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23748 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 01:00:25 +00:00
André Pönitz
f2c9b56fb4 cosmetics/#include cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-15 00:22:54 +00:00
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