Files
test2/source/blender/sequencer/SEQ_connect.hh
John Kiril Swenson 2ab59859c9 Cleanup: VSE: Replace remaining seq and sequence references
Ref: #132179

Renames:
- `Editing.act_seq` -> `Editing.act_strip`
- `SequenceModifierData` -> `StripModifierData`
  - Its member `mask_sequence` is now `mask_strip`.
- `MetaStack.parseq` -> `MetaStack.parent_strip`
- Remaining function names/parameters that were not dealt with in #132748
- Various references to `seq` or `sequence` throughout code and docs when
  referring to a strip

Also moves `_get` to the end of the renamed function names where
applicable for standardization (unless "by" or "from" are used).

There should be no changes to current behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/138077
2025-05-01 00:22:04 +02:00

59 lines
1.6 KiB
C++

/* SPDX-FileCopyrightText: 2024 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup sequencer
*/
#include "BLI_vector_set.hh"
struct Strip;
struct ListBase;
namespace blender::seq {
void connections_duplicate(ListBase *connections_dst, ListBase *connections_src);
/**
* Disconnect the strip(s) from any connections with other strips. This function also
* frees the allocated memory as necessary. Returns false if any of the strips were not already
* connected.
*/
bool disconnect(Strip *strip);
bool disconnect(blender::VectorSet<Strip *> &strip_list);
/**
* Ensure that the strip has only bidirectional connections (expected behavior).
*/
void cut_one_way_connections(Strip *strip);
/**
* Connect strips so that they may be selected together. Any connections the
* strips already have will be severed before reconnection.
*/
void connect(Strip *strip1, Strip *strip2);
void connect(blender::VectorSet<Strip *> &strip_list);
/**
* Returns a list of strips that the `strip` is connected to.
* NOTE: This does not include `strip` itself.
* This list is empty if `strip` is not connected.
*/
blender::VectorSet<Strip *> connected_strips_get(const Strip *strip);
/**
* Check whether a strip has any connections.
*/
bool is_strip_connected(const Strip *strip);
/**
* Check whether the list of strips are a single connection "group", that is, they are all
* connected to each other and there are no outside connections.
*/
bool are_strips_connected_together(blender::VectorSet<Strip *> &strip_list);
} // namespace blender::seq