/* * Class what_if_ui_t is the companion view for what_if_t, q.v. */ class what_if_ui_t { public: what_if_ui_t(what_if_t* model); /* * Construct with the given companion modoel. */ Interactor* compose(string_list* header_labels); /* * Compose the UI components, which consists of three hboxes: one holding * the given header labels, the holding string editors for the user to * input what if data values, and the the botonmost containg push buttons * for Recompoute, Restore. and Done. These hboxes are slapped into a vbox * and the whole wad is returned. */ void protected: what_if_t* model; int numcolumns; /* Number of columsn in the display */ /** * Utility UI composition functions. */ HBox* compose_header(header_labels)); HBox* compose_editors(columns)); HBox* compose_buttons()); };