Commit Graph

260 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
996ff26f3a * lib/ui/default.ui:
- view toolbar to the top.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18443 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-21 14:20:20 +00:00
Bernhard Roider
6de5d0ad58 fix bug 2453
change of behavior of rotate-tabular and rotate-cell toolbar buttons such that they toggle the rotation. Therefore a toggle feature is added to the tabular features. Moreover after the patch the state of the set-rotate-cell and toggle-rotate-cell buttons is on only if all selected cells in the table are rotated. If not all selected cells are rotated then the toggle button rotates all selected cells.

The toggle-icons are copied from the set-icons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18280 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-12 20:59:21 +00:00
Bo Peng
4ce743a0a7 Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog.
* src/LyXAction.cpp: listing-insert action
	* src/insets/Inset.h,cpp: LISTINGS_CODE
	* src/insets/InsetInclude.cpp: handle \lstinputlisting
	* src/insets/InsetListings.h,cpp: new listings inset
	* src/insets/InsetListingsParams.h,cpp: parameters from listings package
	* src/insets/InsetCommandParams.h,cpp: handle lstinputlisting option
	* src/Bidi.cpp: handle LISTINGS_CODE
	* src/frontends/qt4/ui/TextLayoutUi.ui: update UI
	* src/frontends/qt4/ui/ListingsUi.ui: new dialog
	* src/frontends/qt4/ui/IncludeUi.ui: update UI
	* src/frontends/qt4/QInclude.h,cpp: add lstinputlisting
	* src/frontends/qt4/QDocument.h,cpp: add textedit for preamble listings_params
	* src/frontends/qt4/QListings.h,cpp: new listings inset
	* src/frontends/qt4/Dialogs.cpp: new listings dialog
	* src/frontends/controllers/ControlInclude.h,cpp: add lstinputlisting
	* src/frontends/controllers/ControlListings.h,cpp: new listings inset
	* src/LyXFunc.cpp: handle LISTING_CODE
	* src/Paragraph.cpp: handle LISTING_CODE
	* src/factory.cpp: new listings inset
	* src/CutAndPaste.cpp: handle LISTINGS_CODE
	* src/LaTeXFeatures.cpp: require listings
	* src/Text3.cpp: Handle LISTINGS_CODE
	* src/lfuns.h: add LFUN_LISTING_INSERT
	* src/Buffer.cpp: change lyx file format to 269
	* src/BufferParams.h,cpp: add listings_params to preamble
	* lib/lyx2lyx/LyX.py: lyx2lyx 
	* lib/lyx2lyx/lyx_1_5.py: lyx2lyx
	* lib/ui/stdmenus.inc: new menu item (no shortcut!)
	* src/insets/Makefile.am: update autotools
	* src/frontends/controllers/Makefile.am
	* src/frontends/qt4/Makefile.dialogs
	* src/frontends/qt4/Makefile.am
	* po/POTFILES.in: a few more translatable files.
	* development/scons/scons_manifest.py: scons build system
	* development/FORMAT: document format changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-09 19:11:42 +00:00
Jürgen Spitzmüller
574b28db65 Fix bug 3508:
* src/ToolbarBackend.cpp:
* lib/ui/stdtoolbars.inc:
	- add tooltip to table widget
* src/frontends/qt4/QLToolbar.cpp:
	- display tooltip as icon text

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18208 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-06 07:26:51 +00:00
Edwin Leuven
c1a68504c8 * replace old toc-view with new dialog-toggle
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18191 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-03 21:07:39 +00:00
Michael Schmitt
6f85a43cae * lib/ui/stdtoolbar.inc: "Math Spacing" => "Math Spacings" (use plural form consistently)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18146 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-01 09:57:45 +00:00
Jürgen Spitzmüller
699fd5a7b4 * src/lfuns.h:
* src/LyXAction.cpp:
* src/LyXFunc.cpp:
	- implement new LFUN_DIALOG_TOGGLE
	- remove obsolete LFUN_TOC_VIEW

* lib/ui/classic.ui:
* lib/ui/stdmenus.inc:
	- use dialog-toggle for toc and view-source

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-30 14:29:49 +00:00
Michael Schmitt
295eea310e replace term "Glossary" by "Nomenclature"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18102 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-29 22:21:00 +00:00
Edwin Leuven
bcec0b3dc9 * redo some frame decoration icons and also make them consistent in size
* reorder frame dec icons in toolbar

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17978 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-25 09:06:32 +00:00
Edwin Leuven
2c0c3491d9 * remove math panel menu entry and allow auto toggling of panel toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17878 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-21 08:30:41 +00:00
Edwin Leuven
254a850597 * remove spellcheck button from extra toolbar (since it is main one)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17876 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-20 12:32:42 +00:00
Edwin Leuven
22fb43fd8f * removal of math panel
some code is moved from QMath 
  to QDelimiterDialog and QMathMatrixDialog
  for the rest pretty mechanical

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17872 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-19 21:42:42 +00:00
Edwin Leuven
996de70e56 * Action.[Ch]
add signal that provides action when triggered

