]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/DListener.cpp
more eol-style
[xonotic/netradiant.git] / contrib / bobtoolz / DListener.cpp
index 4927fe6e2807277fea763734367eaf4dfcf1f60c..cb7b928a09133f4259bd70b568497afce502e508 100644 (file)
@@ -1,93 +1,93 @@
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
-*/\r
-\r
-// DListener.cpp: implementation of the DListener class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#include "StdAfx.h"\r
-#include "DListener.h"\r
-\r
-//////////////////////////////////////////////////////////////////////\r
-// Construction/Destruction\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-DListener::DListener()\r
-{\r
-       refCount = 1;\r
-       m_bHooked = FALSE;\r
-}\r
-\r
-DListener::~DListener()\r
-{\r
-       UnRegister();\r
-}\r
-\r
-void DListener::Register()\r
-{\r
-       g_MessageTable.m_pfnHookWindow( this );\r
-       m_bHooked = TRUE;\r
-}\r
-\r
-void DListener::UnRegister()\r
-{\r
-       if(m_bHooked)\r
-       {\r
-               g_MessageTable.m_pfnUnHookWindow( this );\r
-               m_bHooked = FALSE;\r
-       }\r
-}\r
-\r
-bool DListener::OnMouseMove(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       if(!parent->UpdatePath())\r
-               delete parent;\r
-\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnLButtonDown(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnLButtonUp(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnRButtonDown(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnRButtonUp(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnMButtonDown(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
-\r
-bool DListener::OnMButtonUp(guint32 nFlags, gdouble x, gdouble y)\r
-{\r
-       return FALSE;\r
-}\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+// DListener.cpp: implementation of the DListener class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#include "StdAfx.h"
+#include "DListener.h"
+
+//////////////////////////////////////////////////////////////////////
+// Construction/Destruction
+//////////////////////////////////////////////////////////////////////
+
+DListener::DListener()
+{
+       refCount = 1;
+       m_bHooked = FALSE;
+}
+
+DListener::~DListener()
+{
+       UnRegister();
+}
+
+void DListener::Register()
+{
+       g_MessageTable.m_pfnHookWindow( this );
+       m_bHooked = TRUE;
+}
+
+void DListener::UnRegister()
+{
+       if(m_bHooked)
+       {
+               g_MessageTable.m_pfnUnHookWindow( this );
+               m_bHooked = FALSE;
+       }
+}
+
+bool DListener::OnMouseMove(guint32 nFlags, gdouble x, gdouble y)
+{
+       if(!parent->UpdatePath())
+               delete parent;
+
+       return FALSE;
+}
+
+bool DListener::OnLButtonDown(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}
+
+bool DListener::OnLButtonUp(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}
+
+bool DListener::OnRButtonDown(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}
+
+bool DListener::OnRButtonUp(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}
+
+bool DListener::OnMButtonDown(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}
+
+bool DListener::OnMButtonUp(guint32 nFlags, gdouble x, gdouble y)
+{
+       return FALSE;
+}