]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/camera/camera.cpp
plugins: unify About window wording
[xonotic/netradiant.git] / contrib / camera / camera.cpp
index 5647f4c0f082f0bd683368eceb73f271b6c5b196..7d48e213e4b46a73c755ad1f3e15c539d9c4ee91 100644 (file)
@@ -39,8 +39,8 @@ static const char *PLUGIN_NAME = "Camera";
 static const char *PLUGIN_COMMANDS = "About...,-,Load Camera...,-,Preview Camera,-,Camera Inspector...,-,New Spline Camera,New Interpolated Camera,New Fixed Camera";
 
 // globals
-GtkWidget *g_pRadiantWnd = NULL;
-GtkWidget *g_pCameraInspectorWnd = NULL;
+ui::Window g_pRadiantWnd{ui::null};
+ui::Window g_pCameraInspectorWnd{ui::null};
 CCamera   *firstCam = NULL;       // double linked list
 CCamera   *firstFreeCam = NULL;   // single linked list
 CCamera   *currentCam = NULL;     // single item
@@ -49,12 +49,17 @@ int g_iEditMode = 0;                    // 0: editting points 1: adding points
 int g_iActiveTarget = -1;
 int g_iPreviewRunning = 0;              // 0: no preview 1: start preview 2: preview in progress
 
-static const char *PLUGIN_ABOUT = "Camera v1.0 for NetRadiant\n"
-                                                                 "by Arnout van Meer (rr2do2@splashdamage.com)\n\n"
-                                                                 "This product contains software technology\n"
-                                                                 "from id Software, Inc. ('id Technology').\n"
-                                                                 "id Technology (c) 2001, 2002 id Software, Inc.";
-
+static const char *PLUGIN_ABOUT =
+                       PLUGIN_NAME " " PLUGIN_VERSION " for "
+                       RADIANT_NAME " " RADIANT_VERSION "\n\n"
+                       "Written by Arnout van Meer <rr2do2@splashdamage.com)\n\n"
+                       "Written by Geoffrey DeWan <gdewan@prairienet.org>\n\n"
+                       "This product contains software technology\n"
+                       "from id Software, Inc. ('id Technology').\n"
+                       "id Technology (c) 2001, 2002 id Software, Inc.\n\n";
+                       "Built against "
+                       RADIANT_NAME " " RADIANT_VERSION "\n"
+                       __DATE__;
 
 #include "iplugin.h"
 
@@ -84,7 +89,7 @@ const char* QERPlug_Init( void* hApp, void* pMainWidget ){
 
        GetFileTypeRegistry()->addType( "camera", "", filetype_t( "Camera file", "*.camera" ) );
 
-       return "Camera for NetRadiant";
+       return "Camera for " RADIANT_NAME;
 }
 
 const char* QERPlug_GetName(){
@@ -132,7 +137,7 @@ class CameraInspectorButton : public IToolbarButton
 {
 public:
 virtual const char* getImage() const {
-       return "camera_insp.bmp";
+       return "camera_insp.jpg";
 }
 virtual const char* getText() const {
        return "Inspector";