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()
37 DListener::~DListener()
42 void DListener::Register()
44 g_MessageTable.m_pfnHookWindow( this );
48 void DListener::UnRegister()
52 g_MessageTable.m_pfnUnHookWindow( this );
57 bool DListener::OnMouseMove(unsigned int nFlags, double x, double y)
59 if(!parent->UpdatePath())
65 bool DListener::OnLButtonDown(unsigned int nFlags, double x, double y)
70 bool DListener::OnLButtonUp(unsigned int nFlags, double x, double y)
75 bool DListener::OnRButtonDown(unsigned int nFlags, double x, double y)
80 bool DListener::OnRButtonUp(unsigned int nFlags, double x, double y)
85 bool DListener::OnMButtonDown(unsigned int nFlags, double x, double y)
90 bool DListener::OnMButtonUp(unsigned int nFlags, double x, double y)