]> git.tdb.fi Git - libs/gltk.git/blobdiff - helloworld.cpp
Add a persistent view size attribute to List
[libs/gltk.git] / helloworld.cpp
index e41361f2fbb523841ff5b5b6d00e5cbcdd79d9d4..4f85964d9d2c45e28aa90bae843237d92d657d47 100644 (file)
@@ -1,17 +1,10 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 /*
 A simple graphical Hello World application implemented with mspgltk.
 Demonstrates some of the most common widget types.
 */
 
 #include <msp/core/application.h>
-#include <msp/gbase/simplewindow.h>
+#include <msp/graphics/simplewindow.h>
 #include <msp/gl/blend.h>
 #include <msp/gl/matrix.h>
 #include <msp/gltk/button.h>
@@ -24,7 +17,7 @@ Demonstrates some of the most common widget types.
 using namespace Msp;
 
 // Application class.  Because it's so much nicer than global variables.
-class HelloWorld: public Msp::Application
+class HelloWorld: public Msp::RegisteredApplication<HelloWorld>
 {
 private:
        // An OpenGL window to display our widgets in
@@ -36,9 +29,6 @@ private:
        GLtk::Entry *ent_name;
        GLtk::Label *lbl_hello;
 
-       // Indicate our main class to the core library
-       static Application::RegApp<HelloWorld> reg;
-
 public:
        HelloWorld(int, char **);
 private:
@@ -47,8 +37,6 @@ private:
 };
 
 
-Application::RegApp<HelloWorld> HelloWorld::reg;
-
 HelloWorld::HelloWorld(int, char **):
        wnd(200, 200),
        // Load resources.  This must be done before the root widget is created.