Commit Graph

2958 Commits

Author SHA1 Message Date
Abdelrazak Younes
ae2cce4188 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:59 +00:00
Abdelrazak Younes
4a2016826d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14741 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:45 +00:00
Abdelrazak Younes
766be8d03c get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14740 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:32 +00:00
Abdelrazak Younes
cb05434d79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14739 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:14 +00:00
Abdelrazak Younes
4b2eb61391 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14738 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:54 +00:00
Abdelrazak Younes
715685a31f get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14737 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:41 +00:00
Abdelrazak Younes
7b6815810d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14736 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:30 +00:00
Abdelrazak Younes
e6a07c092a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14735 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:02 +00:00
Abdelrazak Younes
49852dca94 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14734 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:34 +00:00
Abdelrazak Younes
92b3cd4074 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14733 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:14 +00:00
Abdelrazak Younes
43a8d1529b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14732 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:57 +00:00
Abdelrazak Younes
8eb5da91da get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14731 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:40 +00:00
Abdelrazak Younes
773f079a56 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14730 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:05 +00:00
Abdelrazak Younes
4a59eb800b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14729 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:48:24 +00:00
Abdelrazak Younes
c1bf7d7c8b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14728 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:52 +00:00
Abdelrazak Younes
7b8f73cc9a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14727 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:20 +00:00
Abdelrazak Younes
73f862e94b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14726 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:59 +00:00
Abdelrazak Younes
e2cf98e4f5 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14725 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:38 +00:00
Abdelrazak Younes
8762a5cab8 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14724 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:00 +00:00
Abdelrazak Younes
64317e45cd get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14723 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:48 +00:00
Abdelrazak Younes
e30a1e10a7 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14722 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:13 +00:00
Abdelrazak Younes
8670d821c4 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14721 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:44:15 +00:00
Abdelrazak Younes
76bf4f5a79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14720 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:43:48 +00:00
Abdelrazak Younes
05c1fd0832 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14718 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:46 +00:00
Abdelrazak Younes
b1bb25dbb3 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14717 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:26 +00:00
Abdelrazak Younes
82a90fceb7 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14716 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:36:59 +00:00
Georg Baum
9e87592940 autotools support for including moc files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14715 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 23:10:31 +00:00
Bo Peng
0ba726bb7a Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually.
* src/frontends/qt3/[all mocable files].C: add #include _moc.cpp at the end.
	* development/scons/SConstruct: do not compile _moc files individually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14714 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 22:10:20 +00:00
Jean-Marc Lasgouttes
f8a5da9048 * configure.ac: add LYX_DATE variable for release date.
* config/lyxinclude.m4: reset release date for development versions.

	* src/version.C.in: make lyx_release_date a placeholder.

	* src/lyx_main.C (parse_version): 
	* src/frontends/controllers/ControlAboutlyx.C (getVersion): change a 
	bit the display of LyX release date.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14712 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:54:55 +00:00
Jean-Marc Lasgouttes
a772437054 Fix bug 2068 and do some cleanup
* src/CutAndPaste.C (setSelectionRange, replaceWord): remove.
	(replaceSelectionWithString): select the new string after
	replacement; add a bool parameter indicating in which sense the
	selection is made.

	* src/lyxfind.C (replace): adapt to above changes.
	(find): comment out debug message.

	* src/frontends/controllers/ControlSpellchecker.C (isLetter):
	rename parameter.
	(nextWord): take a LCursor as parameter; set the selection over
	the word that has been found.
	(check): adapt to changes above (the length of the word is not
	necessarily the length of the selection -- fixes bug 2068).
	(replace): use cap::replaceSelectionWithString




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14708 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:12:20 +00:00
Abdelrazak Younes
dd429b7f26 This commit should hopefully fix all scrolling issues. As an added bonus, mouse scrolling should be faster due to a deleted call to BufferView::update() that was not usefull (the important call to updateMetrics() is done in WorkArea()).
Log:
* BufferView/pimpl:
  - scrollDocView(): call to BufferView::update() deleted.
  - scrollDocView(): second part is now in setCursorFromScrollbar()
  - setCursorFromScrollbar(): new method.

* WorkArea:
  - setBufferView(): show the cursor immediately
  - redraw(): call to updateScrollbar()
  - updateScrollbar(): new method
  - scrollBufferView(): fix it and show the cursor immediately.

* qt4/GuiWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.
  - paintEvent(): scrollbar related code deleted

* qt3/QWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.

