Commit Graph

9658 Commits

Author SHA1 Message Date
Lars Gullik Bjønnes
28c5673ff4 Extracted from r14281
* frontends/LyXView:
	- redrawWorkArea(): new temporary method called from within
	  BufferView::pimpl::update() that calls WorkArea::redraw()
	  in order to do the actual screen redrawing.
* frontends/WorkArea:
	- the redraw() method now check if the the attached bufferView
	  needs a screen redraw().
* BufferView:
	- needsRedraw(): new method for WorkArea::redraw()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14381 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 20:24:32 +00:00
Georg Baum
ca55190481 qt -> qt3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14380 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 15:45:15 +00:00
Georg Baum
c9eeee5f5d forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14379 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 15:20:08 +00:00
Georg Baum
457b334926 Move more methods from WorkArea to Clipboard in qt3 and gtk
* src/frontends/gtk/GWorkArea.[Ch]
	(getClipboard): Move to GuiClipboard.[Ch]
	(putClipboard): ditto

	* src/frontends/gtk/Makefile.am: add GuiClipboard.C

	* src/frontends/gtk/GuiClipboard.C: new file

	* src/frontends/gtk/GuiClipboard.h
	(get, put): only declare

	* src/frontends/qt3/Makefile.am: add GuiClipboard.C

	* src/frontends/qt3/QWorkArea.[Ch]
	(getClipboard): Move to GuiClipboard.[Ch]
	(putClipboard): ditto

	* src/frontends/qt3/GuiClipboard.C: new file

	* src/frontends/qt3/GuiClipboard.h
	(get, put): only declare

	* src/frontends/qt4/GuiClipboard.C: remove unneeded include
	(GuiClipboard::get): adjust debug output
	(GuiClipboard::put): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14378 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 15:11:18 +00:00
Abdelrazak Younes
7cca51ed18 Fix potential crashes related to element presence in a given map.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14377 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 14:40:22 +00:00
Georg Baum
82a4214f7b make FileName::isZipped more efficient by caching previous results
* src/insets/insetgraphics.C
	(copyToDirIfNeeded): replace file_in and zipped arguments with a
	FileName argument
	(InsetGraphics::prepareFile): adjust call of copyToDirIfNeeded

	* src/support/filename.C
	(FileName::FileName): set zipped_valid_
	(FileName::set): ditto
	(FileName::erase): ditto
	(isZipped): use zipped_

	* src/support/filename.[Ch]
	(zipped_): new cache for isZipped()
	(zipped_valid_): new, tell whether zipped_ is valid


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14376 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 14:16:56 +00:00
Georg Baum
a7fe209a13 * src/frontends/gtk/GuiImplementation.C: include config.h
* src/frontends/qt4/GuiImplementation.C: ditto
	* src/frontends/qt4/TocModel.C: ditto
	* src/frontends/qt4/GuiClipboard.C: ditto

	* src/frontends/gtk/GuiClipboard.h fix spelling
	* src/frontends/qt3/GuiClipboard.h: ditto
	* src/frontends/qt4/GuiClipboard.h: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14375 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 13:27:43 +00:00
