Creating a base toolkit for functions independent from other toolkits

This commit is contained in:
Bruno
2021-04-25 20:09:22 +02:00
parent 129d5445c3
commit 055f5c4c4e
24 changed files with 159 additions and 118 deletions

View File

@@ -11,6 +11,7 @@
#include "SearchVisitor.h"
#include "ImageShader.h"
#include "ImageProcessingShader.h"
#include "BaseToolkit.h"
#include "SystemToolkit.h"
#include "Log.h"
#include "MixingGroup.h"
@@ -99,7 +100,7 @@ Source::Source(uint64_t id) : SourceCore(), id_(id), initialized_(false), symbol
{
// create unique id
if (id_ == 0)
id_ = GlmToolkit::uniqueId();
id_ = BaseToolkit::uniqueId();
sprintf(initials_, "__");
name_ = "Source";
@@ -315,7 +316,7 @@ Source::~Source()
void Source::setName (const std::string &name)
{
name_ = SystemToolkit::transliterate(name);
name_ = BaseToolkit::transliterate(name);
initials_[0] = std::toupper( name_.front(), std::locale("C") );
initials_[1] = std::toupper( name_.back(), std::locale("C") );