]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/DListener.cpp
added install.py; updated COMPILING; fixed q3 shader transparency rendering; jedi...
[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 {
33         refCount = 1;
34         m_bHooked = FALSE;
35 }
36
37 DListener::~DListener()
38 {
39         UnRegister();
40 }
41
42 void DListener::Register()
43 {
44         g_MessageTable.m_pfnHookWindow( this );
45         m_bHooked = TRUE;
46 }
47
48 void DListener::UnRegister()
49 {
50         if(m_bHooked)
51         {
52                 g_MessageTable.m_pfnUnHookWindow( this );
53                 m_bHooked = FALSE;
54         }
55 }
56
57 bool DListener::OnMouseMove(unsigned int nFlags, double x, double y)
58 {
59         if(!parent->UpdatePath())
60                 delete parent;
61
62         return FALSE;
63 }
64
65 bool DListener::OnLButtonDown(unsigned int nFlags, double x, double y)
66 {
67         return FALSE;
68 }
69
70 bool DListener::OnLButtonUp(unsigned int nFlags, double x, double y)
71 {
72         return FALSE;
73 }
74
75 bool DListener::OnRButtonDown(unsigned int nFlags, double x, double y)
76 {
77         return FALSE;
78 }
79
80 bool DListener::OnRButtonUp(unsigned int nFlags, double x, double y)
81 {
82         return FALSE;
83 }
84
85 bool DListener::OnMButtonDown(unsigned int nFlags, double x, double y)
86 {
87         return FALSE;
88 }
89
90 bool DListener::OnMButtonUp(unsigned int nFlags, double x, double y)
91 {
92         return FALSE;
93 }