* ToolbarBackend.[Ch]
	add popupmenu and iconpallete item types

* QLToolbar.[Ch]
	take care of popupmenu and iconpallete

* stdtoolbars.inc
	add panels and menus (and move spellchecker to main ;-)

* functions.xpm
	icon for function list

* iconpalette.[Ch]
	new iconpanel that will replace old iconpalette,
	als subclass of qmenu that updates parent toolbutton


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17868 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-19 20:29:27 +00:00
Edwin Leuven
f73cedc1d0 * Refactoring of ToolbarBackend.[Ch] into
toolbaritems, toolbar(info) and backend

  stdtoolbars.inc now defines the toolbars inbetween
  a ToolbarSet/End tag just as the menus

* the other files contain straightforward changes
  because of the toolbarbackend refactoring


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17867 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-19 19:43:15 +00:00
Michael Schmitt
e28e0e941c * lib/ui/stdtoolbars.inc: group all delimiter buttons; strip obsolete "math" prefix
* lib/ui/stdmenues.inc: move math panel to the end of the submenu; strip obsolete
	"math" prefix (everything is math-related in this submenu)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17810 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-14 16:29:01 +00:00
Uwe Stöhr
92cee8a262 Connect math matrix dialog to math panel as discussed yesterday.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17780 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 19:14:47 +00:00
Richard Heck
aa87b87bf9 Added menu entries for math delimiter and matix dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 22:04:08 +00:00
Uwe Stöhr
c3ffce4a8c add math delimiter dialog to math toolbar, by Richard and me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17768 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 20:57:59 +00:00
Bo Peng
6fc7d47a5f Restore old bookmark behaviors (stop using bookmark queue)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 03:41:55 +00:00
Michael Schmitt
cb6cacaa6a * ui/stdmenues.inc: add missing ellipsis for "glossary entry" menu entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17617 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 19:53:05 +00:00
Uwe Stöhr
87b2d1a2b4 correct tooltip name for consistency
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17465 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-17 19:46:33 +00:00
Jean-Marc Lasgouttes
c092362529 update classic menu too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16978 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 15:59:35 +00:00
Uwe Stöhr
74c4cede85 rename ExtendedInsets to Embedded Objects as discussed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16959 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 00:05:50 +00:00
Michael Schmitt
b218ab82d4 * lib/ui/stdmenus.ui: add "Select All" to edit menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16954 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 22:16:47 +00:00
Michael Schmitt
ec4b87dd28 * lib/ui/stdmenus.inc: remove ellipsis (...) for Caption inset, because no dialog opens
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16953 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 22:01:35 +00:00
Abdelrazak Younes
500a5f959f The caption inset patch by Georg, Martin and myself.
* buffer.C: increase LyX format to 257.

* lyxtextclass.C: increase FORMAT format to 3.

* buffer_funcs.C: 
  - setCaptionLabels(): new recursive function
  - setCaptions(): new function
  - updateLabels(): call setCaptions() for each paragraph.

* InsetCaption:
  - add a virtual destructor
  - overload InsetText' getStatus() and wide().
  - setLabel(): only set the new private member label_.
  - metrics(): don't set label here and correct for title metrics.
  - draw(): don't set label here
  - latex(): fix optional argument.
  - plaintext(): implement!

* InsetText:
  - add a virtual destructor
  - add virtual to getStatus() and wide().

*  output_latex.[Ch]: move latexOptArgInsets() out of anon namespace.

