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 //////////////////////////////////////////////////////////////////////
24 #include "DListener.h"
26 //////////////////////////////////////////////////////////////////////
27 // Construction/Destruction
28 //////////////////////////////////////////////////////////////////////
30 DListener::DListener()
36 DListener::~DListener()
41 void DListener::Register()
43 g_MessageTable.m_pfnHookWindow( this );
47 void DListener::UnRegister()
51 g_MessageTable.m_pfnUnHookWindow( this );
56 bool DListener::OnMouseMove(unsigned int nFlags, double x, double y)
58 if(!parent->UpdatePath())
64 bool DListener::OnLButtonDown(unsigned int nFlags, double x, double y)
69 bool DListener::OnLButtonUp(unsigned int nFlags, double x, double y)
74 bool DListener::OnRButtonDown(unsigned int nFlags, double x, double y)
79 bool DListener::OnRButtonUp(unsigned int nFlags, double x, double y)
84 bool DListener::OnMButtonDown(unsigned int nFlags, double x, double y)
89 bool DListener::OnMButtonUp(unsigned int nFlags, double x, double y)