]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bkgrnd2d/plugin.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / bkgrnd2d / plugin.h
index 30b0ca7d5d2f97a9f279295af61ac534a717a652..361bf833c2b4fb56ff33845e002c836efb2fb367 100644 (file)
@@ -1,22 +1,22 @@
 /*
-Copyright (C) 2003 Reed Mideke.
+   Copyright (C) 2003 Reed Mideke.
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
-GtkRadiant 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 General Public License for more details.
+   GtkRadiant 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 General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 //
 // bkgrnd2d Plugin
@@ -30,9 +30,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #define _PLUGIN_H_
 
 /*!
-\todo need general notice about lib purpose etc.
-and the external dependencies (such as GLib, STL, mathlib etc.)
-*/
+   \todo need general notice about lib purpose etc.
+   and the external dependencies (such as GLib, STL, mathlib etc.)
+ */
 
 #include <stdio.h>
 // for CPtrArray for idata.h
@@ -41,7 +41,9 @@ and the external dependencies (such as GLib, STL, mathlib etc.)
 #include "synapse.h"
 #include "iplugin.h"
 #include "itoolbar.h"
+
 #define USE_QERTABLE_DEFINE
+
 #include "qerplugin.h"
 #include "igl.h"
 #include "ifilesystem.h"
@@ -58,19 +60,24 @@ extern _QEREntityTable g_EntityTable;
 extern _QERAppDataTable g_DataTable;
 extern void *g_pMainWidget;
 
-extern CSynapseServerg_pSynapseServer;
+extern CSynapseServer *g_pSynapseServer;
 
-class CSynapseClientBkgrnd2d : public CSynapseClient
-{
+class CSynapseClientBkgrnd2d : public CSynapseClient {
 public:
-  // CSynapseClient API
-  bool RequestAPI(APIDescriptor_t *pAPI);
-  const char* GetInfo();
-  const char* GetName();
+// CSynapseClient API
+    bool RequestAPI(APIDescriptor_t *pAPI);
+
+    const char *GetInfo();
 
-  CSynapseClientBkgrnd2d() { }
-  virtual ~CSynapseClientBkgrnd2d() { }
+    const char *GetName();
+
+    CSynapseClientBkgrnd2d()
+    {}
+
+    virtual ~CSynapseClientBkgrnd2d()
+    {}
 };
+
 #define MSG_PREFIX "bkgrnd2d: "
 #define MSG_WARN "bkgrnd2d WARNING: "
 #define BKGRND2D_MINOR "bkgrnd2d"