move build system to cmake, add train overlord

This commit is contained in:
2022-03-13 22:21:13 +01:00
parent ddd0b3a732
commit a1f9fa172b
60 changed files with 338 additions and 997 deletions

View File

@ -0,0 +1,43 @@
#ifndef RELAYSCROLLBOX_H
#define RELAYSCROLLBOX_H
#include <QWidget>
#include <vector>
#include <memory>
#include <QScroller>
#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> item);
void removeItem(const ItemData& item);
void jsReqNewItem();
private:
Ui::RelayScrollBox *ui;
};
#endif // RELAYSCROLLBOX_H