mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-08 08:50:00 +01:00
Creation of the left sidebar with Navigator. Starting to migrate main
window to side bar.
This commit is contained in:
10
Source.cpp
10
Source.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user