]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/row.h
Support specifying layouts in datafiles
[libs/gltk.git] / source / row.h
index 6391008293ecb052439bca810614e1cf8d308c4e..58480db013c16da4e5924f10f57d11beef8b5c74 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GLTK_ROW_H_
 #define MSP_GLTK_ROW_H_
 
+#include <msp/datafile/objectloader.h>
 #include "arrangement.h"
 
 namespace Msp {
@@ -8,6 +9,15 @@ namespace GLtk {
 
 class Row: public Arrangement
 {
+public:
+       class Loader: public DataFile::ObjectLoader<Row>
+       {
+       public:
+               Loader(Row &);
+       private:
+               void split();
+       };
+
 private:
        Edge next_right;
        bool first;