nodes/clips: use node label as clip name and allow changing multiple labels at once
Merges the "clip name" and "node label" into the same entity.
This commit is contained in:
@@ -31,11 +31,6 @@ Block::Block() :
|
||||
previous_(nullptr),
|
||||
next_(nullptr)
|
||||
{
|
||||
name_input_ = new NodeInput("name_in", NodeParam::kString);
|
||||
name_input_->set_connectable(false);
|
||||
name_input_->set_is_keyframable(false);
|
||||
AddInput(name_input_);
|
||||
|
||||
length_input_ = new NodeInput("length_in", NodeParam::kRational);
|
||||
length_input_->set_connectable(false);
|
||||
length_input_->set_is_keyframable(false);
|
||||
@@ -195,18 +190,6 @@ void Block::set_enabled(bool e)
|
||||
emit EnabledChanged();
|
||||
}
|
||||
|
||||
QString Block::block_name() const
|
||||
{
|
||||
return name_input_->get_standard_value().toString();
|
||||
}
|
||||
|
||||
void Block::set_block_name(const QString &name)
|
||||
{
|
||||
name_input_->set_standard_value(name);
|
||||
|
||||
emit NameChanged();
|
||||
}
|
||||
|
||||
rational Block::SequenceToMediaTime(const rational &sequence_time) const
|
||||
{
|
||||
// These constants are not considered "values" per se, so we don't modify them
|
||||
@@ -351,7 +334,6 @@ void Block::Retranslate()
|
||||
{
|
||||
Node::Retranslate();
|
||||
|
||||
name_input_->set_name(tr("Name"));
|
||||
length_input_->set_name(tr("Length"));
|
||||
media_in_input_->set_name(tr("Media In"));
|
||||
enabled_input_->set_name(tr("Enabled"));
|
||||
|
||||
@@ -72,9 +72,6 @@ public:
|
||||
bool is_enabled() const;
|
||||
void set_enabled(bool e);
|
||||
|
||||
QString block_name() const;
|
||||
void set_block_name(const QString& name);
|
||||
|
||||
static bool Link(Block* a, Block* b);
|
||||
static void Link(const QList<Block*>& blocks);
|
||||
static bool Unlink(Block* a, Block* b);
|
||||
@@ -109,8 +106,6 @@ signals:
|
||||
|
||||
void LinksChanged();
|
||||
|
||||
void NameChanged();
|
||||
|
||||
void EnabledChanged();
|
||||
|
||||
protected:
|
||||
@@ -134,7 +129,6 @@ protected:
|
||||
private:
|
||||
void set_length_internal(const rational &length);
|
||||
|
||||
NodeInput* name_input_;
|
||||
NodeInput* length_input_;
|
||||
NodeInput* media_in_input_;
|
||||
NodeInput* speed_input_;
|
||||
|
||||
Reference in New Issue
Block a user