mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
preliminar support for multiple LyXView.
* LyXFunc: new setLyXView() method * LyXView::dispatch(): call LyXFunc::setLyXView() before lyx::dispatch() What remains to be done is to ensure that every call to lyx::dispatch that is LyXView dependant is replaced with LyXView::dispatch(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15308 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7f93cfe8e9
commit
6b256d52c4
@ -367,6 +367,7 @@ void LyXView::updateWindowTitle()
|
||||
|
||||
void LyXView::dispatch(FuncRequest const & cmd)
|
||||
{
|
||||
theLyXFunc().setLyXView(this);
|
||||
lyx::dispatch(cmd);
|
||||
}
|
||||
|
||||
|
@ -215,6 +215,11 @@ LyXFunc::LyXFunc(LyXView * lv)
|
||||
}
|
||||
|
||||
|
||||
void LyXFunc::setLyXView(LyXView * lv)
|
||||
{
|
||||
owner = lv;
|
||||
}
|
||||
|
||||
void LyXFunc::handleKeyFunc(kb_action action)
|
||||
{
|
||||
char c = encoded_last_key;
|
||||
|
@ -46,6 +46,9 @@ public:
|
||||
/// LyX dispatcher, executes lyx actions.
|
||||
void dispatch(FuncRequest const &);
|
||||
|
||||
///
|
||||
void setLyXView(LyXView * lv);
|
||||
|
||||
/// return the status bar state string
|
||||
std::string const viewStatusMessage();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user