X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fentry.cpp;h=12eff06ae4ffbc542e3b80726242b60ea03ee4ee;hp=9129e1b0ebbdd90bef2b641629b271a9fe618f0b;hb=ec63df81f6c3f77454b0fe3bdae24876c84616b1;hpb=d1b8c27fd3fff14ef85913b601c160b5c435bdff diff --git a/source/entry.cpp b/source/entry.cpp index 9129e1b..12eff06 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -279,5 +279,18 @@ void Entry::slider_value_changed(double value) first_row = text.get_n_lines()-visible_rows-static_cast(value); } + +Entry::Loader::Loader(Entry &e): + DataFile::DerivedObjectLoader(e) +{ + add("edit_size", &Entry::edit_width, &Entry::edit_height); + add("multiline", &Loader::multiline); +} + +void Entry::Loader::multiline(bool m) +{ + obj.set_multiline(m); +} + } // namespace GLtk } // namespace Msp