Commit Graph

946 Commits

Author SHA1 Message Date
Richard Heck
3fcc6711f0 Fix some issues with the paragraph settings dialog. The main change
is that we distinguish between the "Default" alignment and whatever
that default happens to be: I.e., so far as the code goes, the UI now
distinguishes LYX_ALIGN_LAYOUT from LYX_ALIGN_WHATEVER, when WHATEVER
happens to be the default. So you can explicitly force, say, left-align,
and that will stick between document classes.

* src/Paragraph.cpp:
Don't output params if alignment is the default.

* src/ParagraphParameters.cpp
Treat LYX_ALIGN_LAYOUT as its own alignment.

* src/Text2.cpp
Treat LYX_ALIGN_LAYOUT as its own alignment, and force it to be accepted
as a possible alignment.

* src/frontends/controllers/ControlParagraph.{h,cpp}
New method haveMultiParSelection().

*src/frontends/qt4/QParagraph.{h,cpp}
*src/frontends/qt4/ui/ParagraphUi.ui
UI adjustments as mentioned.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18922 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-28 00:48:06 +00:00
Jürgen Spitzmüller
8b9972cbba Fix bug 2753: LyX doesn't support paths and filenames with parentheses
* src/frontends/qt4/QBibtex.cpp:
* src/frontends/qt4/QExternal.cpp:
* src/frontends/qt4/QGraphics.cpp:
* src/frontends/qt4/QInclude.cpp:
	- remove path validator

* src/support/filetools.{cpp,h}:
	- new validator for exporting LaTeX files

* src/insets/ExternalSupport.cpp:
* src/insets/InsetBibtex.cpp:
* src/insets/InsetGraphics.cpp:
* src/insets/InsetInclude.cpp:
	- use validator when exporting a LaTeX file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18897 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-26 16:55:42 +00:00
Jürgen Spitzmüller
a96a5c55af * src/frontends/qt4/QPrint.cpp:
- use internal_path to prevent assert on windows (bug 3916).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18896 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-26 16:46:40 +00:00
Jürgen Spitzmüller
874f4b99fd * src/frontends/qt4/QDocument.cpp:
* src/frontends/qt4/QInclude.cpp:
* src/frontends/qt4/QListings.cpp:
	- add missing slot to "pass validation" checkbox togling signal.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18889 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-26 08:00:44 +00:00
Jürgen Spitzmüller
bcf64dd11c Fix bug 1749. CAUTION: lyx2lyx not fully working yet (see FIXMEs).
* development/FORMAT: 
	- document file format change

