/* * Implementation of WhatIf.h */ what_if_t::what_if_t(roster_t* current_roster) { /* * Install pointer to roster process module. */ this->current_roster = current_roster; /* * Construct a companion view and install pointer to it. */ ui = new what_if_ui_t(this); } Interactor* what_if_t::compose(string_list* header_labels) { VBox* vb = new VBox(); vb->Insert(VGlue(10)); vb->Insert(compose_header(header_labels)); vb->Insert(VGlue(5)); vb->Insert(compose_editors(columns)); vb->Insert(VGlue(5)); vb->Insert(compose_buttons(model)); vb->Insert(VGlue(10)); return new HBox( new HGlue(10), vb, new HGlue(10)); }