Commit Graph

957 Commits

Author SHA1 Message Date
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
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
Abdelrazak Younes
8cbf7e95c3 Fix a bunch of focus proxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17622 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 21:17:47 +00:00
Peter Kümmel
6f3538a056 don't allow negative window positions on non-virtual desktops
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17621 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 21:12:50 +00:00
Abdelrazak Younes
b3a9008a06 Fix focus proxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17619 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 20:20:42 +00:00
Abdelrazak Younes
f93c87ed72 Fix focus proxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17618 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 20:14:50 +00:00
Abdelrazak Younes
d04cc9302f Fix bug 3246 by Richard Heck:
Problem was that SIGNAL itemSelectionChanged was not connected to anything.

* QRefDialog::selectionChanged(): new slot for itemSelectionChanged signal.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17615 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 17:02:20 +00:00
Abdelrazak Younes
2b0e8a0d9b Fix unreported bug related to 3246 by Richard Heck:
"View" button in TeX information dialog not enabled when file is selected with the keyboard. Problem was that SIGNAL itemSelectionChanged was not connected to anything. Also made some minor stylistic changes to the code.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17614 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 16:58:08 +00:00
Enrico Forestieri
151b065b45 Present to the eyes.
* src/frontends/qt4/QLog.C
	(logHighlighter::logHighlighter): Use a darker gray.

	* src/frontends/qt4/QViewSource.C
	(latexHighlighter::latexHighlighter): Ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17604 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-28 00:26:04 +00:00
