Correct naming for view-split.

This commit is contained in:
Pavel Sanda 2012-09-29 17:33:46 +02:00
parent 4083bcb62b
commit e9a28c8000
10 changed files with 9 additions and 6 deletions

View File

@ -82,6 +82,9 @@ The following LyX functions have been changed:
- LFUN_CLOSE_TAB_GROUP_CLOSE ("close-tab-group") was renamed to
LFUN_TAB_GROUP_CLOSE ("tab-group-close").
- LFUN_SPIT_VIEW ("split-view") was renamed to
LFUN_VIEW_SPLIT ("view-split").
The following LyX key bindings have been changed:
//template, remove this entry later on

View File

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 657 B

View File

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

View File

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 316 B

View File

Before

Width:  |  Height:  |  Size: 296 B

After

Width:  |  Height:  |  Size: 296 B

View File

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 657 B

View File

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

View File

@ -135,7 +135,7 @@ enum FuncCode
LFUN_GETBUFNAME,
LFUN_SERVER_GET_XY,
LFUN_SERVER_SET_XY,
LFUN_SPLIT_VIEW,
LFUN_VIEW_SPLIT,
LFUN_LINEATCURSOR,
// 90
LFUN_SERVER_GET_LAYOUT,

View File

@ -2664,16 +2664,16 @@ void LyXAction::init()
{ LFUN_WINDOW_CLOSE, "window-close", NoBuffer, Buffer },
/*!
* \var lyx::FuncCode lyx::LFUN_SPLIT_VIEW
* \var lyx::FuncCode lyx::LFUN_VIEW_SPLIT
* \li Action: Creates another split view of current buffer.
* \li Notion: All split views act in the same way independently.
* \li Syntax: split-view <vertical|horizontal>
* \li Syntax: view-split <vertical|horizontal>
* \li Params: horizontal : The work areas are laid out side by side.\n
vertical : The work areas laid out vertically.
* \li Origin: Abdel, 20 Feb 2008
* \endvar
*/
{ LFUN_SPLIT_VIEW, "split-view", ReadOnly, Buffer },
{ LFUN_VIEW_SPLIT, "view-split", ReadOnly, Buffer },
/*!
* \var lyx::FuncCode lyx::LFUN_TAB_GROUP_CLOSE

View File

@ -1708,7 +1708,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
enable = theBufferList().last() != theBufferList().first();
break;
case LFUN_SPLIT_VIEW:
case LFUN_VIEW_SPLIT:
if (cmd.getArg(0) == "vertical")
enable = doc_buffer && (d.splitter_->count() == 1 ||
d.splitter_->orientation() == Qt::Vertical);
@ -3593,7 +3593,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
break;
}
case LFUN_SPLIT_VIEW: {
case LFUN_VIEW_SPLIT: {
LASSERT(doc_buffer, break);
string const orientation = cmd.getArg(0);
d.splitter_->setOrientation(orientation == "vertical"