#ifndef RELAYSCROLLBOX_H #define RELAYSCROLLBOX_H #include #include #include #include #include "itemwidget.h" #include "../items/item.h" #include "../items/itemstore.h" namespace Ui { class RelayScrollBox; } class ItemScrollBox : public QWidget { Q_OBJECT private: std::vector< ItemWidget* > widgets_; signals: void deleteRequest(const ItemData& item); public: explicit ItemScrollBox(QWidget *parent = nullptr); ~ItemScrollBox(); public slots: void addItem(std::weak_ptr item); void removeItem(const ItemData& item); void jsReqNewItem(); private: Ui::RelayScrollBox *ui; }; #endif // RELAYSCROLLBOX_H