* text3.C: enable LFUN_CAPTION_INSERT


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16948 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 13:23:21 +00:00
Michael Schmitt
aa1efab525 * lib/ui/stdmenus.inc: change "Figures, Tables, Floats, Notes, Boxes" to
"Special Insets"; the former menu entry is too lengthy


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16904 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 14:19:57 +00:00
Uwe Stöhr
a0936c4cf3 ExtendedInsets:
- remove two unneeded images
- some corrections
- use a proper menu entry name because "Insets" says nothing to the user

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16897 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 03:03:44 +00:00
Michael Schmitt
7208919883 * lib/ui/stdttoolbars.inc: for the perfectionists: use a shorter
toolbar title ("View/Update") for consistency with the other
	toolbars (e.g., we say "Table" rather than "Edit Table")


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16795 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-21 11:48:21 +00:00
Michael Schmitt
b099295441 * lib/ui/stdtoolbars.inc: fix typo; use Capitals in
toolbar name; remove term "output" in "DVI output"
	for consistency with the other items


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16792 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-21 10:20:39 +00:00
Uwe Stöhr
8dd721572f change default position of new "view/update" toolbar to the right as this was the original intention.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16790 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-21 00:50:51 +00:00
Uwe Stöhr
b6cdc7d751 new toolbar to view/update view documents; as discussed on the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16789 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-21 00:05:33 +00:00
Michael Schmitt
06df38b7f1 * lib/ui/classic.ui: "Plain Text, Join Lines" - align
with menu entries in stdmenus.ui


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16787 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 18:35:27 +00:00
Martin Vermeer
8f7b5e4952 * stdmenus.inc: change wording of "as Lines", "as Paragraphs"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16742 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 07:23:58 +00:00
Michael Schmitt
1f7a1257f1 * change LFUN file-insert-ascii to file-insert-plaintext
* change LFUN file-insert-ascii-para to file-insert-plaintext-para
* change LyXRC::RC_ASCIIROFF_COMMAND to LyXRC::RC_PLAINTEXT_ROFF_COMMAND
* change LyXRC::RC_ASCII_LINELEN to LyXRC::RC_PLAINTEXT_LINELEN
* replace "ascii" by "plaintext" in method names


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-15 22:49:14 +00:00
Michael Schmitt
9c09f34da0 * lib/*: rename Extended-Insets to ExtendedInset
* development/scons/scons_manifest.py: add es_ExtendedInset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16683 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 18:17:56 +00:00
Uwe Stöhr
f41eedd7ee - new documentation
- images used in the new documentation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16676 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 16:41:42 +00:00
Michael Schmitt
d3216ba624 * lib/ui/stdmenus.inc: use marginally better shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16618 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 23:17:44 +00:00
Michael Schmitt
904ccfa5bd * lib/ui/stdmenus.inc: remove "paste " from "paste selection as xxx"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16614 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 22:00:43 +00:00
Bo Peng
b7f4f88f2f lib/ui/stdmenus.inc: change 'Clipboard as xxx' to 'Plain Text as xxx'. I still think we should remove 'Selection as xxx'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16590 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 22:52:04 +00:00
Michael Schmitt
8c85719080 * lib/ui/stdmenus.inc:
* lib/ui/stdmenus.ui: rename file in order not to confuse users
* lib/ui/stdtoolbars.inc:
* lib/ui/stdtoolbars.ui: rename file in order not to confuse users

* development/scons/scons_manifest.py: 
* lib/doc/de_Customization.lyx:
* lib/Makefile.am:
* lib/ui/classic.ui:
* lib/ui/default.ui: adjust
 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16549 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 13:42:15 +00:00
Bo Peng
8e46520b99 Change menu item 'Paste External Clipboard/Selection' to 'Paste Special'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16516 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 20:08:22 +00:00
Jean-Marc Lasgouttes
94da7f7c83 * src/MenuBackend.[Ch]: the specialMenu is now a real menu, not a
menu name. 

	* src/frontends/qt4/QLMenubar.C (macxMenuBarInit): hardcode the 
	special menu instead of reading it from ui files. Use labels that will
	trigger Qt menu merging functionality onthe mac. This fixes menu
	merging on LyX/Mac (but the menu names are still in english for now). 

	* lib/ui/stdmenus.ui: delete special menu definition "LyX".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16479 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 11:59:10 +00:00
Michael Schmitt
a37792598e * lib/ui/stdmenus.ui: change "Special Formatting" to
"Formatting" as suggested by John Levon; add shortcuts
	for clear (double) page; add separator between line
	break commands and page break commands


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16040 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 17:03:30 +00:00
Bo Peng
7b031e5d86 Add inset clearpage and cleardoublepage, from Urgas
* src/insets/insetert.C
	* src/text3.C
	* src/lfuns.h
	* src/factory.C
	* src/tex2lyx/text.C
	* src/text.C
	* src/LyXAction.C: add and handle LFUN_CLEARPAGE_INSET and LFUN_CLEARDOUBLEPAGE_INSET
	* src/insets/insetpagebreak.h/C: extend InsetPageBreak
	* lib/lyx2lyx/lyx_1_5.py: file format change
	* lib/ui/stdmenus.ui: add menu items


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16037 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 15:09:01 +00:00
Georg Baum
bb8c9253e4 Add button for default layout to the toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15946 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 08:17:48 +00:00
Michael Schmitt
d25c7ca95c * ui/stdmenus.ui: use the same shortcut for Eqnarrary in
"edit" and "insert"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15873 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 09:50:57 +00:00
Michael Schmitt
298c01e167 replace "Notation Entry" by "Glossary Entry" and "Notation List" by "Glossary"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15797 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 22:28:53 +00:00
Michael Schmitt
0b9624f421 * stdtoolbars.ui: change "notation" to "glossary";
change "TeX Code" to "TeX code"
	


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15794 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 21:45:30 +00:00
Michael Schmitt
0f56f98ec2 * ui/stdmenus.ui: add shortcuts whereever possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15793 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 21:38:02 +00:00