* qt3/QContentPane
  - paintEvent(): scrollbar related code deleted




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14704 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 15:24:38 +00:00
Edwin Leuven
c98992f774 rework mathdelimiter dialog and add size combo...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14703 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 14:22:47 +00:00
Abdelrazak Younes
1004ba79f1 Port of Martin Vermeer's QNote work: fix of framed and shaded note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14696 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 08:57:00 +00:00
Abdelrazak Younes
f475b7bde6 This commit transfers most of the LyXView use from BufferView to WorkArea, most notably:
LyXView::updateLayoutChoice();
LyXView::updateToolbars();
LyXView::getLyXFunc().processKeySym(key, state);
LyXView::dispatch(cmd);

* BufferView
  - workAreaKeyPress(): deleted

* BufferView::pimpl
  - gui(): deleted
  - workAreaKeyPress(): deleted
  - workAreaDispatch(): special FuncRequest transfered to WorkArea::dispatch()

* WorkArea
  - WorkArea(): now needs a LyXView
  - lyx_view: new member
  - scrollBufferView(): new method

* qt4/GuiWorkArea: adapted to above changes
* qt4/GuiImplementation: ditto
* qt3/GuiWorkArea: ditto
* qt3/QContentPane: ditto
* gtk/GuiWorkArea: ditto
* gtk/GWorkArea: ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14695 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 21:57:23 +00:00
Edwin Leuven
e305fdea55 replace depreciated bitBlt() with calls to qpainter's drawPixmap()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14691 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 14:55:34 +00:00
Edwin Leuven
5d28253e20 * furter simplifications:
- simplify setting/unsetting of item
  - consolidate 2 methods that set bulletSelected
  - store character (int) instead of pointer to item

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:07:13 +00:00
Lars Gullik Bjønnes
c46b7d8955 Merge the unicode branch into trunk.
- src/support/unicode.[Ch]: new files with functions for converting
  to and fro ucs4, ucs2 and utf8.
- src/support/docstring.h: specialization of basic_string that
  holds a uint32_t internally.
- Several functions changed to use char_type instead of char or unsigned char.
- Qt3 and Qt4 sends ucs2 on to core
- Gtk sends ucs4 on to core
- Read and write utf-8 .lyx files.
- font_metrics and painter updated to handle ucs4 chars as input.
- Quite a bit of ugly compability code, conversion string->docstring, etc.
- Have fun...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 22:54:59 +00:00
Abdelrazak Younes
c5a4f61f33 This commit creates a error_lists map member inside the Buffer class.
I had no choice but to use string for the map key. This is
because the only information that could be passed to the controller is a
string.

With this new architecture, persistent error lists are now possible.

* Buffer
  - errorList_, addError(),  : deleted
  - std::map<std::string, ErrorList> errorLists_ : new member
  - errorList(std::string const & type): associated accessors

* buffer_funcs.C
  - bufferErrors(Buffer const & buf, TeXErrors const & terr): now needs a third errorList argument
  - bufferErrors(Buffer const & buf, ErrorList const & el): deleted.

* Converter
  - convert(): now needs an ErrorList argument instead of filling the Buffer errorList member directly.
  - runLaTeX(): ditto
  - scanLog(): ditto

* CutAndPaste.C
  - pasteParagraphList(): ditto
  - pasteSelection(): ditto

* lyxtext.h/text.C
  - readParagraph(): ditto
  - LyXText::read(): ditto

* importer:
  - Importer::Import(): ditto

