* LyXView.C:

* qt4/GuiWorkArea.h:
	* qt4/GuiWorkArea.C:
	* WorkArea.h: fix typos: "shedule" => "schedule"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16755 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-01-18 21:47:27 +00:00
parent fce2821c44
commit 25079a83c2
4 changed files with 7 additions and 7 deletions

View File

@ -432,7 +432,7 @@ Buffer const * const LyXView::updateInset(InsetBase const * inset) const
Buffer const * buffer_ptr = 0; Buffer const * buffer_ptr = 0;
if (inset) { if (inset) {
BOOST_ASSERT(work_area_); BOOST_ASSERT(work_area_);
work_area_->sheduleRedraw(); work_area_->scheduleRedraw();
buffer_ptr = work_area_->bufferView().buffer(); buffer_ptr = work_area_->bufferView().buffer();
} }

View File

@ -83,7 +83,7 @@ public:
virtual void setScrollbarParams(int height, int pos, int line_height) = 0; virtual void setScrollbarParams(int height, int pos, int line_height) = 0;
/// ///
virtual void sheduleRedraw() = 0; virtual void scheduleRedraw() = 0;
/// redraw the screen, without using existing pixmap /// redraw the screen, without using existing pixmap
virtual void redraw(); virtual void redraw();

View File

@ -159,7 +159,7 @@ SyntheticMouseEvent::SyntheticMouseEvent()
GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view) GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view)
: WorkArea(id, lyx_view), need_resize_(false), shedule_redraw_(false) : WorkArea(id, lyx_view), need_resize_(false), schedule_redraw_(false)
{ {
cursor_ = new frontend::CursorWidget(); cursor_ = new frontend::CursorWidget();
cursor_->hide(); cursor_->hide();
@ -535,13 +535,13 @@ void GuiWorkArea::updateScreen()
void GuiWorkArea::showCursor(int x, int y, int h, CursorShape shape) void GuiWorkArea::showCursor(int x, int y, int h, CursorShape shape)
{ {
if (shedule_redraw_) { if (schedule_redraw_) {
if (buffer_view_ && buffer_view_->buffer()) { if (buffer_view_ && buffer_view_->buffer()) {
buffer_view_->update(Update::Force); buffer_view_->update(Update::Force);
updateScreen(); updateScreen();
viewport()->update(QRect(0, 0, viewport()->width(), viewport()->height())); viewport()->update(QRect(0, 0, viewport()->width(), viewport()->height()));
} }
shedule_redraw_ = false; schedule_redraw_ = false;
// Show the cursor immediately after the update. // Show the cursor immediately after the update.
hideCursor(); hideCursor();
toggleCursor(); toggleCursor();

View File

@ -104,7 +104,7 @@ public:
/// ///
virtual void setScrollbarParams(int height, int pos, int line_height); virtual void setScrollbarParams(int height, int pos, int line_height);
/// ///
virtual void sheduleRedraw() { shedule_redraw_ = true; } virtual void scheduleRedraw() { schedule_redraw_ = true; }
/// update the passed area. /// update the passed area.
void update(int x, int y, int w, int h); void update(int x, int y, int w, int h);
@ -174,7 +174,7 @@ private:
/// ///
bool need_resize_; bool need_resize_;
/// ///
bool shedule_redraw_; bool schedule_redraw_;
}; };
} // namespace frontend } // namespace frontend