Michael Schmitt
131f9b0b62 * configure.ac: qt becomes qt3
* INSTALL: remove xforms description; update
        --with-frontend args
        * config/lyxinclude.m4: update possible values
        of --with-frontend


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14373 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 11:16:17 +00:00
Michael Schmitt
4eccc22119 remove xforms relicts
* src/frontends/qt3/QPrefs.C:
        * src/frontends/controllers/BCView.tmpl:
        * src/support/package.h: fix/remove comment

        * po/pocheck.pl: no longer check for xforms shortcuts
        * development/Win32/lyx.vcproj: ignore ControlPreamble.[Ch]


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14372 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 09:40:15 +00:00
Bo Peng
f8404ec837 lib/configure.py: fix CheckTexPaths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14370 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-08 02:50:24 +00:00
Angus Leeming
136fc28dae Update Geoffrey Tobin's email address to something that doesn't bounce...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14367 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 16:22:46 +00:00
Angus Leeming
7c0e56ff5d Fix the fix so that it actually works ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14366 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 16:21:45 +00:00
Bo Peng
563c1b6b24 Scons: allow non-exist build_dir option, adjust QTDIR/bin handling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14365 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 16:21:10 +00:00
Angus Leeming
0edeef83b7 Fix humiliating typo and update the link to the licence page on the web.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14361 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 15:58:57 +00:00
Abdelrazak Younes
f0d5b5b19b add version_suffix documentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14360 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 15:11:37 +00:00
Angus Leeming
9a88b1d8be * Enable man2ps to work without hard-coding the locations of groff or dpost.
* Re-add whitespace fluff to {dvi,dtl}.doc --- minimize change to original package.
* Enable man2ps (and hence doc) targets in Makefile to build out of the box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14359 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 14:05:23 +00:00
Jean-Marc Lasgouttes
9c5a0331a3 * src/rowpainter.h (rightMargin): reduce to 10 pixels, like the left
margin. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14357 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 13:37:59 +00:00
Jürgen Spitzmüller
1d8fa4fd2c * src/insets/insettabular.h: return true for allowSpellcheck (bug 2675)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14356 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 10:18:33 +00:00
Bo Peng
fc42d0d4f9 Scons: check system boost version, probe qt3 libs for qt2 frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14354 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 03:08:37 +00:00
Bo Peng
c8c3f0ed11 Scons: update cygwin instructions, by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14353 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-07 02:39:54 +00:00
Michael Schmitt
0be696bff0 * remove various xforms relicts, in particular:
* src/frontends/controllers/ControlPreamble.[Ch]:
        remove files, since this controller was only used
        by the xforms frontend


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14352 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 19:28:59 +00:00
Jean-Marc Lasgouttes
2558af85af fix hyphens in man pages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14351 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 14:27:46 +00:00
Abdelrazak Younes
a0d93c0c49 * MSVC Compilation fix: #warning is not supported.
* Change the comment to "This is not a memory leak:"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14347 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 11:28:05 +00:00
Lars Gullik Bjønnes
1afb2a6b05 Remove quite a few compiler warnings:
- Change unsigned -> signed
	- Change signed -> unsigned
        - Add a cast or two (really few of those)
	- Remove/comment out unused variables
	- Comment out unused arguments
	- Add missing cases to switches.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14344 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 08:18:51 +00:00
Bo Peng
a54d3e83bd Scons: exclude boost headers only for system boost header files.
* INSTALL.scons: document this change.
	* development/scons/SConstruct: check for included_boost to exclude boost 
	  headers from the dependency tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14343 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-05 18:48:59 +00:00
Georg Baum
da9cdaf218 Reduce calls of ::exit()
* src/main.C
	(main): return LyX::exec()

	* src/frontends/{gtk,qt3,qt4}/lyx_gui.C
	(lyx_gui::exec): Change return value to int
	(lyx_gui::start): ditto

	* src/frontends/qt[3,4]/lyx_gui.C
	(lyx_gui::exit): Call QApplication::exit instead of ::exit, this
	hack is not needed anymore

	* src/frontends/lyx_gui.h
	(lyx_gui::exec): Change return value to int
	(lyx_gui::start): ditto

	* src/lyxtextclasslist.[Ch]
	(LyXSetStyle): SChange return value to bool and don't call ::exit

	* src/lyx_main.C
	(showFileError): Don't exit anymore

	* src/lyx_main.[Ch]
	(LyX::exec): Change return value to int
	(LyX::priv_exec): ditto
	(LyX::exec2): ditto
	(LyX::init): Change return value to bool
	(LyX::readRcFile): ditto
	(LyX::readUIFile): ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14339 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-05 17:01:26 +00:00
Bo Peng
e85cfec957 Scons: do not build boost dependency tree, use debug/release boost system library, check for boost system header files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14338 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-05 15:33:38 +00:00
Bo Peng
efc3b4e52a lib/configure.py: fix checkTeXAllowSpaces, by Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14336 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 13:55:28 +00:00
Lars Gullik Bjønnes
b16aafd88e * BufferView::Pimpl::update:
- slight speedup by checking if debugging before creating
	  the debug output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14333 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 00:30:34 +00:00
Lars Gullik Bjønnes
32cd0ee6f9 * BufferView::Pimpl::update:
- streamline a bit to only run updateMetrics once
	- do not take a backup copy of theCoords


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14332 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 00:19:59 +00:00
Lars Gullik Bjønnes
1ff081141d Extraced from r14281 from the younes branch.
* BufferView, BufferView::pimpl:
	- metrics_info_: private variable holding ViewMetricsInfo
	- viewMetricsInfo(): accessor function
	- updateMetrics(): renamed from metrics(), sets metrics_info_
	- update(): change to use updateMetrics()

