#ifndef MENY_H #define MENY_H #include "Ptr.h" #include "Component.h" #include "Action_base.h" #include "terminal.h" #include "Compound.h" #include #include #include class Meny: public Component{ public: static Ptr create(int x1, int y1, int x2, int y2, bool isHor); void show(); bool handle_event(Event eve); void add(std::string men, Ptr act); void add_com(terminal_star85::terminal::Keycodes key, Ptr act); private: Meny(int x1, int y1, int x2, int y2, bool isHor); Ptr comp; bool isHor; std::vector > > menVec; void next_left(); void next_right(); void next_up(); void next_down(); }; #endif