20 #ifndef _MFORMS_FORM_H_
21 #define _MFORMS_FORM_H_
27 #define TOP_FORM_PADDING 20
29 #define TOP_FORM_PADDING 12
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 void (*set_title)(
Form *
self,
const std::string &title);
59 void (*end_modal)(
Form *
self,
bool result);
60 void (*set_content)(
Form *
self,
View *view);
61 void (*close)(
Form *
self);
63 void (*center)(
Form *
self);
65 void (*flush_events)(
Form *
self);
103 static Form* main_form();
109 virtual void set_content(
View *view);
113 virtual void set_title(
const std::string &title);
116 virtual void show_modal(
Button *accept,
Button *cancel);
131 virtual void end_modal(
bool result);
134 virtual void close();
137 virtual void center();
139 virtual void flush_events();
142 void set_release_on_close(
bool flag);
149 boost::signals2::signal<void ()>*
signal_closed() {
return &_closed_signal; }
165 if (_release_on_close)