]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/DListener.cpp
uncrustify! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / bobtoolz / DListener.cpp
1 /*
2    BobToolz plugin for GtkRadiant
3    Copyright (C) 2001 Gordon Biggans
4
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.
9
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.
14
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
18  */
19
20 // DListener.cpp: implementation of the DListener class.
21 //
22 //////////////////////////////////////////////////////////////////////
23
24 #include "StdAfx.h"
25 #include "DListener.h"
26
27 //////////////////////////////////////////////////////////////////////
28 // Construction/Destruction
29 //////////////////////////////////////////////////////////////////////
30
31 DListener::DListener(){
32         refCount = 1;
33         m_bHooked = FALSE;
34 }
35
36 DListener::~DListener(){
37         UnRegister();
38 }
39
40 void DListener::Register(){
41         g_MessageTable.m_pfnHookWindow( this );
42         m_bHooked = TRUE;
43 }
44
45 void DListener::UnRegister(){
46         if ( m_bHooked ) {
47                 g_MessageTable.m_pfnUnHookWindow( this );
48                 m_bHooked = FALSE;
49         }
50 }
51
52 bool DListener::OnMouseMove( guint32 nFlags, gdouble x, gdouble y ){
53         if ( !parent->UpdatePath() ) {
54                 delete parent;
55         }
56
57         return FALSE;
58 }
59
60 bool DListener::OnLButtonDown( guint32 nFlags, gdouble x, gdouble y ){
61         return FALSE;
62 }
63
64 bool DListener::OnLButtonUp( guint32 nFlags, gdouble x, gdouble y ){
65         return FALSE;
66 }
67
68 bool DListener::OnRButtonDown( guint32 nFlags, gdouble x, gdouble y ){
69         return FALSE;
70 }
71
72 bool DListener::OnRButtonUp( guint32 nFlags, gdouble x, gdouble y ){
73         return FALSE;
74 }
75
76 bool DListener::OnMButtonDown( guint32 nFlags, gdouble x, gdouble y ){
77         return FALSE;
78 }
79
80 bool DListener::OnMButtonUp( guint32 nFlags, gdouble x, gdouble y ){
81         return FALSE;
82 }