fixed event handling and a lot of ID stuff OOPS

This commit is contained in:
2026-01-13 03:16:38 -05:00
parent f9087b8ed3
commit 7f4e05a927
13 changed files with 78 additions and 17 deletions

View File

@@ -1,14 +1,19 @@
#include "storage.h"
#include <utility>
namespace anm2ed
{
void Storage::clear() { *this = Storage(); }
void Storage::labels_set(std::vector<std::string> labels)
void Storage::labels_set(std::vector<std::string> labels) { labels_set(std::move(labels), {}); }
void Storage::labels_set(std::vector<std::string> labels, std::vector<int> ids)
{
labelsString = labels;
labelsString = std::move(labels);
this->ids = std::move(ids);
this->labels.clear();
for (auto& label : labelsString)
this->labels.emplace_back(label.c_str());
}
}
}