* LFUN_SPLIT_VIEW: add support for vertical split view.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23089 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-21 12:48:05 +00:00
parent f9744033b3
commit 9ae75dddf6

View File

@ -1813,6 +1813,9 @@ bool GuiView::dispatch(FuncRequest const & cmd)
case LFUN_SPLIT_VIEW:
if (Buffer * buf = buffer()) {
string const orientation = cmd.getArg(0);
d.splitter_->setOrientation(orientation == "vertical"
? Qt::Vertical : Qt::Horizontal);
TabWorkArea * twa = addTabWorkArea();
GuiWorkArea * wa = twa->addWorkArea(*buf, *this);
setCurrentWorkArea(wa);