]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/designer.h
Add Id tags and copyright notices to files
[r2c2.git] / source / designer / designer.h
index ece41a5dadb021fb96fc64587472f8763b1338eb..6e4e78d0e71fa7d8b3a1f4e9f1b1ebc2f59ea0ce 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
 #ifndef DESIGNER_H_
 #define DESIGNER_H_
 
@@ -17,14 +24,6 @@ class Selection;
 
 class Designer: public Msp::Application
 {
-public:
-       Designer(int, char **);
-       Marklin::Layout *get_layout() { return layout; }
-       Marklin::Layout3D *get_layout_3d() { return layout_3d; }
-       Msp::GL::Font   &get_font()   { return *font; }
-       int             main();
-       void            map_pointer_coords(int, int, float &, float &);
-       ~Designer();
 private:
        enum Mode
        {
@@ -61,10 +60,20 @@ private:
        int            pointer_y;
        int            tooltip_x;
        int            tooltip_y;
-       std::wstring   tooltip;
+       std::string    tooltip;
        Msp::Time::TimeStamp tooltip_timeout;
        Msp::Time::TimeStamp last_tick;
 
+public:
+       Designer(int, char **);
+       ~Designer();
+
+       Marklin::Layout *get_layout() { return layout; }
+       Marklin::Layout3D *get_layout_3d() { return layout_3d; }
+       Msp::GL::Font   &get_font()   { return *font; }
+       int             main();
+       void            map_pointer_coords(int, int, float &, float &);
+private:
        void tick();
        void key_press(unsigned, unsigned, wchar_t);
        void key_release(unsigned, unsigned);