From 411a387be30f4fc25e0ce8924fb115b5863356f1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 21 Nov 2012 17:58:11 +0200 Subject: [PATCH] Miscellaneous other fixes --- Build | 1 + helloworld.cpp | 9 ++------- source/widget.cpp | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Build b/Build index 090f15c..a06c762 100644 --- a/Build +++ b/Build @@ -6,6 +6,7 @@ package "mspgltk" require "mspgl"; require "mspgui"; require "mspcore"; + require "mspdatafile"; headers "msp/gltk" { diff --git a/helloworld.cpp b/helloworld.cpp index 8ff4d8c..4f85964 100644 --- a/helloworld.cpp +++ b/helloworld.cpp @@ -4,7 +4,7 @@ Demonstrates some of the most common widget types. */ #include -#include +#include #include #include #include @@ -17,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 { private: // An OpenGL window to display our widgets in @@ -29,9 +29,6 @@ private: GLtk::Entry *ent_name; GLtk::Label *lbl_hello; - // Indicate our main class to the core library - static Application::RegApp reg; - public: HelloWorld(int, char **); private: @@ -40,8 +37,6 @@ private: }; -Application::RegApp HelloWorld::reg; - HelloWorld::HelloWorld(int, char **): wnd(200, 200), // Load resources. This must be done before the root widget is created. diff --git a/source/widget.cpp b/source/widget.cpp index e929940..6433316 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include "container.h" #include "resources.h" #include "root.h" -- 2.43.0