Commit Graph

351 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
3d2cb4b1b5 properties=>settings for context menus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23970 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 10:45:36 +00:00
Jürgen Spitzmüller
c876a2e7c7 Merge the two linebreak insets into one.
* src/Buffer.cpp:
	- file format change to 324
* development/FORMAT:
	- document file format change

* src/insets/InsetNewline.{cpp,h}:
	- the former two separate derivates are now merged into one inset
	  with proper Params and Mailer. This simplifies the structure and allows for
	  switching between the two kinds.

* src/Text3.cpp:
	- The newline insets are now being generated with 
	   newline-insert [newline|linebreak]

* src/factory.cpp:
* src/Text.cpp:
	- Newline inset is now a proper inset with opening and closing tag.

* src/FuncCode.h:
* src/LyXAction.cpp:
* src/Text3.cpp:
* src/insets/InsetCollapsable.cpp:
* src/insets/InsetTabular.cpp:
* src/mathed/InsetMathGrid.cpp:
* src/mathed/InsetMathHull.cpp:
	- remove LFUN_NEW_LINE, LFUN_LINE_BREAK,
	  add LFUN_NEWLINE_INSERT

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion and reversion routines for newline insets.

* lib/ui/stdmenus.inc:
* lib/ui/stdcontext.inc
	- adapt menu and add context menu to switch between newpage variants.

