Commit Graph

4329 Commits

Author SHA1 Message Date
Bernhard Roider
1a77c867a2 CmdDef.cpp/h: A class that manages command definitions. The definitions are
by default read from lib/commands/default.def 
              A .def file allows to define a command with
              \define "Name" "lfun"
              where Name is the name of the new command and lfun is the code
              to be executed.
              \def_file "FileName"
              allows to include another .def file.
              The implementation of CmdDef is similar to KeyMap, i.e. there is 
              one instance created in the LyX.cpp that reads the .def file, holds 
              a list containing all definitions, and supplies access methods.


LFUN_CALL:    The new lfun is used to execute a command definition, e.g.
              call Name

If a toolbar item has the associated action "call Name" then the image 
lib/images/commands/Name.png is used for the button.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21093 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 23:27:03 +00:00
Bernhard Roider
3e6d4a6168 Search for toolbar images in the filesystem and afterwards in the resource.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21092 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 23:08:02 +00:00
Bo Peng
0755a1c9dc PrefShortcuts: Roughly finish the shortcut configuration panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21090 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:50:56 +00:00
Bo Peng
9321ad2736 add a \unbind keyword and a few utility functions (unbind, write, delkey) to KeyMap.h,.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:35:33 +00:00
Bo Peng
36f7fcdee0 add another format (BindFile) to KeySequence::print()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21087 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 20:28:05 +00:00
André Pönitz
fbb3abfeac cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21085 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:35:27 +00:00
André Pönitz
34889ec7b3 remove unused method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21082 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 14:56:46 +00:00
André Pönitz
f762cbf3c6 mainly cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 10:03:45 +00:00
Peter Kümmel
04ba7e1bb2 rcc: use -name option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21074 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 18:45:09 +00:00
Richard Heck
e158e07c29 InsetCommandParams() now takes an InsetCode rather than a string.
These changes are just adaptations to the new signature.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21072 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 17:22:55 +00:00
Bo Peng
b6c89e2db0 PrefShortcuts: Hide unmatched items instead of highlighting matched ones (JMarc's suggestion )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21071 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 16:49:04 +00:00
Enrico Forestieri
026013e1eb Compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21065 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 15:16:40 +00:00
Abdelrazak Younes
dc2f94a8b1 fix some warning and a bogus empty test.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21053 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 09:38:28 +00:00
Bo Peng
1503743eda PrefShortcuts: the buttons are almost usable now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21050 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 03:09:14 +00:00
André Pönitz
a02653e4dd isome more FileName shuffling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21048 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 23:03:51 +00:00
André Pönitz
988f372843 use FileName::isDirectory()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21047 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 21:10:35 +00:00
Peter Kümmel
0f939f0a79 add qrc file to cmake build process
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21045 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 19:35:38 +00:00
Bo Peng
0780a505eb PrefShortcuts: add a simple shortcut dialog (does nothing now), adjust prefShortcuts panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21037 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 16:47:31 +00:00
Bo Peng
94776982b2 PrefShortcuts: fix a typo, add some more buttons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21036 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 16:09:01 +00:00
Bo Peng
cc91c7e6ee PrefShortcuts: list all shortcuts (bound and unbound), using a better implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21035 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 15:48:51 +00:00
Abdelrazak Younes
01ac256b90 compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21030 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 09:24:16 +00:00
André Pönitz
3cf87991c6 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21013 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 18:47:47 +00:00
André Pönitz
cf9f0fce52 un-break display of toolbuttons wiuth delimiters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21012 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 18:45:55 +00:00
André Pönitz
33e397dff8 use "real" resources
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21007 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 18:28:45 +00:00
Bo Peng
b54bd5ae98 PrefShortcuts: iteratively add all LFUN to different categories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21001 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 05:13:34 +00:00
Bo Peng
404572d97d List currently used shortcuts in the shortcuts panel of the preference dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20991 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-16 17:48:37 +00:00
Bo Peng
b5538c32aa Separate PrefShortcuts from PrefUi, in preparation for a shortcuts configuration panel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20989 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-16 14:41:46 +00:00
Abdelrazak Younes
07ac8a473b Reduce use of dynamic_cast.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20980 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-16 06:50:09 +00:00
André Pönitz
200f5a292f mainly reduce include dependencies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20976 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-15 22:43:55 +00:00
Bo Peng
7d0b8eecb7 Use qt422 version of the ui file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20960 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 00:29:35 +00:00
Uwe Stöhr
b2ccb2d4e3 ERTUi.ui: fix dialog size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20959 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 23:02:28 +00:00
Bo Peng
bb35edd0b0 Add Erlang support for listings (bug 4263)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20958 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 20:56:28 +00:00
Uwe Stöhr
7075eaadef The huge URL patch:
- rename the lfun to href-insert.png
- rename the files to Hyperlink...
- the former URLUi produces now \href commands (hyperref)

Only missing thing is the lyx2lyx conversion routine - this will be done by Richard

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20950 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 19:06:09 +00:00
Abdelrazak Younes
f7b1c86393 Move Inset::Code to InsetCode.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20936 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 09:04:52 +00:00
Edwin Leuven
832653caf1 add missing include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20918 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 19:35:49 +00:00
Edwin Leuven
82c70b62a2 small facelift for close button on tabwidget
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20917 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 19:00:18 +00:00
Edwin Leuven
7fd83b7f02 add "copy to clipboard" button to log dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20916 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 18:15:30 +00:00
Abdelrazak Younes
59aae2aa83 Don't restart the blinking cursor inside WorkArea because some shortcuts can delete the current WorkArea.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20900 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 12:31:48 +00:00
Abdelrazak Younes
9a458ec6e9 Move private part of BufferView to a private implementation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20896 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 09:59:01 +00:00
Abdelrazak Younes
18137a6ad6 Fix cursor blinking after unknown action.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20893 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 07:03:17 +00:00
André Pönitz
264a3d1cb4 fix bug reported by Jean-Marc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20890 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 16:57:05 +00:00
Edwin Leuven
dddcccfebe designer sucks sometimes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20887 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 09:50:03 +00:00
Abdelrazak Younes
671ca5908e Opened, resize a bit and saved in Designer 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20886 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 09:26:42 +00:00
Edwin Leuven
1cdf324716 try again with designer 4.1 (sorry!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20885 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 09:22:36 +00:00
Abdelrazak Younes
e3032e7d0e * BufferView::update(): renamed to processUpdateFlags() to clarify the intent. Also get rid of the default argument which added to the confusion as to what was the purpose of update(). Now also emit Buffer::changed() signal internally instead of assuming that the caller will act upon the returned boolean.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20884 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 08:52:55 +00:00
Edwin Leuven
6a474e739c small tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20883 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 08:26:08 +00:00
Uwe Stöhr
3ac983b1ab BiblioUi.ui: fix too wide groupbox by adding a spacer
FloatPlacementUi.ui: fix too large groupbox by adding spacers
ParagraphUi.ui: fix dialog definition - was automatically done by designer
PDFSupportUi.ui: fix too large groupbox by adding a spacer

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20882 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 01:07:49 +00:00
Uwe Stöhr
38dfe36093 PDFOptions: Pavel's final touches patch
PDFSupportUi.ui: recreated dialog to fix the appearance in the dialog settings dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20881 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 00:34:23 +00:00
André Pönitz
74f8d6dc6a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20876 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 22:13:51 +00:00
André Pönitz
5342ee5aad finally merge Dialog and Controller
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20875 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 21:21:01 +00:00