BUGFIX: Elevators did not handle Requests in the correct order
[cs356-p1-elevator.git] / positionlabel.hpp
index bd90449..e5bfd69 100644 (file)
@@ -1,17 +1,24 @@
 #ifndef POSITIONLABEL_HPP
 #define POSITIONLABEL_HPP
 
+#include "direction.hpp"
 #include <gtkmm.h>
 #include <string>
+#include <sstream>
+#include <iostream>
+#include <iomanip>
 
-class PositionLabel : public Gtk::Label
+class PositionLabel : public Gtk::Table
 {
        public:
                PositionLabel (int elevator, const std::string text="0.0");
 
                int getElevatorNumber() const;
+               void update_position (float floor, Direction direction);
 
        private:
+               Gtk::Label label_;
+               Gtk::Image direction_img_;
                int elevator_;
 };