Commit Graph

370 Commits

Author SHA1 Message Date
Abdelrazak Younes
eef4223e1b fix duplicate shortcuts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24994 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 11:45:00 +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
Jean-Marc Lasgouttes
703eca7670 make display of group list only depend on existence of groups; move the addition of a separator to the ui file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 09:33:08 +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
a75742cb98 fix inverted lfuns.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24611 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 08:12:32 +00:00
Abdelrazak Younes
a01ff241e2 Add context menu for outline operations. Choice of words might not be best.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 07:52:48 +00:00
Jürgen Spitzmüller
95767b840b support for rightarrowfill, leftarrowfill, upbracefill, downbracefill, by Helge Hafting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24567 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 20:11:57 +00:00
Jürgen Spitzmüller
99f2abf59f dynamic context menu for InsetCitation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:21:55 +00:00
Jürgen Spitzmüller
a585806b3c Implement inset-edit in InsetBibtex and add a context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:14:18 +00:00
Jürgen Spitzmüller
c778f093ea basic context menu for InsetExternal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 05:12:28 +00:00
Jürgen Spitzmüller
1458cd52b7 * implement "inset-edit" in InsetInclude.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 18:03:21 +00:00
Jürgen Spitzmüller
878b3ce315 Implement basic context menu for include insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 15:49:15 +00:00
Uwe Stöhr
31808dd993 stdmenus.inc: remove doubled menu entry, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4765
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24356 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 15:48:18 +00:00
Pavel Sanda
ff473c9787 Add dissolving to insets context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24114 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-04 10:49:01 +00:00
Jürgen Spitzmüller
c2ebb0b952 * some UI clarification on \enspace vs. \enskip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24087 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-01 14:53:29 +00:00
Abdelrazak Younes
eab9af1e6a fix duplicate shortcuts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 22:03:04 +00:00
Abdelrazak Younes
6a3a4135fc add some flesh to math context menu. Not sure my choice of items are the best possible, feel free to adjust/complement.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24021 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 22:00:15 +00:00
Abdelrazak Younes
62797eb0c7 Fix copy&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24019 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 18:52:42 +00:00
Abdelrazak Younes
53daaabef4 Add tabular context menu. Feel free to enhance/modify Edwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24018 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 18:50:33 +00:00
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