* frontends/WorkArea:
	- redraw(): get the ViewMetricsInfo through accessor to BufferView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14331 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-04 00:04:46 +00:00
Lars Gullik Bjønnes
ee1871ef71 Partially extracted from r14281 from the younes branch.
* BufferView, BufferView::Pimpl:
	- painter(): remove method
* rowpainter.C:
	- paintText(): get painter through LyXView and WorkArea


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14330 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 22:54:30 +00:00
Lars Gullik Bjønnes
b1a87cc778 Extracted from r14281 from the younes branch.
* BufferView,BufferView::Pimple:
	-  workArea_ removed
* frontends/LyXView:
	- now contains a pointer reference to the current
	  WorkArea instead of the BufferView.
        - workArea(): temporary access method
* frontends/WorkArea:
	- bufferView(): new access methods.

* GuiImplementation: updated due to above changes


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14329 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 22:31:51 +00:00
Jean-Marc Lasgouttes
48a5df5ffe update postats script to use proper trac URL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14328 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 22:00:18 +00:00
Bo Peng
cd443c86ca Scons: fix handling of lib/lyx2lyx/lyx2lyx_version.py.in
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14325 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 20:57:25 +00:00
Lars Gullik Bjønnes
752cab15d7 Second part of r14315 from the younes branch:
* BufferView and Bufferview::pimpl: repaintAll() methods deleted.

	* rowpainter.C:
 		- refreshInside : new variable in the anonymous namespace.
 		- use of refreshInside instead of the repaintAll() methods


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14324 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 20:37:34 +00:00
Lars Gullik Bjønnes
fb97c0689b First part of r14315 from the younes branch:
* BufferView and BufferView::pimpl:
   		- getClipboard, stuffClipboard, haveSelection: deleted

	* CutAndPaste.C: use BufferView::owner()->gui().clipboard()
	* insettabular.C: ditto
	* math_nestinset.C: ditto
	* text3.C: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14323 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 20:19:33 +00:00
Bo Peng
c267eec1c9 lib/lyx2lyx/lyx_1_5.py: replace tab with spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14322 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 20:09:43 +00:00
Lars Gullik Bjønnes
22861453fe Remove the XForms frontend, update the autotools files, and fixup po.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14320 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 19:20:25 +00:00
Georg Baum
0c0c43b8eb merge booktabs branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14319 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 19:13:56 +00:00
Bo Peng
d17833b8d0 lib/configure.py: use \nonstopmode instead of -interaction=nonstopmode, from JMarc and Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14316 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 15:28:13 +00:00
Bo Peng
62d3cebb29 Scons: polish scons' 1.4.x support.
* INSTALL.scons: add instruction for 1.4.x
	* development/scons/SConstruct: fix a installation bug for 1.4.x, better handling of QTDIR


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14311 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-03 02:02:11 +00:00
Bo Peng
d4253cbacd Scons: rename option qt_include_path to qt_inc_path (we have extra_inc_path etc.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14307 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 22:09:11 +00:00
Bo Peng
418b9c936d Scons: check the validity of QTDIR, and the existence of uic and moc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14293 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 17:35:14 +00:00
Bo Peng
b2d7d52537 Scons: fix a isdir typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14288 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 03:17:15 +00:00
Bo Peng
9067cdb3e8 lib/configure.py: add -interaction=nonstopmode to cygwin/latex test.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14287 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 03:09:00 +00:00
Bo Peng
b0abcefcc0 Scons: set default qt lib directory under cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14286 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-02 01:54:44 +00:00
Bo Peng
34001ec175 Remove all tabs in lib/lyx2lyx/*.py, corresponding to the added -tt option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14285 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-01 19:16:09 +00:00
Bo Peng
84d52901d7 Add config.h to src/frontends/qt4/Application.C to avoid MSVC BOOST_ALL_NO_LIB problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14284 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-01 18:14:58 +00:00
Jürgen Spitzmüller
4644b0a2a4 * ui/QPrefUIModule.ui: fix layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14282 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-01 11:22:33 +00:00