Commit Graph

559 Commits

Author SHA1 Message Date
Abdelrazak Younes
5ab92646a3 adjust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24014 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-28 08:47:48 +00:00
André Pönitz
621af49f78 adjust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24007 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-27 22:27:11 +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
Bo Peng
d74c60b860 fix scons by linking boost.cpp after boost libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 18:17:37 +00:00
André Pönitz
0b5fc35e1c remove unused defines QT_CLEAN_NAMESPACE and QT_GENUINE_STR
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-21 15:09:39 +00:00
Bo Peng
eb1cc5ac22 fix scons for r23849
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23851 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-20 14:53:07 +00:00
Jürgen Spitzmüller
2a2c2d8986 Move completion to a pane of its own.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23811 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-18 17:31:17 +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
Uwe Stöhr
f1443b9db6 update SCons according to r23747 and r23749
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23778 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-16 19:01:05 +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
Enrico Forestieri
ba496b94ac Merge InsetMathBoldSymbol and InsetMathBM by providing \boldsymbol
through the bm package.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 14:33:16 +00:00
Uwe Stöhr
4ffa69eee9 SCons update according to r23547
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23585 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 14:05:55 +00:00
Abdelrazak Younes
a718f53382 update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:40:26 +00:00
Uwe Stöhr
351134d91e update SCons according to r23527
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23546 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 20:58:52 +00:00
Richard Heck
6edb3984bf BaseClassList --> LayoutFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:53:21 +00:00
Richard Heck
926ad3d183 Get rid of LayoutPtr.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:55:33 +00:00
Bernhard Roider
a99c5828f8 Add support for \bm from bm.sty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23520 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:49:59 +00:00
Uwe Stöhr
dae2d41417 André, please also take care of SCons when adding/deleting/moving file
scons_manifest.py: update SCons according to André's changes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23491 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 22:32:26 +00:00
Uwe Stöhr
a67f6f1480 French version of Formula-numbering.lyx by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23461 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 20:48:48 +00:00
Uwe Stöhr
0ab7a8dce3 - new Spanish translation of the math manual
- Math.lyx: bug 2461 is now fixed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23369 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 14:50:42 +00:00
Richard Heck
d8a6b5bfd0 Remove TextClassPtr without losing the type safety it provided.
See these threads:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136112.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg136062.html
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135997.html
for some background.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23299 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-28 01:42:02 +00:00
Stefan Schimanski
9f21b7f9ad * high performance text completion with weighted btrees to get pseudo
random-access (i.e. O(log n)) to the n-th element in a list/set. Try
  it with 1000000 keys ... no problem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23213 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-25 01:56:53 +00:00
Uwe Stöhr
9549685b3a delete French mathed.lyx as we did already for the other languages where we have a translation of the new math manual.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23203 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 22:52:30 +00:00
Richard Heck
4c6180d209 Try to make the distinction between base classes and text classes clearer in the code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:59:49 +00:00
Bo Peng
5f18e5ea81 Fix scons/InseLayout again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23196 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:28:46 +00:00
Uwe Stöhr
317c76c0e9 SCons update: revert r23157 due to r23189
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23193 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 15:27:45 +00:00
Bo Peng
3c07aff8ef fix scons for InsetLayout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23174 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 05:51:07 +00:00
Uwe Stöhr
4a7b0625b3 SCons update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 16:40:16 +00:00
Richard Heck
a8317afc4b This is the first of a series of commits that will make InsetLayout a real class.
In this commit, we do the minimal amount of work necessary to protect our data.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-22 02:32:52 +00:00
Stefan Schimanski
1bf7b59d60 * completion infrastructure
* completion support for mathed
* experimental completion support for text


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 19:42:34 +00:00
Pavel Sanda
b7922f4201 Add hide tab icon.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-21 15:13:39 +00:00
Uwe Stöhr
31bc8149d3 the missing bits of r23003
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 22:17:54 +00:00
Uwe Stöhr
21c5540c8e adjust SCons according to r23006
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23007 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 22:13:30 +00:00
Uwe Stöhr
c3cad57542 French translation of the math manual by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 22:22:36 +00:00
Bo Peng
9bd8ffb29c Fix scons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22912 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 01:26:45 +00:00
Uwe Stöhr
f448b1e192 EmbeddedObjects: French translation updates by Siegfried
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22879 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 21:48:18 +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
Abdelrazak Younes
4bc0fdcacf adjust scons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22829 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:13:23 +00:00
Abdelrazak Younes
bbe3815eb8 Adjust scons to FileDialog.h moving.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22822 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 00:07:34 +00:00
Uwe Stöhr
886db92f82 enable the scrlttr 2 class for serial letters:
- file format change
- new example files and an example address database
- remove ugly hack from scrlttr2.layout and fix bug 4529

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22764 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 11:56:44 +00:00
Stefan Schimanski
fe348eb8b7 * The gui change for the mouse wheel speed setting. This includes the
renaming of the keyboard preferences pane into a input preferences pane.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:56 +00:00
Uwe Stöhr
39b9369b82 build_msvc.bat: revert the unwanted change in r22691
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22692 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-27 21:10:14 +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
Uwe Stöhr
82fba225a5 the missing things of r22635
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-20 21:44:49 +00:00
Uwe Stöhr
b62f7986dd two new documentation file translations from Ignacio
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22593 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 22:56:22 +00:00
Uwe Stöhr
098c808174 forgot to add this in r22566
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:40:23 +00:00
Uwe Stöhr
de20d9ae9a UserGuide.lyx: fix bibliographies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 16:52:08 +00:00
Uwe Stöhr
635ae3af3b scons_manifest.py: compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 14:06:40 +00:00
Richard Heck
d5d665482e This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are.
The changes that accomplish this part are in ModuleList.{h,cpp}, configure.py, and the *.module files themselves. This is a format change, and the lyx2lyx is in those files.

By itself, that change would not be major, except for the fact that we do not want the module to be represented in the UI by its filename---e.g., theorems-std---but rather by a descriptive name, such as "Theorems". But that change turns out to be wholly non-trivial. The mechanism for choosing modules was the same as---indeed, was borrowed from---that in GuiCitation: You get a list of modules, and choosing them involves moving strings from one QListView to another. The models underlying these views are just QStringListModels, which means that, when you want to know what modules have been selected, you see what strings are in the "selected" QListView. But these are just the descriptive names, and we can't look up a module by its descriptive name if it's been translated. That, indeed, was the whole point of the change to the new representation.

So, we need a more complicated model underlying the QListView, one that will pair an identifying string---the filename minus the extension, in this case---with each item. This turns out not to be terribly difficult, though it took rather a while for me to understand why it's not difficult. There are two parts:
(i)  GuiSelectionManger gets re-written to use any QAbstractListModel, not just a QStringListModel. This actually seems to improve the code, independently.
(ii) We then subclass QAbstractListModel to get the associated ID string, using the Qt::UserRole slot associated with each item to store its ID. This would be almost completely trivial if QAbstractListItem::itemData() included the QVariant associated with this role, but it doesn't, so there are some additional hoops through which to jump.

The new model, a GuiIdListModel, is defined in the files by that name. The changes in GuiSelectionManger.{h,cpp} make it more abstract; the changes in GuiDocument.{h,cpp} adapt it to the new framework. 

I've also updated the module documenation to accord with this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 04:28:12 +00:00
Uwe Stöhr
18970a1c69 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22482 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 20:55:52 +00:00