* BufferView_pimpl.C
  - loadLyXFile(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly.

* exporter.C
  - Export(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly in lyxfunc.C

* ControlErrorList.C
  - initialiseParams(): translation operation transfered here from LyXView::showErrorList().

* LyXView.C
  - LoadLyXFile(): add a showErrorList("Parse") call.
  - showErrorList(): simplified due to code transferred to the ControlErrorList.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14652 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:16:43 +00:00
Peter Kümmel
f01c7f5983 GuiWorkArea: #undef QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14649 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:55:03 +00:00
Edwin Leuven
1a08a29b0f make bullet configuration functional in the document settings dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14647 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:44:05 +00:00
Abdelrazak Younes
58d136aa60 * GuiView:
- mainWidget(): deleted

* GuiImplementation.C: adapted to above change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14624 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 16:25:51 +00:00
Edwin Leuven
e9df3c9a5e remove accelerator keys (Alt+) from designer files...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14608 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-10 14:16:30 +00:00
Bo Peng
3002118616 Add more controls to the view-source dialog.
* src/buffer.[nC]: can write full source, separaet/rename makeXXXFile.
	* src/graphics/PreviewLoader.C: rename maleLaTeXFile to writeLaTeXSource
	* src/frontends/qt3/QViewSourceDialog.h, ui/QViewSourceDialogBase.ui,
		QViewSource.[hC], QViewSourceDialog.[hC]: qt3 frontend
	* src/frontends/qt4/QViewSource.[hC], ui/QViewSourceUi.ui,
		QViewSourceDialog.[hC]: qt4 frontend
	* src/frontends/controllers/ControlViewSource.[hC]: controller


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14539 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-04 13:59:12 +00:00
Bo Peng
7119a923d8 Add rc.geometry_height, geometry_width, geometry_xysaved to the preference dialogs (qt3/qt4).
* src/frontends/qt3/QPrefs.C, QPrefsDialog.C, ui/QPrefUIModule.ui
	* src/frontends/qt4/QPrefsDialog.C, ui/QPrefUi.ui


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14518 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-30 15:52:43 +00:00
Georg Baum
e6e554d68c Fix redraw problems in qt3 and gtk
* src/frontends/gtk/GWorkArea.C
	(GWorkArea::onScroll): redraw the workarea
	(GWorkArea::onButtonPress): Call WorkArea::dispatch instead of
	BufferView::workAreaDispatch in order to redraw the workarea
	(GWorkArea::onButtonRelease): ditto
	(GWorkArea::onMotionNotify): ditto

	* src/frontends/WorkArea.h
	(dispatch): make public

	* src/frontends/qt3/QContentPane.C
	(QContentPane::scrollBarChanged): redraw the workarea
	(QContentPane::generateSyntheticMous): Call WorkArea::dispatch instead
	of BufferView::workAreaDispatch in order to redraw the workarea
	(QContentPane::mousePressEvent): ditto
	(QContentPane::mouseReleaseEvent): ditto
	(QContentPane::mouseMoveEvent): ditto
	(QContentPane::doubleClickTimeout): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14517 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-30 14:57:01 +00:00
Bo Peng
c8e5ee867f load files from lyx_main.C instead of lyx_gui.C, do not add session-restored files to lastfile list.
* src/frontends/lyx_gui.h: add prototype for create_view
	* src/frontends/(gtk,qt3,qt4)/lyx_gui.C: separate start()
	* src/lyx_main.C: call create_view, load file, and call start


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14500 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-27 14:13:45 +00:00
Georg Baum
af5a867982 Give feedback if TeXFiles.py fails
* src/frontends/controllers/tex_helpers.h: doxyfy comment

	* src/frontends/controllers/tex_helpers.C
	(rescanTexStyles): Pop up a message box when TeXFiles.py fails


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14488 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-19 16:25:54 +00:00
Georg Baum
766709e999 fix bug 2687
* src/lyxfunc.C
	(quoteArg): new, quotes arguments for the "log" dialog
	(LyXFunc::dispatch): quote log filename

	* src/frontends/controllers/ControlLog.C
	(ControlLog::initialiseParams): parse \" as " and \\ as \ in filename


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14481 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-17 20:06:58 +00:00
Georg Baum
025a200c03 Fix bug 2524
* src/support/tests/test_convert: Change shell from bash to sh
	* src/support/tests/test_filetools: ditto
	* src/support/tests/test_lstrings: ditto
	* src/frontends/controllers/tests/test_biblio: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14468 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-16 10:04:26 +00:00
Abdelrazak Younes
00c37e4781 This commit transfer the ErrorList handling from LyXView to Buffer. It also removes the need for the error signal and simplify the kerbel <-> frontend communication. I think it should speed-up _significantly_ the latex compilation for example in case of problematic files.
TODO 1: All occurrences of "LyXView::showErrorList()" in the "kernel" should be replaced by a boost signal emission (Buffer::errors()). This signal is already connected to this showErrorList() slot.

TODO 2: The ErrorList mechanism is used wrongly in a number of place, most notably in "Converter.C". Instead of replacing the ErrorList in the "Buffer" class, the "Converter" class should maintain its own list instead and connect directly to the LyXView::showErrorList() slot.

Buffer:
* errorList_: new private member and associated access methods.
* setErrorList(): new accessor method.
* addError(): apend an error to the errorList_.
* error(): deleted.
* errors(): new boost signal, unused for now. Shall be used instead of LyXView::showErrorList().

LyXView:
* getErrorList(), addError(), errorlist_, errorConnection_: deleted.
* errorsConnection_: new boost connection for the Buffer::errors() signal.

lyx_main.C:
* LyX::exec2(): manually print all errors.

BufferView.h: remove unneeded ErrorList forward declaration.

BufferView::pimpl::menuInsertLyXFile(): delete Buffer::error() connection and add a FIXME comment

text.C: Use Buffer::addError() instead of Buffer::error() signal emission.

ControlErrorList.C: get the ErrorList from the Buffer instead of LyXView


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14467 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-15 22:43:37 +00:00