Commit Graph

9714 Commits

Author SHA1 Message Date
Abdelrazak Younes
20c5d212ca * QPrefConvertersUi.ui
- change GUI layout in accordance with latest "copiers" and "file format" changes.
  - add converter cache section.

* QPrefsDialog: implement converter cache enabling and maximum age.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-13 09:16:06 +00:00
Richard Heck
4502bc5f3d Disable signals on programmatic checks to prevent unnecessary trigger of slots.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17790 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-13 02:09:50 +00:00
Richard Heck
580ca795dd Redo layout of dialog to solve sizing issue.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17789 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-13 02:07:55 +00:00
Abdelrazak Younes
4d9c1bc296 Fix bug 3450:
http://bugzilla.lyx.org/show_bug.cgi?id=3450
* ControlMath
  - new MathSymbol struct that summarize the symbol attributes (including font and fontcode)

* QDelimiterDialog: 
  - make use of the new MathSymbol for the ListWidget.
  - store the latex name in the tooltip instead of lookup for it.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17786 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-12 16:49:01 +00:00
Georg Baum
7861398f94 remove stupid commented line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17784 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-12 12:51:29 +00:00
Uwe Stöhr
8725953d78 make LyX compile again after changeset 17776
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17781 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 19:35:35 +00:00
Richard Heck
eb07cac2c3 Changes to paragraph settings dialog so that it offers only
options accepted by the current paragraph.

ui/QParagraphUi.ui
  Changed combo box for alignment to radio buttons. Added
  checkbox for default alignment.
QParagraphDialog.[Ch]
  public:
    void checkAlignmentRadioButtons();
    void alignmentToRadioButtons(LyXAlignment);
    LyXAlignment getAlignmentFromDialog();
  private:
    typedef std::map<LyXAlignment, QRadioButton *> QPRadioMap;
    QPRadioMap radioMap;
  protected Q_SLOTS:
    void change_adaptor();
    void enableLinespacingValue(int);
    void on_alignDefaultCB_toggled(bool);
QParagraph.C
  Rework apply() and update_contents() using new functions just
  mentioned.

Thanks to Abdel for his help.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17776 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 14:04:40 +00:00
Richard Heck
687bc61934 Reorganize dialogs along lines suggested by Abdel to give more room to line edit boxes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17775 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 13:45:44 +00:00
Richard Heck
6bfc69eb38 Add vertical spacer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17774 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 13:44:26 +00:00
Richard Heck
bd4e8ea46c Move alter button to match other dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17773 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 13:42:59 +00:00
Enrico Forestieri
c58f3252e5 Fix remaining issues with big delimiters
* src/mathed/MathSupport.C:
	add "slash" to the decoration table.

	* src/mathed/InsetMathBig.C
	(InsetMathBig::draw): don't remove backslash delimiter.
	(InsetMathBig::isBigInsetDelim): add "\\" and "\slash" to
	the delimiters table.

	* src/frontends/qt4/QDelimiterDialog.C
	(fix_name): return "\\" instead of "\backslash" as that now
	works after the fixes above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17771 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-11 00:27:35 +00:00
