]> git.lyx.org Git - features.git/commit
The BufferView/WorkArea/LyXView reorg a.k.a Multiple WorkAreas:
authorAbdelrazak Younes <younes@lyx.org>
Tue, 21 Aug 2007 07:33:46 +0000 (07:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 21 Aug 2007 07:33:46 +0000 (07:33 +0000)
commit1356543c457436fc8130b9c147bd403b7a82c7e9
treeeb23914f8be1c225035d098ac86cee418db39bd3
parent7206f238726503c076cb0a8cb9e8620820388d1c
The BufferView/WorkArea/LyXView reorg a.k.a Multiple WorkAreas:

* Buffer:
- get rid of cursor_ and anchor_
- ~Buffer(): update the labels of its master buffer before closing
- closing(): pass the Buffer address.

* BufferView():
- BufferView(): needs a valid Buffer (should be const in the future.
- most of the change is about removing all test of buffer_ nullity.
- resize(): deleted.
- setBuffer(): deleted.

* Application:
- newLyXView(): simplification
- updated design description in Application.h

* Gui/GuiImplementation: remove all WorkAreas and BufferView creation/Deletion. Workareas are directly handled by  LyXView/GuiView and BufferView is created/delete by WorkArea.

* LyXView/GuiView: implement the new design

What is not working yet:
- the close tab button: it is implemented but does not show up.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19686 a592a061-630c-0410-9148-cb99ea01b6c8
23 files changed:
src/Buffer.cpp
src/Buffer.h
src/BufferView.cpp
src/BufferView.h
src/Importer.cpp
src/LyX.cpp
src/LyXAction.cpp
src/LyXFunc.cpp
src/frontends/Application.cpp
src/frontends/Application.h
src/frontends/Gui.h
src/frontends/LyXView.cpp
src/frontends/LyXView.h
src/frontends/WorkArea.cpp
src/frontends/WorkArea.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiImplementation.cpp
src/frontends/qt4/GuiImplementation.h
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea.h
src/insets/InsetInclude.cpp