Commit Graph

662 Commits

Author SHA1 Message Date
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