Commit Graph

10354 Commits

Author SHA1 Message Date
Georg Baum
e9f25b4861 Make it compile again: Add some includes to fix signals name clash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15187 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-30 08:58:17 +00:00
Abdelrazak Younes
9a2427e0b8 remove a FIXME, sorry for the multiple commits...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15186 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 23:22:53 +00:00
Abdelrazak Younes
315d394338 Some cleanup
* Application.h: pimpl_ is now private

* GuiApplication.C: headers cleanup.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15185 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 23:21:03 +00:00
Abdelrazak Younes
0548914973 some qt3 and gtk compilation fixes (hopefully)...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15184 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 23:15:36 +00:00
Abdelrazak Younes
3a1f656e4e * Application: new createView() method
* gtk/qt3/qt4/GuiApplication: createView() method deleted

* LyXView:
 - init(): is now a pure virtual method. autoSave code transferred to constructor and updates to the frontends.
 - setGeometry(): new pure virtual method

* gtk/GView, qt3/QtView, qt4/GuiView: adapted to above change
 - setGeometry(): code transfered from GuiApplication

* lyx_main.C: call LyX::ref().addLyXView() in there instead of in Application::createView()


* 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15183 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 23:10:17 +00:00
Abdelrazak Younes
ca5411f913 This commit introduces Application_pimpl and cleanup the header includes of the affected .C files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15182 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 22:06:28 +00:00
Abdelrazak Younes
34694773c6 This commit splits the add() method in two methods add() and
addWithStatus(). It also replaces LyXView uses with BufferView as none of the LyXView feature were used.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15181 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-29 21:40:56 +00:00
Bo Peng
255345d4c6 Scons: cygwin packaging fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15178 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-28 04:45:21 +00:00
Enrico Forestieri
12a6d46370 Small fixes for STLPort compliance
* src/cursor.C: add using std::for_each;

	* src/graphics/GraphicsTypes.h: add #include <string>

	* src/graph.C: add using std::fill;

	* src/frontends/controllers/helper_funcs.h: add #include <algorithm>

	* src/bufferview_funcs.C: add using std::find;

	* src/lyx_main.C: add using std::for_each;

	* configure.ac: don't use boost format on cygwin


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15176 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-28 00:42:47 +00:00
Bo Peng
6f29180afc Scons: correct installation of cygwin fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15175 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 19:30:08 +00:00
Georg Baum
70d57a2300 Implement copying of rows and columns in tables
* src/insets/insettabular.C
	(InsetTabular::getStatus): enable COPY_ROW and COPY_COLUMN features
	(InsetTabular::tabularFeatures): handle COPY_ROW and COPY_COLUMN

	* src/tabular.h
	(TabularFeature): add COPY_ROW and COPY_COLUMN

	* src/tabular.[Ch]
	(LyXTabular::copyRow): new method, copy a row
	(LyXTabular::copyColumn): new method, copy a column


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15173 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 16:28:09 +00:00
Georg Baum
864515f3a3 avoid comparing the addresses of dereferenced 0 pointers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15172 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 16:10:47 +00:00
Jean-Marc Lasgouttes
2e9ab2c009 add Marius Ionescu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15167 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:54:43 +00:00
Georg Baum
b098503faf Add latex2rtf converter
* lib/configure.py
	(checkFormatEntries): Add rtf format
	(checkConverterEntries): Add latex2rtf converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15165 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:50:20 +00:00
Jean-Marc Lasgouttes
3bbc232e67 compilation fix: do not forget lyx_gui.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15164 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 13:37:50 +00:00
Abdelrazak Younes
1396c73262 replace global variable bufferlist with Application class member access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15161 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 10:24:13 +00:00
Abdelrazak Younes
b3cacd0238 delete unneeded lyx_gui.h declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15160 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-27 08:33:37 +00:00
Abdelrazak Younes
0da12b129a delete unneeded BufferView.h declaration.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15159 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 21:11:22 +00:00
Bo Peng
a8354d3db7 Scons: get version info from configure.ac, add fonts and postinstall script for cygwin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15158 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 19:37:09 +00:00
Abdelrazak Younes
a9ddcfc77c 2 style and 1 compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15156 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 12:46:27 +00:00
Abdelrazak Younes
c2cc205852 qt3 and gtk support for revision: 15153
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15155 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 11:55:46 +00:00
Abdelrazak Younes
b171e5f150 Free BufferView from LyXView!
* BufferView
  - layoutChanged: new boost signal.
  - LyXView owner(), owner_: deleted

* text3.C
  - emit BufferView::layoutChanged instead of calling LyXView::setLayout directly
  - LFUN_MOUSE_RELEASE: delete LyXView updateMenubar() and updateToolbars() direct calls.
    The update is of both bars is done in WorkArea::dispatch().

* WorkArea.C
  - dispatch(): add LyXView updateMenubar() call.

* LyXView
  - connects to BufferView::layoutChanged directly to Toolbars::setLayout()
  - setLayout(): deleted.

* qt4/GuiImplementation: modify BufferView construction (without LyXView).

