Commit Graph

2697 Commits

Author SHA1 Message Date
Abdelrazak Younes
29564e5f54 Changelog:
* QDialogView.h: interface methods and slots are now public instead of protected. This allow to avoid making friend classes.
* QPrefs.[Ch]: removed everything GUI related. The controller does not know anything about what the Dialog is doing, it is here only to transfer request one way or the other.
* QPrefsDialogs.[Ch]: transfered everything GUI related here. Things are gathered per module in contructor, apply() and update() methods so that it will be easy to transfer code to separate class afterward
  - QPrefsDialogs::apply(LyXRC & rc): fill in rc parameters from GUI.
  - QPrefsDialogs::update(LyXRC const & rc): update GUI from rc parameters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13453 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-22 18:59:17 +00:00
Georg Baum
bdcfe69b98 set svn:eol-style to native in qt4 frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13447 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 19:56:57 +00:00
Georg Baum
f7bbfca3a0 remove qgridview.[Ch] (these files were only needed for qt2)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13446 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 19:15:31 +00:00
Abdelrazak Younes
6c2e78e128 * QPrefsDialog::QPrefsDialog():
- fix from Edwin Leuven: colorsModule did not recognize colornames grey40, etc.
  - delete unused variable.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13445 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-21 12:49:43 +00:00
Abdelrazak Younes
4213d1851a clean up dos style line ending.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13442 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 17:25:02 +00:00
Jean-Marc Lasgouttes
13c546c460 * src/frontends/qt2/QWorkArea.C
(QWorkArea::QWorkArea): do not set background of the workarea (bug 2197)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 15:33:24 +00:00
Martin Vermeer
a193ea09f9 Selective expose patch
* metricsinfo.h
	(ViewMetricsInfo): add size parameter

	* BufferView_pimpl.C
	(BufferView::Pimpl::metrics): return size

	* frontends/screen.C
	(LyXScreen::redraw): expose selectively, using y1, y2 in vi, and
	exposing lower grey at end using size test



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13432 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 15:05:07 +00:00
Abdelrazak Younes
812b5ebfa9 When I created the Branches dialog class, I forgot to connect it to the Document settings panel dialog.
* QDocumentDialog.C: added connection to QBranches::changed signal.
* QBranches.h: added changed signal
* QBranches::update() added changed signal emission. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13430 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 14:40:27 +00:00
Abdelrazak Younes
967d3e3cd6 QBranches::on_colorPB_clicked() one-line bug fix:
When you click the "Alter button" on a added branch in "Document Settings/Branches" Dialog, clicking on the palette on the right to select a color won't work (selected color stays black). After selecting a color from the "Basic Colors" or the "Custon colors"
(which works fine), the color selection from the palette will work correctly. The problems lies in that the QColor() constructor produces an invalid color (RGB 0,0,0). "lightskyblue" is now the default color for a branch when you click the alter button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13429 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 14:10:31 +00:00
Abdelrazak Younes
4a5053d34e * qscreen.[Ch]:
- Cursor handing is done on the server -> *cursor are
    QPixmap
  - Use new drawScreen and copyScreen methods.
* QWorkArea.[Ch]:
  - Pixel manipulation is done on the client -> paint_device_ is a
    QImage
  - an intermediate Screen device is updated whenever expose is called
    -> sreen_device_ is a QPixmap. This screen_device is the one that is
    painted on screen in QWorkArea::repaintEvent().
  - new update, drawScreen and copyScreen methods. 
* QLPainter.C: use the new paintDevice interface.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13428 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 10:43:21 +00:00
Jürgen Spitzmüller
4c4b3e3cff frontends/controllers/ControlBibtex.[Ch]: new members bibtotoc(), getStylefile(),
which hold functionality that has been moved from the frontends
	and implement a method to use a default stylefile for new bibtex 
	insets (bug 2322).

frontends/gtk/GBibtex.C:
frontends/qt2/QBibtex.C:
frontends/qt4/QBibtex.C:
frontends/xforms/FormBibTex.C: Move parsing of Options (stylefile, bibtotoc) to the 
	controller (bug 2322).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13427 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 10:24:23 +00:00