Michael Schmitt
a0b749f146 fix typo: LateX => LaTeX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17596 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 17:40:05 +00:00
Jürgen Spitzmüller
81f45add92 * src/frontends/qt4/GuiWorkArea.C:
- whitespace. I forgot to save the changes before committing :-(

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17595 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 17:31:29 +00:00
Jürgen Spitzmüller
8cc13ab7c9 * src/frontends/qt4/GuiWorkArea.[Ch]:
- some further refinement (and cleanup) of the triple click behaviour,
	  from Richard G. Heck.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17594 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 17:26:11 +00:00
Jürgen Spitzmüller
7cce9b87f8 * src/frontends/qt4/GuiWorkArea.[Ch]:
- reimplement doubleClickTimeout() from the qt3 frontend
	   in order to get triple clicking working (bug 3272).
	   This is just an emultation of triple clicking, since qt does not have
	   a mouseTripleClickEvent()

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17588 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 08:05:31 +00:00
Edwin Leuven
ff7dd5e06c adjust layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17587 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 07:57:09 +00:00
Jürgen Spitzmüller
64767ea78d * src/frontends/qt4/BulletModule.C: remove unneeded debug include.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17585 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 06:57:50 +00:00
Jürgen Spitzmüller
c0a40bac98 * src/frontends/qt4/BulletModule.C:
* src/frontends/qt4/ui/BulletsUi.ui:
	- assure that six columns of bullets are displayed in the widget
	  (fix bug 3147).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17584 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-27 06:55:25 +00:00
Jürgen Spitzmüller
e44591e1a5 * src/frontends/controllers/ControlAboutlyx.[Ch]:
* src/frontends/qt4/QAbout.C:
	- revert r17572 and restore the correct copyright notice.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17575 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 15:58:00 +00:00
Bo Peng
7c0bb562cb Correctly highlight comments in latexHighlighter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17574 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 15:51:34 +00:00
Bo Peng
ae6c7d2c51 latexHighlighter: handles multiline reg expression of all sorts of displayed mathematics environments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17573 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 15:10:59 +00:00
Jürgen Spitzmüller
bbc02f6ada * src/frontends/controllers/ControlAboutlyx.[Ch]:
* src/frontends/qt4/QAbout.C:
	- remove obsolete getLicense (which is identical to getDisclaimer)
	   [bug 3371]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17572 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 15:05:59 +00:00
Jürgen Spitzmüller
2cbb8c77ec * src/frontends/qt4/QCharacter.C:
* src/frontends/qt4/QDocumentDialog.C:
* src/frontends/qt4/QPrefsDialog.C:
	- document persistence of Qt4 resizing bug.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17571 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 14:06:20 +00:00
Georg Baum
1c46866b71 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17564 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 07:38:33 +00:00
Bo Peng
07cc619a4c Present to Abdel: Syntax highlighting for LaTeX Log. (I know I should have been reading windows installers :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17561 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 04:25:49 +00:00
Abdelrazak Younes
642adc3eb7 Fix crash in debug mode (MSVC) due to an assertion in Qt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17559 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 23:22:25 +00:00
Peter Kümmel
745c9e91fd cmake:
- add flags for debug/release/profile
 - also build qt4 as one file with gcc
 
 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17558 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 22:03:59 +00:00
Abdelrazak Younes
2ccde85cb5 Add FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17554 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 16:22:13 +00:00
Abdelrazak Younes
be3fc71676 Third present for Bo: Add syntax highlighting to the LateX preamble.
TODO: extract the latexHighlighter class into its own .[Ch] files.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17553 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 16:13:14 +00:00
Abdelrazak Younes
68e8329644 Add a vertical spacer for nice resizing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17552 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 15:50:32 +00:00
Abdelrazak Younes
9fc7e95b56 Second present for Bo: De-clutter the widget:
- spacing set to zero
- controls moved to the side.
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17551 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 15:34:23 +00:00
Edwin Leuven
4b4b5a55b3 correct tab order and remove duplicate shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17550 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 15:28:33 +00:00
Michael Schmitt
877f513b05 add missing #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17549 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 15:22:54 +00:00
Abdelrazak Younes
b4831be219 Fix gcc warning.
Those arguments are not needed because update() will always look at what is currently selected and the info is there.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17546 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 13:21:23 +00:00
Georg Baum
460e8b8c65 fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17541 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 10:32:22 +00:00
Edwin Leuven
5fc7649ea9 make lyx compile again:
* qwidget doesn't have sizegrip property here

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17540 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 09:55:37 +00:00
Abdelrazak Younes
44efd43a1b Cleanup and polish of the Citation dialog:
- now simple citation insertion can be done with the keyboard only (enter key will close the dialog and insert the chosen key).
- now search also within bib entry information (very fast)
- new case sensitive option
- new regex option.
- QCitation: code simplified, some code went to ControlCitation.
- QCitationDialog: code simplified
- lots of polish in the dialogs...



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17539 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 01:32:12 +00:00
Abdelrazak Younes
14f3344f0b Present for Bo: Cleanup ViewSource and make it a DockWidget.
* DockView.h: add the orientation option.

* QViewSource: now a model and a controller

* QViewSourceDialog: now only a simple QWidget.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17538 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 01:25:29 +00:00
Abdelrazak Younes
dfbc9cfccc * BufferParams:
* transfer CiteEngine enum declaration to biblio.h
  * delete unneeded CiteEngine_enum
  * cite_engine is now cite_engine_ and is private.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17537 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-25 01:12:38 +00:00
Peter Kümmel
df55785b5a compile qt4 three times faster with msvc:
- only trivial renaming
 - one used variable removed



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17514 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-22 23:07:24 +00:00
Enrico Forestieri
333040706b Cache char right bearings
* src/frontends/qt4/GuiFontMetrics.C
	(GuiFontMetrics::rbearing): Cache char rbearing.

	* src/frontends/qt4/GuiFontMetrics.h:
	Implement rbearing_cache_ as a QHash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17499 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-21 23:13:32 +00:00
Uwe Stöhr
913a85afe5 Fix bug 3345
http://bugzilla.lyx.org/show_bug.cgi?id=3345

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17477 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-18 17:05:18 +00:00
Uwe Stöhr
f8e7fec3d4 small cleanup of the include dialog:
"Include" was for good reason the default method but not the first item in the dropdown list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17467 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-18 03:42:40 +00:00
Peter Kümmel
38cdcd70c1 fix bug: vert. maximized window is completely maximized after restart
src/frontends/Application.h : enum for maximized
src/frontends/LyXView.h     : enum for maximized
src/frontends/qt4/GuiView.h : enum for maximized
src/frontends/Application.C : enum for maximized
src/lyx_main.C              : enum for maximized
src/frontends/qt4/GuiView.C : restore complete, vert. hor. maximized window



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17463 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-17 12:28:26 +00:00
Abdelrazak Younes
61dde5d797 Cleanup of the Toc model and controller: The objective is to let the View (TocWidget) decide which kind of list it want to show. The type given by InsetCommandParam() (as read by the controller (ControlToc) then just becomes a hint to the View. Most of the commit is about getting rid of the controller maintained list of types.
* TocBackend
  - addType(), types_, types(): deleted.

* ControlToc
  - tocs(): new
  - selectedType(): access to selected_type_
  - initialiseParams(): transfer code from QToc::update() and look for selected type.
  - getTypes(), getContents(): deleted

* QToc: do not maintain current type. Get the info from the View.
  - setTocModel(): deleted

* TocWidget: always pass the currently selected type to the model/controller.
  - setTocModel(): new slot.
  - updateGui(): transfer code to setTocModel().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17455 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-16 14:14:55 +00:00
Abdelrazak Younes
566d80d064 add some safeguards (while investigating bug 3152).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17421 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-12 17:03:42 +00:00
Abdelrazak Younes
e69f006911 We don't need a QMainWindow parent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17420 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-12 15:45:08 +00:00
Jürgen Spitzmüller
d588c13f3f Make r17416 compile.
Abdel, are Windows compiler really that dumb?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17418 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-12 15:11:18 +00:00
Abdelrazak Younes
51f2d5c064 adjust keyboard shortcuts for buttons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17417 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-12 14:49:27 +00:00
Abdelrazak Younes
cb81965b1e * ControlToc:
- initialiseParams(): overload ControlCommand::initialiseParams() so that we can update the model at this point (QToc is the controller _and_ the model).
  - update(): new 
  - updateBackend(): new protected method to update the TocBackend (called for the "Update" button).

* QToc:
  - is now a QObject
  - modelReset: new Qt signal to indicate a model reset to associated dialog(s).
  - QToc(): avoid the duplicate update() call that will be done in the show command anyway.

* Dialogs.C
  - use new TocWidget in a DockView.

* TocWidget.[Ch]: renamed from QTocDialog. This striped down widget is only a widget that connects to the 'QToc' model/controller.

* DockView.h: new template class that encapsulates a given Widget inside a DockWidget and presents a Dialog::View interface.

* QTocUi.ui:
  - now is a simple Widget.
  - rearrange the buttons a bit
  - get rid of the unneeded close button.
  - modify the shortcut to "Promote" to 'r' because of a clash with "Alt-p" number (we really need real, always valid, shortcuts for all outline action!)




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17416 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-12 14:23:44 +00:00
Uwe Stöhr
14c356d31e - whitespace for Lars
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17396 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-04 01:56:58 +00:00
Uwe Stöhr
f84d08a078 - fix bug 2458
http://bugzilla.lyx.org/show_bug.cgi?id=2458
- whitespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17395 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-02 22:20:32 +00:00
Georg Baum
b5285c8b7a Fix bug 3302 (untested): Add missing internal_path
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17390 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-01 16:25:51 +00:00
Jean-Marc Lasgouttes
a7c2c8e3d5 * support/filetools.C (makeDisplayPath): if the file is in the lyx
support directory, return as a relative path (enclosed in brackets)

	* frontends/qt4/GuiView.C (updateTabs): use makeDisplayPath instead
	of onlyFileName. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17384 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-28 21:48:04 +00:00
Abdelrazak Younes
45747320f0 fix bug 2483:
http://bugzilla.lyx.org/show_bug.cgi?id=2483

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17381 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-28 14:36:38 +00:00
Uwe Stöhr
2f76056e6c Fix bug 3292:
http://bugzilla.lyx.org/show_bug.cgi?id=3292
(fix tab order)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17379 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-27 23:48:57 +00:00
Jean-Marc Lasgouttes
e2d91ecfc2 add "Reconfigure" to the LyX menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17377 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-27 15:30:29 +00:00
Jean-Marc Lasgouttes
fa637e5377 * src/frontends/qt4/QLMenubar.C (macxMenuBarInit): use the new support
Qt 4.2 for Mac menus (no merging is done for qt < 4.2 now).
        * src/frontends/qt4/Action.C (Action): initialize menu role to NoRole
	for qt >= 4.2.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17373 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 19:54:41 +00:00
Georg Baum
d1f8c007f0 Get rid of some locale dependant functions
* src/output_plaintext.C
	(writePlaintextParagraph): Use compare_ascii_no_case instead of
	compare_no_case, since the strings to compare are pure ASCII anyway.

	* src/frontends/qt4/QPrefsDialog.C
	(setComboxFont): ditto

	* src/MenuBackend.C
	(Menu::checkShortcuts): ditto

	* src/frontends/qt4/QLImage.C
	(QLImage::loadableFormats): Use ascii_lowercase instead of lowercase
	since the input is pure ASCII anyway.

	* src/tex2lyx/text.C
	(splitLatexLength): ditto

	* src/support/lstrings.[Ch]
	(compare_no_case): Get rid of both std::string variants
	(lowercase): Get rid of std::string variant
	(uppercase): Change std::string variant to docstring

	* src/support/tests/regfiles/lstrings: Add new expected output

	* src/support/tests/lstrings.C: Add tests for docstring functions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17371 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 18:54:03 +00:00
Abdelrazak Younes
a7d8653a46 Document symbol fonts hack (text from Georg Baum).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17368 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 16:22:54 +00:00
Georg Baum
e0845a1e53 fix thinko
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17363 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 15:29:04 +00:00
Abdelrazak Younes
ba62665f96 * support/qstring_helpers.h: erase ucs4_to_qstring() method.
* FontMetrics.h: only one string width() method.

* Painter.h: only one text() method.

* all other files: adapt to above API change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 15:13:08 +00:00
Jean-Marc Lasgouttes
e5a46922e9 * GuiView.C (updateTab): do not update early if current tab has
changed (bug 3254)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17344 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 19:42:48 +00:00
Uwe Stöhr
1761cccf91 fix wrong tooltip, bug 3273:
http://bugzilla.lyx.org/show_bug.cgi?id=3273

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-24 01:40:59 +00:00
Georg Baum
33a9bb161e Fix bug 3255
* src/frontends/Clipboard.h
	(empty): Clarify documentation

	* src/frontends/qt4/GuiClipboard.C
	(GuiClipboard::empty): Consider also the LyX version, since the text
	version is empty if there is only one inset in the clipboard.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17297 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-21 21:47:44 +00:00
Georg Baum
b85a2f4d75 remove dead code that is no longer needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17238 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-18 11:23:37 +00:00
Abdelrazak Younes
018cb4905e It seems that commit 17167 was not enough to ensure that the proper hide/show/update methods are called.
* QDialogView.h:
  - QDialogView::forms() now requires a QWidget instead of a QDialog. This will allow us to use DockWidget in the future.
  - QView class code simplification: implement inline instead of repeating in the same file.
  - QView::forms() now returns the real object.
  - QController class code simplification: implement inline instead of repeating in the same file.

* QDocumentDialog::update(): renamed to updateParams() to avoid clash with QWidget::update()

* QPrefsDialog::update(): renamed to updateRc() to avoid clash with QWidget::update()

* QTexinfoDialog::update(): now public so that it can be used in QDialogView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17195 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-15 10:16:35 +00:00
Abdelrazak Younes
0a36347897 Fix bug 3231 (hopefully).
http://bugzilla.lyx.org/show_bug.cgi?id=3231

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17184 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 14:51:47 +00:00
Abdelrazak Younes
2ab3247df4 Fix bug 3236 and 3237.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17182 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-14 13:39:11 +00:00
Abdelrazak Younes
a4f3aa748e While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17167 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 18:27:46 +00:00
Abdelrazak Younes
9313c6c39a Fix bug 3225 and maybe others as well.
http://bugzilla.lyx.org/show_bug.cgi?id=3225

* QIndexDialog:
  - QIndexDialog(): setFocusProxy() to the QLineEdit
  - show(): deleted.

* QDialogView::show(): also setFocus() when raising or showing a window.
  
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17166 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 18:20:07 +00:00
Peter Kümmel
e5035aaa8a enable size grip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17155 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-12 19:34:14 +00:00
Jürgen Spitzmüller
c4551768a3 * src/frontends/qt4/ui/QNomenclUi.ui:
- fix bug 3147: Incorrect input field order in glossary dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17136 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-11 13:29:53 +00:00
Abdelrazak Younes
996dc43578 Minimal support for systems with input method (CJK).
* GuiWorkArea::inputMethodEvent(): process a keyPressEvent() for each character of the commitString().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17134 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-10 16:30:11 +00:00
Enrico Forestieri
a894faa25e Fix bug 3150
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::GuiWorkArea): initialize pixmap.
	(GuiWorkArea::doGreyOut): remove unneeded setVerticalScrollBarPolicy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17112 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 16:41:06 +00:00
Peter Kümmel
be4be30532 disable scrollbar context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17093 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 18:50:58 +00:00
Abdelrazak Younes
d5669d9087 Fix bug 3176 ( Focus not set to edit box for inset->label):
http://bugzilla.lyx.org/show_bug.cgi?id=3176

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 17:00:37 +00:00
Uwe Stöhr
666572dc19 only whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17080 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 01:14:36 +00:00
Uwe Stöhr
24e75cb711 add missing changed signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-07 01:13:17 +00:00
Abdelrazak Younes
ea06ca9265 * QLyXKeySym::getUCSEncoded(): properly handle the QString (UTF16) to ucs4 conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17068 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-06 14:13:02 +00:00
Edwin Leuven
a6c58db0f6 * Add comment that clarifies toggled() vs clicked()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 19:41:58 +00:00
Jürgen Spitzmüller
1c945497fb * src/frontends/qt4/QGraphicsDialog.C:
- fix r17050: use signals that are known to Qt 4.0 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17053 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 10:11:16 +00:00
Jürgen Spitzmüller
f90b39698e * src/frontends/qt4/QGraphicsDialog.C:
- use signals that are known to Qt 4.0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17050 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-05 10:04:56 +00:00
Jean-Marc Lasgouttes
57498fc643 * GuiView.C (setGeometry): whitespace and warning.
(updateTab,currentTabChanged): simplify code further.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17044 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-04 21:19:20 +00:00
Michael Schmitt
bbc332f234 * frontends/qt4/QChanges.C:
* frontends/controllers/ControlChanges.C:
	* frontends/controllers/ControlChanges.h: fix merge-changes dialog;
	remove old cruft; strip interface down to what is really needed


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17019 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 20:48:43 +00:00
Peter Kümmel
c9ff277e1f simpilfy tabbar code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17014 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 18:48:58 +00:00
Enrico Forestieri
bdbe6d3d7d Fix bug 3181.
* src/frontends/qt4/QLPainter.C
	(QLPainter::text): Render the symbol whose codepoint is 0x00ad
	through a one-column QTextLine in order to fool Qt, which displays
	what it thinks is a soft-hyphen only when occurring at a line-break.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16997 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-01 03:56:23 +00:00
Georg Baum
5af543c25e Fix bug 3107
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 16:07:37 +00:00
Bo Peng
f189214a89 Session: restore toolbars in the right order and location
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16963 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 02:39:46 +00:00
Bo Peng
aaa544313d Slightly better toolbar session restoration, from Jurgen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16950 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 15:30:33 +00:00
Abdelrazak Younes
c0fad86431 Fix bug 3177:
http://bugzilla.lyx.org/show_bug.cgi?id=3177


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16949 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 13:54:28 +00:00
Georg Baum
04debb8056 Revert unwanted stuff from last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16932 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 18:37:13 +00:00
Georg Baum
a76050219a Fix LyX paste from system clipboard when the file format does not match
* src/buffer.C
	(Buffer::readString): Tell readFile that we do not have a file
	(Buffer::readString): readFile(name) returns a bool, not an enum


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16931 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 18:35:56 +00:00
Jürgen Spitzmüller
662d9e7d85 * src/frontends/qt4/QLToolbar.C: whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16929 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 17:03:21 +00:00
Jürgen Spitzmüller
e36f9947cb * src/frontends/qt4/GuiView.[Ch]:
- fix false toolbar positioning for qt < 4.2.2
	- only add ToolBarBreak if the toolbar exceeds the line
	  (not perfect yet)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16927 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 14:23:05 +00:00
Abdelrazak Younes
1e74e516dc Fix focus bug 3153.
http://bugzilla.lyx.org/show_bug.cgi?id=3153

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16912 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 20:10:47 +00:00
Bo Peng
94408c72a7 Fix confirm overwrite asked twice, from Bernhard
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16907 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 15:19:20 +00:00
Bo Peng
66b7c7eebf BUG3127 Toolbar display: restore all toolbars to different lines. Not good but better than the current situation. qt > 4.2.2 is required.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16895 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 20:54:17 +00:00
Georg Baum
4ad3995b2a Fix bug 3145: not possible to copy stuff from dialogs to document text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16887 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 16:55:25 +00:00
Michael Schmitt
0522d02d08 * frontends/qt4/GuiView.C: fix localization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16882 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 14:42:45 +00:00
Abdelrazak Younes
c4d317d217 Prepare for advanced mouse click selections.
* WorkArea::dispatch(): add modifiers argument.

* GuiWorkArea::mousePressEvent(): transmit the modifier to WorkArea::dispatch().
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16878 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 10:41:03 +00:00
Abdelrazak Younes
ecb37d95df Limit the work-around in rev. 16874 to Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16877 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 10:24:15 +00:00
Abdelrazak Younes
d4f8fe1249 Allows editing when the Prefs dialog is opened; fix bug 3140:
http://bugzilla.lyx.org/show_bug.cgi?id=3140

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16875 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-26 22:38:14 +00:00
Abdelrazak Younes
ca144be319 Work around bug 2859 by Bernhard R.:
http://bugzilla.lyx.org/show_bug.cgi?id=2859



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16874 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-26 22:04:51 +00:00
Abdelrazak Younes
2a1da61470 * QErrorList::update_contents(): avoid touching the dialog here.
* QErrorListDialog::showEvent(): new method. Set the error on the first item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16848 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-25 10:21:02 +00:00
Georg Baum
9281cd4675 We use char_type, not size_t for storing UCS4 characters.
This may make a difference when char_type is signed.

	* src/frontends/LyXKeySym.h
	(getUCSEncoded): change return type from size_t to char_type

	* src/frontends/qt4/QLyXKeySym.[Ch]
	(getUCSEncoded): ditto

	* src/lyxfunc.C
	(LyXFunc::processKeySym): adjust to the above and add a FIXME since
	this is strange code that looks like it was not intended to do what
	it does.

	* src/lyxfunc.h
	(encoded_last_key): Correct documentation


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16833 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-24 14:01:34 +00:00
Abdelrazak Younes
6d7cd27910 With this commit, errors and warnings can use message box even before LyX is properly initialized. This is especially useful for missing sysdir and/or userdir directory.
* Alert.C:
  - error(): calls error_pimpl() in any case.
  - warning(): calls warning_pimpl() in any case.

* Alert_pimpl.C:
  - error_pimpl(): construct a QApplication if LyX is not initialized yet.
  - warning_pimpl(): ditto.

* lyx_main.C:
  - parse_sysdir(): replace lyxerr with Alert::error().
  - parse_userdir(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16823 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-23 12:38:20 +00:00
Abdelrazak Younes
f653a9e979 Cleanup Action class: The mother should be the main window (GuiView). This will hopefully fix bug 3107 (Tooltips not showing on main window).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16807 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-22 11:31:42 +00:00
Michael Schmitt
3092763e2e * output_plaintext.C: cosmetics in comment: line length cannot be < 0
* frontends/qt4/ui/QPrefPlaintextUi.ui:
	* lyxrc.C: align descriptions (saves a message in *.po)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16777 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-20 14:51:40 +00:00
Peter Kümmel
e2d14f9023 coding style: fix crash on buffer-switching (2 tabs) + toc-clicking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-19 22:17:01 +00:00
Peter Kümmel
2d0838650c fix crash on buffer-switching (2 tabs) + toc-clicking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16769 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-19 22:16:26 +00:00
Michael Schmitt
25079a83c2 * LyXView.C:
* qt4/GuiWorkArea.h:
	* qt4/GuiWorkArea.C:
	* WorkArea.h: fix typos: "shedule" => "schedule"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16755 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 21:47:27 +00:00
Abdelrazak Younes
fce2821c44 Fix bug 3063, the problem was a recursive call to QRef::gotoRef() (which indirectly call
QRef::updateRefs() which called gotoRef(), etc).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16754 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 21:06:49 +00:00
Georg Baum
77b9dbd557 Fix several filename and environment variable encoding problems
* src/LaTeX.C
	(LaTeX::deplog): Assume that filenames in log files are stored in
	the file system encoding

	* src/frontends/qt4/qt_helpers.[Ch]
	(internal_path): delete

	* src/frontends/qt4/QGraphics.C: Adjust to change above

	* src/frontends/qt4/QPrefsDialog.C: ditto

	* src/frontends/qt4/QExternal.C: ditto

	* src/frontends/qt4/QInclude.C: ditto

	* src/support/os.h: Document the encoding of filename arguments

	* src/support/os_win32.h: ditto

	* src/support/filetools.C
	(findtexfile): Convert filename from file system encoding

	* src/support/os_win32.C: Convert filenames from utf8 to file system
	encoding and vice versa where needed

	* src/support/os_cygwin.C: ditto

	* src/support/getcwd.C
	(getcwd): Use internal_path() with correct encoding

	* src/support/docstring.[Ch]
	(from_filesystem8bit): new conversion function

	* src/support/environment.C
	(getEnv): convert environment variable from local 8bit encoding to utf8
	(setEnv): convert environment variable from utf8 to local 8bit encoding

	* src/support/environment.h: document encoding of function arguments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16753 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 20:47:27 +00:00
Georg Baum
644f7b46df remove unneeded extra lyx:: namespace qualifier
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16746 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 15:20:33 +00:00
Abdelrazak Younes
200db1541a Partly revert revision 16744. Georg doesn't want to mix string/docstring in there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16745 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 13:35:01 +00:00
Abdelrazak Younes
0c496dc535 Convert internal_path() to unicode (partially). Fix bug 3114:
http://bugzilla.lyx.org/show_bug.cgi?id=3114

* os.h
  - new docstring adapted internal_path()

* qt_helpers.[Ch]:
  - new QString adapted internal_path()

All other files: use that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16744 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 12:30:07 +00:00
Abdelrazak Younes
3d2184730a * mover.h
- SpecialisedMover(): add virtual destructor (fix bug 2916)
  - Movers: rename iterator to const_iterator.
  - theMovers(), theSystemMovers(), getMover(), setMover(): new extern definitions.

* mover.C: 
  - SpecialisedMover::operator(): get rid of bogus MSVC warning.
  - delete global variable movers and system_movers.

* lyx_main.C:
  - LyX::Singletons: new movers_ ans system_movers members.
  - implement Movers access functions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16743 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-18 08:42:53 +00:00
Edwin Leuven
3931b65341 * replace many toggled(bool) with changed() signals
the former is also trigged when updating dialogs. we should use toggled(bool) to en/disable widgets and in situations when we are sure that we always want to act on a toggle

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16724 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 13:06:16 +00:00
Michael Schmitt
bdadc8d496 * development/scons/scons_manifest.py:
* src/frontends/qt4/Makefile.dialogs:
* src/frontends/qt4/QPrefsDialog.C:
* src/frontends/qt4/QPrefsDialog.h:
* src/frontends/qt4/ui/compile_uic.sh:
* src/frontends/qt4/ui/QPrefAsciiUi.ui:
* src/frontends/qt4/ui/QPrefPlaintextUi.ui: rename QPrefAsciiUi.ui to QPrefPlaintextUi.ui; 
rename PrefAscii to PrefPlaintext

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16714 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 22:29:33 +00:00
Abdelrazak Younes
2ea1ce7851 * LyXView::updateInset(): schedule a redraw instead of redraw immediately.
* WorkArea::sheduleRedraw(): new pure virtual method.

* GuiWorkArea::showCursor(): handle the scheduled redraw.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16708 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 15:16:09 +00:00
Edwin Leuven
efdc3fee52 * avoid signal triggered by setChecked(bool)
* get rid of suprefluous mailer updates

should get rid of bugs:
http://bugzilla.lyx.org/show_bug.cgi?id=3076
http://bugzilla.lyx.org/show_bug.cgi?id=3077

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16705 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 12:24:49 +00:00
Jürgen Spitzmüller
2af1fccc61 * src/frontends/qt4/ui/QPrefCygwinPathUi.ui:
- fix layout (bug 3103).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16703 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 07:29:02 +00:00
Michael Schmitt
1f7a1257f1 * change LFUN file-insert-ascii to file-insert-plaintext
* change LFUN file-insert-ascii-para to file-insert-plaintext-para
* change LyXRC::RC_ASCIIROFF_COMMAND to LyXRC::RC_PLAINTEXT_ROFF_COMMAND
* change LyXRC::RC_ASCII_LINELEN to LyXRC::RC_PLAINTEXT_LINELEN
* replace "ascii" by "plaintext" in method names


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-15 22:49:14 +00:00
Peter Kümmel
45cd993a66 The Mac doesn't need a offset for the save/restore window position code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16678 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 17:14:31 +00:00
Georg Baum
3500af60ba Fix bug 2138: copy and paste should preserve formatting between different
LyX instances. This re-enables copy/paste from the internal clipboard on
OS X (currently broken since Clipboard::isInternal() always returns false for
some reason).

	* src/insets/insettabular.C
	(InsetTabular::doDispatch): adjust to clipboard interface change
	(InsetTabular::copySelection): ditto

	* src/mathed/InsetMathGrid.C
	(InsetMathGrid::doDispatch): ditto

	* src/mathed/InsetMathNest.C
	(InsetMathNest::doDispatch): ditto

	* src/buffer.[Ch]
	(Buffer::readString): New method: Read document from a string
	(Buffer::readFile): Change return value from bool to enum (needed
	for readString). Return wrongversion if we are reading from a string
	and the version does not match.
	(Buffer::do_writeFile): make public and rename to write

	* src/CutAndPaste.C
	(putClipboard): New helper, put stuff to the system clipboard
	(void copySelectionHelper): Use putClipboard instead of
	theClipboard().put()
	(void copySelection): ditto
	(void pasteClipboard): new method for pasting in text
	(void pasteParagraphList):

	* src/frontends/Clipboard.h
	(Clipboard::get): Rename to getAsText
	(Clipboard::getAsLyX): New method for getting the system clipboard
	in LyX format
	(Clipboard::hasLyXContents): New method telling whether there is LyX
	contents in the clipboard

	* src/frontends/qt4/GuiClipboard.[Ch]: Implement the new methods

	* src/text3.C
	(LyXText::dispatch): Use pasteClipboard for pasting the system
	clipboard


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16669 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-13 18:29:50 +00:00
Jürgen Spitzmüller
f9bb0933fe * src/frontends/qt4/QGraphicsDialog.C:
- allow double values in the bounding box widgets (bug 3055, 3056).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16664 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-13 10:33:04 +00:00
Enrico Forestieri
6b513c51f1 Make sure that all inputed filenames are in internal style, and avoid
a bug on Windows due to an unnecessary conversion to external style.

	* src/insets/ExternalSupport.C
	(subst_path): avoid a bug in the external material inset on Windows
	by don't using external_path. The filename will be quoted and thus
	there will be no problems with forward slashes.

	* src/frontends/qt4/QGraphics.C
	* src/frontends/qt4/QExternal.C
	* src/frontends/qt4/QInclude.C:
	(Qxxx::apply): On Windows, the user could input an absolute path in
	native style by hand (without using the file dialog), so make sure
	that no backslashes can slip in by this way.

	* src/frontends/qt4/QPrefsDialog.C
	(internal_path_list, external_path_list): new wrappers for the
	corresponding functions in the os namespace.
	(PrefPaths::apply): make sure that path_prefix is stored in the
	internal style, i.e., without backslashes.
	(PrefPaths::update): make sure that path_prefix is displayed to
	the user in the native style.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16659 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-12 03:19:58 +00:00
Enrico Forestieri
5f7747d6b6 Fix another non-ascii filename related assertion
* src/frontends/qt4/QErrorList.C
	(QErrorList::update_contents): use from_utf8 instead of from_ascii.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16639 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-10 17:18:41 +00:00
Georg Baum
a683072ea0 Fix enabling of LFUN_PRIMARY_SELECTION_PASTE: It was always disabled, because
we don't set the selection with qApp->clipboard()->put().
Therefore we get the status of the internal selection from the cursor, and
the empty flag for fake selections is not needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16610 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 18:37:40 +00:00
Jürgen Spitzmüller
10917a7b09 * src/frontends/qt4/QGraphicsDialog.C:
- do not focus filename widget for already existing insets (bug 1663).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16604 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 13:22:50 +00:00
Abdelrazak Younes
f18e41b734 performance fix/cleanup.
* LyXKeySym.h: replace global operator==() with pure virtual method.

* QLyXKeySym: new operator==() method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 11:01:26 +00:00
Jürgen Spitzmüller
c2a35af243 Fix rest of bug 3068.
* src/frontends/qt4/QCitationDialog.[Ch]:
	- implement KeyPressEvent, catch ESC key and clear params there as well 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16594 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 06:52:20 +00:00
Bo Peng
af5d8eabe7 Resolve compiler warning unused parameter nr in src/frontends/qt4/QPrefsDialog.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16591 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 23:06:54 +00:00
Jürgen Spitzmüller
24ba805e2a * src/frontends/qt4/ui/QGraphicsUi.ui:
- fix initial tab.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16582 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 17:59:47 +00:00
Georg Baum
36ada6f267 Correctly enable/disable all paste lfuns
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16576 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 16:43:38 +00:00
Jürgen Spitzmüller
7bd88b5056 * src/frontends/qt4/QTocDialog.C (updateGui):
- disable depth slider when there's no content (prevents crash).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16575 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 16:39:35 +00:00
Georg Baum
5681316341 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16573 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 14:54:10 +00:00
Peter Kümmel
37652b6d7a TOC dialog: fix scrollbar flickering when clicking on items
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16571 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 13:13:40 +00:00
Jürgen Spitzmüller
24e837d390 * src/frontends/qt4/QBibtexDialog.C: sanitize button behaviour (bug 2895)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16570 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 12:46:37 +00:00
Peter Kümmel
b0694a20bc fix: TOC dialog table content is not visible after clicking the combo box
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16569 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 12:10:17 +00:00
Jürgen Spitzmüller
fee8801a6d * src/frontends/qt4/QCharacter.C:
* src/frontends/qt4/QDocumentDialog.C:
* src/frontends/qt4/QPrefsDialog.C:
	- include some information on the resizing bug,

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16565 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 10:24:25 +00:00
Jürgen Spitzmüller
fce84d1224 Fix bug 3068.
* src/frontends/qt4/QCitationDialog.C: 
	- clear params on dialog closing
* src/frontends/qt4/QCitationDialog.[Ch]:
	- implement CloseEvent 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16563 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-07 09:44:57 +00:00
Michael Schmitt
332125a35d * src/frontends/qt4/ui/QCharacterUi.ui: fix resize problem
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16556 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 18:48:27 +00:00
Abdelrazak Younes
68005ba1ad Add ticks to the slider.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16545 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 09:40:36 +00:00
Abdelrazak Younes
5d1eb92c1b Safeguard: don't do things that could trigger a painting inside the resizeEvent().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16544 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 09:36:40 +00:00
Georg Baum
31bc611f34 Fix bug 3067: Special column attributes can contain non-ascii characters,
so store them in a docstring.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16537 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 17:11:32 +00:00
Georg Baum
690a630c5e * src/frontends/qt4/GuiSelection.C
(GuiSelection::haveSelection): Add a big comment what we actually do
	here, and why. It took me quite some time to figure that out.

	* src/frontends/Selection.h
	(haveSelection): Add more detailed documentation


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16527 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 10:32:07 +00:00
Georg Baum
e2da99d6a9 Fix another selection bug
* src/frontends/qt4/GuiApplication.C
	(GuiApplication::x11EventFilter): Only send or clear the selection
	if the X event specified the primary selection. Previously this was
	also done if the event specified the clipboard. We must ignore that,
	because the clipboard is completele handled by qt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16526 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 10:11:21 +00:00
Michael Schmitt
6152f74317 * src/frontends/qt4/QTocDialog.C: fix formatting of curly brackets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16513 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 19:52:41 +00:00
Peter Kümmel
ff93befafb undo partly 16441
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16511 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 19:44:49 +00:00
Jean-Marc Lasgouttes
4c1fb15143 Make the shortcuts work correctly with the mac.
* src/frontends/LyXKeySym.h:
	* src/frontends/qt4/QLyXKeySym.h:
	* src/frontends/qt4/QLyXKeySym.C (print): add a forgui boolean that 
	tells whether the string should used localized names and special 
	characters.

	* src/MenuBackend.C (binding): 
	* src/kbmap.C (print): 
	* src/kbsequence.C (print, printOptions): add forgui parameter.

	* src/frontends/qt4/QLPopupMenu.C (addBinding): use a non-localaized 
	binding for Qt/Mac (because it needs to be parsed back) and a 
	localized one for the others (so that it looks good).

	* src/kbmap.C (defkey,printbindings): 
	* src/lyxfunc.C (processKeySym,dispatch,viewStatusMessage): adapt to 
	above changes.

	* src/kbmap.C (printKey): remove.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16510 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 17:10:24 +00:00
Georg Baum
2f66789cc8 * src/frontends/qt4/GuiApplication.C
(GuiApplication::x11EventFilter): Small optimization: Do not request
	the current BufferView if it is not used


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16506 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 15:36:29 +00:00
Abdelrazak Younes
4d7795d4d2 Reorganize window resizing so that no painting occurs during a resizeEvent(). This caused the crash on MacOSX because the splash image drawing was not finished before the resizeEvent() occurred because of scrollbar hiding.
* WorkArea::resizeBufferView(): delete redraw() call.

* GuiWorkArea:
  - need_resize_: new private member.
  - expose(): move pixmap painting code to new private updateScreen() method.
  - paintEvent(): resize the backing pixmap  if need be.
  - resizeEvent(): move the resizing code to paintEvent().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16499 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 12:36:17 +00:00
Georg Baum
9d1dbb6f61 Remove isInternal() method. We don't use it and should not do so in the
future, we use LCursor::selection() instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16497 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 11:12:01 +00:00
Jean-Marc Lasgouttes
3db3cc44dd * GuiApplication.C (GuiApplication): make sure that the Qtranslator
holding the Qt translations is not deleted. Now keyboard shortcuts and
	Qt stock dialogs are properly translated.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16496 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-04 11:05:57 +00:00
Michael Schmitt
ac88413021 * src/frontends/qt4/QToc.C: fix formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16484 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 22:03:26 +00:00
Michael Schmitt
04b4634213 * src/frontends/qt4/QMathMatrixDialog.C:
* src/kbmap.C:
* src/LaTeXFeatures.C:
* src/text.C: remove superfluous "return" statements

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16483 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 21:51:10 +00:00
Jean-Marc Lasgouttes
94da7f7c83 * src/MenuBackend.[Ch]: the specialMenu is now a real menu, not a
menu name. 

	* src/frontends/qt4/QLMenubar.C (macxMenuBarInit): hardcode the 
	special menu instead of reading it from ui files. Use labels that will
	trigger Qt menu merging functionality onthe mac. This fixes menu
	merging on LyX/Mac (but the menu names are still in english for now). 

	* lib/ui/stdmenus.ui: delete special menu definition "LyX".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16479 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 11:59:10 +00:00
Abdelrazak Younes
6fcb3fe6a2 Prepare for external/internal clipboard merging.
* Clipboard.h: new isInternal() pure virtual method
* Selection.h: new isInternal() pure virtual method

* GuiClipboard, GuiSelection: implement new method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16476 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 08:53:54 +00:00
Abdelrazak Younes
04afd7af17 comment out debug statement.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16474 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 07:28:45 +00:00
Abdelrazak Younes
6faf63e812 add some assertions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16465 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-02 10:36:34 +00:00
Peter Kümmel
c845e5968f disable editing in the toc dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16447 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 21:51:05 +00:00
Peter Kümmel
1e74724606 add more lyxerr output, don't use a reference (maybe stdlib-debug has problems with it)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16441 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 14:50:45 +00:00
Peter Kümmel
10f5ccaab8 we've never used Q_FOREACH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16437 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:35:17 +00:00
Peter Kümmel
74b8008837 undo last acedential checkin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16436 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:30:02 +00:00
Peter Kümmel
af2ce964ae we've never used Q_FOREACH
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16435 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-30 10:23:06 +00:00
Abdelrazak Younes
b2126408cf This commit do the Model/View separation of the LyXText and Paragraph classes. The separation is mostly complete for the Paragraph class but some more transfer should occur for the LyXText class.
* ParagraphMetrics.[Ch]: new files

* TextMetrics.[Ch]: new files.

* lyxtext.h/text2.C/text3.C: some code transferred to the TextMetrics class.

* paragraph.[Ch]: all screen oriented code transfered to ParagraphMetrics class.

* BufferView:
 - text_metrics_: new TextMetrics cache private member.
 - textMetrics(): new access method.
 - parMetrics(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 23:54:48 +00:00
Georg Baum
244b2c1fab Add some more LaTeX encodings, fix thailatex and display all available
encodings in the preferences dialog

	* src/LaTeXFeatures.C: special treatment for tis620-0 encoding
	* src/bufferparams.C: ditto
	* src/output_latex.C: ditto

	* src/encoding.[Ch]: Add the possibility to iterate over all encodings

	* src/paragraph_pimpl.C: Add latin10 and cp858 to Euro treatment

	* src/buffer.C: Update format number

	* src/frontends/qt4/QDocumentDialog.C: Don't hardcode available
	encodings

	* lib/lyx2lyx/LyX.py,
	  lib/lyx2lyx/lyx_1_5.py: implement conversion from 256 to 255

	* lib/encodings: Add some encodings, fix all "unknown" entries

	* development/FORMAT: Document file format change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16418 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 18:15:25 +00:00
Georg Baum
979fdf7456 Fix strange bibtex problem by converting some more functions to use FileName
instead of std::string

	* src/support/lyxlib.h
	* src/support/getcwd.C
	(getcwd): return a FileName, not a std::string in filesystem encoding

	* src/support/filetools.[Ch]
	(makeAbsPath): return a FileName, not a std::string in undefined encoding

	* src/support/lyxlib.h
	* src/support/tempName.C
	(makeAbsPath): return a FileName, not a std::string in undefined encoding

	* many other files: Adjust to the changes above


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16399 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 10:56:11 +00:00
Abdelrazak Younes
246e06c331 Fix focus problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16392 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-24 18:16:25 +00:00
Jürgen Spitzmüller
72bb51b0fc * src/frontends/qt4/QCharacter.C:
- fix dialog resizing for QT >= 4.2 (bug 3032).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16390 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-24 11:38:19 +00:00
Abdelrazak Younes
42426e1423 Fix focus on WorkArea after mini-buffer command.
* LyXView:
  - setFocus(): new pure virtual method.

* QCommandBuffer:
  - simplify Ctor
  - call GuiView::setFocus() instead of centralWidget()->setFocus()

* GuiView:
  - implement setFocus():
  - focusNextPrevChild(): use setFocus().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16386 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-23 17:09:50 +00:00
Abdelrazak Younes
9e4ac7fca9 Fix Tab and Ctrl-Tab keys handling and focus problems related to it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 16:13:19 +00:00
Georg Baum
2caff468e5 convert more GUI strings to docstring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 10:06:40 +00:00
Georg Baum
07e76f0911 get rid of more utf8 conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16376 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-22 09:23:10 +00:00
Georg Baum
1e9f9be483 get rid of more utf8 conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 20:52:59 +00:00
Enrico Forestieri
3aa4567fe8 Use the standard mouse pointer shape when displaying an alert dialog
* src/frontends/qt4/Alert_pimpl.C
	(prompt_pimpl): override the cursor shape chosen by Qt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16371 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 20:29:15 +00:00
Georg Baum
ea2c007320 remove unneeded conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16370 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 19:02:17 +00:00
Abdelrazak Younes
6e02338328 * ctor: change viewport attribute (disable double-buffering).
* focusInEvent(): start the blinking cursor after the resize.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16366 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 14:50:46 +00:00
Georg Baum
1189f55eae convert LyXFont::stateText and LColor::getGUIName to docstring,
saving again some utf8 conversions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16365 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 14:31:19 +00:00
Abdelrazak Younes
0e2095ad62 Fix this error message on startup:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter:🔚 Painter not active, aborted



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16360 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 12:01:35 +00:00
Enrico Forestieri
b892a6bc43 Use a larger font for displaying the version number on the splash screen
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::doGreyOut): don't use LyXFont::SIZE_XXXX directly as
	a font size as these are enum values and not the actual sizes.
	Move the version number slightly to the right to make it more
	readable against the splash screen.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16353 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 02:49:27 +00:00
Abdelrazak Younes
8f90d0bb96 Partial Fix for Tab key press bug. It is now properly processed but the focus is not returned to the WorkArea afterward.
* WorkArea.h: processKeySym() is now public

* GuiView:
  * event(): new method to intercept Tab key press.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16352 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 21:28:05 +00:00
Jean-Marc Lasgouttes
4f8febc1b4 * QLMenubar.C (macxMenuBarInit): fix workaround for menu merging
with Qt/Mac. Still does not work in non-default locale.

	* QLPopupMenu.C (specialMacXmenuHack): remove, not needed anymore.

	* GuiView.C (init): remove Mac hack, not needed anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 14:28:06 +00:00
Jürgen Spitzmüller
9475c48bf2 * src/frontends/qt4/ui/QViewSourceUi.ui: remove bogus Whatsthis entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16330 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 08:17:47 +00:00
Jürgen Spitzmüller
a37f3198ad Trivial ui tweak:
* src/frontends/qt4/ui/QGraphicsUi.ui: fix tab accelerating order.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16325 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 20:17:12 +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
Jürgen Spitzmüller
506c5df84b * src/frontends/qt4/ui/QCitationUi.ui:
- fix shortcut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16313 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 14:04:18 +00:00
Georg Baum
e4c3ce4627 Convert most of the bibtex machinery to docstring.
Don't limit citation keys to ASCII anymore, since InsetBibitem can generate
non-ASCII keys.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16310 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 10:52:04 +00:00
Georg Baum
cd5c02c925 fix variable initialization order (shuts up a gcc warning)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16298 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:40:43 +00:00
Jean-Marc Lasgouttes
d01dad8bac remove some old cruft (unused OS X specific code)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16278 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 14:43:13 +00:00
Edwin Leuven
2c832e6578 more cleanup:
- clear selected keys on ok/cancel
 - update info when navigating with keyboard
 - add clear search button
 - don't allow search strings that return empty selection

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16277 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 09:58:44 +00:00
Enrico Forestieri
272fd4d7df Replace the Qt3 support signal QComboBox::textChanged
with the correct Qt4 signal QComboBox::editTextChanged.

	* src/frontends/qt4/QSearchDialog.C
	(QSearchDialog::QSearchDialog): use QComboBox::editTextChanged instead
	of QComboBox::textChanged.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16270 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 20:01:39 +00:00
Jean-Marc Lasgouttes
6b55f26eb8 Convert shortcut strings to unicode (required by Qt/Mac); restore
shortcuts in menus on the Mac.

	* src/frontends/qt4/QLPopupMenu.C (addBinding): remove special
	OS X code (and hopefully restore shortcuts for LyX/Mac).

	* src/lyxfunc.C (processKeySym, dispatch, sendDispatchMessage,
	viewStatusMessage): adapt to changes below.

	* src/MenuBackend.C (binding): adapt to changes below.

	* src/kbmap.C (printKey, print, printbindings): return a
	docstring; adapt to kbsequence changes.

	* src/kbsequence.C (print, printOptions): return a docstring.

	* src/frontends/LyXKeySym.h (print): return a docstring.

	* src/frontends/qt4/QLyXKeySym.C (print): return a docstring.
	(qprint): remove.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 14:13:01 +00:00
Georg Baum
fe5c73915e Make libQtCore a support library like boost and implement encoding conversion
from/to the local 8bit encoding with it.
Only the autotools build system is updated, scons and cmake users need to
add qt4 cpp flags when compiling libsupport, and link libsupport against
libQtCore.

	* src/frontends/qt4/qt_helpers.[Ch]
	(toqstr, qchar_to_ucs4, ucs4_to_qchar, ucs4_to_qstring,
	 qstring_to_ucs4, fromqstr): Move these qstring conversion functions
	from here ...

	* src/support/qstring_helpers.[Ch] ... to these new files

	* src/support/docstring.[Ch]
	(from_local8bit): new conversion function from local 8bit encoding
	to ucs4
	(to_local8bit): new conversion function from ucs4 to local 8bit
	encoding to ucs4
	(to_local8bit_failure): exception that is thrown by to_local8bit if
	the argument cannot be converted to the local encoding

	* src/support/filename.C
	(FileName::toFilesystemEncoding): implement with the help of QFile

	* src/support/Makefile.am: Add new files, qt4 cpp flags and link
	against libQtCore

	* src/client/client.C: Convert commandline input from local encoding
	to ucs4. Convert stuff that is sent to to the server to utf8,
	because LyX interprets it as utf8 on the other end of the pipe.

	* src/lyx_main.C
	(LyX::exec): convert commandline input from local encoding to utf8
	(LyX::init): ditto
	(LyX::easyParse): ditto

	* development/scons/scons_manifest.py: Add new files

	* config/qt4.m4: Define new variables QT4_CORE_INCLUDES,
	QT4_CORE_LDFLAGS and QT4_CORE_LIB


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16257 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 20:19:46 +00:00
Peter Kümmel
91abd65a92 Don't forget bug in GuiImplementation::closeAllViews()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16251 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 10:54:37 +00:00
Enrico Forestieri
d08210e961 Fix cancel on quit
* src/lyxfunc.C
	(LyXFunc::dispatch): Move to GuiView::closeEvent the session code
	for lastpos in LFUN_LYX_QUIT. Check for unsaved changes before
	initiating the quit procedure in LFUN_LYX_QUIT and LFUN_WINDOW_CLOSE. 

	* src/frontends/qt4/GuiView.h
	(class GuiView): New boolean member quitting_by_menu_.

	* src/frontends/qt4/GuiView.C
	(GuiView::GuiView): Initialize quitting_by_menu_.
	(GuiView::close): Set to true quitting_by_menu_ before calling
	the quit procedure and reset it afterwards.
	(GuiView::closeEvent): Account for the close window button.
	Save last positions to the session file. Remove wrongly placed
	call to quitWriteAll.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16248 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 01:39:50 +00:00
Georg Baum
ff2bea7d39 Fix spell two checker bugs. The reason for both bugs was a string->docstring
commit from an unclean tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16235 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 19:00:57 +00:00
Georg Baum
55f575c4dd convert thesaurus and spellchecker to docstring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16229 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 11:52:46 +00:00
Georg Baum
6836e00c07 eliminate some occurances of fromqstr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16228 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 10:31:42 +00:00
Michael Schmitt
205cf77715 po/de.po:
src/frontends/qt4/QDelimiterDialog.C: cosmetics: change text "Variable size" to just "Variable", because "size" is already given by the label

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16227 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 10:07:31 +00:00
Jürgen Spitzmüller
a2dd2953fa clean up the clean up of the font panel in document dialog (roman family combo has to come first, not last).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16215 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-09 09:54:50 +00:00
Enrico Forestieri
aff98b305c Fix returned width for small caps (these values are not cached, though)
* src/frontends/qt4/GuiFontMetrics.C
	(GuiFontMetrics::width): return correct width for small caps.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16214 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-09 07:07:00 +00:00
Georg Baum
26460b39ee Convert the spell checking machinery to docstring.
Fix a conversion char -> char_type without encoding conversion in
cap::replaceSelectionWithString().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16212 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-08 19:46:16 +00:00
Georg Baum
e04c134ec2 Fix incorrect conversion from QString to std::string. lyxerr output is wrong
now (always UTF8 as in the core).

	* src/frontends/qt4/qt_helpers.C
	(fromqstr): Convert to UTF8, not the locale encoding

	* src/frontends/qt4/qt_helpers.h
	(toqstr): update documentation
	(qchar_to_ucs4): ditto
	(ucs4_to_qchar): ditto
	(ucs4_to_qstring): ditto
	(qstring_to_ucs4): ditto
	(qt_): ditto
	(fromqstr): ditto

	* src/frontends/qt4/README: Update unicode part


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16207 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-08 08:57:57 +00:00
Enrico Forestieri
053c14d17b On *nix, report the font family name instead of "Multi"
* src/frontends/qt4/GuiFontLoader.C
	(QLFontInfo): use font.family() instead of font.rawName()
	as the latter always returns "Multi" on *nix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16195 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-07 00:49:56 +00:00
Enrico Forestieri
30ba00a0c3 Directly use the family name in QFontInfo to ascertain whether the requested
font is available. This is now possible because the old bug needing a
workaround has been solved in Qt4. This also solves the problem of missing
integral symbols in mathed on Windows when the esint10 font is not available.

	* src/frontends/qt4/GuiFontLoader.C
	(isSymbolFamily): directly check the family name in QFontInfo.
	(getSymbolFont): add some debugging info.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16191 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-06 13:38:07 +00:00
Michael Schmitt
ca55737398 * FileDialog.C: always return POSIX-like path names ('/' instead of '\' on Windows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16186 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-05 19:51:50 +00:00
Abdelrazak Younes
c6e4985a07 * GuiApplication::x11EventFilter(): check for currentView() before using it.
* Application::currentView(): now returns a pointer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16170 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 13:52:02 +00:00
Georg Baum
c4320d24cd Make string conversion work with non-ucs2-characters if using qt 4.2
* src/frontends/qt4/qt_helpers.[Ch]
	(toqstr): Use QString::fromUcs4 if the qt version is at
	least 4.2.
	(qstring_to_ucs4): Use QString::toUcs4 if the qt version is at
	least 4.2
	(ucs4_to_qstring): Delete to avoid confusion, since it was only
	used in one place

	* src/frontends/qt4/panelstack.C
	(PanelStack::addCategory): Use toqstr instead of ucs4_to_qstring

	* src/support/unicode.[Ch]
	(ucs2_to_ucs4): Replace with utf16_to_ucs4
	(ucs4_to_ucs2): Replace with ucs4_to_utf16


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16169 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 13:50:46 +00:00
Abdelrazak Younes
493ec52c3f * Dimension is a simple wrapper class again.
* other files: use FontMetrics::dimension() method instead of old Dimension interface.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16167 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 10:45:43 +00:00
Abdelrazak Younes
e318e0e4ef * enable font metrics cache for all platforms.
* introduce defaultDimension() and dimension() in preparation of Dimension class cleanup.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16165 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 10:09:22 +00:00
Bo Peng
7c184e5426 Button face-lift: use mouse hover-buttons.
* src/insets/insetbase.h: add setMouseHover function
	* src/insets/insetcommand.h/C: handle setMouseHover
	* src/insets/insetcollapsable.h/C: handle setMouseHover
	* src/LColor.h/C: redefine some colors
	* src/insets/render_base.h: add state_
	* src/insets/render_button.C: draw differently according to state_
	* src/frontends/Painter.h/C: hover-stype button
	* src/frontends/qt4/GuiWorkArea.C: enable mouse tracking
	* src/BufferView.C: track mouse_motion without button events


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16162 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 04:31:18 +00:00
Abdelrazak Younes
99cae6c723 two lines between function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16158 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 13:17:35 +00:00
Abdelrazak Younes
7df55755ac Fix memory leaks with multiple windows and crash when deleteOnClose is set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16157 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 13:09:57 +00:00
Peter Kümmel
a5b66d297f prepare fixing some memory leaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16155 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 10:30:18 +00:00
Peter Kümmel
f6cf871deb fix quit problems on Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16153 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 10:05:41 +00:00
Michael Schmitt
103c37af4e * src/frontends/qt4/ui/QPrefUi.ui: clarify message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16150 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 01:16:03 +00:00
Michael Schmitt
99d4acd183 * qt4/QExternal.C:
* qt4/lengthcombo.C:
	* qt4/QBox.C: make length units translateable


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16149 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 01:11:37 +00:00
Michael Schmitt
a85cc03780 * qt_helpers.h: qt_() - set parameter 'comment' to default 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16148 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 01:09:09 +00:00
Michael Schmitt
b5331d6261 * src/frontends/qt4/qt_helpers.h: fix comment on the use of qt_()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16147 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 00:28:14 +00:00
Abdelrazak Younes
88d16356f2 update comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16142 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 21:55:28 +00:00
Michael Schmitt
75d0226ce8 * src/lyxfunc.C:
* src/frontends/qt4/GuiView.C:
	* src/lyx_main.C: fix various typos in comments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16141 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 21:27:31 +00:00
Michael Schmitt
f099bf461e * src/frontends/qt4/qt_helpers.h: add #include <boost/assert.hpp>
because gcc 3.3.5pre (SUSE Linux 9.3) fails otherwise


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16140 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 21:25:24 +00:00
Georg Baum
9d1f78acb5 remove unused function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16138 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 20:37:11 +00:00
Georg Baum
c5629aab95 remove duplicate of toqstr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16137 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 19:53:21 +00:00
Peter Kümmel
7b2cce9d5d Clean up quit code.
We still need a solution for the Mac.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16135 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 17:39:31 +00:00
Peter Kümmel
19df31aa0a --style=Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16134 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 17:32:15 +00:00
Abdelrazak Younes
591d47a64b * qt_helpers.h:
- ucs4_to_qchar(): add a FIXME and an assertion

* GuiFontMetrics: replace the table based cache with two QHash based cache. With this change, the speed overhead is not negligible (exact same score with the UserGuide test) and the required additional memory is minimal (maybe one or two megabytes).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16132 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-02 15:54:49 +00:00
Abdelrazak Younes
52dc269fae CharMetrics: use short int instead of int. This halves the memory required for the font metrics cache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16129 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 23:45:06 +00:00
Abdelrazak Younes
5f4e6d9a7c * GuiFontMetrics
- add constants instead of hard-coded values.
  - add assertions and comments for out of range values.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16126 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 17:23:58 +00:00
Abdelrazak Younes
8f98ec35e4 This commit fixes the following bug:
http://bugzilla.lyx.org/show_bug.cgi?id=2900

The only drawback is that it requires about 20Mo extra-memory when loading the UserGuide. If it turns out to be too much, we can switch to a QHash based solution instead of a table.

* dimension.[Ch]:
  - Dimension(LyXFont const, char_typec): new ctor
  - set(LyXFont const & font, char_type c): new method.

* frontends/FontMetrics.h:
  - width(char_type): is now a pure virtual method.

* GuiFontMetrics:
  - CharMetrics: new structure;
  - the metrics cache now also cache ascent and descent. This is especially useful for mathed.

* MathSupport.[Ch]:
  - mathed_char_dim(): deleted. We now use Dimension::set() directly instead.

* rowpainter.C: fixe empty space.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16124 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-01 16:12:24 +00:00
Peter Kümmel
67f2a91dcc FIXME: remove global variable theApp
This pointer was one reason for the Mac crashes because it not always had 
the same value as the application_ smart pointer



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16119 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-30 00:04:51 +00:00
Peter Kümmel
f4c32de361 remove size_t/int warning: QString doesn't use size_t so we must cast it to avoid the warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16117 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 22:57:34 +00:00
Georg Baum
868dd237d1 fix compiler warning:
../../../../src/frontends/qt4/GuiView.C:142: warning: comparison between signed and unsigned integer expressions
../../../../src/frontends/qt4/GuiView.C:144: warning: comparison between signed and unsigned integer expressions
../../../../src/frontends/qt4/GuiView.C:146: warning: comparison between signed and unsigned integer expressions


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16113 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:52:56 +00:00
Peter Kümmel
1000b8d218 Fix crash on Mac, now the strange part
Part 2: avoid pure virtual function,
          if (theApp)
               theApp->unregisterSocketCallback(fd_);
          does not help, we've tested it!
          Without a Mac it is hard to find a better solution
    



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16110 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 21:36:39 +00:00
Peter Kümmel
9dfe4a10d3 also support the geometry option on Windows + Qt/Windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16105 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 16:45:38 +00:00
Peter Kümmel
c3459952a6 don't forget to translate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16102 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 10:25:46 +00:00
Peter Kümmel
dfb079e778 add tool bar popup with three icon sizes: small, normal, big
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16100 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 10:04:35 +00:00
Jean-Marc Lasgouttes
e1771f375b * qt4/GuiApplication.C: remove ad-hoc Mac OSX Carbon code to handle
kAEOpenDocuments ApleEvent.
	(event): new method to do the same thing using qt4 built-in support.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16099 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-29 09:06:37 +00:00
Peter Kümmel
c7a3620eeb fix wrong toolbar icon size, default value is
in lyx_main.C. Size will be stored in the session
file.

*      src/lyx_main.C              : default value
*      src/frontends/Application.h : restore also icon size
*      src/frontends/LyXView.h     :        "
*      src/frontends/qt4/GuiView.h :        "
*      src/frontends/qt4/GuiView.C :        "
*      src/frontends/Application.C :        "



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16085 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 23:35:43 +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
Michael Schmitt
968879e629 * ui/BulletsUi.ui: add missing shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16063 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 14:44:38 +00:00
Michael Schmitt
d51c2e24ed * src/GuiApplication.C: add missing include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16054 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 10:32:42 +00:00
Abdelrazak Younes
e6a6548712 * lyx_main.[Ch]
- execBatchCommands(): split in loadFiles() and execBatchCommands().
  - exec(): enable batch command to be processed from GUI.

* Application:
  - start(): deleted.

* GuiApplication:
  - execBatchCommands(): new method

* GuiWorkArea::update(): call viewport()->repaint() instead of viewport()->update(), this enable to update the screen immediately when asked by a batch command.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16051 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-26 02:18:32 +00:00
Abdelrazak Younes
aed0edc705 Remove key event pruning code. This has always been disabled without anyone complaining.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16046 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 22:35:09 +00:00
Abdelrazak Younes
10dd2cbdcb Toc Slider fixes from Ugras Baran.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16045 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 22:16:22 +00:00
Peter Kümmel
07fa2456f9 simplify exit code, old code doesn't work on the Mac
* lyxfunc.C                         : rename unused LFUN_LYX_QUIT parameter
* frontends/qt4/GuiImplementation.C : call LFUN_LYX_QUIT when last window closed
* frontends/qt4/GuiWorkArea.C       : check theApp, add debug case
* frontends/qt4/GuiApplication.C    : remove quitLyX()
* frontends/qt4/GuiApplication.h    : remove quitLyX()
* frontends/qt4/GuiView.C           : hide() widow fore exiting to prevent crash



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16044 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-25 21:24:04 +00:00
Edwin Leuven
72aeab403f * clean layout of font panel in document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16007 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-21 20:40:42 +00:00
Edwin Leuven
4076494889 * allow resizing of detached panel
* FlowLayout comes from:
http://doc.trolltech.com/4.1/layouts-flowlayout.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16004 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-21 09:06:12 +00:00
Edwin Leuven
b3a449b088 * repair broken layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15992 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 19:43:36 +00:00
Edwin Leuven
17bf0023c7 * show symbol panels in proper size when detached from math panel (always layed out in 5 cols)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15988 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 17:12:33 +00:00
Michael Schmitt
946ede62d0 * frontends/qt4/GuiWorkArea.C: make "unknown version" translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15983 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 13:35:16 +00:00
Michael Schmitt
653c52e2d2 * insets/insetbase.h:
* buffer.C:
	* LaTeX.C:
	* frontends/qt4/ui/QPrefFileformatsUi.ui:
	* MenuBackend.C: fix typo: "can not" => "cannot"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15981 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:43:22 +00:00
Peter Kümmel
cb78985841 first try it on the Mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15975 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:24:40 +00:00
Peter Kümmel
b817032684 we rely on Windows and maybe Linux on a Qt bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15974 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 12:23:36 +00:00
Abdelrazak Younes
eea50a7542 Bug fixes from Ugras Baran:
when iconpalette detached from the math dialog, the iconpalette widget
width may become too large to fit to the screen.

when detached resized to a too small size, icons overlap.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15966 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 16:19:18 +00:00
Abdelrazak Younes
2ea833ac71 Incomplete TocDialog slider implementation from Ugras Baran.
* QTocDialog::getIndexDepth(): new method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15956 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 17:19:43 +00:00
Abdelrazak Younes
a6933a9b4e Bug fixes from Ugras Baran:
Following patch corrects some misbehavior in TOC dialog:

- When clicking on Toc insets, dialog switches to correct list.
- cursor goes to correct entry when clicked..
- some other fixes..


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15949 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 12:37:55 +00:00
Michael Schmitt
23c3c841f7 * QPrefsDialog.C: make static strings translateable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15943 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-15 23:37:26 +00:00
Peter Kümmel
2b4b4d721f disable scrollbar when not needed, this patch is totally uncritical
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15935 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-15 18:01:44 +00:00
Peter Kümmel
c72b361fc9 QComboBox::textChanged is a Qt3 support signal only, QComboBox::editTextChanged is the new Qt4 signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15931 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-14 21:00:34 +00:00
Peter Kümmel
cbab23bce0 svn propset svn:eol-style native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15925 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-14 17:25:31 +00:00
Edwin Leuven
24160975f5 fix signal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15909 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 18:52:41 +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
Abdelrazak Younes
3b91a07daa re-enable opaque widget optimization following Trolltech developer advice (in order to speed up Mac).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15906 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 17:28:37 +00:00
Georg Baum
2734cc1548 Extend the navigate menu to child docs
* src/buffer_funcs.h
	(updateLabels): Add bool childonly argument

	* src/insets/insetbase.h
	(addToToc): New virtual method

	* src/insets/insetinclude.[Ch]
	(addToToc): New virtual method
	(updateLabels): New method

	* src/TocBackend.h: reorganize classes so that we can forward
	declare TocList

	* src/insets/insetfloat.[Ch]
	* src/insets/insetwrap.[Ch]
	(addToToc): Adjust to type changes in TocBackend.h

	* src/frontends/qt4/TocModel.[Ch]: ditto

	* src/frontends/controllers/ControlToc.[Ch]: ditto

	* src/TocBackend.C: ditto
	(TocBackend::update) Remove test for float and wrap inset,
	call virtual method instead

	* src/BufferView.C
	(BufferView::dispatch): make LFUN_PARAGRAPH_GOTO work even if the
	target paragraph is in a different buffer

	* src/MenuBackend.C: Adjust to type changes in TocBackend.h
	(expandToc): Add an entry for the master doc in child docs

	* src/buffer_funcs.C
	(setLabel): Add text class parameter
	(updateLabels): handle included docs if requested by the caller


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15904 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 16:53:49 +00:00
Jürgen Spitzmüller
18e07ec393 * src/frontends/qt4/QBoxDialog.C:
* src/frontends/qt4/QExternalDialog.C:
* src/frontends/qt4/QVSpaceDialog.C:
	- fix signal/slot connection

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15879 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 11:25:20 +00:00
Georg Baum
2c64f84300 Fix translation of ambiguous messages
* src/frontends/qt4/ui/QPrefConvertersUi.ui: Readd translation hint
	to label and remove broken tooltip that somebody created instead

	* src/messages.C
	(Messages::Pimpl::get): reenable stripping of [[..]] from
	untranslated messages


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15872 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 09:36:08 +00:00
Abdelrazak Younes
a988cd6de1 - hum... truly fix the cursor.
- remove unneeded vertical scrollbar policy setting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15869 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 08:29:05 +00:00
Abdelrazak Younes
7a99d338c6 - Clean up CursorWidget and hopefully fix Mac support.
- restore scrollbar when Buffer available.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15868 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 07:50:18 +00:00
Georg Baum
de38acaef0 unicode: ditch another utf8 roundtrip + some obsolete FIXMEs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15866 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 21:09:51 +00:00
Abdelrazak Younes
e34ad6ade0 - Cleanup splash screen
- fix bug when no Buffer.
- hide scrollbar when no buffer




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15862 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 17:41:55 +00:00
Michael Schmitt
d78c8a0b0b * src/frontends/qt4/ui/QNomenclUi.ui: add shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15853 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 00:40:04 +00:00
Abdelrazak Younes
479e9054db * Buffer
- new pimpled TocBackend member and associated accessors.

* toc.[Ch]: delete all toc related methods except outline.

* TocBackend:
  - goTo(): deleted, this gets rid of the LyXView dependency
  - made all accessors const.

* ControlToc: 
  - rework the controller to work exclusively with TocBackend.
  - goTo(): now call LyXView::dispatch() directly

all other files: update with the TocBackend or ControlToc API changes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15852 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 00:35:14 +00:00
Jürgen Spitzmüller
f7252e64c6 * src/frontends/qt4/BulletsModule.C: only whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15841 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-10 17:00:21 +00:00
Edwin Leuven
7a3f9c65f7 ugras baran: correct switching between different TOC types
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15837 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-10 13:13:10 +00:00
Abdelrazak Younes
c0f6f79cb0 Fix for bug 2975 (http://bugzilla.lyx.org/show_bug.cgi?id=2975) from Ozgur Ugras BARAN. Looks like a gcc bug with STL map.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15821 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 13:13:28 +00:00
Edwin Leuven
f27065f936 some cleanup:
* have the modify/new functions in the formats and converter modules share most of their code

* get rid of the pointer to PrefConverters in the
formats module 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15820 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 11:07:42 +00:00
Edwin Leuven
716adc1e48 solve crash (no cleanup):
http://permalink.gmane.org/gmane.editors.lyx.devel/72180

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15818 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 10:15:17 +00:00
Peter Kümmel
d1280565fd scrollbars always on to avoid an additional resize when switching the buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15815 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 09:15:04 +00:00
Peter Kümmel
e70fa92179 fix drifted position of restored window
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15814 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 09:13:04 +00:00
Peter Kümmel
3ae92a71ed disable toolbar popup menu, this is better than the current state
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15809 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-08 23:10:46 +00:00
Abdelrazak Younes
60cf37471d Fix potential crash. Passing an empty string happens _very_ often.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15803 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-08 11:32:33 +00:00
Michael Schmitt
298c01e167 replace "Notation Entry" by "Glossary Entry" and "Notation List" by "Glossary"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15797 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 22:28:53 +00:00
Asger Ottar Alstrup
977b8d094a - Get rid of manifestly expensive debugging output in the most critical path in LyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15796 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 22:17:12 +00:00
Georg Baum
d3218b9acb document docstring abuse for symbol font code points
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15791 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 20:46:38 +00:00
Michael Schmitt
94bc110668 * GuiApplication.C: fix compilation (ev => xev)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15787 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 18:17:15 +00:00
Michael Schmitt
c56671cec7 * src/frontends/qt4/qt_helpers.C:
* src/frontends/qt4/qt_helpers.h:
	* src/frontends/qt4/ui/Makefile.am:
	* Status.15x:
	* development/scons/qt4.py: fix localization for qt4 strings


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15786 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 18:09:55 +00:00
Michael Schmitt
e0ae3a1a04 ui/*.ui: <include location="local" >qt_helpers.h</include>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15784 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 17:56:32 +00:00
Abdelrazak Younes
c2a49b5b0d * Application:
- setBufferView(): deleted
  - currentView(), setCurrentView(): new method to set the current LyXView

* GuiApplication::x11EventFilter(): use currentView().view() to get the current BufferView. This should solves the X11 selection bug.

* WorkArea:
  - dispatch(): redraw only if needRedraw in preparation for the painting optimization patch. Show the cursor immediately on mouse click.
  - setBufferView(): remove call to Application::setBufferView()

* GuiWorkArea:
  - focusInEvent(): update only if we changed LyXView
  - focusInEvent(): stop the cursor only if we changed LyXView.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15783 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 17:19:33 +00:00
Jürgen Spitzmüller
7d4268a5e5 Hit Qt 4.2 with the sledgehammer until the dialog resizing bug is fixed.
* src/frontends/qt4/QDocumentDialog.C:
* src/frontends/qt4/QPrefsDialog.C:
	- force updateGeometry() for Qt >= 4.2 after the panel stack
	   has been built. This is a workaround for a Qt bug. See FIXMEs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15781 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-07 16:20:42 +00:00
Jürgen Spitzmüller
c5499a3da5 Revert from revision 15769:
* src/frontends/qt4/panelstack.C: 
	- fix the preferences and document dialog resizing problem (well, at least 
	  for me -- please verify).

This didn't fix the problem. I'm pretty sure now that this is a bug in Qt 4.2(.1?)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15770 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 18:04:51 +00:00
Jürgen Spitzmüller
54cc44fd9a * src/frontends/qt4/panelstack.C:
- fix the preferences and document dialog resizing problem (well, at least 
	  for me -- please verify).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15769 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 16:27:31 +00:00
Georg Baum
b60ef50a54 Remove unused symbol encoding
* src/encoding.[Ch]
	(symbol_encoding, symbol_encoding_): remove (unused)

	* src/frontends/qt4/QLPainter.C
	(QLPainter::text): Remove commented code. It was used in pre
	unicode times to get unicode values of the symbol fonts if
	USE_UNICODE_FOR_SYMBOLS was defined, but this was never defined
	anyway, since the code points of the symbol fonts (as written in
	lib/symbols) are directly used.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15758 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-05 20:13:22 +00:00