Move the PositionLabels to the top of the screen.
-Remove debug code from GUI setup
-
Make the input of floors and elevators GUI based (dialog boxes)
Four buttons: Start, Pause, Resume, Quit
/* Fill in all of the ElevatorDoors and CallButtons */
for (f_attach=0, f=floors-1; f>=0; --f, ++f_attach)
{
- std::cout << "at floor: " << f << std::endl;
-
/* Create and attach the VBox */
Gtk::VBox *box = new Gtk::VBox ();
table_.attach (*box, 0, 1, f_attach, f_attach+1);
for (e=0; e<elevators; ++e) // run left-to-right
{
- std::cout << "Attaching ElevatorDoor (e=" << e << ", f=" << f << ")" << std::endl;
ElevatorDoor *door = new ElevatorDoor (e, f);
elevator_doors_.push_back (door);
table_.attach (*door, e+1, e+2, f_attach, f_attach+1);