All other files: cleanup header declaration of LyXView.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15153 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 10:06:46 +00:00
Abdelrazak Younes
1ead706c96 * emit buffer::resetAutosaveTimers instead of calling LyXView::resetAutosaveTimer() directly
* replace bv->owner()->buffer() with bv->buffer()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15152 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 09:59:03 +00:00
Abdelrazak Younes
10d5ea0d8a replace colorcache global variable with GuiApplication::colorCache().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15151 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-26 09:57:47 +00:00
Georg Baum
e1acd31e28 Disable concept checks in the same way as in other gtk files since they
don't work with libsigc++ 2.0.6.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15146 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 16:58:40 +00:00
Peter Kümmel
19739b63aa add instruction to change search path for gnuwin32 + small corrections
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15144 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 15:34:04 +00:00
Georg Baum
5e5f96fb72 Document inset-dissolve without format change (taken from 1.4 branch)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15141 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 15:06:04 +00:00
Georg Baum
5e2c1d12ae revert broken changeset 15036
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15140 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-25 14:55:44 +00:00
Georg Baum
063994371e make it compile again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15132 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 21:00:42 +00:00
Georg Baum
ebaaff58fa make it compile again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15131 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 20:48:42 +00:00
Georg Baum
884022b16a remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15130 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 19:17:29 +00:00
Georg Baum
c2ffa71fa7 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15129 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 18:45:22 +00:00
Georg Baum
0b6edc6972 add hu_Tutorial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15128 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 18:34:05 +00:00
Georg Baum
577f9fca6f fix eol-style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15127 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 17:50:33 +00:00
Georg Baum
48bd3057a8 Add virtual destructor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15126 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 17:47:15 +00:00
Abdelrazak Younes
12a82dd4f2 This commit replaces BufferView->LyXView->Gui->[selection,clipboard] with theApp->[selection,clipboard]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15125 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 15:02:41 +00:00
Bo Peng
4fcccf0672 Distribute README.Cygwin and some source files of boost/regex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15124 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 14:35:24 +00:00
Abdelrazak Younes
480b4f4fdc This commit replaces BufferView->LyXView->getLyXFunc() with theApp->lyxFunc() and BufferView->LyXView->dispatch() with theApp->lyxFunc().dispatch().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15121 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 14:26:06 +00:00
Abdelrazak Younes
6104eebe0d replace lyxserver and lyxsocket with theApp->server() and theApp->socket() equivalent methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15119 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 12:34:13 +00:00
Georg Baum
83b18f414e Fix bug 2845
* lib/configure.py
	(checkFormatEntries): Add wmf format
	(checkConverterEntries): Add wmf -> eps converter


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15118 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 11:37:22 +00:00
Georg Baum
112f533459 Fix a crash that occured on exit if the clipboard was not empty
(only on windows).
	* src/frontends/Dialogs.C
	(Dialogs::hide): Don't send the signal if we are quitting


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15116 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 10:03:00 +00:00
Abdelrazak Younes
3f0fadc48a This commit introduces frontends/Application.[Ch] and makes qt4/GuiApplication (renamed from qt4/Application) derive from it. Most of the code in qt4/lyx_gui.C has been transferred either to Application or to qt4/GuiApplication. Application handles unique instances of LyXFunc, LyXServer and LyXServerSocket.
Most of qt3 and gtk should stay compilable except for LyXView.h because the LyXFunc instance has been transferred to Application.

* frontends/Application: new class aimed to be the one unique interface between the frontend and the kernel. Contains one global pointer to the unique instanciation theApp.

* frontends/qt4/GuiApplication: renamed from qt4/Application, the qt4 specialisation of the Application class.  Contains one global pointer to the unique instanciation guiApp (equal to theApp but pointing to a GuiApplication instead).

* frontends/qt4/lyx_gui.C: most of the code has been moved to Application and GuiApplication

All other file: adapted to new API.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15114 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-22 09:47:39 +00:00
Peter Kümmel
de161c40b1 move definition of variables to the main cmake file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15104 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 10:51:50 +00:00
Peter Kümmel
4e4ee8433a create binary in <build_dir>/bin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15103 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 10:50:27 +00:00
Jean-Marc Lasgouttes
2e1ba6d837 * lyxfunc.C (getStatus): fix handling of LFUN_RUNCHKTEX (bug 2831)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15101 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 10:43:49 +00:00
Jean-Marc Lasgouttes
f2dcbec8cb * lyxfunc.C (getStatus): fix handling of LFUN_RUNCHKTEX (bug 2831)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15096 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 09:46:52 +00:00
Jean-Marc Lasgouttes
9917aca0b7 * insettabular.C (cutSelection): reset cursor when it is invalid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15088 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-20 12:16:26 +00:00
Jürgen Spitzmüller
e81cc81232 * src/CutAndPaste.C (pasteSelectionHelper):
remove accidentally committed, obsolete FIXME comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15085 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-20 06:55:07 +00:00
Georg Baum
e06cb910aa remove unused function _(docstring const &)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15069 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 16:41:18 +00:00
Abdelrazak Younes
311ac9b192 This is the continuation of my BufferView/LyXView cleanup. This commit replaces BufferView->LyXView->getDialogs().[show(), update()] with BufferView signal emissions.
The associated WorkArea is then responsible to connect these signals to its LyXView parent.

* BufferView:
  - showDialog, showDialogWithData, showInsetDialog: new boost signals

* LyXView:
  - connectBufferView(), disconnectBufferView(): new method in charge of the connection/disconnection of the above signal to associate private methods (showDialog(), etc).

* WorkArea
  - setBufferView(): will connect/disconnect the BufferView to its LyXView parent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15068 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 13:36:20 +00:00