2 BobToolz plugin for GtkRadiant
3 Copyright (C) 2001 Gordon Biggans
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // DListener.cpp: implementation of the DListener class.
22 //////////////////////////////////////////////////////////////////////
25 #include "DListener.h"
27 //////////////////////////////////////////////////////////////////////
28 // Construction/Destruction
29 //////////////////////////////////////////////////////////////////////
31 DListener::DListener(){
36 DListener::~DListener(){
40 void DListener::Register(){
41 g_MessageTable.m_pfnHookWindow( this );
45 void DListener::UnRegister(){
47 g_MessageTable.m_pfnUnHookWindow( this );
52 bool DListener::OnMouseMove( guint32 nFlags, gdouble x, gdouble y ){
53 if ( !parent->UpdatePath() ) {
60 bool DListener::OnLButtonDown( guint32 nFlags, gdouble x, gdouble y ){
64 bool DListener::OnLButtonUp( guint32 nFlags, gdouble x, gdouble y ){
68 bool DListener::OnRButtonDown( guint32 nFlags, gdouble x, gdouble y ){
72 bool DListener::OnRButtonUp( guint32 nFlags, gdouble x, gdouble y ){
76 bool DListener::OnMButtonDown( guint32 nFlags, gdouble x, gdouble y ){
80 bool DListener::OnMButtonUp( guint32 nFlags, gdouble x, gdouble y ){