Creation of the left sidebar with Navigator. Starting to migrate main

window to side bar.
This commit is contained in:
brunoherbelin
2020-05-02 23:47:32 +02:00
parent cc03e7b7cd
commit fc8bd02d2f
18 changed files with 420 additions and 103 deletions

View File

@@ -17,6 +17,8 @@
Source::Source(const std::string &name) : name_(name), initialized_(false)
{
sprintf(initials_, "__");
// create groups for each view
// default rendering node
groups_[View::RENDERING] = new Group;
@@ -55,6 +57,14 @@ Source::~Source()
}
void Source::setName (const std::string &name)
{
name_ = name;
initials_[0] = std::toupper( name_.front() );
initials_[1] = std::toupper( name_.back() );
}
void Source::accept(Visitor& v)
{
v.visit(*this);