X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=positionlabel.hpp;h=e5bfd69d492ccdd6757b3ea07256bc6315b6b6fc;hb=2172ce055533d5865d58538ee00bf609e59b0f99;hp=bd90449d876b4e038376f7f02b2f5ad1d4fc5b5f;hpb=c08c30e78fdbbde7e5823b26303b0dded3a4c1cf;p=cs356-p1-elevator.git diff --git a/positionlabel.hpp b/positionlabel.hpp index bd90449..e5bfd69 100644 --- a/positionlabel.hpp +++ b/positionlabel.hpp @@ -1,17 +1,24 @@ #ifndef POSITIONLABEL_HPP #define POSITIONLABEL_HPP +#include "direction.hpp" #include #include +#include +#include +#include -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_; };