]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/userinterface.cpp
Rework how widget ownership works in Container
[libs/gltk.git] / source / userinterface.cpp
diff --git a/source/userinterface.cpp b/source/userinterface.cpp
deleted file mode 100644 (file)
index 7f976da..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2008  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include "userinterface.h"
-
-namespace Msp {
-namespace GLtk {
-
-UserInterface::UserInterface(Resources &r, Graphics::Window &w):
-       root(r, w)
-{ }
-
-
-UserInterface::Loader::Loader(UserInterface &u):
-       ui(u)
-{
-       add("logic", &Loader::logic);
-       add("root",  &Loader::root);
-}
-
-void UserInterface::Loader::logic()
-{
-       load_sub(ui.logic, ui.widgets);
-}
-
-void UserInterface::Loader::root()
-{
-       load_sub(ui.root, ui.widgets);
-}
-
-} // namespace GLtk
-} // namespace Msp