Georg Baum
3626d1ce04 Remove qt2 support in the following files:
* src/frontends/qt2/qt_helpers.C
	(makeFontName):

	* src/frontends/qt2/QWorkArea.C
	(QWorkArea::haveSelection):
	(QWorkArea::haveSelection):
	(QWorkArea::getClipboard):

	* src/frontends/qt2/panelstack.C
	(PanelStack::PanelStack):

	* src/frontends/qt4/qt_helpers.C
	(makeFontName):

	* README: remove notice about qt2

	* config/qt.m4: make 3.0 the minimum required qt version


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13414 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-17 19:02:43 +00:00
Georg Baum
c9c37cab4e * src/frontends/qt4/QWorkArea.C
(QWorkArea::mouseMoveEvent): Use qt wide scroll wheel setting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13409 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 20:34:20 +00:00
Georg Baum
4c772b2376 QContentPane::mouseMoveEvent: Use qt wide scroll wheel setting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13401 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 15:26:44 +00:00
Abdelrazak Younes
937d6d1111 PanelStack::addPanel(): fixed document settings dialog size when first showed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13391 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 13:15:42 +00:00
Abdelrazak Younes
e16b61096d Edwin Leuven <e.leuven@uva.nl>
* entries in the combobox in the toolbar are not legible
* same for entries in the listview in the preferences dialog
* the color is not updated after changing it (i always change the murky pink color of lyx's background to white)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13387 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 11:23:23 +00:00
Abdelrazak Younes
371dc18f22 fixed inset buttons grey colors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13386 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-16 10:52:20 +00:00
Jean-Marc Lasgouttes
4b7512f767 fix drawing of buttons (bug 2328)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 15:32:32 +00:00
Abdelrazak Younes
c6d4e2b9c6 removed topLevelMenu_.clear() call in QLPopupMenu::update() following MenuBackend change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13380 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 15:26:21 +00:00
Georg Baum
2470320dd6 fix symbols fonts on X11
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13378 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 13:39:59 +00:00
Abdelrazak Younes
f43f4ed94f QLPopupMenu.[Ch]: renamed topLevelMenu to topLevelMenu_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 11:27:32 +00:00
Abdelrazak Younes
5ea9a78905 QLMenubar.C: Fix potential MACX crash on menubar initialisation.
The MACX specific menubar hack present in qt2 frontend is still not ported to the qt4 frontend.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13376 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-15 11:12:52 +00:00
Georg Baum
369fe1ab82 restore entries from 11/2002 to 5/2005
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-14 19:56:00 +00:00
Abdelrazak Younes
6d21659ce0 QWorkArea.[Ch]: Wheel one-liner mouse fix
QWorkArea.h: Added comments
Reverted to Q_WS_X11 and Q_WS_MACX instead of Q_OS_*


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13371 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-14 14:50:00 +00:00
Jürgen Spitzmüller
98b1da0248 Abdelrazak Younes: Compile fixes for the Mac (ChangeLog follows)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13349 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 17:44:38 +00:00
Jürgen Spitzmüller
4035592aee (Abdelrazak Younes:)
* QWorkArea.[Ch] cleanup:
	- Added private members workWidth_ and workHeight_ in order to
	  make sure QWorkArea is always able to draw (link to
	  workArea::WorkAreaResize).
	- deleted superfluous debugging stuff
	- deleted superfluous commented out code.
	- placed all specific stuff (Qt-immodule, X11 and Mac OSX) in a
	  separate place at the end of QWorkArea.C.
	- initial support for Wheel mouse (still does not work).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13348 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 17:29:34 +00:00
Lars Gullik Bjønnes
41cfebb8eb src/frontends/qt4/ui/pch.h: new file
boost/libs/regex/src/Makefile.am: remove non-existant file


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13343 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-12 08:52:08 +00:00
Martin Vermeer
b557e3790e fix bug 2212: First change is skipped in Merge changes... dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13331 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-10 16:46:03 +00:00
Georg Baum
f02a98497d fix bug 1955
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13322 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-10 14:51:28 +00:00
Georg Baum
9c5fcfa383 fix nullstream also in pch files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13311 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-07 10:02:07 +00:00
Lars Gullik Bjønnes
bd9c55944f Update for boost::regex v4, add test
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13306 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-06 22:33:16 +00:00
Lars Gullik Bjønnes
0226612481 add svn:ignore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13300 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 20:41:35 +00:00
Lars Gullik Bjønnes
0c21c114d4 setup the buildsystem for building qt4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13295 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 17:29:08 +00:00
Lars Gullik Bjønnes
12e5a52b92 Added initial qt4 work by Abdelrazak Younes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13294 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 17:24:44 +00:00
John Spray
44fc7b62a5 window size tweak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13262 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:12:01 +00:00
John Spray
b59621bc59 Rewording in GTK document dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13261 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:07:25 +00:00
John Spray
786759e106 Some work on GTK tabular dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13260 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 18:03:24 +00:00
John Spray
e4c3c00f80 revise layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13259 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 16:26:45 +00:00
John Spray
153c985ba2 grayscale and monochrome
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13258 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-20 16:26:23 +00:00
John Spray
757cb58173 Spellchecker options for gtk preferences dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13253 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 17:05:24 +00:00
John Spray
dfaf9a11a1 Fix update() of GTK wrap dialog for default placement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13252 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 01:39:07 +00:00
John Spray
c822a28e39 Escape underscores in GTK menu labels
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13251 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 01:24:22 +00:00
John Spray
a67c5829cb Fix spinbutton limits
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13250 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:53:30 +00:00
John Spray
01b554be2a Fix rows and columns getting confused in table creation dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13249 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:52:58 +00:00
John Spray
b7039ba891 revert removal of update() from show() - I misunderstood.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13248 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-17 00:46:25 +00:00
John Spray
9aa58f9986 Make GCitation show selected keys even if they're not in
the list of bibkeys.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13247 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-16 19:31:03 +00:00
Jürgen Spitzmüller
414a11684e code cosmetics to the iterator fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-15 14:12:54 +00:00
Jürgen Spitzmüller
36945644e7 fix crash due to invalidated iterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13241 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-15 11:13:37 +00:00
John Spray
5d14da2001 Fix double-updating, thus fixing GChanges skipping first change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13240 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 16:14:33 +00:00
John Spray
5943449516 Add comments to mark questionable text encoding conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13239 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-14 14:55:27 +00:00