* lib/bind/*.bind:
	- adapt to new lfuns.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-26 08:10:01 +00:00
Jürgen Spitzmüller
fa4d6355aa * stdcontext.inc:
- honour JMarc's suggestions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 16:18:15 +00:00
Richard Heck
5d02c5e7ea Forgot the most important bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23949 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 16:03:02 +00:00
Richard Heck
72b7c73b5a Move context menus to their own file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 16:02:26 +00:00
Jürgen Spitzmüller
d2a4c97ab8 Merge the diverse newpage insets into one.
* src/Buffer.cpp:
	- file format change to 323
* development/FORMAT:
	- document file format change

* src/insets/InsetNewpage.cpp:
	- the former four separate derivates are now merged into one inset
	  with proper Params and Mailer. This simplifies the structure and allows for
	  switching between the various kinds.

* factory.cpp:
	- The newpage insets are now being generated with 
	   newpage-insert [newpage|pagebreak|clearpage|cleardoublepage]

* src/Text.cpp:
	- Newpage inset is now a proper inset with opening and closing tag.

* src/FuncCode.h:
* src/LyXAction.cpp:
* src/Text3.cpp:
* src/insets/InsetCollapsable.cpp:
	- remove LFUN_PAGEBREAK_INSERT, LFUN_CLEARPAGE_INSERT
	  and LFUN_CLEARDOUBLEPAGE_INSERT

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
	- conversion and reversion routines for newpage insets.

* lib/ui/stdmenus.inc:
	- adapt menu and add context menu to switch between newpage variants.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 09:26:03 +00:00
Richard Heck
c2ac470567 Little update to conglomerate context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 06:46:18 +00:00
Jürgen Spitzmüller
4b1cfb9852 * stdmenus.inc:
* src/insets/InsetCollapsable.inc:
	- specific context menu for conglomerate insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 06:17:18 +00:00
Jürgen Spitzmüller
ebc3f47945 * lib/ui/stdmenus.inc (context-note):
- remove pointer to superfluous dialog. The dialog itself will die eventually.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-25 05:10:56 +00:00
Jürgen Spitzmüller
241a8442d7 fix the general collapsable context-menu:
* src/InsetCollapsable.cpp (getStatus):
	- fix the logic

* src/BufferView.cpp:
	- fix next-inset-toggle
	- don't require argument for inset-settings

* lib/stdmenus.inc (context-collapsable):
	- use next-inset-toggle instead of inset-toggle
	- add (optional) inset-settings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 16:33:56 +00:00
Jürgen Spitzmüller
e1ac6d4118 Some context menu work:
* src/BufferView.cpp:
* src/FuncCode.h:
* src/LyXAction.cpp:
	- new LFUN_NEXT_INSET_MODIFY

* src/insets/InsetBox.{cpp, h}:
* src/insets/InsetCommand.{cpp,h}:
* src/insets/InsetNote.{cpp,h}:
* src/insets/InsetSpace.{cpp,h}:
* src/insets/InsetVSpace.{cpp,h}:
	- implement context menu and access to some changes

* lib/ui/stdmenus.ui:
	- new context menus for Box, Space, VSpace, Note.
	- extend the context menu for InsetRef.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:33:48 +00:00
Bo Peng
057dd755f5 Move LFUN_GRAPHICS_EDIT and LFUN_EXTERNAL_EDIT from LyXFunc.cpp to BufferView.cpp so that a valid inset can be retrieved and called upon; add context-menu for InsetGraphics and InsetListings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23910 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 04:27:43 +00:00
Jürgen Spitzmüller
cf2320996b * lib/ui/stdmenus.inc:
- add "Edit..." item to label & ref context menu.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-23 12:56:27 +00:00
Abdelrazak Younes
de6f93296f Context menu for collapsing minimalistic insets such as ERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23880 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:02:47 +00:00
Pavel Sanda
2ab76cdad1 Fix hyphenation point in menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23870 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 16:02:08 +00:00
Edwin Leuven
b7406da7f0 * new function to set border around selection
* add to toolbar + icon
* update border icons to match in size

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23846 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 08:45:40 +00:00
Pavel Sanda
5f51e1c9af Add fullscreen to context menu, so returning back is possible
even without shortcut.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23791 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-17 14:11:21 +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
21eddc8fe2 * math macro definition context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:51:14 +00:00
Pavel Sanda
65910a6c74 Add menuitem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23611 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:43:07 +00:00
Pavel Sanda
635b2c1cc3 Start some context-edit menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:30:02 +00:00
Uwe Stöhr
a49c4e3454 stdmenus.inc: comment out two non-working menu entries
(see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136498.html)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23600 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:49:25 +00:00
Pavel Sanda
741d69b138 Add the possibility to remove label from equation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23594 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:49:24 +00:00
Pavel Sanda
e1699b9d37 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23593 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:16:50 +00:00
Pavel Sanda
5e79b2ca4f Add math context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:07:27 +00:00
Abdelrazak Younes
268ef141e5 add a simple context menu for InsetLabel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23582 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:51:34 +00:00
Abdelrazak Younes
3f5e92ce72 add a simple context menu for InsetRef.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23580 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:24:27 +00:00
Jürgen Spitzmüller
f2c06b5d9e * lib/default.ui:
- revert accidental commit in revision 23370.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23374 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 17:47:04 +00:00
Uwe Stöhr
ab62620666 default.ui: let the toolbars appear when needed
This was often requested by users so that I already implemented this in the alternative installer.
This furthermore avoids questions on the lyx-users list (we had several times questions about "Where is the math toolbar when I'm in math?" etc.)
(This toolbar behavior is also used e.g. by OpenOffice or Word.)

As this topic now arises again with the macro toolbar
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136267.html
and nobody objected, I implemented this now.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23370 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 15:20:43 +00:00
Stefan Schimanski
e936a451da * enable auto again. See r22655. The three flags math, table, mathmacrotemplate only specify when the toolbar is shown in auto mode. But you still have to enable "auto" explicitly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-29 09:18:21 +00:00
Uwe Stöhr
11c71616f0 default.ui: delete a spurious parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 22:23:15 +00:00
Abdelrazak Younes
9884a7193d Add menu item for close-tab-group
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23098 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:58:58 +00:00
Pavel Sanda
9dbe777910 * lib/stdmenus.inc: Collision with HTML|H
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23095 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 14:23:10 +00:00
Jürgen Spitzmüller
34f93b22f7 * lib/stdmenus.inc:
- fix shortcut casing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23093 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 13:20:29 +00:00
Abdelrazak Younes
55d621f5b2 add menu item for split-view
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23091 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 13:09:27 +00:00
Pavel Sanda
72b270ab4b Improve fullscreen mode (bug 4146).
- added toolbars/tabbar/scrollbar toggling
- added text width control
- added GUI preferences & menu & shortcut

Known problems:
- Outliner in Mac is seeking some Mac devie to fix (see hints here:
  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135382.html ) 
- Toolbars visibility is shared between windows (views)
  (needs toolbars overhaul).
- Adding new tab items does not reflect fullscreen mode
  (i.e. margins and tabbar get visible)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23069 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-19 21:51:55 +00:00
Jürgen Spitzmüller
9bdca85f26 *** New Symbols Dialog ***
* src/Encoding.{cpp,h}:
	- new public member getSymbolsList()

* src/frontends/qt4/GuiSymbols.cpp:
* src/frontends/qt4/GuiSymbols.h:
* src/frontends/qt4/ui/SymbolsUi.ui
	- new files

* src/frontends/qt4/GuiView.cpp:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- add new dialog

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- menu item for symbols dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:18:07 +00:00
Stefan Schimanski
cf333f5ab4 * Support for graphics pasting (with most code in the frontend's GuiClipboard)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:43:03 +00:00
Uwe Stöhr
cfdad9946d I wrote a new manual "LyX's detailed math manual". See the announcement on the list.
The file examples/mathed.lyx is no longer needed as its content is part of the new manual.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22691 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-27 20:58:45 +00:00
Stefan Schimanski
135fbe2c1b * add "auto" flag for toolbars
* make macro toolbar automatic

This reverts commit 7d48e270549aa04c34fae9ce9682162c78f57eda.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 22:56:10 +00:00
Uwe Stöhr
f16abb9447 stdtoolbars.inc: adapt to r22585
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 21:49:14 +00:00
Uwe Stöhr
62543f6fb8 toolbar button for boxes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22566 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 22:25:03 +00:00
Uwe Stöhr
33c95fc07b rename LFUNs math-nonumber and math-number to what they really do,
fixes bug 2608

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22496 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 22:45:19 +00:00
Uwe Stöhr
8b3acb7092 stdtoolbars.inc: partly revert r22445
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22483 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 20:57:15 +00:00
Jürgen Spitzmüller
f585b6ba11 * lib/ui/stdtoolbars.ui:
- disambiguate "Review".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22476 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 08:54:23 +00:00
Uwe Stöhr
b99297b2c2 stdtoolbars.inc: rearrange integral icons to avoid the impression that \intop is the default. \int is the default and also usual.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:40:39 +00:00
Pavel Sanda
922aa7b1e8 Add characters counting.
Introduce LFUN_STATISTICS.
see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg134033.html .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22433 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 15:18:00 +00:00
Jean-Marc Lasgouttes
ac5a40e5a3 rename menu entries for numbering formulas
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:22:20 +00:00
Stefan Schimanski
7fa64792f5 * disable "auto" again until that point is discussed on the mailing list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22269 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:50:21 +00:00
Stefan Schimanski
4267ad00cd * math macro toolbar can be made automatic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22265 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 00:47:37 +00:00