* src/Buffer.cpp: bump format to 275.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_5.py:
	- conversion and reversion of scaleBeforeRotation param (doesn't work yet!)

* src/insets/InsetGraphicsParams.{cpp,h}: 
	- new param scaleBeforeRotation
* src/insets/InsetGraphics.cpp:
	- swap order of scale and rotate (if scaleBeforeRotation is false)

* src/frontends/qt4/QGraphics.C:
* src/frontends/qt4/QGraphicsDialog.{cpp,h}:
* src/frontends/qt4/ui/GraphicsUi.ui:
	- add checkbox to toggle scaleBeforeRotation.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18885 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-25 13:49:51 +00:00
Jürgen Spitzmüller
91c6d03678 Fix bug 2520: Make InsetExternal translateable
* po/lyx_pot.py:
	- new function external_l10n: parse external_templates and extract the relevant parts for translation.
* development/scons/SConstruct:
* po/Makefile.in.in:
	- use external_l10n

* src/insets/InsetExternal.cpp:
* src/frontends/qt4/QExternal.cpp: 
	- make eveything translatable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18866 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-23 07:50:13 +00:00
Richard Heck
1a3daacc5f Fix some UI bugs related to the paragraph settings dialog. The default
checkbox has been changed to a radio button, so that other alignments
can be chosen without the user's having to uncheck "Default".

There was some disagreement about the interface here. See, for example,
this thread:
  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg121328.html
For now, this will do.

The interface here is not fully functional. At present, if the Default 
happens to be Justified, then checking Justified is simply equivalent to
checking Default. This is due to the behavior of Text::setParagraph(), and
it should be changed if this interface is retained.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18860 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-22 22:34:16 +00:00
Edwin Leuven
37e2aa69f7 * this one got lost in http://www.lyx.org/trac/changeset/18842
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18845 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-21 16:14:52 +00:00
Edwin Leuven
2eff2cfc94 * Get rid the of the QWidgetAction subclass and use homebrew tearoff widget:
this is a qt 4.1 solution and behaves on all platforms
  

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18842 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-21 09:51:50 +00:00
Stefan Schimanski
5286634d17 * On MacOSX enter is no activation key for a QListWidget. Hence it
does not close the command completion popup. Moreover setFocus does
not focus the widget correctly, probably because the popup widget
behavior is different. An activateWindow solves the problem by
selecting the LyX view again as active window.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18840 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-21 06:38:50 +00:00
Jürgen Spitzmüller
f6120a555b * src/frontends/qt4/ui/ListingsUi.ui: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18822 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-19 07:29:40 +00:00
Stefan Schimanski
00d0c18280 * update cursor position on resize _after_ drawing. Because before
the coordinate cache of the math inset is not valid and InsetMathNest
  depends on that to compute the cursor position.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18816 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-18 15:39:52 +00:00
Edwin Leuven
2b35bede3d Fix stuff that slipped in with 18812
* IconPalette.cpp : typo's
 * QLToolbar.cpp   : unused code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18813 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-17 18:24:27 +00:00
Edwin Leuven
f0d56f56ef * Allow toolbar menus and panels (qt>=4.2) to be torn off
IconPalette now subclasses QWidgetAction so that we can 
  insert them in QMenu (before we were painting ourselves)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18812 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-17 17:55:36 +00:00
Richard Heck
aa00ad3918 Bug 3477: Fix problem with shortcuts in Converters subdialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18775 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 21:27:08 +00:00
Stefan Schimanski
dcaab3cfdd * make close tab button smaller
* remove spacing in the layout of the tab bar and the central widget


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-14 17:57:07 +00:00
Michael Schmitt
52093834d3 * src/frontends/qt4/ui/TextLayoutUi.ui:
* src/frontends/qt4/ui/ListingsUi.ui:
	* src/frontends/qt4/ui/IncludeUi.ui:
	* src/LyXRC.cpp: trivial user message changes: "lyx" => "LyX"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18752 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 21:05:25 +00:00
Bo Peng
985ba3b296 Add bypass validation checkboxes to listings related dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18751 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 17:10:28 +00:00
Abdelrazak Younes
37333444c0 Cosmetics.
* TocItem:
  - add a default constructor instead of default initialisation.
  - delete unneeded and not really used isValid() method.

* TocBackend:
  - updateItem(): re-add debug info erased previously.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18749 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 12:29:19 +00:00
Peter Kümmel
69a81aecfa add tab close button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18739 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-11 14:53:36 +00:00
Jean-Marc Lasgouttes
087e9eb578 * qt4/FileDialog.cpp (save): disable overwrite confirmation with
native file dialogs (bug 3818)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-06 12:19:48 +00:00
Richard Heck
cbcfee4fcc Forgot to fix tab order at 18678.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18681 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-05 17:25:03 +00:00
Richard Heck
a83a999c72 Updates to printer preference dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18678 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-05 15:19:13 +00:00
Jürgen Spitzmüller
fc9f0d3d0c * src/frontends/qt4/ui/TocUi.ui:
- remove unneeded and irritating label.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18658 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 17:40:41 +00:00
Richard Heck
98fad8e694 Fix bug 3800: Relabel old Adapt Output button and fix resulting problem with spacing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18650 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 14:07:53 +00:00
Jean-Marc Lasgouttes
c54a01a194 * src/frontends/qt4/TocWidget.cpp (updateGui): do not call getGUIName, since
this is already what we have; fixes a crash (bug 3793)

	* src/frontends/controllers/ControlToc.h: make getGUIName private

	* src/frontends/controllers/ControlToc.cpp (getGUIName): handle 
	correctly the lists of floats.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18648 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 13:27:27 +00:00
Stefan Schimanski
7990a764dc * workaround for Qt not selecting a Times font on Mac with Qt 4.3.0. As soon as the
bug is fixed in Qt an upper version bound should be added.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18647 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 12:10:30 +00:00
Stefan Schimanski
7429f0c2bf * draw cursor in the right shape (L_SHAPE, REVERSED_L_SHAPE or the normal one)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18645 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 06:21:33 +00:00
Michael Schmitt
92d81d6a0f src/frontends/qt4/ui/ListingsUi.ui: better label text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18642 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-03 16:17:18 +00:00
Richard Heck
ce00f4a0ac Fix for bugs 3741 and 3756. Here's what it does:
* In the "Available" list, double clicking or hitting Enter adds a
        citation. Hitting Ctrl-Enter adds the citation and closes the
        dialog. Previously, Enter did what Ctrl-Enter now does if there
        was no other citation already selected and double clicking would
        close the dialog after adding the citation.
      * In the "Selected" list, Delete and Backspace delete the
        selection.
        Ctrl-Delete and Ctrl-Backspace clear the whole list.

Thanks to Abdel, Andre, and Lars for comments and help.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18633 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-02 15:48:21 +00:00
Peter Kümmel
55a07f0e00 fix coding style (fix for 3320 and 3652)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-02 08:23:58 +00:00
Peter Kümmel
ee6e277e0e fix scrolling bug: 3320 and 3652, maybe not perfect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-02 08:01:12 +00:00
Peter Kümmel
d582d487ff fix scrolling bug: 3320 and 3652, maybe not perfect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18629 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-02 07:58:11 +00:00
Jürgen Spitzmüller
bda7cbec29 * src/frontends/qt4/QDocument.cpp:
- make everything translatable (fix bug 356)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-01 17:44:04 +00:00
Jürgen Spitzmüller
e5233efd6b * src/frontends/qt4/QListings.cpp:
- revert accidental change in revision 18624

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18625 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-01 12:46:27 +00:00
Jürgen Spitzmüller
3cb05c6016 * src/frontends/qt4/QDocument.cpp:
* src/frontends/qt4/QListings.cpp:
	- mark gui strings as translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18624 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-01 12:27:04 +00:00
Jürgen Spitzmüller
aa325b4d32 * src/frontends/qt4/ui/ListingsUi.ui:
- minor layout fixes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18623 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-01 12:25:19 +00:00
Abdelrazak Younes
1c2cf3567c Put again the (slightly edited) caution warning from Georg Baum about abusing the ucs4_to_qchar() conversion with symbol fonts. This comment was accidentally deleted in rev 18593.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-31 16:40:11 +00:00
Abdelrazak Younes
f8175cca5e This commit allows to support the full unicode range in GuiFontMetrics thus fixing the crash in this bug:
http://bugzilla.lyx.org/show_bug.cgi?id=3759

It also simplifies and fix the smallcaps case which was not correct WRT unicode. Even though I don't know if toUpper() means something in the non ucs2 range.

FYI, I used toqstr() to do the ucs4 -> ucs2 conversion when needed. This helper method works only with Qt >= 4.2. 

* GuiFontMetrics::smallcapsWidth(): changed to work with single ucs4 characters.
* GuiFontMetrics::xxx(): make sure that font metrics works with characters not in the ucs2 range.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18593 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-31 12:48:42 +00:00
Richard Heck
d5c666ceec Make OK button the default even after various sorts of resets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18584 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-30 22:01:12 +00:00
Michael Schmitt
78b71f9863 replace "Listings" by "Listing" (plural => singular)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18570 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 21:23:23 +00:00
Jürgen Spitzmüller
c9a3b7d396 * src/frontends/qt4/ui/PrefConvertersUi.ui:
- fix layout

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18564 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 17:24:09 +00:00
Jürgen Spitzmüller
603f454e44 * src/frontends/qt4/ui/PrefCopiersUi.ui:
- fix layout (bug 3772)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18561 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 16:58:16 +00:00
Stefan Schimanski
3033b52c1c * added WidgetFlags argument to DockView to set Qt::Drawer flag where needed
* added Qt::Drawer flag to TOC
* reverted Jürgen's patch (i.e. the source view is docked below the text again),
  wide drawers are not Mac-like (tm)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18557 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 11:38:28 +00:00
Michael Schmitt
79ef29f3eb * src/frontends/qt4/Dialogs.cpp:
* lib/ui/stdtoolbars.inc:
	* lib/ui/classic.ui: replace "TOC" by "Outline"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18554 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 07:38:38 +00:00
Lars Gullik Bjønnes
897436efbb Whitespace cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 22:27:45 +00:00
Jürgen Spitzmüller
ccdc21f11c * src/frontends/qt4/Dialogs.cpp:
- put view-source drawer to the right in Mac (bug 3564)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18537 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 07:17:47 +00:00
Peter Kümmel
af6a9552ed fix merge build src/frontends/qt4/QDocument.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18509 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-25 15:05:46 +00:00
Bo Peng
5b731aa6a5 InsetListings: use float for placements because of the handling differences between float and floatplacement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18508 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-25 14:38:22 +00:00
Jürgen Spitzmüller
5e6391a04a fix bug 3723:
* src/Buffer.cpp (read): clear listings params.

* src/frontends/qt4/QDocument.cpp: whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18507 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-25 12:32:08 +00:00