From ace550953adea41ba500de04af6cc19444f29570 Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 19 Jun 2002 22:11:20 +0000 Subject: [PATCH] remove focus/unfocus events - unused git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4435 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/ChangeLog | 4 ++++ src/frontends/WorkArea.h | 4 ---- src/frontends/qt2/ChangeLog | 5 +++++ src/frontends/qt2/QContentPane.C | 12 ------------ src/frontends/qt2/QContentPane.h | 4 ---- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/XWorkArea.C | 8 -------- 7 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/frontends/ChangeLog b/src/frontends/ChangeLog index 12820e3a26..18e5c05073 100644 --- a/src/frontends/ChangeLog +++ b/src/frontends/ChangeLog @@ -1,3 +1,7 @@ +2002-06-19 John Levon + + * WorkArea.h: remove focus/unfocus events + 2002-06-19 John Levon * WorkArea.h: remove unused methods diff --git a/src/frontends/WorkArea.h b/src/frontends/WorkArea.h index 56ed3181c0..21b8e84252 100644 --- a/src/frontends/WorkArea.h +++ b/src/frontends/WorkArea.h @@ -74,10 +74,6 @@ public: /// boost::signal3 workAreaMotionNotify; /// - boost::signal0 workAreaFocus; - /// - boost::signal0 workAreaUnfocus; - /// boost::signal3 workAreaDoubleClick; /// boost::signal3 workAreaTripleClick; diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 8a2e771a51..66fcda032f 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2002-06-19 John Levon + + * QContentPane.h: + * QContentPane.C: remove focus/unfocus events + 2002-06-19 John Levon * QWorkArea.h: remove unused methods diff --git a/src/frontends/qt2/QContentPane.C b/src/frontends/qt2/QContentPane.C index b204275dd2..4274b91f8d 100644 --- a/src/frontends/qt2/QContentPane.C +++ b/src/frontends/qt2/QContentPane.C @@ -122,18 +122,6 @@ void QContentPane::keyPressEvent(QKeyEvent * e) } -void QContentPane::focusInEvent(QFocusEvent *) -{ - wa_->workAreaFocus(); -} - - -void QContentPane::focusOutEvent(QFocusEvent *) -{ - wa_->workAreaUnfocus(); -} - - void QContentPane::mouseDoubleClickEvent(QMouseEvent * e) { wa_->workAreaDoubleClick(e->x(), e->y(), q_button_state(e->state())); diff --git a/src/frontends/qt2/QContentPane.h b/src/frontends/qt2/QContentPane.h index b1278cfbe4..a6ebc4f1a8 100644 --- a/src/frontends/qt2/QContentPane.h +++ b/src/frontends/qt2/QContentPane.h @@ -42,10 +42,6 @@ protected: void paintEvent(QPaintEvent * e); /// widget has been resized void resizeEvent(QResizeEvent * e); - /// keyboard focus in this widget - void focusInEvent(QFocusEvent * e); - /// keyboard focus lost - void focusOutEvent(QFocusEvent * e); /// mouse button press void mousePressEvent(QMouseEvent * e); diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 8d35b6209a..763f9cc4d4 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2002-06-19 John Levon + + * XWorkArea.C: remove focus/unfocus events + 2002-06-19 John Levon * XWorkArea.h: remove unused methods diff --git a/src/frontends/xforms/XWorkArea.C b/src/frontends/xforms/XWorkArea.C index 6348e476e1..20aa352afe 100644 --- a/src/frontends/xforms/XWorkArea.C +++ b/src/frontends/xforms/XWorkArea.C @@ -578,14 +578,6 @@ int XWorkArea::work_area_handler(FL_OBJECT * ob, int event, break; #endif - case FL_FOCUS: - lyxerr[Debug::WORKAREA] << "Workarea event: FOCUS" << endl; - area->workAreaFocus(); - break; - case FL_UNFOCUS: - lyxerr[Debug::WORKAREA] << "Workarea event: UNFOCUS" << endl; - area->workAreaUnfocus(); - break; case FL_ENTER: lyxerr[Debug::WORKAREA] << "Workarea event: ENTER" << endl; break;