prefix ++View::need_deep_update_

This commit is contained in:
Bruno
2021-04-19 19:24:50 +02:00
parent 896cae2d07
commit e2d2e6ddd8
7 changed files with 17 additions and 16 deletions

View File

@@ -258,7 +258,7 @@ void GeometryView::draw()
static std::vector< std::pair<int, int> > icons_ws = { {10,16}, {11,16}, {12,16} };
static std::vector< std::string > labels_ws = { "Background", "Workspace", "Foreground" };
if ( ImGuiToolkit::ComboIcon (icons_ws, labels_ws, &Settings::application.current_workspace) ){
View::need_deep_update_++;
++View::need_deep_update_;
}
ImGui::PopStyleColor(8); // 14 colors

View File

@@ -124,7 +124,7 @@ void LayerView::draw()
(*it)->setDepth(depth);
}
Action::manager().store(std::string("Selection: Layer Distribute"));
View::need_deep_update_++;
++View::need_deep_update_;
}
if (ImGui::Selectable( ICON_FA_RULER_HORIZONTAL " Compress" )){
SourceList dsl = depth_sorted(Mixer::selection().getCopy());
@@ -135,7 +135,7 @@ void LayerView::draw()
(*it)->setDepth(depth);
}
Action::manager().store(std::string("Selection: Layer Compress"));
View::need_deep_update_++;
++View::need_deep_update_;
}
if (ImGui::Selectable( ICON_FA_EXCHANGE_ALT " Reverse order" )){
SourceList dsl = depth_sorted(Mixer::selection().getCopy());
@@ -145,7 +145,7 @@ void LayerView::draw()
(*it)->setDepth((*rit)->depth());
}
Action::manager().store(std::string("Selection: Layer Reverse order"));
View::need_deep_update_++;
++View::need_deep_update_;
}
ImGui::PopStyleColor(2);

View File

@@ -91,7 +91,7 @@ void MediaSource::init()
active_ = true;
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
// done init
initialized_ = true;

View File

@@ -138,7 +138,7 @@ void Mixer::update()
if ( back_session_ ) {
// swap front and back sessions
swap();
View::need_deep_update_++;
++View::need_deep_update_;
// set session filename
Rendering::manager().mainWindow().setTitle(session_->filename());
Settings::application.recentSessions.push(session_->filename());
@@ -193,7 +193,7 @@ void Mixer::update()
// deep update was performed
if (View::need_deep_update_ > 0)
View::need_deep_update_--;
--View::need_deep_update_;
}
void Mixer::draw()
@@ -886,7 +886,7 @@ void Mixer::setView(View::Mode m)
}
// need to deeply update view to apply eventual changes
View::need_deep_update_++;
++View::need_deep_update_;
}
View *Mixer::view(View::Mode m)
@@ -1018,7 +1018,7 @@ void Mixer::merge(Session *session)
}
// needs to update !
View::need_deep_update_++;
++View::need_deep_update_;
// avoid display issues
current_view_->update(0.f);
@@ -1101,7 +1101,7 @@ void Mixer::merge(SessionSource *source)
}
// needs to update !
View::need_deep_update_++;
++View::need_deep_update_;
}
@@ -1200,7 +1200,7 @@ void Mixer::clear()
sessionSwapRequested_ = true;
// need to deeply update view to apply eventual changes
View::need_deep_update_++;
++View::need_deep_update_;
Log::Info("New session ready.");
}
@@ -1317,5 +1317,6 @@ void Mixer::restore(tinyxml2::XMLElement *sessionNode)
session_->link( *group_loader_it, view(View::MIXING)->scene.fg() );
++View::need_deep_update_;
}

View File

@@ -223,7 +223,7 @@ void SessionFileSource::init()
overlays_[View::TRANSITION]->detach(loader);
delete loader;
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
}
}
@@ -287,7 +287,7 @@ void SessionGroupSource::init()
attach(renderbuffer);
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
// done init
initialized_ = true;
@@ -355,7 +355,7 @@ void RenderSource::init()
attach(renderbuffer);
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
// done init
initialized_ = true;

View File

@@ -848,7 +848,7 @@ void CloneSource::init()
attach(renderbuffer);
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
// done init
initialized_ = true;

View File

@@ -82,7 +82,7 @@ void StreamSource::init()
attach(renderbuffer);
// deep update to reorder
View::need_deep_update_++;
++View::need_deep_update_;
// force update of activation mode
active_ = true;