first_row = text.get_n_lines()-visible_rows-static_cast<unsigned>(value);
}
+
+Entry::Loader::Loader(Entry &e):
+ DataFile::DerivedObjectLoader<Entry, Widget::Loader>(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
class Entry: virtual public Widget, private Container
{
public:
+ class Loader: public DataFile::DerivedObjectLoader<Entry, Widget::Loader>
+ {
+ public:
+ Loader(Entry &);
+
+ private:
+ void multiline(bool);
+ };
+
sigc::signal<void> signal_enter;
private:
DataFile::DerivedObjectLoader<List, Widget::Loader>(l)
{
add("item", &Loader::item);
+ add("view_size", &List::view_size);
}
void List::Loader::item(const string &v)