MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SetSelection

Method SetSelection

src/visual_tool.cpp:290–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289template<class FeatureType>
290void VisualTool<FeatureType>::SetSelection(FeatureType *feat, bool clear) {
291 if (clear)
292 sel_features.clear();
293
294 if (sel_features.insert(feat).second && feat->line) {
295 Selection sel;
296 if (!clear)
297 sel = c->selectionController->GetSelectedSet();
298 if (sel.insert(feat->line).second)
299 c->selectionController->SetSelectedSet(std::move(sel));
300 }
301}
302
303template<class FeatureType>
304void VisualTool<FeatureType>::RemoveSelection(FeatureType *feat) {

Callers 15

SetZoomMethod · 0.45
DialogPropertiesMethod · 0.45
SetTextToMethod · 0.45
update_mruFunction · 0.45
ApplyMethod · 0.45
OnActiveLineChangedMethod · 0.45
OnStyleBoxModifiedMethod · 0.45
OnKeyDownMethod · 0.45
OptionChoiceMethod · 0.45
SetMethod · 0.45
DialogStyleEditorMethod · 0.45
DialogSelectionMethod · 0.45

Calls 2

SetSelectedSetMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected