mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
remove the lyx_focus and work_area_focus stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@848 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
511519904d
commit
90c533ae7d
@ -1,3 +1,12 @@
|
||||
2000-06-28 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||
|
||||
* src/BufferView_pimpl.h: remove member variables lyx_focus and
|
||||
work_area_focus
|
||||
|
||||
* src/BufferView_pimpl.C (Pimpl): delete init of work_area_focus
|
||||
and lyx_focus
|
||||
(cursorToggle): remove special handling of lyx focus.
|
||||
|
||||
2000-06-28 Juergen Vigna <jug@sad.it>
|
||||
|
||||
* src/text.C (GetVisibleRow): fixed clearing of text if rowHeight >
|
||||
|
@ -83,8 +83,6 @@ BufferView::Pimpl::Pimpl(BufferView * b, LyXView * o,
|
||||
current_scrollbar_value = 0;
|
||||
cursor_timeout.start();
|
||||
workarea_->setFocus();
|
||||
work_area_focus = true;
|
||||
lyx_focus = false;
|
||||
using_xterm_cursor = false;
|
||||
}
|
||||
|
||||
@ -1061,7 +1059,6 @@ void BufferView::Pimpl::update()
|
||||
// update(1) -> update(1 + 2 + 4) -> update(7) -> update(SELECT|FITCUR|CHANGE)
|
||||
// update(3) -> update(1) -> update(1) -> update(SELECT)
|
||||
|
||||
//void BufferView::Pimpl::update(signed char f)
|
||||
void BufferView::Pimpl::update(BufferView::UpdateCodes f)
|
||||
{
|
||||
owner_->updateLayoutChoice();
|
||||
@ -1141,53 +1138,15 @@ void BufferView::Pimpl::cursorToggle()
|
||||
goto set_timer_and_return;
|
||||
}
|
||||
|
||||
if (lyx_focus && work_area_focus) {
|
||||
if (!bv_->the_locking_inset) {
|
||||
screen_->CursorToggle(bv_->text);
|
||||
} else {
|
||||
bv_->the_locking_inset->
|
||||
ToggleInsetCursor(bv_);
|
||||
}
|
||||
goto set_timer_and_return;
|
||||
if (!bv_->the_locking_inset) {
|
||||
screen_->CursorToggle(bv_->text);
|
||||
} else {
|
||||
// Make sure that the cursor is visible.
|
||||
if (!bv_->the_locking_inset) {
|
||||
screen_->ShowCursor(bv_->text);
|
||||
} else {
|
||||
if (!bv_->the_locking_inset->isCursorVisible())
|
||||
bv_->the_locking_inset->
|
||||
ToggleInsetCursor(bv_);
|
||||
}
|
||||
// This is only run when work_area_focus or lyx_focus is false.
|
||||
Window tmpwin;
|
||||
int tmp;
|
||||
XGetInputFocus(fl_display, &tmpwin, &tmp);
|
||||
// Commenting this out, we have not had problems with this
|
||||
// for a long time. We will probably work on this code later
|
||||
// and we can reenable this debug code then. Now it only
|
||||
// anoying when debugging. (Lgb)
|
||||
//if (lyxerr.debugging(Debug::INFO)) {
|
||||
// lyxerr << "tmpwin: " << tmpwin
|
||||
// << "\nwindow: " << view->owner_->getForm()->window
|
||||
// << "\nwork_area_focus: " << view->work_area_focus
|
||||
// << "\nlyx_focus : " << view->lyx_focus
|
||||
// << endl;
|
||||
//}
|
||||
if (tmpwin != owner_->getForm()->window) {
|
||||
lyx_focus = false;
|
||||
goto skip_timer;
|
||||
} else {
|
||||
lyx_focus = true;
|
||||
if (!work_area_focus)
|
||||
goto skip_timer;
|
||||
else
|
||||
goto set_timer_and_return;
|
||||
}
|
||||
bv_->the_locking_inset->
|
||||
ToggleInsetCursor(bv_);
|
||||
}
|
||||
|
||||
|
||||
set_timer_and_return:
|
||||
cursor_timeout.restart();
|
||||
skip_timer:
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -122,10 +122,6 @@ struct BufferView::Pimpl : public SigC::Object {
|
||||
///
|
||||
long current_scrollbar_value;
|
||||
///
|
||||
bool lyx_focus;
|
||||
///
|
||||
bool work_area_focus;
|
||||
///
|
||||
FL_OBJECT * figinset_canvas;
|
||||
///
|
||||
Timeout cursor_timeout;
|
||||
|
@ -5,7 +5,8 @@
|
||||
*
|
||||
* Copyright (C) 1998 The LyX Team.
|
||||
*
|
||||
*======================================================*/
|
||||
* ======================================================
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -23,7 +24,8 @@
|
||||
|
||||
using std::ostream;
|
||||
|
||||
InsetCollapsable::InsetCollapsable() : InsetText()
|
||||
InsetCollapsable::InsetCollapsable()
|
||||
: InsetText()
|
||||
{
|
||||
collapsed = true;
|
||||
label = "Label";
|
||||
|
@ -5,7 +5,8 @@
|
||||
*
|
||||
* Copyright 1998 The LyX Team.
|
||||
*
|
||||
*======================================================*/
|
||||
* ======================================================
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -60,7 +61,8 @@ char const * InsetFoot::EditMessage() const
|
||||
}
|
||||
|
||||
|
||||
int InsetFoot::Latex(Buffer const * buf, ostream & os, bool fragile, bool fp) const
|
||||
int InsetFoot::Latex(Buffer const * buf,
|
||||
ostream & os, bool fragile, bool fp) const
|
||||
{
|
||||
os << "\\footnote{%\n";
|
||||
|
||||
@ -90,7 +92,8 @@ bool InsetFoot::InsertInsetAllowed(Inset * inset) const
|
||||
}
|
||||
|
||||
|
||||
LyXFont InsetFoot::GetDrawFont(BufferView * bv,LyXParagraph * p, int pos) const
|
||||
LyXFont InsetFoot::GetDrawFont(BufferView * bv,
|
||||
LyXParagraph * p, int pos) const
|
||||
{
|
||||
LyXFont fn = getLyXText(bv)->GetFont(bv->buffer(), p, pos);
|
||||
fn.decSize().decSize();
|
||||
|
@ -5,7 +5,8 @@
|
||||
*
|
||||
* Copyright 1998 The LyX Team.
|
||||
*
|
||||
*======================================================*/
|
||||
* ======================================================
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -24,7 +25,8 @@
|
||||
using std::ostream;
|
||||
using std::endl;
|
||||
|
||||
InsetMarginal::InsetMarginal() : InsetCollapsable()
|
||||
InsetMarginal::InsetMarginal()
|
||||
: InsetCollapsable()
|
||||
{
|
||||
setLabel(_("margin"));
|
||||
LyXFont font(LyXFont::ALL_SANE);
|
||||
|
Loading…
Reference in New Issue
Block a user