double val = vscrollbar_.get_adjustment()->get_value();
view_.view()->scrollDocView(static_cast<int>(val));
+ view_.workArea()->redraw();
adjusting_ = false;
}
default:
break;
}
- view_.view()->workAreaDispatch(FuncRequest(ka,
+ view_.workArea()->dispatch(FuncRequest(ka,
static_cast<int>(event->x),
static_cast<int>(event->y),
gButtonToLyx(event->button)));
bool GWorkArea::onButtonRelease(GdkEventButton * event)
{
- view_.view()->workAreaDispatch(FuncRequest(LFUN_MOUSE_RELEASE,
+ view_.workArea()->dispatch(FuncRequest(LFUN_MOUSE_RELEASE,
static_cast<int>(event->x),
static_cast<int>(event->y),
gButtonToLyx(event->button)));
}
timeBefore = event->time;
}
- view_.view()->workAreaDispatch(FuncRequest(LFUN_MOUSE_MOTION,
+ view_.workArea()->dispatch(FuncRequest(LFUN_MOUSE_MOTION,
static_cast<int>(event->x),
static_cast<int>(event->y),
gtkButtonState(event->state)));
synthetic_mouse_event_.scrollbar_value_old = scrollbar_value;
// ... and dispatch the event to the LyX core.
- wa_->view().view()->workAreaDispatch(synthetic_mouse_event_.cmd);
+ wa_->view().workArea()->dispatch(synthetic_mouse_event_.cmd);
}
}
void QContentPane::scrollBarChanged(int val)
{
- if (track_scrollbar_)
+ if (track_scrollbar_) {
wa_->view().view()->scrollDocView(val);
+ wa_->view().workArea()->redraw();
+ }
}
FuncRequest cmd(LFUN_MOUSE_TRIPLE,
dc_event_.x, dc_event_.y,
q_button_state(dc_event_.state));
- wa_->view().view()->workAreaDispatch(cmd);
+ wa_->view().workArea()->dispatch(cmd);
return;
}
FuncRequest const cmd(LFUN_MOUSE_PRESS, e->x(), e->y(),
q_button_state(e->button()));
- wa_->view().view()->workAreaDispatch(cmd);
+ wa_->view().workArea()->dispatch(cmd);
}
FuncRequest const cmd(LFUN_MOUSE_RELEASE, e->x(), e->y(),
q_button_state(e->button()));
- wa_->view().view()->workAreaDispatch(cmd);
+ wa_->view().workArea()->dispatch(cmd);
}
synthetic_mouse_event_.scrollbar_value_old = scrollbar_value;
// ... and dispatch the event to the LyX core.
- wa_->view().view()->workAreaDispatch(cmd);
+ wa_->view().workArea()->dispatch(cmd);
}
}
FuncRequest cmd(LFUN_MOUSE_DOUBLE,
dc_event_.x, dc_event_.y,
q_button_state(dc_event_.state));
- wa_->view().view()->workAreaDispatch(cmd);
+ wa_->view().workArea()->dispatch(cmd);
}