Jürgen Spitzmüller
05c47c5ff7 * src/BufferView.C (mouseSetCursor): update fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17767 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 16:50:19 +00:00
Abdelrazak Younes
b4ef6a87a3 - Work a bit on the layout.
- Set the font used in the lists to Arial, 10.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17766 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 14:51:27 +00:00
Jürgen Spitzmüller
1390d4cf2c * src/text3.C (doDispatch):
- add missing undo call to LFUN_QUOTE_INSERT
	  (fixes bug 3439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17764 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 11:25:02 +00:00
Jean-Marc Lasgouttes
0b89afc220 fix cash with Toc widget (when stdlib-debug is on)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17762 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 09:15:40 +00:00
Jürgen Spitzmüller
89d2607cf1 * src/rowpainter.C (paintPar):
- only set wide() to true for insets if they are not nested
	  in a non-wide inset (bug 3275)
* src/rowpainter.C (inNarrowInset):
	- new helper func for the above.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17761 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 08:20:12 +00:00
Jürgen Spitzmüller
c03a223b76 * src/lyxfunc.C (dispatch):
- do not attempt to toggle math insets via ALL_INSETS_TOGGLE
	  (fixes bug 3358)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17756 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-09 09:31:56 +00:00
Enrico Forestieri
5dc60654bb Fix gui for slash and backslash big/variable size delimiters
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17755 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-07 02:07:15 +00:00
Enrico Forestieri
4cd32706e8 Restore the version number position on the splash screen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17754 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-07 01:07:51 +00:00
Abdelrazak Younes
978c87fae7 add GuiView parent to QToc for proper memory management.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17753 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-07 00:04:38 +00:00
Enrico Forestieri
f139b65352 Fix gui for the "|" big delimiter
* src/frontends/qt4/QDelimiterDialog.C
	(fix_name): Return "|" instead of "\|" as this is equivalent to \Vert.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17752 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-07 00:00:32 +00:00
Georg Baum
ed781c2afe prevent the compiler from optimiying away support::Path variables
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17751 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 18:03:29 +00:00
Enrico Forestieri
396cb8861a Fix bug 3410 by Georg and me
* src/support/tempname.C
	(tempName): Return FileName in utf8 encoding.

	* src/lyxsocket.[Ch]
	(LyXServerSocket::LyXServerSocket): Use FileName instead of string
	and set the env var LYXSOCKET in the filesystem encoding as this
	is what the client expects.

	* src/support/socktools.[Ch]
	(socktools::listen): Convert to FileName and use the filesystem
	encoding for the file names stored in the sockaddr_un struct.

	* src/client/client.C
	(socktools::connect): Convert to FileName and use the filesystem
	encoding for the file names stored in the sockaddr_un struct.
	(LyXDataSocket::LyXDataSocket, main): Convert to FileName.

	* src/lyx_main.C
	(LyX::exec): Use FileName instead of string in socket code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17749 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 17:38:11 +00:00
Abdelrazak Younes
61023d5649 Fix bug 3413:
http://bugzilla.lyx.org/show_bug.cgi?id=3413

* ui/QNomenclUi.ui
  - description field: replace LineEdit with TexEdit

* QNomencl.C: take care of the \n <-> \\ conversion in the description field.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17748 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 16:27:10 +00:00
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
Georg Baum
d4e8fdd703 Use FileName instead of strings in support::Package.
This fixes some encoding problems, and hopefully also bug 3410.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17746 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 13:09:54 +00:00
Richard Heck
675b84c1b0 Fix small bug with new graphics dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17745 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 12:38:23 +00:00
Georg Baum
10a91403f6 remove unneeded lyx qualifier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17744 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 12:31:33 +00:00
Georg Baum
b2e80ea2a4 remove unneeded lyx qualifier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17743 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 11:20:09 +00:00
Georg Baum
e10d42a4f5 remove duplicate top_srcdir()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 09:39:05 +00:00
Jean-Marc Lasgouttes
04efe3c40a New framework for declaring generic features in textclasses.
* src/LaTeXFeatures.C (mustProvide): new method; returns true when
	isRequired is true and the feature is not provided by the
	textclass. 
	(getPackages, getLyXSGMLEntities): use mustProvide when relevant.

	* src/bufferparams.C (getEngine):
	* src/buffer.C (validate): adapt to change below.

	* src/lyxtextclass.C (read): replace tags ProvidesNatbib,
	ProvidesMakeidx, ProvidesUrl and ProvidesAmsmath by a generic
	"Provides".
	(provides): take a string as argument.
	
	* lib/scripts/layout2layout.py (convert): convert "ProvidesXxx" tags
	to "Provides xxx".

	* lib/layouts/*: update to format 4.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 09:02:23 +00:00
Georg Baum
10271ff520 remove methods that are no longer needed since we have the new bibtex parser
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17739 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 08:48:34 +00:00
Georg Baum
ea1a4a886c Fix dialog interaction with InsetMathRef (leftover from changed
InsetCommandParams)

	* src/mathed/InsetMathCommand.[Ch]
	(CommandInset::createDialogStr): Move to InsetMathRef, since it is
	no longer generic.

	* src/mathed/MathFactory.C
	(createInsetMath_fromDialogStr): Use InsetCommandMailer instead of
	manual parsing. This ensures that the syntax is correct.

	* src/mathed/InsetMathRef.[Ch]
	(InsetMathRef::createDialogStr): Moved here from InsetMathCommand,
	but use InsetCommandMailer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17738 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-06 08:30:37 +00:00
Georg Baum
b59c6f48a5 Probably fix bug 3360:
* src/lyxfunc.C
	(LyXFunc::dispatch): Call LFUN_DIALOG_SHOW_NEW_INSET instead of
	LFUN_DIALOG_SHOW, since the former seems to be connected to the last
	open inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17736 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 15:55:04 +00:00
Richard Heck
11697004e8 Fix for bug 3215. All changes in src/frontends/qt4/.
Changed dialog and added routines to deal with an "auto" label
in cases where defaults are used.

ui/MarginsUi.ui: Changed labels for width and height to checkboxes. Removed connections.
checkwidgets.[Ch]: Extended checkedLineEdit routines to take a QWidget.
qt_helpers.[Ch]: 
  Added void lengthToWidgets(QLineEdit *, LengthCombo *, LyXLength const &, LyXLength::UNIT)
  Added void lengthAutoToWidgets(QLineEdit *, LengthCombo *, LyXLength const &, LyXLength::UNIT)
  Added void setAutoTextCB(QCheckBox *, QLineEdit *, LengthCombo *)
validators.[Ch]:
  Added class LengthAutoValidator : public LengthValidator
  Added class DoubleAutoValidator : public QDoubleValidator
QGraphicsDialog.[Ch]
  Added virtual void setAutoText()
  Added virtual void on_WidthCB_toggled(bool)
  Added virtual void on_HeightCB_toggled(bool)
  Used the new functions to set "auto" in default cases and toggle checkboxes as needed.
  Set validator for scale.
  Re-organized connect routines.
QGraphics.C:
  Completely re-worked update_contents().
  Significant changes to apply().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17735 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 14:58:15 +00:00
Richard Heck
21cc83ef2b Fix for bug 3416. Change output routine for geometry package.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17734 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 13:51:42 +00:00
Richard Heck
6a383e5f9b Fix for bug 3401. Updated LFUN_CITATION_INSERT to new format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 13:49:01 +00:00
Abdelrazak Younes
096b63170a Use case:
1) launch the dialog
2) select a delimiter in the left pane
3) Tab
4) select a delimiter in the right pane
5) Enter

So:
- Also enable the quick insertion while in the right pane
- Do not limit the quick insertion to matched key


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 12:39:22 +00:00
Abdelrazak Younes
4f135f2dd6 Rework the delimiter dialog:
- ListWidget instead of combo,
- matched delimiters on the same row,
- immediate insertion on "enter" or "double-click" if the 'match' option is checked.
- simplification of the code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17731 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 12:12:07 +00:00
Jean-Marc Lasgouttes
2086684135 * lyxlayout.C (read): set labelstringappendix_ every time
labelstring is set (instead of using this value only as a
	fallback) (bug 3351)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17729 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 10:57:14 +00:00
Abdelrazak Younes
29dacff0f0 Delimiter dilaog: Cleanup the code and rework the dialog a bit.
Most of the change is about using the new private member delimiters_ instead of the "delim" table.  Also, we don't display an icon when the delimiter is one character.
I did not manage to let the combos expand to the maximum.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17727 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 09:26:09 +00:00
Abdelrazak Younes
13ec7e4b74 Fix bug 3420 by Uwe and Enrico.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17726 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 08:10:22 +00:00
Bernhard Roider
4c9121df3b Fix bug 1826 + A more precise parser for bibtex files based on the description found on this web page: http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html
Most important improvements:
- read file character by character and treat newline like space characters.
  Thus the @ does not need to be at the beginning of a line.
- it reads @string entries and replaces the strings in the field values
- it also handles @comment entries
- it recovers from syntax errors at the next entry starting with @
- it ignores everything between entries


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17723 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 20:06:34 +00:00
Abdelrazak Younes
b7ff6f82de Fix bug 3412:
http://bugzilla.lyx.org/show_bug.cgi?id=3412

* QNomenclDialog::QNomenclDialog(): setting the focus proxy in the Description edit box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17719 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 16:36:50 +00:00
Abdelrazak Younes
4be4fe2af8 Fix bug 3408 and 3408:
http://bugzilla.lyx.org/show_bug.cgi?id=3408
http://bugzilla.lyx.org/show_bug.cgi?id=3409

The missing redraw was introduced with "Draw only decoration" optimisation in mathed. Setting the flags to Update::Force in case of Preview mode fixes the problem.

* InsetMathHull::notifyCursorLeaves(): set the cursor flags to 'Force'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17718 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 16:17:24 +00:00
Edwin Leuven
f56c8c83b0 * fix layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17717 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 13:10:38 +00:00
Abdelrazak Younes
ad05708682 remove "BufferView.h"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17716 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 12:58:40 +00:00
Abdelrazak Younes
1c9ea1546d Put file editor and Browse and Edit buttons in the same horizontal layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17715 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-04 12:50:20 +00:00
Richard Heck
9fcfc51228 Made sizeHint const.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17711 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 21:47:00 +00:00
Richard Heck
bb2afff7d0 Added check for valid size to show().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17709 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 20:45:46 +00:00
Abdelrazak Younes
9aed8cf115 Still trying to solve the Toc panel crash with stdlib-debug enabled gcc.
* ControlToc::update(): get rid of the pure virutal method.
* QToc::initialiseParams(): overload ControlToc method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17708 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 13:07:38 +00:00
Abdelrazak Younes
e37e918e38 Following r17706:
* Buffer::Impl::messages: deleted

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17707 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 10:50:38 +00:00
Abdelrazak Younes
f4f0707fb2 Small cleanup. updateDocLang() was basically a void function since my paragraph language cleanup.
* Buffer:
  - updateDocLang(): deleted.
  - B_(): use getLanguage() directly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17706 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 10:45:22 +00:00
Georg Baum
f7665c1e11 explain why ownsClipbiard() does not work on Windows and OS X
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17704 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 08:27:23 +00:00
Abdelrazak Younes
3387c00c9d Sync with src/debug.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17703 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 08:17:45 +00:00
Georg Baum
0159c9d6c7 Normalize everything that comes from 'outside' (plain text import,
keyboard input via kmap, clipboard and selection) to normalized form KC
(precomposed characters) since we don't support the decomposed form very
well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 08:15:39 +00:00
Uwe Stöhr
f3558df4c2 QGraphicsDialog.C: fix bug that there is no image scale value when keepaspectratio was previously checked
QGraphics.C: remove double entry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17701 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 02:07:35 +00:00
Georg Baum
329d50d90d Use new isAlphaASCII and isDigitASCII functions instead of isalpha and
isdigit from ctype.h, because the latter are locale dependant and do not
work with char_type.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17698 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-02 15:21:36 +00:00
Georg Baum
3213757e9a remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-02 12:42:02 +00:00
Abdelrazak Younes
c1b5490f9f Implement Angus suggestion.
* GuiApplication::notify(): try to catch 'normal' exception first.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17696 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-02 10:18:12 +00:00
Angus Leeming
c9744fec96 LYXERR compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17695 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-02 01:12:29 +00:00
Michael Schmitt
16b8db280e * src/frontends/qt4/ui/QTabularUi.ui:
* src/frontends/qt4/QTabular.C: change "Block" to "Justified"
	to avoid translation clash and to align with paragraph settings


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17694 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 21:51:17 +00:00
Michael Schmitt
b8e23e46d0 restore the old LyX banner in preparation of the next release;
replace banner.ppm by banner.png


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17690 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 20:33:40 +00:00
Abdelrazak Younes
e45632d1f8 The error message doesn't need to be translated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 16:10:12 +00:00
Abdelrazak Younes
7384d0cf67 Fix bug 3288:
http://bugzilla.lyx.org/show_bug.cgi?id=3288

This is recommended by Qt:

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

* GuiApplication::notify(): reimplemented from QApplication::notify().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17688 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 16:06:43 +00:00
Michael Schmitt
7b31bf784a WS changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17684 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 15:12:19 +00:00
Michael Schmitt
1b591e71b2 remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17683 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 15:09:08 +00:00
Abdelrazak Younes
284e9efab7 Some more cleanup and comments from Iwami and myself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17682 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 14:56:55 +00:00
Michael Schmitt
ee47f918c2 remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17681 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 14:51:13 +00:00
Michael Schmitt
4823150780 remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17680 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 14:44:10 +00:00
Michael Schmitt
580b243a4c remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17679 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 14:35:42 +00:00
André Pönitz
15b343d8f3 better fix for bug #17652
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17676 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 13:06:41 +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
Michael Schmitt
2a0dd05520 fix WS
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17674 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 09:39:01 +00:00
Abdelrazak Younes
bd12273085 cleanup headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17672 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 09:24:54 +00:00
Abdelrazak Younes
099a4adc92 Improved input method support by M. Iwami. I fixed some typo, and simplified the code a bit.
* Painter:
  - preeditText(), dashedUnderline(): new methods for CJK support.

* GuiWorkArea:
  - inputMethodQuery(): new Qt inherited method for proper CJK support.
  - inputMethodEvent(): now properly take care of input methods.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17671 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-01 09:14:08 +00:00
Georg Baum
cb768c29d3 Don't convert keystrokes to LaTeX accents, but insert unicode combining
characters (forgot this with the last commit)

	* src/lyxfunc.C: remove function declaration

	* src/tex-accent.C
	(lyx_accent_table): Remove obsolete stuff and add UCS4 codes
	(DoAccent): Create UCS4 combining sequences instead of LaTeX accents

	* src/tex-accent.h
	(tex_accent_struct): Remove cms member, add ucs4 member


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17669 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 18:28:36 +00:00
Peter Kümmel
ce17937dc1 fix recursive repaint, detected by Qt 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17666 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 17:06:36 +00:00
Georg Baum
f2769c00c7 Finish the transition to unicode of the kmap machinery and enable kmap files
again (bug 3304)

	* src/intl.C
	(Intl::initKeyMapper): Don't set the char set of trans anymore

	* src/chset.[Ch]: delete, no longer needed

	* lib/kbd/*.cdef: ditto

	* src/lyxrc.[Ch]: remove RC_SCREEN_FONT_ENCODING and font_norm,
	these are no longer needed

	* src/lyxfunc.C: adapt to lyxrc changes

	* src/Makefile.am: remove deleted files

	* lib/Makefile.am: ditto

	* development/scons/scons_manifest.py: ditto

	* src/text3.C
	(LyXText::dispatch): reenable the kmap mechanism

	* src/trans_mgr.[Ch]
	(TransManager::setCharset): remove, no longer needed
	(TransManager::insert): remove, since it would be identical to
	insertVerbatim now
	(TransManager::insertVerbatim): rename to insert


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17665 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 16:41:02 +00:00
Georg Baum
0141fba79a Convert the part of the keymap code that will not be removed to docstring.
This is purely mechanical, and touches only code that is currently not active.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17657 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-31 08:12:08 +00:00
Jean-Marc Lasgouttes
139168b5f2 * src/text3.C (dispatch): revert previous fix to 3143
* src/text.C (breakParagraph): setCursor does not set current_font when
	applied to a CursorSlice (fixes bug 3143)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17654 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 20:41:38 +00:00
André Pönitz
d523af4b05 fix #3130
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17652 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 19:28:03 +00:00
André Pönitz
69caf3bfb7 revert 17649. This code was only a temporary mean to help fixing #3396. Apart from that it is not needed to get a proper stack trace and clutters the source
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17651 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 17:20:27 +00:00
André Pönitz
4ab39351e2 fix 3396
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17650 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 17:16:26 +00:00
Abdelrazak Younes
7b5c0b55d8 avoid recursive dump() in case of math parsing problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17649 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 16:29:35 +00:00
Richard Heck
a19d10e479 Fix for bug 3381, itself due to a bug in QT 4.2.3.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17648 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 15:15:44 +00:00
André Pönitz
fa1f10cbd8 enable LFUN_MATH_INSERT in text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17647 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 13:29:09 +00:00
André Pönitz
11236e2993 Whitespace correction after rev 17639
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17646 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 05:30:23 +00:00
Richard Heck
938698335b Fix for bug 3109: http://bugzilla.lyx.org/show_bug.cgi?id=3109. Added comments regarding longer-term issues with this code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17645 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 04:24:54 +00:00
Richard Heck
45372f6cf0 Completed table on naming conventions for widgets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17644 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-30 04:06:16 +00:00
Uwe Stöhr
0f54c5614a antialiasing for fonts by Stefan
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17639 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 23:08:29 +00:00
Uwe Stöhr
4ae693b025 better UI fix for bug 3364 from Richard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17638 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 22:27:40 +00:00
André Pönitz
8e2f9e5bca make up/down vuttons in command bar narrower
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17637 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 22:12:34 +00:00
André Pönitz
9d8421b6b3 remove a space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17635 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 22:01:21 +00:00
André Pönitz
6729fb414c fix mathed regression (pullArg was gone)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17634 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 21:58:15 +00:00
Abdelrazak Younes
37d8b3c27b remove unneeded declarations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17629 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 15:00:00 +00:00
Bo Peng
6fc7d47a5f Restore old bookmark behaviors (stop using bookmark queue)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-29 03:41:55 +00:00
Uwe Stöhr
ce899a9fa1 Fix bug 3364:
http://bugzilla.lyx.org/show_bug.cgi?id=3364

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17627 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 23:57:48 +00:00
Uwe Stöhr
65ddfecfaf fix rev 17625
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17626 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 23:43:29 +00:00
Uwe Stöhr
6f9eb5464a small adjustment to have the same button size for Browse and Edit button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17625 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 23:35:25 +00:00