ElevatorGUI (int floors, int elevators);
/* Functions to be called from Elevator to change GUI status */
- void gui_update_position_label (int elevator, float new_position);
+ void gui_update_position_label (int elevator, float new_position, Direction direction);
void gui_unpress_call_button (int floor, Direction direction);
void gui_unpress_request_button (int elevator, int floor);
void gui_open_door (int elevator, int floor);
void on_call_button_toggled (CallButton *button);
void on_request_button_toggled (RequestButton *button);
void on_playpause_button_clicked ();
- void on_stop_button_clicked ();
void on_quit_button_clicked ();
/* Timer Function */
int number_of_floors_;
int number_of_elevators_;
- enum { STOPPED, RUNNING, PAUSED } simulation_status_;
+ enum { RUNNING, PAUSED } simulation_status_;
ElevatorController ec_;
// holds custom ElevatorDoor which knows it's elevator# and floor#
ElevatorDoorVector elevator_doors_;
- // Holds the Play / Pause button, Stop button, and Quit button
- Gtk::Button button_playpause_, button_stop_, button_quit_;
+ // Holds the Play / Pause button and Quit button
+ Gtk::Button button_playpause_, button_quit_;
// Holds the Table which holds everything
Gtk::Table table_;