Abdelrazak Younes
f9347bc672
Make the delimiters dialog use true unicode symbols instead of pixmaps.
...
* ControlMath.[Ch]
- mathSymbol(), texName(): new method for easy access of math symbols and associated TeX names
- latex_delimiters: allowed delimiters transferred from QDelimiterDialog.C
* QDelimiterDialog.C:
- makes use of the above.
- display the TeX code in a label instead of beside the symbol.
* QDelimiterUi.ui
- shrink it so that it could nicely fit in a DockWidget but this doesn't work, the dialog is too large!
- texCodeL: new label.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17747 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 15:57:32 +00:00
André Pönitz
83b326d204
avoid evalutation of lyxerr arguments unless really needed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17675 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 10:09:49 +00:00
Edwin Leuven
dc8bba7918
fix: http://bugzilla.lyx.org/show_bug.cgi?id=452
...
ControlMath.C: cleanup order of symbols in math panel
iconpalette.C: 6 cols since many symbols come in pairs
Rrightarrow.xpm: was missing
searrow.xpm: was north east
swarrow.xpm: was north west
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16316 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 17:36:00 +00:00
Georg Baum
8e6e970d7b
Next step of true unicode filenames: Use support::FileName instead of
...
std::string at many places (not all yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16069 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 21:30:39 +00:00
Georg Baum
2db7521b70
Add support for the esint package
...
* src/LaTeXFeatures.C
(LaTeXFeatures::getPackages): handle esint and wasysym
* src/mathed/MathMacroTable.[Ch]
(requires_): New member: tell the feature this macro requires
(MacroTable::insert): take new requires arg
* src/mathed/MathMacroTemplate.C
(MathMacroTemplate::asMacroData): adjust to change above
* src/mathed/MathSupport.C
(fontinfos): add esint10 font
* src/mathed/InsetMathHull.C
(InsetMathHull::doDispatch): AMS_ON -> package_on
* src/mathed/MathMacroTable.h
* src/mathed/MathFactory.C
(initSymbols): read and store requires field for symbols
* src/mathed/InsetMathSymbol.C
(InsetMathSymbol::metrics): handle esint
(InsetMathSymbol::takesLimits): ditto
* src/buffer.C
(LYX_FORMAT): update format
(Buffer::validate): handle esint, AMS_ON -> package_on
* src/bufferparams.C:
(AMSTranslator): Rename to PackageTranslator
(BufferParams::readToken): Read \use_esint
(BufferParams::writeFile): Write \use_esint
* src/frontends/qt4/QDocumentDialog.C: handle esint
* src/frontends/qt4/ui/MathsUi.ui : add esint checkboxes
* src/frontends/qt4/GuiFontLoader.C
(symbol_fonts: Add esint10 font
(symbolFamily): handle esint10 font
(isChosenFont): Add comment
* src/frontends/controllers/ControlMath.C
(latex_varsz): Add new integral symbols
* src/support/fontutils.C
(win_fonts_truetype): Add esint10 font
* src/bufferparams.h
(enum AMS): rename to enum Package
(use_esint): new parameter
* src/lyxfont.[Ch]: Add esint font
* lib/symbols: Add new integral symbols
* lib/lyx2lyx/LyX.py
(format_relation): Update format
* lib/lyx2lyx/lyx_1_5.py: handle new format
* lib/chkconfig.ltx: Test esint package
* lib/images/math/oiintop.xpm
* lib/images/math/sqintop.xpm
* lib/images/math/sqint.xpm
* lib/images/math/ointctrclockwiseop.xpm
* lib/images/math/ointctrclockwise.xpm
* lib/images/math/iiintop.xpm
* lib/images/math/iintop.xpm
* lib/images/math/sqiint.xpm
* lib/images/math/iiint.xpm
* lib/images/math/ointclockwiseop.xpm
* lib/images/math/oiint.xpm
* lib/images/math/dotsintop.xpm
* lib/images/math/sqiintop.xpm
* lib/images/math/ointclockwise.xpm
* lib/images/math/iiiintop.xpm
* lib/images/math/dotsint.xpm
* lib/images/math/iiiint.xpm
* lib/images/math/iint.xpm: new icons
* lib/doc/LaTeXConfig.lyx.in: Add docs for esint package
* lib/doc/UserGuide.lyx: Add short documentation of integral symbols
* lib/Makefile.am: Add new files
* development/scons/scons_manifest.py: ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15907 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 17:35:18 +00:00
Georg Baum
69c447720a
Add phantom icons from Uwe and me (last part of bug 1473)
...
* src/frontends/controllers/ControlMath.C
(latex_misc): Add phnatom, vphantom and hphantom
* lib/images/math/hphantom.xpm: new
* lib/images/math/phantom.xpm: new
* lib/images/math/vphantom.xpm: new
* lib/Makefile.am: add new files
* development/scons/scons_manifest.py: ditto
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15009 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 10:58:58 +00:00
Georg Baum
3f0fc88ced
Fix bug 2698 (new images from Uwe Stöhr)
...
* src/frontends/controllers/ControlMath.C
(latex_misc): Add intop and ointop
* lib/images/math/intop.xpm: New
* lib/images/math/ointop.xpm: Ditto
* lib/images/math/int.xpm: Add box to make the difference to intop clear
* lib/images/math/oint.xpm: ditto
* lib/Makefile.am: add new files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14924 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 09:51:50 +00:00
Georg Baum
e6a167ea5e
Add \overset and \underset to math panel (bug 2533):
...
* lib/images/math/underset.xpm: new
* lib/images/math/overset.xpm: new
* lib/Makefile.am: add new files
* src/frontends/controllers/ControlMath.C
(latex_deco[]): add overset and underset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13858 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-18 07:10:56 +00:00
Georg Baum
b6c3478eda
Implement GUI for fixed size math delimiters (by Enrico Forestieri and me):
...
* src/lfuns.h
(enum kb_action): New lfun LFUN_MATH_BIGDELIM
* src/LyXAction.C
(void LyXAction::init): New lfun LFUN_MATH_BIGDELIM
* src/mathed/math_nestinset.C
(void MathNestInset::doDispatch): remove debug message
(void MathNestInset::doDispatch): remove LFUN_MATH_DELIM test for
multiple cells (now in getStatus)
(void MathNestInset::doDispatch): Handle LFUN_MATH_BIGDELIM
(bool MathNestInset::getStatus): Disable LFUN_MATH_DELIM and
LFUN_MATH_BIGDELIM when the selection spans multiple cells
* src/frontends/qt3/ui/QDelimiterDialogBase.ui
Added a combobox for selecting delimiter size.
* src/frontends/qt3/QDelimiterDialog.[Ch]
(fix_name, QDelimiterDialog, insertClicked, size_selected):
Allow for fixed size delimiters.
* src/frontends/gtk/GMathDelim.C: Add FIXME commnent for fixed size
delimiters
* src/frontends/qt4/QDelimiterDialog.C: ditto
* src/frontends/xforms/FormMathsDelim.C: ditto
* src/frontends/controllers/ControlMath.[Ch]:
Added dispatchBigDelim() to deal with fixed size delimiters.
* src/text3.C
(void LyXText::dispatch): Handle LFUN_MATH_BIGDELIM
(bool LyXText::getStatus): ditto
* src/ToolbarBackend.C
(string const ToolbarBackend::getIcon): Handle LFUN_MATH_BIGDELIM
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13806 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-07 10:51:19 +00:00
André Pönitz
da65e2b7fb
rename LFUN enum values according to their command (as used in th minibuffer/bind files
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13801 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-05 20:23:12 +00:00
Lars Gullik Bjønnes
8c93f63b48
* filetools.[Ch]: Make functions that start with a capital
...
letter start with a lower letter.
* All other .C and .h in the cs: adjust for above change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13603 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 22:31:11 +00:00
Martin Vermeer
2c300dd10d
* ControlMath.C
...
(ControlMath::dispatchInsert): fix broken GUI for sub/superscript
insertion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13602 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 19:32:52 +00:00
Angus Leeming
c9f9ba315c
Asger's exchanging of the class and struct keywords.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9502 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-19 15:03:31 +00:00
Asger Ottar Alstrup
282bf655ed
- Add missing STL includes for correctness - gcc is too forgiving
...
- Add missing using statements
- Guard #warning statements
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9494 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-18 14:15:57 +00:00
Martin Vermeer
eebda223db
The ��ngstr��m, ��rsted patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9394 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-17 13:34:02 +00:00
Angus Leeming
2a31934f38
Wrap most of the frontend code up inside namespace lyx::frontend.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
2004-05-19 15:11:37 +00:00
Lars Gullik Bjønnes
2f33eaa286
Make some functors adaptable and related small stuff.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8324 a592a061-630c-0410-9148-cb99ea01b6c8
2004-01-07 17:57:47 +00:00
Angus Leeming
a36dbf39f7
(Martin): enable the math panel sub/superscript buttons once again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8245 a592a061-630c-0410-9148-cb99ea01b6c8
2003-12-12 20:47:56 +00:00
Lars Gullik Bjønnes
44cd0fc9a1
The std::string mammoth path.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00
Angus Leeming
57a24ea912
Replace 'using namespace abc;' with 'using abc::xyz;'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7725 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 22:13:45 +00:00
Lars Gullik Bjønnes
fcdb71906b
Change Assert to BOOST_ASSERT.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7722 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-09 17:25:35 +00:00
Angus Leeming
97035ea00a
Another 49 #includes bite the dust.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7681 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-05 15:31:19 +00:00
Angus Leeming
0be0fcfd59
If I ever see another licence blurb again, it'll be too soon...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-23 00:17:00 +00:00
Angus Leeming
3c1e87c1a1
Rewrite to use find_if rather than a big if block.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7295 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-16 22:34:31 +00:00
Lars Gullik Bjønnes
92d522b7f1
introduce namespace lyx::support
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7224 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-30 23:56:22 +00:00
Angus Leeming
8f877fd574
Move xforms' Maths Panel to the new scheme.
...
Rename ControlMaths2 as ControlMaths.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7180 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-17 12:53:35 +00:00
Angus Leeming
8b5b727d52
Move 4 of the xforms math (sub) dialogs to the new scheme.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7178 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-17 10:30:38 +00:00
John Levon
c19addd546
handle math-delim arguments
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6756 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-10 02:31:36 +00:00
John Levon
9833f42ccb
Include Pr function
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6570 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-24 18:51:10 +00:00
Angus Leeming
ba9cdda813
Flatten the ButtonController tree by splitting it into a Controller and
...
a View.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6410 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-10 03:13:28 +00:00
Angus Leeming
27aa66a6c6
Initialise, initialise, initialise.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5729 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-27 12:48:41 +00:00
Lars Gullik Bjønnes
53274e31ec
the string -> char patch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5725 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-27 10:30:28 +00:00
Angus Leeming
1a0655a514
* A controller-view split of the math panel and its daughter dialogs.
...
* Get rid of FormBaseDeprecated.
* Merge FormBase and FeedbackController.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5715 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-25 18:58:15 +00:00
John Levon
bc9e10ff71
Some more mangling
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5686 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-20 17:49:52 +00:00
John Levon
4a70c91eee
math icon name fixups
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5676 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-20 16:11:18 +00:00
Lars Gullik Bjønnes
dd9b8de435
small changes
...
prepare for the STRINGCONV patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5572 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-04 00:15:56 +00:00
John Levon
638d0581e2
add latex_deco
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5239 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-09 15:53:20 +00:00
John Levon
ee8815b5cf
missed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5215 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-06 01:41:14 +00:00
Angus Leeming
1eb8155fa0
This file is part of LyX, the document processor.
...
Licence details can be found in the file COPYING.
and thank God for sed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5211 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 15:14:23 +00:00
Angus Leeming
6fac1dc980
Really dull and boring header shit
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5210 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 14:10:50 +00:00
John Levon
a5d7d51b09
Add basic bits of Qt's math panel. Hacked together (no MVC yet) but
...
good position to work on dialog contents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5187 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-30 16:20:27 +00:00