From d788ea61f0417f7bac9a11be5b124782f32afcea Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 15:56:25 -0500 Subject: [PATCH 01/12] Add groups of layers to the model and the project file A group gathers layers that follow one another in the stack. It is an element, like a layer: a name, an eye, a solo, a lock and an opacity, declared as settings. Its state adds to that of each of its layers: a layer is shown when its eye and that of its group are open, a group in solo puts its layers in solo, a locked group locks the shapes of its layers, and the opacity of a layer is multiplied by that of its group. MappingManager keeps the top level of the stack: layers in no group, and groups with their layers. A layer put in a group moves next to its other layers. A layer of a group moves among its layers only; a layer in no group moves over a whole group. Groups do not contain groups. Project files get a "groups" array at the top and a "group_id" in each layer of a group, both written only when there is a group, so that a project without groups keeps its bytes. A group without layers is kept, placed by its "depth": the number of layers above it. Links reach the settings of a group with the element "group". The list of layers does not show the groups yet: it follows their order. --- docs/project-format.md | 32 +++ src/core/Group.cpp | 79 +++++++ src/core/Group.h | 85 ++++++++ src/core/Layer.cpp | 57 ++++- src/core/Layer.h | 34 ++- src/core/Link.cpp | 18 +- src/core/Link.h | 5 +- src/core/MappingManager.cpp | 378 ++++++++++++++++++++++++++++----- src/core/MappingManager.h | 134 +++++++++++- src/core/ProjectLabels.cpp | 10 +- src/core/ProjectLabels.h | 13 ++ src/core/ProjectReader.cpp | 50 ++++- src/core/ProjectReader.h | 5 + src/core/ProjectTypes.cpp | 1 + src/core/ProjectTypes.h | 2 + src/core/ProjectWriter.cpp | 16 ++ src/core/core.pri | 2 + src/gui/MainWindow.cpp | 39 +++- src/gui/MainWindow.h | 5 + tests/TestLinks.cpp | 9 + tests/TestMappingManager.cpp | 201 ++++++++++++++++++ tests/TestMappingManager.h | 4 + tests/TestProjectRoundTrip.cpp | 74 +++++++ tests/TestProjectRoundTrip.h | 3 + tests/TestSettings.cpp | 2 +- tests/fixtures/groups.mmp | 241 +++++++++++++++++++++ tests/tests.pro | 2 + 27 files changed, 1428 insertions(+), 73 deletions(-) create mode 100644 src/core/Group.cpp create mode 100644 src/core/Group.h create mode 100644 tests/fixtures/groups.mmp diff --git a/docs/project-format.md b/docs/project-format.md index 44735c49..165710bc 100644 --- a/docs/project-format.md +++ b/docs/project-format.md @@ -118,6 +118,38 @@ A source or a layer may have an `effects` array: the effects put on it, in order An effect of a type this version does not know is kept as it was read, written back, and not drawn: the image passes unchanged. An entry that is not an object or has no type is skipped, with a warning; `effects` that is not an array is skipped as a whole. +### Groups + +A project may have a `groups` array at the top of the file: the groups of layers, from the top of the stack. It is written only when there is at least one group, and a layer has a `group_id` only when it is in a group, so a project without groups keeps the same bytes. The `layers` array does not change: the layers of a group follow one another in it. + +```json +"groups": [ + { + "depth": 0, + "id": 2, + "locked": false, + "name": "Camion", + "opacity": 1, + "solo": false, + "type": "mapmap:group", + "visible": false + } +], +"layers": [ + { "id": 1, "group_id": 2, "name": "Camion cabine", … }, + { "id": 4, "group_id": 2, "name": "Camion roue", … }, + { "id": 6, "name": "Maison", … } +] +``` + +- `id` is unique among the groups; groups have ids of their own, as sources and layers. Their settings are reached at `/mapmap/group//` by OSC, with the kind `group` by MCP, and with the element `group` by links. +- `visible`, `solo`, `locked` and `opacity` add to those of each of its layers: a layer is shown when its eye and that of its group are open; it is in solo when it or its group is; it is locked when it or its group is, and so are its shapes, whose own `locked` is written so; its opacity is multiplied by that of its group. +- `depth` is the number of layers above the group. A group takes the place of its topmost layer: `depth` only places a group without layers. +- A group without layers is kept and written. +- Groups do not contain groups. + +A layer whose `group_id` names no group of the project stays in no group, with a warning. A group without an id, or with the id of another one, is skipped, with a warning. A version of MapMap without groups opens the layers in the same order, in no group, and keeps `groups` and the `group_id` of each layer when it saves the project (1.0.0-beta.2 and earlier lose `groups`). + ### Links A project may have a `links` array: what its triggers, such as the keys of the computer keyboard, do to its settings. It is written only when the project has at least one link, so a project without links keeps the same bytes. diff --git a/src/core/Group.cpp b/src/core/Group.cpp new file mode 100644 index 00000000..410796ab --- /dev/null +++ b/src/core/Group.cpp @@ -0,0 +1,79 @@ +/* + * Group.cpp + * + * (c) 2026 MapMap contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "Group.h" + +#include "ProjectLabels.h" + +namespace mmp { + +UidAllocator Group::allocator; + +Group::Group(int id) + : Element(id, &allocator), + _isVisible(true), + _isSolo(false) +{ + SettingGroup* root = settings(); + + root->addSetting(SettingInfo::boolean(ProjectLabels::SOLO, tr("Solo")) + .hidden() + .description(tr("Whether this group is in solo: its layers are then in solo too."))) + ->bind([this]() { return QVariant(isSolo()); }, + [this](const QVariant& value) { setSolo(value.toBool()); return true; }); + + root->addSetting(SettingInfo::boolean(ProjectLabels::VISIBLE, tr("Visible")) + .defaultValue(true) + .hidden() + .description(tr("Whether the layers of this group are shown: a layer is shown when " + "its eye and that of its group are open."))) + ->bind([this]() { return QVariant(isVisible()); }, + [this](const QVariant& value) { setVisible(value.toBool()); return true; }); +} + +Group::~Group() +{ + // A group being destroyed notifies nobody. + settings()->setListener(nullptr); +} + +void Group::setVisible(bool visible) +{ + if (visible != _isVisible) + { + _isVisible = visible; + _emitPropertyChanged(ProjectLabels::VISIBLE); + } +} + +void Group::setSolo(bool solo) +{ + if (solo != _isSolo) + { + _isSolo = solo; + _emitPropertyChanged(ProjectLabels::SOLO); + } +} + +QStringList Group::_reservedKeys() const +{ + return Element::_reservedKeys() << ProjectLabels::DEPTH; +} + +} diff --git a/src/core/Group.h b/src/core/Group.h new file mode 100644 index 00000000..40a2e91a --- /dev/null +++ b/src/core/Group.h @@ -0,0 +1,85 @@ +/* + * Group.h + * + * (c) 2026 MapMap contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef GROUP_H_ +#define GROUP_H_ + +#include "Element.h" +#include "ProjectTypes.h" +#include "UidAllocator.h" + +namespace mmp { + +/** + * A group of layers: layers that follow one another in the stack, shown, hidden, locked and + * isolated together. + * + * A group is an element, like a layer: a name, an eye ("visible"), a solo, a lock and an + * opacity, declared as settings, so that the inspector, OSC, MCP and links reach them as + * those of a layer. Its state does not replace that of its layers: it adds to it (see + * MappingManager::layerIsVisible() and Layer::getComputedOpacity()). + * + * The group does not hold its layers: the MappingManager keeps them, in the stack, and gives + * each layer its group (see Layer::getGroup()). Groups do not contain groups. + * + * Its ids come from an allocator of their own, as those of the sources and of the layers. + */ +class Group : public Element +{ + Q_OBJECT + +public: + typedef QSharedPointer ptr; + + /// Makes a group with this id, or with a new one when it is NULL_UID. + Q_INVOKABLE explicit Group(int id = NULL_UID); + ~Group() override; + + /// Returns the allocator of the ids of the groups. + static const UidAllocator& getUidAllocator() { return allocator; } + + /// Returns its type in project files. + QString typeName() const override { return ProjectTypes::GROUP; } + + /// Returns true when the eye of the group is open. + bool isVisible() const { return _isVisible; } + /// Opens or closes the eye of the group. + void setVisible(bool visible); + void toggleVisible() { setVisible(!isVisible()); } + + /// Returns true when the group is in solo: as if each of its layers were. + bool isSolo() const { return _isSolo; } + /// Puts the group in solo, or out of it. + void setSolo(bool solo); + void toggleSolo() { setSolo(!isSolo()); } + +protected: + /// Its place in the stack is written by ProjectWriter, from the stack. + QStringList _reservedKeys() const override; + +private: + static UidAllocator allocator; + + bool _isVisible; + bool _isSolo; +}; + +} + +#endif /* GROUP_H_ */ diff --git a/src/core/Layer.cpp b/src/core/Layer.cpp index e596c570..6f7fcef9 100644 --- a/src/core/Layer.cpp +++ b/src/core/Layer.cpp @@ -59,13 +59,13 @@ Layer::Layer(Source::ptr source, MShape::ptr shape, MShape::ptr inputShape, uid SettingGroup* root = settings(); - root->addSetting(SettingInfo::boolean("solo", tr("Solo")) + root->addSetting(SettingInfo::boolean(ProjectLabels::SOLO, tr("Solo")) .hidden() .description(tr("Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown."))) ->bind([this]() { return QVariant(isSolo()); }, [this](const QVariant& value) { setSolo(value.toBool()); return true; }); - root->addSetting(SettingInfo::boolean("visible", tr("Visible")) + root->addSetting(SettingInfo::boolean(ProjectLabels::VISIBLE, tr("Visible")) .defaultValue(true) .hidden() .description(tr("Whether this layer is shown."))) @@ -73,7 +73,7 @@ Layer::Layer(Source::ptr source, MShape::ptr shape, MShape::ptr inputShape, uid [this](const QVariant& value) { setVisible(value.toBool()); return true; }); // A new layer goes on top of those created before it. - root->addSetting(SettingInfo::integer("depth", tr("Depth")) + root->addSetting(SettingInfo::integer(ProjectLabels::DEPTH, tr("Depth")) .defaultValue(int(getId())) .hidden() .description(tr("The position of this layer in the stack of layers."))) @@ -96,6 +96,18 @@ Layer::Layer(Source::ptr source, MShape::ptr shape, MShape::ptr inputShape, uid ->bind([this]() { return QVariant(int(_source.isNull() ? NULL_UID : _source->getId())); }, [this](const QVariant& value) { return _setSourceById(value.toInt()); }); + // Written by Layer::write() only when the layer is in a group, so that a project without + // groups keeps its bytes; read by ProjectReader, once the groups exist. + root->addSetting(SettingInfo::reference(ProjectLabels::GROUP_ID, tr("Group")) + .valueType(QMetaType::Int) + .defaultValue(NULL_UID) + .notStored() + .hidden() + .description(tr("The group of this layer, or 0 when it is in none. Putting a layer " + "in a group moves it next to the other layers of the group."))) + ->bind([this]() { return QVariant(int(getGroupId())); }, + [this](const QVariant& value) { return _groupAssigner && _groupAssigner(value.toInt()); }); + _mountShapes(); } @@ -110,6 +122,7 @@ void Layer::_assignShapeRole(const MShape::ptr& shape, bool isOutput) Layer::~Layer() { // A layer being destroyed notifies nobody; its shapes may outlive it. settings()->setListener(nullptr); + QObject::disconnect(_groupConnection); _unmountShapes(); allocator.free(getId()); @@ -220,13 +233,40 @@ void Layer::setDepth(int depth) void Layer::setLocked(bool locked) { + // The shapes stay locked while the group is. + const bool shapesLocked = locked || isLockedByGroup(); if (!_shape.isNull()) - _shape->setLocked(locked); + _shape->setLocked(shapesLocked); if (!_inputShape.isNull()) - _inputShape->setLocked(locked); + _inputShape->setLocked(shapesLocked); Element::setLocked(locked); } +void Layer::_applyLockToShapes() +{ + const bool shapesLocked = isLocked() || isLockedByGroup(); + if (!_shape.isNull()) + _shape->setLocked(shapesLocked); + if (!_inputShape.isNull()) + _inputShape->setLocked(shapesLocked); +} + +void Layer::_setGroup(const Group::ptr& group) +{ + if (group == _group) + return; + QObject::disconnect(_groupConnection); + _group = group; + if (!_group.isNull()) + _groupConnection = connect(_group.data(), &Element::settingChanged, this, + [this](uid, const QString& path) { + if (path == QLatin1String(ProjectLabels::LOCKED)) + _applyLockToShapes(); + }); + _applyLockToShapes(); + _emitPropertyChanged(ProjectLabels::GROUP_ID); +} + void Layer::setSource(Source::ptr source) { if (!source.isNull() && sourceIsCompatible(source)) @@ -303,7 +343,8 @@ QStringList Layer::_reservedKeys() const // The former keys of the source are reserved too, so that they are not written back. const Setting* sourceSetting = settings()->find(ProjectLabels::SOURCE_ID); return Element::_reservedKeys() << sourceSetting->id() << sourceSetting->info().formerIds() - << ProjectLabels::DESTINATION << ProjectLabels::SOURCE; + << ProjectLabels::DESTINATION << ProjectLabels::SOURCE + << ProjectLabels::GROUP_ID; } void Layer::write(QJsonObject& obj) @@ -312,6 +353,10 @@ void Layer::write(QJsonObject& obj) obj[ProjectLabels::SOURCE_ID] = getSourceId(); + // Only in a group, so that a project without groups keeps its bytes. + if (!_group.isNull()) + obj[ProjectLabels::GROUP_ID] = int(_group->getId()); + // Write output shape. _writeShape(obj, true); diff --git a/src/core/Layer.h b/src/core/Layer.h index 24b0449a..6110a6e0 100644 --- a/src/core/Layer.h +++ b/src/core/Layer.h @@ -31,6 +31,7 @@ #include "Source.h" #include "Element.h" +#include "Group.h" #include "UidAllocator.h" @@ -79,6 +80,17 @@ class Layer : public Element /// Set while one mesh takes the grid of the other, so that its notification is not sent back. bool _keepingMeshGridsEqual; + /// The group of the layer, or a null pointer. Set by the MappingManager. + Group::ptr _group; + + /// Follows the lock of the group, to lock the shapes with it. + QMetaObject::Connection _groupConnection; + + /// Asks the MappingManager of the layer to put it in a group (see setGroupAssigner()). + std::function _groupAssigner; + + friend class MappingManager; + protected: Layer(int id=NULL_UID); Layer(Source::ptr source, uid id=NULL_UID); @@ -140,7 +152,20 @@ class Layer : public Element virtual void toggleSolo() { setSolo(!isSolo()); } virtual void toggleVisible() { setVisible(!isVisible()); } - virtual float getComputedOpacity() const { return getOpacity() * _source->getOpacity(); } + /// Returns the opacity it is drawn at: its own, times that of its source and of its group. + virtual float getComputedOpacity() const + { + return getOpacity() * _source->getOpacity() * (_group.isNull() ? 1.0f : _group->getOpacity()); + } + + /// Returns the group of the layer, or a null pointer when it is in none. + Group::ptr getGroup() const { return _group; } + + /// Returns the id of the group of the layer, or NULL_UID. + uid getGroupId() const { return _group.isNull() ? NULL_UID : _group->getId(); } + + /// Returns true when its group is locked: the layer is then locked too, whatever its own lock. + bool isLockedByGroup() const { return !_group.isNull() && _group->isLocked(); } virtual void setSource(Source::ptr source); virtual void setSourceById(uid sourceId); @@ -174,6 +199,13 @@ class Layer : public Element static void setSourceLister(SourceLister lister); protected: + /// Sets the group of the layer, follows its lock, and notifies "group_id". Only the + /// MappingManager calls it: it keeps the layers of a group together in the stack. + void _setGroup(const Group::ptr& group); + + /// Locks the shapes when the layer or its group is locked. + void _applyLockToShapes(); + /// Configures shape according to its role (output shapes may be distorted in perspective). static void _assignShapeRole(const MShape::ptr& shape, bool isOutput); diff --git a/src/core/Link.cpp b/src/core/Link.cpp index 57d85634..22448492 100644 --- a/src/core/Link.cpp +++ b/src/core/Link.cpp @@ -51,6 +51,7 @@ const QString CONTROL_MESSAGE = QStringLiteral("control"); const QString NOTE_MESSAGE = QStringLiteral("note"); const QString SOURCE_ELEMENT = QStringLiteral("source"); const QString LAYER_ELEMENT = QStringLiteral("layer"); +const QString GROUP_ELEMENT = QStringLiteral("group"); const QString TOGGLE_ACTION = QStringLiteral("toggle"); const QString ON_ACTION = QStringLiteral("on"); const QString OFF_ACTION = QStringLiteral("off"); @@ -231,10 +232,21 @@ bool LinkTarget::isValid() const return id > NULL_UID && !path.isEmpty(); } +QString LinkTarget::elementWord(ElementKind element) +{ + switch (element) + { + case SourceElement: return SOURCE_ELEMENT; + case GroupElement: return GROUP_ELEMENT; + case LayerElement: break; + } + return LAYER_ELEMENT; +} + QJsonObject LinkTarget::toJson() const { QJsonObject object; - object[ELEMENT_KEY] = element == SourceElement ? SOURCE_ELEMENT : LAYER_ELEMENT; + object[ELEMENT_KEY] = elementWord(element); object[ID_KEY] = id; object[SETTING_KEY] = path; // The whole value is written as before, without a component. @@ -253,6 +265,8 @@ LinkTarget LinkTarget::fromJson(const QJsonObject& object) target.element = SourceElement; else if (element == LAYER_ELEMENT) target.element = LayerElement; + else if (element == GROUP_ELEMENT) + target.element = GroupElement; else return LinkTarget(); target.id = object.value(ID_KEY).toInt(NULL_UID); @@ -272,7 +286,7 @@ LinkTarget LinkTarget::fromJson(const QJsonObject& object) QString LinkTarget::describe() const { QString text = QStringLiteral("%1 %2, %3") - .arg(element == SourceElement ? SOURCE_ELEMENT : LAYER_ELEMENT) + .arg(elementWord(element)) .arg(id) .arg(path); if (component != WholeValue) diff --git a/src/core/Link.h b/src/core/Link.h index d2ba6243..6363115e 100644 --- a/src/core/Link.h +++ b/src/core/Link.h @@ -114,7 +114,7 @@ struct LinkTrigger { /// The setting a link drives, or one coordinate of a point. struct LinkTarget { /// The kinds of elements whose settings can be linked. - enum ElementKind { SourceElement, LayerElement }; + enum ElementKind { SourceElement, LayerElement, GroupElement }; /// What part of the value a link drives: all of it, or one coordinate of a point, such as /// a vertex of a shape, which has no position between 0 and 1. @@ -143,6 +143,9 @@ struct LinkTarget { /// Returns true when the target names an element and a setting. bool isValid() const; + /// Returns the word of a kind of element in project files: "source", "layer" or "group". + static QString elementWord(ElementKind element); + /// Returns the target as written in project files. QJsonObject toJson() const; diff --git a/src/core/MappingManager.cpp b/src/core/MappingManager.cpp index 8b66e583..167a7f0d 100644 --- a/src/core/MappingManager.cpp +++ b/src/core/MappingManager.cpp @@ -181,8 +181,21 @@ uid MappingManager::addLayer(Layer::ptr layer) // Make sure the source to which this mapping refers to exists in the manager. Q_ASSERT ( sourceVector.contains(layer->getSource()) ); - layerVector.insert(0, layer); layerMap[layer->getId()] = layer; + _attachLayer(layer); + + // A layer that comes back in its group (undoing its deletion) goes on top of the group; + // any other goes on top of the stack. + const Group::ptr group = layer->getGroup(); + const int groupIndex = group.isNull() ? -1 : _stackIndexOfGroup(group->getId()); + if (groupIndex >= 0 && groupMap.value(group->getId()) == group) + _stack[groupIndex].layers.insert(0, layer); + else + { + layer->_setGroup(Group::ptr()); + _stack.insert(0, StackEntry { Group::ptr(), { layer } }); + } + _flattenStack(false); return layer->getId(); } @@ -201,11 +214,13 @@ bool MappingManager::removeLayer(uid mappingId) Layer::ptr layer = getLayerById(mappingId); if (layer) { - int idx = layerVector.lastIndexOf(layer); - Q_ASSERT( idx != -1 ); // Q_ASSERT(layerVector.contains(layer)); - layerVector.remove(idx); + // The layer keeps its group, so that undoing its deletion puts it back in it. + const int idx = _takeFromStack(layer); + Q_ASSERT( idx != -1 ); + Q_UNUSED(idx); layerMap.remove(mappingId); - updateLayerDepths(); + layer->_groupAssigner = nullptr; + _flattenStack(true); return true; } @@ -218,49 +233,75 @@ bool MappingManager::removeLayer(uid mappingId) /// Moves a layer to a zero-based row. Returns false for an unknown id or invalid row. bool MappingManager::moveLayer(uid mappingId, int toIndex) { - // Make sure the source to which this mapping refers to exists in the manager. - int idx = getLayerIndex(mappingId); - if (idx >= 0 && toIndex >= 0 && toIndex < layerVector.size()) - { - if (idx == toIndex) - return true; - layerVector.move(idx, toIndex); - updateLayerDepths(); - emit layerMoved(mappingId, idx, toIndex); + const Layer::ptr layer = layerMap.value(mappingId); + const int idx = layer.isNull() ? -1 : int(layerVector.indexOf(layer)); + if (idx < 0 || toIndex < 0 || toIndex >= layerVector.size()) + return false; + if (idx == toIndex) return true; + + const Group::ptr group = layer->getGroup(); + if (!group.isNull()) + { + // A layer of a group stays in it: it moves among the layers of the group only. + StackEntry& entry = _stack[_stackIndexOfGroup(group->getId())]; + const int first = int(layerVector.indexOf(entry.layers.first())); + const int target = qBound(first, toIndex, first + int(entry.layers.size()) - 1); + entry.layers.move(idx - first, target - first); } else { - return false; + // A layer in no group goes over a whole group, never into it. + _stack.removeAt(_stackIndexOfLayer(layer)); + int insertAt = 0; + if (toIndex > idx) + // Below the entry that holds the layer that ends up just above it. + insertAt = _stackIndexOfRow(toIndex - 1) + 1; + else + // Above the entry that holds the layer whose place it takes. + insertAt = _stackIndexOfRow(toIndex); + _stack.insert(insertAt, StackEntry { Group::ptr(), { layer } }); } + _flattenStack(true); + + const int newIndex = int(layerVector.indexOf(layer)); + if (newIndex != idx) + emit layerMoved(mappingId, idx, newIndex); + return true; +} + +bool MappingManager::layerIsSolo(const Layer::ptr& layer) +{ + const Group::ptr group = layer->getGroup(); + return layer->isSolo() || (!group.isNull() && group->isSolo()); +} + +bool MappingManager::layerEyeIsOpen(const Layer::ptr& layer) +{ + const Group::ptr group = layer->getGroup(); + return layer->isVisible() && (group.isNull() || group->isVisible()); } QVector MappingManager::getVisibleLayers() const { QVector visible; - // First pass: check if one of the mappings is in solo mode. + // First pass: check if one of the layers is in solo, or its group. bool hasSolo = false; - for (QVector::const_iterator it = layerVector.begin(); - it != layerVector.end(); ++it) + for (const Layer::ptr& layer : layerVector) { - if ((*it)->isSolo()) + if (layerIsSolo(layer)) { hasSolo = true; break; } } - // Second pass: fill the visible vector. - for (QVector::const_iterator it = layerVector.begin(); - it != layerVector.end(); ++it) + // Second pass: fill the visible vector. Solo has priority over the eyes. + for (const Layer::ptr& layer : layerVector) { - // Solo has priority over invisible (mute) - if ( (hasSolo && (*it)->isSolo()) || - (! hasSolo && (*it)->isVisible()) ) - { - visible.push_back(*it); - } + if ((hasSolo && layerIsSolo(layer)) || (!hasSolo && layerEyeIsOpen(layer))) + visible.push_back(layer); } return visible; @@ -269,34 +310,21 @@ QVector MappingManager::getVisibleLayers() const /// Returns true iff the mapping is visible. bool MappingManager::layerIsVisible(Layer::ptr layer) const { - // Solo mappings are always visible. - if (layer->isSolo()) - { + // Layers in solo are always visible. + if (layerIsSolo(layer)) return true; - } - // Non-solo invisible mappings are always invisible. - else if (! layer->isVisible()) - { + // Layers whose eye, or that of their group, is closed are not. + if (!layerEyeIsOpen(layer)) return false; - } - // Mapping is non-solo yet visible: check if another mapping is solo - // (which would thus make it invisible). - else + // The eyes are open: the layer is shown unless another one is in solo. + for (const Layer::ptr& other : layerVector) { - for (QVector::const_iterator it = layerVector.begin(); - it != layerVector.end(); ++it) - { - if ((*it)->isSolo()) - { - return false; - } - } - - // Mapping is non-solo yet visible and there are no solo mappings. - return true; + if (layerIsSolo(other)) + return false; } + return true; } /// Returns the list of visible paints (ie. paints for which at least one mapping is visible). @@ -329,8 +357,20 @@ bool MappingManager::reorderLayers(const QVector& layerIds) seen.insert(id); ordered.append(layer); } - layerVector.swap(ordered); - updateLayerDepths(); + + // A group without layers keeps its place at the top level of the stack. + QVector> emptyGroups; + for (int i = 0; i < _stack.size(); i++) + if (!_stack.at(i).group.isNull() && _stack.at(i).layers.isEmpty()) + emptyGroups.append({ i, _stack.at(i) }); + + // Each other group takes the place of its topmost layer; its layers keep their new order. + QVector stack = _gatherGroups(ordered, [](const Layer::ptr& layer) { return layer->getGroup(); }); + for (const QPair& empty : std::as_const(emptyGroups)) + stack.insert(qMin(empty.first, int(stack.size())), empty.second); + + _stack.swap(stack); + _flattenStack(true); return true; } @@ -351,10 +391,14 @@ void MappingManager::updateLayerDepths() void MappingManager::clearAll() { + for (const Layer::ptr& layer : std::as_const(layerVector)) + layer->_groupAssigner = nullptr; sourceVector.clear(); layerVector.clear(); sourceMap.clear(); layerMap.clear(); + _stack.clear(); + groupMap.clear(); _outputResolution = QSize(); _links->clear(); _cues->clear(); @@ -366,6 +410,8 @@ Element::ptr MappingManager::linkTargetElement(const LinkTarget& target) const { if (target.element == LinkTarget::SourceElement) return sourceMap.value(target.id); + if (target.element == LinkTarget::GroupElement) + return groupMap.value(target.id); return layerMap.value(target.id); } @@ -393,6 +439,234 @@ QList MappingManager::takeEffectLinks(LinkTarget::ElementKind element, uid return taken; } +QVector MappingManager::getGroups() const +{ + QVector groups; + for (const StackEntry& entry : _stack) + if (!entry.group.isNull()) + groups.append(entry.group); + return groups; +} + +Group::ptr MappingManager::getGroupByName(const QString& name) const +{ + for (const Group::ptr& group : getGroups()) + if (group->getName() == name) + return group; + return Group::ptr(); +} + +QVector MappingManager::getGroupsByNameRegExp(const QString& namePattern) const +{ + QVector matched; + const QRegularExpression regExp(QRegularExpression::wildcardToRegularExpression(namePattern)); + for (const Group::ptr& group : getGroups()) + if (regExp.match(group->getName()).hasMatch()) + matched.append(group); + return matched; +} + +QVector MappingManager::getGroupLayers(uid groupId) const +{ + const int index = _stackIndexOfGroup(groupId); + return index < 0 ? QVector() : _stack.at(index).layers; +} + +int MappingManager::getGroupDepth(uid groupId) const +{ + const int index = _stackIndexOfGroup(groupId); + return index < 0 ? -1 : _layersAbove(index); +} + +uid MappingManager::addGroup(Group::ptr group, int stackIndex) +{ + if (group.isNull() || groupMap.contains(group->getId())) + { + qWarning() << "A group that is null or already in the project is not added"; + return NULL_UID; + } + groupMap.insert(group->getId(), group); + _stack.insert(qBound(0, stackIndex, int(_stack.size())), StackEntry { group, {} }); + emit stackChanged(); + return group->getId(); +} + +bool MappingManager::removeGroup(uid groupId) +{ + const int index = _stackIndexOfGroup(groupId); + if (index < 0) + return false; + + // Its layers take its place, in their order, out of any group. + const StackEntry entry = _stack.takeAt(index); + for (int i = 0; i < entry.layers.size(); i++) + _stack.insert(index + i, StackEntry { Group::ptr(), { entry.layers.at(i) } }); + groupMap.remove(groupId); + _flattenStack(false); + for (const Layer::ptr& layer : entry.layers) + layer->_setGroup(Group::ptr()); + emit stackChanged(); + return true; +} + +bool MappingManager::setLayerGroup(uid layerId, uid groupId, int index) +{ + const Layer::ptr layer = layerMap.value(layerId); + if (layer.isNull()) + { + qWarning() << "No layer" << layerId << "to put in a group"; + return false; + } + const Group::ptr group = groupMap.value(groupId); + if (groupId != NULL_UID && group.isNull()) + { + qWarning() << "No group" << groupId << "to put the layer" << layerId << "in"; + return false; + } + if (layer->getGroup() == group) + return true; + + const Group::ptr former = layer->getGroup(); + _takeFromStack(layer); + if (group.isNull()) + { + // Out of its group: just above it, so that it does not move far. + _stack.insert(_stackIndexOfGroup(former->getId()), StackEntry { Group::ptr(), { layer } }); + } + else + { + QVector& layers = _stack[_stackIndexOfGroup(groupId)].layers; + const int at = (index < 0) ? int(layers.size()) : qMin(index, int(layers.size())); + layers.insert(at, layer); + } + _flattenStack(true); + layer->_setGroup(group); + emit stackChanged(); + return true; +} + +void MappingManager::arrangeGroups(const QVector>& groups, + const QHash& layerGroups) +{ + groupMap.clear(); + for (const QPair& group : groups) + groupMap.insert(group.first->getId(), group.first); + + // Each group takes the place of its topmost layer. + const QMap known = groupMap; + _stack = _gatherGroups(layerVector, [&known, &layerGroups](const Layer::ptr& layer) { + return known.value(layerGroups.value(layer->getId(), NULL_UID)); + }); + + // A group without layers goes below the layers above it, after the groups without layers + // placed there before it. + for (const QPair& group : groups) + { + if (_stackIndexOfGroup(group.first->getId()) >= 0) + continue; + int at = 0; + while (at < _stack.size()) + { + const int above = _layersAbove(at); + const bool emptyGroup = !_stack.at(at).group.isNull() && _stack.at(at).layers.isEmpty(); + if (above > group.second || (above == group.second && !emptyGroup)) + break; + at++; + } + _stack.insert(at, StackEntry { group.first, {} }); + } + + _flattenStack(false); + for (const StackEntry& entry : std::as_const(_stack)) + for (const Layer::ptr& layer : entry.layers) + layer->_setGroup(entry.group); + emit stackChanged(); +} + +QVector MappingManager::_gatherGroups( + const QVector& layers, const std::function& groupOf) +{ + QVector stack; + QHash groupEntries; + for (const Layer::ptr& layer : layers) + { + const Group::ptr group = groupOf(layer); + if (group.isNull()) + stack.append(StackEntry { Group::ptr(), { layer } }); + else if (groupEntries.contains(group->getId())) + stack[groupEntries.value(group->getId())].layers.append(layer); + else + { + groupEntries.insert(group->getId(), int(stack.size())); + stack.append(StackEntry { group, { layer } }); + } + } + return stack; +} + +void MappingManager::_flattenStack(bool renumberDepths) +{ + layerVector.clear(); + for (const StackEntry& entry : std::as_const(_stack)) + layerVector.append(entry.layers); + if (renumberDepths) + updateLayerDepths(); +} + +int MappingManager::_stackIndexOfLayer(const Layer::ptr& layer) const +{ + for (int i = 0; i < _stack.size(); i++) + if (_stack.at(i).layers.contains(layer)) + return i; + return -1; +} + +int MappingManager::_stackIndexOfGroup(uid groupId) const +{ + for (int i = 0; i < _stack.size(); i++) + if (!_stack.at(i).group.isNull() && _stack.at(i).group->getId() == groupId) + return i; + return -1; +} + +int MappingManager::_stackIndexOfRow(int row) const +{ + int above = 0; + for (int i = 0; i < _stack.size(); i++) + { + above += int(_stack.at(i).layers.size()); + if (row < above) + return i; + } + return int(_stack.size()); +} + +int MappingManager::_layersAbove(int stackIndex) const +{ + int above = 0; + for (int i = 0; i < stackIndex && i < _stack.size(); i++) + above += int(_stack.at(i).layers.size()); + return above; +} + +int MappingManager::_takeFromStack(const Layer::ptr& layer) +{ + const int index = _stackIndexOfLayer(layer); + if (index < 0) + return -1; + if (_stack.at(index).group.isNull()) + _stack.removeAt(index); + else + _stack[index].layers.removeOne(layer); + return index; +} + +void MappingManager::_attachLayer(const Layer::ptr& layer) +{ + const uid layerId = layer->getId(); + layer->_groupAssigner = [this, layerId](uid groupId) { return setLayerGroup(layerId, groupId); }; +} + void MappingManager::setOutputResolution(const QSize& resolution) { _outputResolution = isValidOutputResolution(resolution) ? resolution : QSize(); diff --git a/src/core/MappingManager.h b/src/core/MappingManager.h index 851444d0..2e6609f5 100644 --- a/src/core/MappingManager.h +++ b/src/core/MappingManager.h @@ -24,13 +24,17 @@ #define MAPPINGMANAGER_H_ #include +#include #include +#include +#include #include #include #include #include #include "Source.h" +#include "Group.h" #include "Layer.h" #include "Link.h" #include "MediaCues.h" @@ -48,10 +52,27 @@ class MappingManager : public QObject /// Constructs an empty project. MappingManager(); + /** + * One place at the top level of the stack of layers: a layer that is in no group, or a + * group and its layers. The layers of a group follow one another in the stack. + */ + struct StackEntry { + /// The group, or a null pointer for a layer in no group. + Group::ptr group; + /// The layers, from the top: one when group is null; none or more for a group. + QVector layers; + }; + signals: /// Reports the old and new rows after a layer changes position in the project. void layerMoved(uid id, int from, int to); + /** + * Emitted when a group was added or removed, or a layer put in a group or taken out of it: + * the order of the layers may have changed with it. + */ + void stackChanged(); + private: // Model elements. /// Container for all sources. @@ -60,12 +81,18 @@ class MappingManager : public QObject /// Maps from uids to sources. QMap sourceMap; - /// Container for all mappings (ordered from bottom layer to top layer). + /// All the layers, from the top of the stack (row 0) to the bottom: _stack, flattened. QVector layerVector; /// Maps from uids to mappings. QMap layerMap; + /// The top level of the stack, from the top: the order of the layers and of the groups. + QVector _stack; + + /// Maps from uids to groups. + QMap groupMap; + /// Size of the output frame, in output coordinates (invalid if not set). QSize _outputResolution; @@ -210,7 +237,7 @@ class MappingManager : public QObject /** * Returns the i-th mapping in the vector. Good for iterating over all mappings. Vector is - * ordered from bottom (deepest) to top (shallowest) layer. + * ordered from the top of the stack (row 0) to the bottom. */ Layer::ptr getLayer(int i) const { return layerVector[i]; } @@ -235,18 +262,117 @@ class MappingManager : public QObject /// Update mapping depths after a move. void updateLayerDepths(); - /// Returns the ordered list of visible mappings, using both the "visible" and "solo" properties. + /** + * Returns the layers shown, from the top. While a layer, or the group of a layer, is in + * solo, only those layers are shown; otherwise the layers whose eye and the eye of whose + * group are open. + */ QVector getVisibleLayers() const; - /// Returns true iff the mapping is visible. + /// Returns true iff the layer is shown (see getVisibleLayers()). bool layerIsVisible(Layer::ptr mapping) const; + /// Returns true when the layer is in solo, or its group. + static bool layerIsSolo(const Layer::ptr& layer); + + /// Returns true when the eye of the layer and that of its group are open. + static bool layerEyeIsOpen(const Layer::ptr& layer); + + // ---- Groups ---- + + /// Returns the number of places at the top level of the stack. + int nStackEntries() const { return _stack.size(); } + + /// Returns the i-th place at the top level of the stack, from the top. + const StackEntry& stackEntry(int i) const { return _stack.at(i); } + + /// Returns the number of groups. + int nGroups() const { return groupMap.size(); } + + /// Returns the groups, from the top of the stack. + QVector getGroups() const; + + /// Returns the group with this id, or a null pointer. + Group::ptr getGroupById(uid id) const { return groupMap.value(id); } + + /// Returns the first group, from the top, with this name, or a null pointer. + Group::ptr getGroupByName(const QString& name) const; + + /// Returns the groups whose name matches a wildcard pattern, from the top. + QVector getGroupsByNameRegExp(const QString& namePattern) const; + + /// Returns the layers of a group, from the top; none for an unknown group. + QVector getGroupLayers(uid groupId) const; + + /// Returns the number of layers above a group in the stack, or -1 for an unknown group. + int getGroupDepth(uid groupId) const; + + /** + * Adds a group, without layers, at a place of the top level of the stack (0 is the top), + * kept within the stack. Returns its id, or NULL_UID when it is null or already there. + */ + uid addGroup(Group::ptr group, int stackIndex = 0); + + /// Removes a group: its layers stay where they are, out of any group. Returns false for + /// an unknown group. + bool removeGroup(uid groupId); + + /** + * Puts a layer in a group, at index among its layers (0 is the top, -1 the bottom), or + * takes it out of its group when groupId is NULL_UID: it then goes just above the group. + * The layer moves next to the other layers of the group. Returns false, with a warning, + * for an unknown layer or group; true without change when the layer is already there. + */ + bool setLayerGroup(uid layerId, uid groupId, int index = 0); + + /** + * Gives the layers read from a project file their groups (see ProjectReader): each group + * takes the place of its topmost layer, and its layers follow it in the order they were + * read. A group without layers goes where depth says: the number of layers above it. + * Groups and layers already in groups are dropped first. + * + * @param groups the groups, from the top, each with its depth + * @param layerGroups the id of the group of each layer in one, by id of the layer + */ + void arrangeGroups(const QVector>& groups, const QHash& layerGroups); + /// Returns the list of visible sources (ie. paints for which at least one mapping is visible). QVector getVisibleSources() const; void clearAll(); private: + /// Returns the top level of a stack of these layers, from the top: each group, as groupOf + /// gives it, takes the place of its topmost layer, and its layers follow, in their order. + static QVector _gatherGroups(const QVector& layers, + const std::function& groupOf); + + /** + * Fills layerVector from _stack. With renumberDepths, gives each layer its row as depth: + * after a move. Adding a layer, as reading a project does, keeps the depths, so that a + * project opened and saved keeps its bytes. + */ + void _flattenStack(bool renumberDepths); + + /// Returns the place in _stack of the entry of a layer, or -1. + int _stackIndexOfLayer(const Layer::ptr& layer) const; + + /// Returns the place in _stack of the entry of a group, or -1. + int _stackIndexOfGroup(uid groupId) const; + + /// Returns the place in _stack of the entry holding the layer at this row of the stack. + int _stackIndexOfRow(int row) const; + + /// Returns the number of layers above the entry at this place of _stack. + int _layersAbove(int stackIndex) const; + + /// Takes a layer out of the stack: its entry, or its place in its group. Returns the place + /// of its entry in _stack, or -1. + int _takeFromStack(const Layer::ptr& layer); + + /// Gives a layer the function that puts it in a group, through this manager. + void _attachLayer(const Layer::ptr& layer); + template QSharedPointer _getElementByName(const QVector >& vector, QString name) { diff --git a/src/core/ProjectLabels.cpp b/src/core/ProjectLabels.cpp index 9e4760e5..5553b3e7 100644 --- a/src/core/ProjectLabels.cpp +++ b/src/core/ProjectLabels.cpp @@ -33,6 +33,7 @@ const char* ProjectLabels::TYPE = "type"; const char* ProjectLabels::CLASS_NAME = "className"; const char* ProjectLabels::SOURCES = "sources"; const char* ProjectLabels::LAYERS = "layers"; +const char* ProjectLabels::GROUPS = "groups"; const char* ProjectLabels::OUTPUT_RESOLUTION = "output_resolution"; const char* ProjectLabels::FORMER_OUTPUT_RESOLUTION = "outputResolution"; const char* ProjectLabels::LINKS = "links"; @@ -52,6 +53,11 @@ const char* ProjectLabels::NAME = "name"; const char* ProjectLabels::SOURCE = "source"; const char* ProjectLabels::DESTINATION = "destination"; +const char* ProjectLabels::GROUP_ID = "group_id"; +const char* ProjectLabels::VISIBLE = "visible"; +const char* ProjectLabels::SOLO = "solo"; +const char* ProjectLabels::LOCKED = "locked"; +const char* ProjectLabels::DEPTH = "depth"; const char* ProjectLabels::SOURCE_ID = "source_id"; const char* ProjectLabels::FORMER_SOURCE_ID = "sourceId"; const char* ProjectLabels::N_COLUMNS = "n_columns"; @@ -119,8 +125,8 @@ int ProjectLabels::compareFormatVersions(const QString& a, const QString& b) bool ProjectLabels::isProjectKey(const QString& key) { - for (const char* known : { VERSION, OUTPUT_RESOLUTION, FORMER_OUTPUT_RESOLUTION, SOURCES, LAYERS, LINKS, - MEDIA }) + for (const char* known : { VERSION, OUTPUT_RESOLUTION, FORMER_OUTPUT_RESOLUTION, SOURCES, LAYERS, GROUPS, + LINKS, MEDIA }) { if (key == QLatin1String(known)) return true; diff --git a/src/core/ProjectLabels.h b/src/core/ProjectLabels.h index 02a01ec9..5bec49c0 100644 --- a/src/core/ProjectLabels.h +++ b/src/core/ProjectLabels.h @@ -56,6 +56,8 @@ class ProjectLabels { static const char* CLASS_NAME; static const char* SOURCES; static const char* LAYERS; + /// The groups of layers of the project, written only when there is one. + static const char* GROUPS; /// The resolution of the output of the project. static const char* OUTPUT_RESOLUTION; /// Its key in the project files of 1.0.0-beta.1 and of the development versions of @@ -98,6 +100,17 @@ class ProjectLabels { // same setting in the project files of MapMap 1.0.0-beta.1 and earlier: it is declared // with SettingInfo::formerId(), read when the id is absent, and never written. + /// The group of a layer, written only when the layer is in a group. + static const char* GROUP_ID; + /// Whether a layer, or a group, is shown. + static const char* VISIBLE; + /// Whether an element is protected from changes made with the mouse. + static const char* LOCKED; + /// Whether a layer, or a group, is in solo. + static const char* SOLO; + /// The place of a layer, or of a group, in the stack: the number of layers above it. + static const char* DEPTH; + /// The source shown by a layer. static const char* SOURCE_ID; static const char* FORMER_SOURCE_ID; diff --git a/src/core/ProjectReader.cpp b/src/core/ProjectReader.cpp index 88b00550..092552ec 100644 --- a/src/core/ProjectReader.cpp +++ b/src/core/ProjectReader.cpp @@ -173,9 +173,11 @@ void ProjectReader::parseProject(const QJsonObject& project) // Parse layers (formerly mappings). QVector allLayers; + QHash layerGroups; for (qsizetype i = 0; i < layers.size(); ++i) { - Layer::ptr layer = parseLayer(layers.at(i).toObject()); + const QJsonObject layerObj = layers.at(i).toObject(); + Layer::ptr layer = parseLayer(layerObj); if (layer.isNull()) { _skippedEntries << QStringLiteral("layers[%1]").arg(i); @@ -184,6 +186,9 @@ void ProjectReader::parseProject(const QJsonObject& project) else { allLayers.push_back(layer); + const int groupId = layerObj.value(ProjectLabels::GROUP_ID).toInt(NULL_UID); + if (groupId != NULL_UID) + layerGroups.insert(layer->getId(), groupId); } } @@ -194,6 +199,8 @@ void ProjectReader::parseProject(const QJsonObject& project) manager.addLayer(*it); } + parseGroups(project, layerGroups); + parseMedia(project); parseLinks(project); @@ -207,6 +214,47 @@ void ProjectReader::parseProject(const QJsonObject& project) manager.setUnknownProjectKeys(unknown); } +void ProjectReader::parseGroups(const QJsonObject& project, const QHash& layerGroups) +{ + QVector> groups; + if (project.contains(ProjectLabels::GROUPS)) + { + const QJsonValue value = project.value(ProjectLabels::GROUPS); + if (!value.isArray()) + { + _skippedEntries << QString::fromLatin1(ProjectLabels::GROUPS); + qWarning() << "Skipping the groups, which are not an array"; + } + const QJsonArray entries = value.toArray(); + for (qsizetype i = 0; i < entries.size(); ++i) + { + const QJsonObject obj = entries.at(i).toObject(); + const int id = obj.value(ProjectLabels::ID).toInt(NULL_UID); + if (!entries.at(i).isObject() || id <= NULL_UID || Group::getUidAllocator().exists(id)) + { + _skippedEntries << QStringLiteral("groups[%1]").arg(i); + qWarning() << "Skipping" << _skippedEntries.last(); + continue; + } + Group::ptr group(new Group(id)); + group->read(obj); + groups.append({ group, obj.value(ProjectLabels::DEPTH).toInt(0) }); + } + } + + // A layer that names a group the project does not have stays out of any group. + QSet known; + for (const QPair& group : std::as_const(groups)) + known.insert(group.first->getId()); + for (auto it = layerGroups.constBegin(); it != layerGroups.constEnd(); ++it) + if (!known.contains(it.value())) + qWarning() << "Layer" << it.key() << "names the group" << it.value() + << "that the project does not have: it is put in no group"; + + if (!groups.isEmpty()) + _manager.arrangeGroups(groups, layerGroups); +} + void ProjectReader::parseMedia(const QJsonObject& project) { QStringList skipped; diff --git a/src/core/ProjectReader.h b/src/core/ProjectReader.h index ec468b9e..355c6328 100644 --- a/src/core/ProjectReader.h +++ b/src/core/ProjectReader.h @@ -80,6 +80,11 @@ class ProjectReader /// Reads the cues of the video files, once the sources are read. A cue whose file was /// located elsewhere while reading the sources follows it. void parseMedia(const QJsonObject& project); + /// Reads the groups, once the layers are added, and puts in them the layers that name + /// them (layerGroups: the group of each layer, by id of the layer). A group that cannot + /// be read is skipped; a layer naming a group the project does not have stays in none, + /// with a warning. + void parseGroups(const QJsonObject& project, const QHash& layerGroups); /// Gives a colour layer of an earlier version, read as a texture layer, the input shape /// that covers the image of its colour generator. A quad becomes a mesh of four corners. diff --git a/src/core/ProjectTypes.cpp b/src/core/ProjectTypes.cpp index b99a8d01..c46f1985 100644 --- a/src/core/ProjectTypes.cpp +++ b/src/core/ProjectTypes.cpp @@ -33,6 +33,7 @@ const QString ProjectTypes::VIDEO = QStringLiteral("mapmap:video"); const QString ProjectTypes::CAMERA = QStringLiteral("mapmap:camera"); const QString ProjectTypes::SYPHON = QStringLiteral("mapmap:syphon"); const QString ProjectTypes::TEXTURE_LAYER = QStringLiteral("mapmap:texture-layer"); +const QString ProjectTypes::GROUP = QStringLiteral("mapmap:group"); const QString ProjectTypes::QUAD = QStringLiteral("mapmap:quad"); const QString ProjectTypes::MESH = QStringLiteral("mapmap:mesh"); const QString ProjectTypes::TRIANGLE = QStringLiteral("mapmap:triangle"); diff --git a/src/core/ProjectTypes.h b/src/core/ProjectTypes.h index 4b67d4b9..1d02941b 100644 --- a/src/core/ProjectTypes.h +++ b/src/core/ProjectTypes.h @@ -49,6 +49,8 @@ class ProjectTypes { static const QString SYPHON; /// A layer that shows a source on a shape. static const QString TEXTURE_LAYER; + /// A group of layers. + static const QString GROUP; /// A shape of four vertices. static const QString QUAD; /// A shape of a grid of vertices. diff --git a/src/core/ProjectWriter.cpp b/src/core/ProjectWriter.cpp index 14693a1f..b97daa2b 100644 --- a/src/core/ProjectWriter.cpp +++ b/src/core/ProjectWriter.cpp @@ -84,6 +84,22 @@ bool ProjectWriter::writeFile(QIODevice* device, const QString& projectDirectory } project[ProjectLabels::LAYERS] = layers; + // Groups, from the top, only when there are some, so that a project without groups is + // written as before. Each layer names its group; a group says how many layers are above + // it, for a group without layers. + if (manager.nGroups() > 0) + { + QJsonArray groups; + for (const Group::ptr& group : manager.getGroups()) + { + QJsonObject groupObj; + group->write(groupObj); + groupObj[ProjectLabels::DEPTH] = manager.getGroupDepth(group->getId()); + groups.append(groupObj); + } + project[ProjectLabels::GROUPS] = groups; + } + // Links, only when there are some, so that a project without links is written as before. // A link to an element deleted since it was made is left out of the file. The links this // version could not use when the project was read follow, as they were read. diff --git a/src/core/core.pri b/src/core/core.pri index 7078e68d..66034d34 100644 --- a/src/core/core.pri +++ b/src/core/core.pri @@ -19,6 +19,7 @@ HEADERS += $$PWD/Commands.h \ $$PWD/Generators.h \ $$PWD/GamepadEvent.h \ $$PWD/IntermediateImage.h \ + $$PWD/Group.h \ $$PWD/Layer.h \ $$PWD/Link.h \ $$PWD/MappingManager.h \ @@ -63,6 +64,7 @@ SOURCES += $$PWD/Commands.cpp \ $$PWD/Generators.cpp \ $$PWD/GamepadEvent.cpp \ $$PWD/IntermediateImage.cpp \ + $$PWD/Group.cpp \ $$PWD/Layer.cpp \ $$PWD/Link.cpp \ $$PWD/MoveLayerCommand.cpp \ diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index dd1c2e12..1e341780 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -161,6 +161,7 @@ MainWindow::MainWindow() mappingManager = new MappingManager; connect(mappingManager, &MappingManager::layerMoved, this, &MainWindow::showLayerMove); + connect(mappingManager, &MappingManager::stackChanged, this, &MainWindow::showStackChange); // A cue reached or placed, by a key, a pad, OSC or the inspector, is said in the status bar: // during a show, one sees which cue went. @@ -2246,10 +2247,8 @@ void MainWindow::setLayerLocked(uid layerId, bool locked) Layer::ptr layer = mappingManager->getLayerById(layerId); if (!layer.isNull()) { - // Lock position of mapping + // Locks the shapes too, unless the group keeps them locked. layer->setLocked(locked); - // Lock shape too. - layer->getShape()->setLocked(locked); // Change list item check state QModelIndex index = layerListModel->getIndexFromId(layerId); layerListModel->setData(index, locked, LayerTreeModel::LockedRole); @@ -4436,6 +4435,40 @@ void MainWindow::showLayerMove(uid layerId, int from, int idx) updatePlayingState(); } +void MainWindow::showStackChange() +{ + // The rows follow the stack: a layer put in a group joins the other layers of the group. + for (int i = 0; i < mappingManager->nLayers(); i++) + { + const int row = layerListModel->getItemRowFromId(mappingManager->getLayer(i)->getId()); + if (row >= 0 && row != i) + layerListModel->moveItem(row, i); + } + + for (const Group::ptr& group : mappingManager->getGroups()) + connect(group.data(), &Group::settingChanged, this, &MainWindow::groupPropertyChanged, Qt::UniqueConnection); + + updateCanvases(); + updatePlayingState(); + windowModified(); + + // A link to a group added or removed comes back to life or stops acting. + refreshLinksWindow(); +} + +void MainWindow::groupPropertyChanged(uid id, QString propertyName, QVariant value) +{ + Q_UNUSED(id); + Q_UNUSED(value); + // The layers of the group may have to start or stop playing. + if (propertyName == ProjectLabels::VISIBLE || propertyName == ProjectLabels::SOLO) + updatePlayingState(); + if (propertyName == ProjectLabels::NAME) + refreshLinksWindow(); + updateCanvases(); + windowModified(); +} + void MainWindow::removeSourceItem(uid sourceId) { Source::ptr source = mappingManager->getSourceById(sourceId); diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 004feabf..7fc07ee6 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -149,6 +149,11 @@ private slots: void handleLayerItemChanged(const QModelIndex &index); /// Mirrors a project move in the tree, selection and canvases. void showLayerMove(uid layerId, int from, int to); + /// Follows a change of the groups of the project: puts the rows of the layers in the order + /// of the stack, follows the settings of each group, and redraws. + void showStackChange(); + /// Redraws when a group is shown, hidden, isolated, locked or faded. + void groupPropertyChanged(uid id, QString propertyName, QVariant value); /// Shows the triangle and the indentation of the list of layers only when a row is under a layer. void updateLayerTreeDecoration(); /// Shows the triangle and the indentation of the list of sources only when a source has an effect. diff --git a/tests/TestLinks.cpp b/tests/TestLinks.cpp index 5f789353..fde6bd8a 100644 --- a/tests/TestLinks.cpp +++ b/tests/TestLinks.cpp @@ -264,6 +264,15 @@ void TestLinks::findsTargetsInProject() QCOMPARE(manager.linkTargetSetting(sourceOpacity), color->settings()->find("opacity")); QVERIFY(!manager.linkTargetSetting(LinkTarget::of(LinkTarget::LayerElement, layer->getId(), "nothing"))); + // The eye of a group, written and read back as "group". + Group::ptr group(new Group); + manager.addGroup(group); + const LinkTarget groupEye = LinkTarget::of(LinkTarget::GroupElement, group->getId(), "visible"); + QCOMPARE(manager.linkTargetSetting(groupEye), group->settings()->find("visible")); + QCOMPARE(groupEye.toJson().value("element").toString(), QString("group")); + QCOMPARE(LinkTarget::fromJson(groupEye.toJson()), groupEye); + QCOMPARE(groupEye.describe(), QString("group %1, visible").arg(group->getId())); + // A deleted layer makes its links do nothing; they are kept in the table. manager.links().add(keyLink("M", layer->getId(), "visible")); manager.removeLayer(layer->getId()); diff --git a/tests/TestMappingManager.cpp b/tests/TestMappingManager.cpp index aafe1c5c..ad445e8b 100644 --- a/tests/TestMappingManager.cpp +++ b/tests/TestMappingManager.cpp @@ -15,6 +15,7 @@ #include "Generators.h" #include "MappingManager.h" #include "Commands.h" +#include #include #include "Shapes.h" @@ -273,3 +274,203 @@ void TestMappingManager::outputResolutionPresets() QVERIFY(!MappingManager::isValidOutputResolution(QSize(0, 1080))); QVERIFY(!MappingManager::isValidOutputResolution(QSize(MM::OUTPUT_RESOLUTION_MAX + 1, 1080))); } + +namespace { + +/// Returns the names of the layers of a project, from the top. +QStringList layerNames(const MappingManager& manager) +{ + QStringList names; + for (int i = 0; i < manager.nLayers(); i++) + names << manager.getLayer(i)->getName(); + return names; +} + +/// A project of four layers, from the top: a, b, c, d. +struct FourLayers +{ + MappingManager manager; + Source::ptr red = makeColor("red"); + Layer::ptr a, b, c, d; + + FourLayers() + { + manager.addSource(red); + d = makeColorLayer(red, "d"); + c = makeColorLayer(red, "c"); + b = makeColorLayer(red, "b"); + a = makeColorLayer(red, "a"); + for (const Layer::ptr& layer : { d, c, b, a }) + manager.addLayer(layer); + } +}; + +} // namespace + +void TestMappingManager::groupKeepsItsLayersTogether() +{ + FourLayers p; + Group::ptr group(new Group); + group->setName("Camion"); + QSignalSpy stackChanged(&p.manager, &MappingManager::stackChanged); + + // A new group goes on top, without layers. + QCOMPARE(p.manager.addGroup(group), group->getId()); + QCOMPARE(p.manager.nGroups(), 1); + QCOMPARE(p.manager.nStackEntries(), 5); + QCOMPARE(p.manager.getGroupDepth(group->getId()), 0); + QCOMPARE(p.manager.getGroupByName("Camion"), group); + + // Putting b, then d, in it brings them together, at the place of the group; d goes on top. + QVERIFY(p.manager.setLayerGroup(p.b->getId(), group->getId())); + QVERIFY(p.manager.setLayerGroup(p.d->getId(), group->getId())); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "b", "a", "c" })); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.d, p.b })); + QCOMPARE(p.d->getGroup(), group); + QCOMPARE(p.a->getGroupId(), NULL_UID); + QCOMPARE(stackChanged.count(), 3); + // The depths follow the rows. + QCOMPARE(p.a->getDepth(), 2); + + // The setting "group_id" goes through the manager, and refuses an unknown group. + QVERIFY(p.a->settings()->find("group_id")->setFromArguments({ int(group->getId()) })); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "d", "b", "c" })); + QVERIFY(!p.c->settings()->find("group_id")->setFromArguments({ 999 })); + QCOMPARE(p.c->getGroupId(), NULL_UID); + + // Taken out of its group, a layer goes just above it. + QVERIFY(p.manager.setLayerGroup(p.b->getId(), NULL_UID)); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "a", "d", "c" })); + QCOMPARE(p.b->getGroupId(), NULL_UID); + + // Removing the group leaves its layers where they are. + QVERIFY(p.manager.removeGroup(group->getId())); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "a", "d", "c" })); + QCOMPARE(p.a->getGroup(), Group::ptr()); + QCOMPARE(p.manager.nGroups(), 0); + QVERIFY(!p.manager.removeGroup(group->getId())); +} + +void TestMappingManager::moveKeepsGroupsTogether() +{ + FourLayers p; + Group::ptr group(new Group); + p.manager.addGroup(group, 2); + p.manager.setLayerGroup(p.b->getId(), group->getId(), -1); + p.manager.setLayerGroup(p.c->getId(), group->getId(), -1); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + + // A layer of a group moves among its layers only. + QVERIFY(p.manager.moveLayer(p.b->getId(), 3)); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "c", "b", "d" })); + QVERIFY(p.manager.moveLayer(p.b->getId(), 0)); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + QCOMPARE(p.b->getGroup(), group); + + // A layer in no group goes over the whole group, never into it. + QSignalSpy moved(&p.manager, &MappingManager::layerMoved); + QVERIFY(p.manager.moveLayer(p.a->getId(), 1)); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "c", "a", "d" })); + QCOMPARE(moved.count(), 1); + QCOMPARE(moved.at(0).at(2).toInt(), 2); + QVERIFY(p.manager.moveLayer(p.d->getId(), 2)); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "c", "d", "a" })); + QVERIFY(p.manager.moveLayer(p.d->getId(), 1)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "b", "c", "a" })); + QCOMPARE(p.a->getGroupId(), NULL_UID); + + // A new order gathers the layers of a group at the place of the first one. + QVERIFY(p.manager.reorderLayers({ p.b->getId(), p.a->getId(), p.c->getId(), p.d->getId() })); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "c", "a", "d" })); + + // Deleted, a layer keeps its group; added back, it goes on top of it. + QVERIFY(p.manager.removeLayer(p.c->getId())); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.b })); + p.manager.addLayer(p.c); + QCOMPARE(layerNames(p.manager), QStringList({ "c", "b", "a", "d" })); + QCOMPARE(p.c->getGroup(), group); +} + +void TestMappingManager::groupStateAddsToItsLayers() +{ + FourLayers p; + Group::ptr group(new Group); + p.manager.addGroup(group); + p.manager.setLayerGroup(p.a->getId(), group->getId()); + p.manager.setLayerGroup(p.b->getId(), group->getId()); + p.b->setVisible(false); + + // The eye of the group hides its layers; opened again, each layer has its own state back. + group->setVisible(false); + QVERIFY(!p.manager.layerIsVisible(p.a)); + QVERIFY(!p.manager.layerIsVisible(p.b)); + QVERIFY(p.manager.layerIsVisible(p.c)); + QCOMPARE(p.manager.getVisibleLayers(), QVector({ p.c, p.d })); + group->setVisible(true); + QVERIFY(p.manager.layerIsVisible(p.a)); + QVERIFY(!p.manager.layerIsVisible(p.b)); + + // A group in solo: only its layers are shown, as if each were in solo. b, put in the group + // after a, went on top of it. + group->setSolo(true); + QVERIFY(p.manager.layerIsVisible(p.a)); + QVERIFY(p.manager.layerIsVisible(p.b)); + QVERIFY(!p.manager.layerIsVisible(p.c)); + QCOMPARE(p.manager.getVisibleLayers(), QVector({ p.b, p.a })); + group->setSolo(false); + + // An empty group in solo isolates nothing. + Group::ptr empty(new Group); + p.manager.addGroup(empty); + empty->setSolo(true); + QVERIFY(p.manager.layerIsVisible(p.c)); + + // The opacities multiply: 50 % times 50 % is 25 %. + group->setOpacity(0.5f); + p.a->setOpacity(0.5f); + QCOMPARE(p.a->getComputedOpacity(), 0.25f); + QCOMPARE(p.c->getComputedOpacity(), 1.0f); + + // The lock of the group locks the shapes of its layers, whatever their own lock. + group->setLocked(true); + QVERIFY(p.a->isLockedByGroup()); + QVERIFY(!p.a->isLocked()); + QVERIFY(p.a->getShape()->isLocked()); + QVERIFY(p.a->getInputShape()->isLocked()); + p.a->setLocked(false); + QVERIFY(p.a->getShape()->isLocked()); + group->setLocked(false); + QVERIFY(!p.a->getShape()->isLocked()); + p.b->setLocked(true); + QVERIFY(p.b->getShape()->isLocked()); + + // Out of a locked group, a layer has its own lock back. + group->setLocked(true); + p.manager.setLayerGroup(p.a->getId(), NULL_UID); + QVERIFY(!p.a->getShape()->isLocked()); + QVERIFY(!p.a->isLockedByGroup()); +} + +void TestMappingManager::arrangesGroupsReadFromFile() +{ + FourLayers p; + Group::ptr top(new Group), empty(new Group), bottom(new Group); + // The layers name their groups; a group without layers says how many layers are above it. + p.manager.arrangeGroups({ { top, 0 }, { empty, 2 }, { bottom, 2 } }, + { { p.a->getId(), top->getId() }, { p.d->getId(), bottom->getId() }, + { p.b->getId(), 999 } }); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + QCOMPARE(p.manager.getGroups(), QVector({ top, empty, bottom })); + QCOMPARE(p.manager.nStackEntries(), 5); + // Two layers above the empty group: a, then b; c is below it. + QCOMPARE(p.manager.stackEntry(2).group, empty); + QCOMPARE(p.manager.getGroupDepth(empty->getId()), 2); + QCOMPARE(p.manager.getGroupDepth(bottom->getId()), 3); + QCOMPARE(p.b->getGroup(), Group::ptr()); + QCOMPARE(p.d->getGroup(), bottom); + + // Cleared, the project has no group any more. + p.manager.clearAll(); + QCOMPARE(p.manager.nGroups(), 0); + QCOMPARE(p.manager.nStackEntries(), 0); +} diff --git a/tests/TestMappingManager.h b/tests/TestMappingManager.h index c43ab7a6..c6fcbed8 100644 --- a/tests/TestMappingManager.h +++ b/tests/TestMappingManager.h @@ -36,6 +36,10 @@ private slots: void unknownIdsReturnNull(); void clearAll(); void outputResolutionPresets(); + void groupKeepsItsLayersTogether(); + void moveKeepsGroupsTogether(); + void groupStateAddsToItsLayers(); + void arrangesGroupsReadFromFile(); }; #endif /* TEST_MAPPING_MANAGER_H_ */ diff --git a/tests/TestProjectRoundTrip.cpp b/tests/TestProjectRoundTrip.cpp index 320b7089..38fa4ae8 100644 --- a/tests/TestProjectRoundTrip.cpp +++ b/tests/TestProjectRoundTrip.cpp @@ -1149,6 +1149,80 @@ void TestProjectRoundTrip::projectWithoutEffectsWritesNone() QVERIFY(manager.getSource(0)->settings()->findNode("effect") == nullptr); } +void TestProjectRoundTrip::keepsGroups() +{ + // Two groups with layers and one without, between them (see roundTrip() for the bytes). + MappingManager manager; + QVERIFY(readProject(manager, readFixture(fixturesDir() + "/groups.mmp"))); + QCOMPARE(manager.nGroups(), 3); + QCOMPARE(manager.nStackEntries(), 4); + + const Group::ptr camion = manager.getGroupByName("Camion"); + const Group::ptr empty = manager.getGroupByName("Vide"); + const Group::ptr arbre = manager.getGroupByName("Arbre"); + QVERIFY(camion && empty && arbre); + QCOMPARE(manager.getGroups(), QVector({ camion, empty, arbre })); + QCOMPARE(manager.getGroupLayers(camion->getId()).size(), 2); + QCOMPARE(manager.getGroupLayers(empty->getId()).size(), 0); + QCOMPARE(manager.getGroupDepth(empty->getId()), 3); + QCOMPARE(manager.getLayer(2)->getName(), QString("Maison")); + QCOMPARE(manager.getLayer(2)->getGroupId(), NULL_UID); + + // Their states, and what they do to their layers. + QVERIFY(!camion->isVisible()); + QVERIFY(!manager.layerIsVisible(manager.getLayerByName("Camion cabine"))); + QVERIFY(arbre->isLocked()); + QCOMPARE(arbre->getOpacity(), 0.5f); + const Layer::ptr tronc = manager.getLayerByName("Arbre tronc"); + QCOMPARE(tronc->getComputedOpacity(), 0.25f); + QVERIFY(tronc->getShape()->isLocked()); + QVERIFY(!tronc->isLocked()); + + // The groups are written from the top, each with the number of layers above it. + const QJsonObject written = parse(writeProject(manager)); + const QJsonArray groups = written["groups"].toArray(); + QCOMPARE(groups.size(), 3); + QCOMPARE(groups.at(0).toObject()["type"].toString(), QString("mapmap:group")); + QCOMPARE(groups.at(1).toObject()["depth"].toInt(), 3); + QCOMPARE(written["layers"].toArray().at(0).toObject()["group_id"].toInt(), int(camion->getId())); + QVERIFY(!written["layers"].toArray().at(2).toObject().contains("group_id")); +} + +void TestProjectRoundTrip::skipsUnreadableGroups() +{ + // A group without an id, twice the same id, a layer naming a group that does not exist: + // skipped with a warning, the layers kept, in no group. + const QByteArray project = R"({ + "version": "1.0.0-beta.2", + "sources": [ { "type": "mapmap:color-generator", "id": 1, "color": "#ff0000" } ], + "layers": [ + { "type": "mapmap:texture-layer", "id": 1, "source_id": 1, "group_id": 4, + "destination": { "type": "mapmap:triangle", "vertices": [[0, 0], [10, 0], [5, 8]] }, + "source": { "type": "mapmap:triangle", "vertices": [[0, 0], [10, 0], [5, 8]] } }, + { "type": "mapmap:texture-layer", "id": 2, "source_id": 1, "group_id": 9, + "destination": { "type": "mapmap:triangle", "vertices": [[0, 0], [10, 0], [5, 8]] }, + "source": { "type": "mapmap:triangle", "vertices": [[0, 0], [10, 0], [5, 8]] } } + ], + "groups": [ { "name": "no id" }, { "id": 4, "name": "Façade" }, { "id": 4, "name": "again" }, 3 ] + })"; + MappingManager manager; + QVERIFY(readProject(manager, project)); + QCOMPARE(manager.nLayers(), 2); + QCOMPARE(manager.nGroups(), 1); + QCOMPARE(manager.getLayerById(1)->getGroup()->getName(), QString("Façade")); + QCOMPARE(manager.getLayerById(2)->getGroupId(), NULL_UID); +} + +void TestProjectRoundTrip::projectWithoutGroupsWritesNone() +{ + const QByteArray original = readFixture(fixturesDir() + "/quad-color.mmp"); + MappingManager manager; + QVERIFY(readProject(manager, original)); + const QJsonObject written = parse(writeProject(manager)); + QVERIFY(!written.contains("groups")); + QVERIFY(!written["layers"].toArray().at(0).toObject().contains("group_id")); +} + void TestProjectRoundTrip::keepsCuesWithRelativePaths() { // The cues of a file are written under "media", with a path relative to the project, like diff --git a/tests/TestProjectRoundTrip.h b/tests/TestProjectRoundTrip.h index f23079f7..b32fa0b9 100644 --- a/tests/TestProjectRoundTrip.h +++ b/tests/TestProjectRoundTrip.h @@ -61,6 +61,9 @@ private slots: void keepsVideoMuteOnly(); void keepsEffects(); void projectWithoutEffectsWritesNone(); + void keepsGroups(); + void skipsUnreadableGroups(); + void projectWithoutGroupsWritesNone(); private: QString _previousDir; diff --git a/tests/TestSettings.cpp b/tests/TestSettings.cpp index 9ab16b4b..3a78b3d8 100644 --- a/tests/TestSettings.cpp +++ b/tests/TestSettings.cpp @@ -767,7 +767,7 @@ void TestSettings::elementsDeclareTheirSettings() TextureLayer layer(red, makeMesh(), makeMesh()); // The output shape comes before the input shape. const QStringList layerPaths = element - + QStringList { "solo", "visible", "depth", "has_input_shape", "source_id", "output/locked" } + + QStringList { "solo", "visible", "depth", "has_input_shape", "source_id", "group_id", "output/locked" } + numberedPaths("output/vertices", MESH_SIZE * MESH_SIZE) + QStringList { "output/n_columns", "output/n_rows", "input/locked" } + numberedPaths("input/vertices", MESH_SIZE * MESH_SIZE) diff --git a/tests/fixtures/groups.mmp b/tests/fixtures/groups.mmp new file mode 100644 index 00000000..87ae99b5 --- /dev/null +++ b/tests/fixtures/groups.mmp @@ -0,0 +1,241 @@ +{ + "groups": [ + { + "depth": 0, + "id": 2, + "locked": false, + "name": "Camion", + "opacity": 1, + "solo": false, + "type": "mapmap:group", + "visible": false + }, + { + "depth": 3, + "id": 7, + "locked": false, + "name": "Vide", + "opacity": 1, + "solo": false, + "type": "mapmap:group", + "visible": true + }, + { + "depth": 3, + "id": 5, + "locked": true, + "name": "Arbre", + "opacity": 0.5, + "solo": false, + "type": "mapmap:group", + "visible": true + } + ], + "layers": [ + { + "className": "TextureLayer", + "depth": 0, + "destination": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 120, + 0 + ], + [ + 220, + 0 + ], + [ + 170, + 80 + ] + ] + }, + "group_id": 2, + "id": 1, + "locked": false, + "name": "Camion cabine", + "opacity": 1, + "solo": false, + "source": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 0, + 256 + ], + [ + 256, + 256 + ], + [ + 128, + 0 + ] + ] + }, + "source_id": 3, + "visible": true + }, + { + "className": "TextureLayer", + "depth": 1, + "destination": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 480, + 0 + ], + [ + 580, + 0 + ], + [ + 530, + 80 + ] + ] + }, + "group_id": 2, + "id": 4, + "locked": false, + "name": "Camion roue", + "opacity": 1, + "solo": false, + "source": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 0, + 256 + ], + [ + 256, + 256 + ], + [ + 128, + 0 + ] + ] + }, + "source_id": 3, + "visible": false + }, + { + "className": "TextureLayer", + "depth": 2, + "destination": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 720, + 0 + ], + [ + 820, + 0 + ], + [ + 770, + 80 + ] + ] + }, + "id": 6, + "locked": false, + "name": "Maison", + "opacity": 1, + "solo": false, + "source": { + "className": "Triangle", + "locked": false, + "vertices": [ + [ + 0, + 256 + ], + [ + 256, + 256 + ], + [ + 128, + 0 + ] + ] + }, + "source_id": 3, + "visible": true + }, + { + "className": "TextureLayer", + "depth": 3, + "destination": { + "className": "Triangle", + "locked": true, + "vertices": [ + [ + 960, + 0 + ], + [ + 1060, + 0 + ], + [ + 1010, + 80 + ] + ] + }, + "group_id": 5, + "id": 8, + "locked": false, + "name": "Arbre tronc", + "opacity": 0.5, + "solo": false, + "source": { + "className": "Triangle", + "locked": true, + "vertices": [ + [ + 0, + 256 + ], + [ + 256, + 256 + ], + [ + 128, + 0 + ] + ] + }, + "source_id": 3, + "visible": true + } + ], + "sources": [ + { + "className": "ColorGenerator", + "color": "#55aa7f", + "id": 3, + "locked": false, + "name": "green", + "opacity": 1, + "resolution": 256, + "x": 0, + "y": 0 + } + ], + "version": "1.0.0-beta.2" +} diff --git a/tests/tests.pro b/tests/tests.pro index 14d7328a..bdaa7830 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -94,6 +94,7 @@ HEADERS += \ $$CORE/VideoPlayerImpl.h \ $$CORE/YuvTexture.h \ $$CORE/CameraImpl.h \ + $$CORE/Group.h \ $$CORE/Layer.h \ $$CORE/Link.h \ $$CORE/MappingManager.h \ @@ -190,6 +191,7 @@ SOURCES += \ $$CORE/VideoPlayerImpl.cpp \ $$CORE/YuvTexture.cpp \ $$CORE/CameraImpl.cpp \ + $$CORE/Group.cpp \ $$CORE/Layer.cpp \ $$CORE/Link.cpp \ $$CORE/MoveLayerCommand.cpp \ From 16f1b966b09837fc4afe9f98d1f86ac9e76926b4 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 15:56:36 -0500 Subject: [PATCH 02/12] Control groups of layers by OSC and MCP OSC sets the name, eye, solo, lock and opacity of a group, by id or by a name pattern (/mapmap/group/visible), or any of its settings by path (/mapmap/group//). /mapmap/layer/group puts a layer in a group, or takes it out with 0. MCP lists, creates and deletes groups (list_groups, create_group, delete_group, with or without their layers); set_property and list_settings take the kind "group"; list_layers gives the group of each layer, and get_state the number of groups. --- docs/informations/osc.md | 21 +++++++-- src/control/McpServer.cpp | 86 +++++++++++++++++++++++++++++++++--- src/control/McpServer.h | 2 + src/control/OscAction.cpp | 33 ++++++++++++-- src/control/OscAction.h | 8 +++- src/control/OscInterface.cpp | 31 +++++++++++++ src/gui/MainWindow.cpp | 17 +++++++ src/gui/MainWindow.h | 12 +++++ tests/TestOsc.cpp | 66 +++++++++++++++++++++++++++ tests/TestOsc.h | 2 + 10 files changed, 263 insertions(+), 15 deletions(-) diff --git a/docs/informations/osc.md b/docs/informations/osc.md index 51b15576..c57703fd 100644 --- a/docs/informations/osc.md +++ b/docs/informations/osc.md @@ -3,7 +3,7 @@ General rules: - Every address starts with `/mapmap`. - - The first argument selects the source or the layer: its id (an integer), or a pattern matched against names (a string). + - The first argument selects the source, the layer or the group: its id (an integer), or a pattern matched against names (a string). - On/off properties such as *solo*, *visible* and *locked* are set using 1 (on) or 0 (off). - *opacity* and *volume* are real values in the [0, 1] range. - "mapping" is still accepted in place of "layer". The former "paint" addresses are now "source" addresses. @@ -66,11 +66,26 @@ Move a vertex of the input shape: `/mapmap/layer/vertex/source/xy ,iiff ` (or `/vertical`) Rotate the shape by a quarter or half turn: `/mapmap/layer/rotate/cw ,i ` (or `/ccw`, `/180`) Flip the image inside the shape, without moving it: `/mapmap/layer/flip/source/horizontal ,i ` (or `/vertical`) -Rotate the image inside the shape, without moving it: `/mapmap/layer/rotate/source/cw ,i ` (or `/ccw`, `/180`) +Rotate the image inside the shape, without moving it: `/mapmap/layer/rotate/source/cw ,i ` (or `/ccw`, `/180`) +Put a layer in a group, or take it out of its group with 0: `/mapmap/layer/group ,ii ` + +A layer put in a group moves next to the other layers of the group, on top of them. Taken out of its group, it goes just above the group. Moving a layer of a group with the MCP tool `move_layer` keeps it in its group; a layer in no group moves over a whole group, never into it. + +## Groups + +A group gathers layers that follow one another in the stack. Its state adds to that of each of its layers: a layer is shown when its eye and that of its group are open; a group in solo puts its layers in solo; a locked group locks its layers; the opacity of a layer is multiplied by that of its group. + +Rename: `/mapmap/group/name ,is ` +Adjust opacity: `/mapmap/group/opacity ,if ` +Set visibility status: `/mapmap/group/visible ,ii ` +Set solo status: `/mapmap/group/solo ,ii ` +Set lock status: `/mapmap/group/locked ,ii ` + +Groups are created and deleted with the MCP tools `create_group` and `delete_group`; `list_groups` gives their ids and the ids of their layers. ## Settings by path -Every setting of a source or a layer can also be written at an address that follows its path: `/mapmap/source//` or `/mapmap/layer//`. The source or the layer is given by its id, in the address; every argument is part of the value. A value outside the range of the setting is clamped to it: an opacity of 1.5 becomes 1. A value of the wrong type, such as an invalid color, or a text other than true, false, 1 or 0 for a boolean, is refused with a warning. A boolean takes any finite number: 0 is false, any other number true, like the 127 that controllers send for "on"; a number that is not finite is refused. +Every setting of a source, a layer or a group can also be written at an address that follows its path: `/mapmap/source//`, `/mapmap/layer//` or `/mapmap/group//`. The element is given by its id, in the address; every argument is part of the value. A value outside the range of the setting is clamped to it: an opacity of 1.5 becomes 1. A value of the wrong type, such as an invalid color, or a text other than true, false, 1 or 0 for a boolean, is refused with a warning. A boolean takes any finite number: 0 is false, any other number true, like the 127 that controllers send for "on"; a number that is not finite is refused. Adjust the opacity of layer 3: `/mapmap/layer/3/opacity ,f 0.5` Adjust the color of source 2: `/mapmap/source/2/color ,s "#ff0000"` diff --git a/src/control/McpServer.cpp b/src/control/McpServer.cpp index 0dc1db8e..5b3a263d 100644 --- a/src/control/McpServer.cpp +++ b/src/control/McpServer.cpp @@ -384,6 +384,32 @@ QJsonObject McpServer::handleToolsCall(const QJsonObject& params) return jsonResult(layerSummary(id)); } + // ---- Groups ---- + if (name == "list_groups") + { + QJsonArray groups; + for (const Group::ptr& group : mm.getGroups()) + groups.append(groupSummary(group->getId())); + QJsonObject result; + result["groups"] = groups; + return jsonResult(result); + } + if (name == "create_group") + { + const uid groupId = _mainWindow->createGroup(args.value("name").toString()); + if (groupId == NULL_UID) return textResult("Failed to create the group.", true); + return jsonResult(groupSummary(groupId)); + } + if (name == "delete_group") + { + const int id = static_cast(args.value("id").toInteger(0)); + if (mm.getGroupById(id).isNull()) return textResult(QString("No group with id %1.").arg(id), true); + const bool keepLayers = args.value("keep_layers").toBool(false); + _mainWindow->deleteGroup(id, !keepLayers); + return textResult(keepLayers ? QString("Deleted group %1; its layers stay.").arg(id) + : QString("Deleted group %1 and its layers.").arg(id)); + } + if (name == "set_vertices") { const int id = static_cast(args.value("id").toInteger(0)); @@ -418,7 +444,8 @@ QJsonObject McpServer::handleToolsCall(const QJsonObject& params) QSharedPointer element; if (kind == "source") element = mm.getSourceById(id); else if (kind == "layer") element = mm.getLayerById(id); - else return textResult("'kind' must be \"source\" or \"layer\".", true); + else if (kind == "group") element = mm.getGroupById(id); + else return textResult("'kind' must be \"source\", \"layer\" or \"group\".", true); if (element.isNull()) return textResult(QString("No %1 with id %2.").arg(kind).arg(id), true); if (property.isEmpty()) return textResult("Missing required argument 'property'.", true); @@ -499,6 +526,7 @@ QJsonObject McpServer::handleToolsCall(const QJsonObject& params) state["fps"] = _mainWindow->framesPerSecond(); state["nSources"] = mm.nSources(); state["nLayers"] = mm.nLayers(); + state["nGroups"] = mm.nGroups(); state["currentSourceId"] = static_cast(_mainWindow->getCurrentSourceId()); state["currentLayerId"] = static_cast(_mainWindow->getCurrentLayerId()); return jsonResult(state); @@ -541,7 +569,8 @@ QJsonObject McpServer::handleToolsCall(const QJsonObject& params) QSharedPointer element; if (kind == "source") element = mm.getSourceById(id); else if (kind == "layer") element = mm.getLayerById(id); - else return textResult("'kind' must be \"source\" or \"layer\".", true); + else if (kind == "group") element = mm.getGroupById(id); + else return textResult("'kind' must be \"source\", \"layer\" or \"group\".", true); if (element.isNull()) return textResult(QString("No %1 with id %2.").arg(kind).arg(id), true); QJsonObject result; result["settings"] = describeSettings(element->settings()); @@ -588,10 +617,32 @@ QJsonObject McpServer::layerSummary(int layerId) const o["locked"] = layer->isLocked(); o["depth"] = layer->getDepth(); o["opacity"] = layer->getOpacity(); + // 0 when the layer is in no group. + o[ProjectLabels::GROUP_ID] = static_cast(layer->getGroupId()); o[ProjectLabels::SOURCE_ID] = layer->getSource().isNull() ? -1 : static_cast(layer->getSourceId()); return o; } +QJsonObject McpServer::groupSummary(int groupId) const +{ + QJsonObject o; + const MappingManager& mm = _mainWindow->getMappingManager(); + Group::ptr group = mm.getGroupById(groupId); + if (group.isNull()) return o; + o["id"] = static_cast(group->getId()); + o["name"] = group->getName(); + o["visible"] = group->isVisible(); + o["solo"] = group->isSolo(); + o["locked"] = group->isLocked(); + o["opacity"] = group->getOpacity(); + o["depth"] = mm.getGroupDepth(group->getId()); + QJsonArray layers; + for (const Layer::ptr& layer : mm.getGroupLayers(group->getId())) + layers.append(static_cast(layer->getId())); + o["layer_ids"] = layers; + return o; +} + QJsonObject McpServer::elementProperties(Element* element) const { if (!element) @@ -720,6 +771,26 @@ QJsonArray McpServer::toolDefinitions() const }, QJsonArray{"id", "value"})); + tools.append(tool("list_groups", + "List the groups of layers, from the top of the stack: id, name, visible, solo, locked, " + "opacity, depth (the number of layers above the group) and layer_ids (its layers, from the top). " + "A layer is shown when its eye and that of its group are open; it is locked when it or its group " + "is; its opacity is multiplied by that of its group; a group in solo puts its layers in solo.", + QJsonObject(), QJsonArray())); + tools.append(tool("create_group", + "Create a group without layers, on top of the stack. Put a layer in it with set_property: kind " + "\"layer\", property \"group_id\", value the id of the group (0 takes it out of its group). " + "Its other settings are set with set_property, kind \"group\". Returns the group.", + QJsonObject{{"name", prop("string", "Name of the group; \"Group \" when absent.")}}, + QJsonArray())); + tools.append(tool("delete_group", + "Delete a group and its layers, or only the group, its layers staying where they are.", + QJsonObject{ + {"id", prop("integer", "Group id.")}, + {"keep_layers", prop("boolean", "Keep the layers of the group, out of any group, if true.")} + }, + QJsonArray{"id"})); + tools.append(tool("set_vertices", "Set the output vertices of a layer's shape.", QJsonObject{ @@ -728,9 +799,9 @@ QJsonArray McpServer::toolDefinitions() const }, QJsonArray{"id", "vertices"})); tools.append(tool("set_property", - "Set a setting of a source or layer (e.g. name, opacity, color, uri, or a path such as output/vertices/0; see list_settings). A point or a range takes an array of two numbers.", + "Set a setting of a source, a layer or a group (e.g. name, opacity, color, uri, group_id, or a path such as output/vertices/0; see list_settings). A point or a range takes an array of two numbers.", QJsonObject{ - {"kind", prop("string", "\"source\" or \"layer\".")}, + {"kind", prop("string", "\"source\", \"layer\" or \"group\".")}, {"id", prop("integer", "Element id.")}, {"property", prop("string", "Setting name or path.")}, {"value", QJsonObject{{"description", "Property value (type depends on the property)."}}} @@ -767,14 +838,15 @@ QJsonArray McpServer::toolDefinitions() const "type (as in project files, such as \"mapmap:video\" or \"mapmap.shaders:checker.fs\") and " "category (\"video\", \"image\", \"live\", \"generator\" or \"unknown\").", QJsonObject(), QJsonArray())); - tools.append(tool("list_layers", "List all layers with their summary fields.", + tools.append(tool("list_layers", "List all layers, from the top, with their summary fields, among which " + "group_id: the id of its group, or 0.", QJsonObject(), QJsonArray())); tools.append(tool("list_settings", - "List every setting of a source or layer with its path, type, value, bounds, unit and options. " + "List every setting of a source, a layer or a group with its path, type, value, bounds, unit and options. " "Values and bounds are in the stored range, which set_property takes: an opacity goes from 0 to 1. " "displayScale, when given, is the factor to the number shown to the user (100 for a percentage).", QJsonObject{ - {"kind", prop("string", "\"source\" or \"layer\".")}, + {"kind", prop("string", "\"source\", \"layer\" or \"group\".")}, {"id", prop("integer", "Element id.")} }, QJsonArray{"kind", "id"})); diff --git a/src/control/McpServer.h b/src/control/McpServer.h index f4f45fec..177d68b0 100644 --- a/src/control/McpServer.h +++ b/src/control/McpServer.h @@ -90,6 +90,8 @@ class McpServer : public QObject { // --- Read-back helpers --- QJsonObject sourceSummary(int sourceId) const; QJsonObject layerSummary(int layerId) const; + /// Returns the fields of a group, with the ids of its layers, from the top. + QJsonObject groupSummary(int groupId) const; // Current values of the settings directly under the root of an Element (Source or Layer), // and its effects. QJsonObject elementProperties(class Element* element) const; diff --git a/src/control/OscAction.cpp b/src/control/OscAction.cpp index dbfeece4..c3ff7ced 100644 --- a/src/control/OscAction.cpp +++ b/src/control/OscAction.cpp @@ -243,13 +243,14 @@ OscAction parseLayer(const QStringList& sub, const QVariantList& args) return a; } - // Otherwise a single token is treated as a property name to set. + // Otherwise a single token is treated as a property name to set. "group" is the setting + // "group_id": /mapmap/layer/group . if (sub.size() == 1) { if (args.size() < 2) return invalid("layer property '" + sub.at(0) + "' is missing its value"); a.type = OscAction::LayerProperty; - a.property = sub.at(0); + a.property = (sub.at(0) == QLatin1String("group")) ? QStringLiteral("group_id") : sub.at(0); a.value = args.at(1); return a; } @@ -257,6 +258,25 @@ OscAction parseLayer(const QStringList& sub, const QVariantList& args) return invalid("unknown layer subcommand: " + sub.join('/')); } +OscAction parseGroup(const QStringList& sub, const QVariantList& args) +{ + if (args.isEmpty()) + return invalid("group command is missing its target (id or name)"); + + if (sub.size() != 1) + return invalid("unknown group subcommand: " + sub.join('/')); + + if (args.size() < 2) + return invalid("group property '" + sub.at(0) + "' is missing its value"); + + OscAction a; + parseSelector(a, args.at(0)); + a.type = OscAction::GroupProperty; + a.property = sub.at(0); + a.value = args.at(1); + return a; +} + // Parses /mapmap/output/: sub is what follows "output". OscAction parseOutput(const QStringList& sub, const QVariantList& args) { @@ -337,7 +357,7 @@ OscAction parseOscAction(const QString& address, const QVariantList& args) if (head == QLatin1String("quit")) { OscAction a; a.type = OscAction::Quit; return a; } } - // A segment of digits after "source" or "layer" is an id: the path form. + // A segment of digits after "source", "layer" or "group" is an id: the path form. const bool isPathForm = (rest.size() >= 2 && isDigitsOnly(rest.at(1))); if (head == QLatin1String("source")) @@ -355,6 +375,13 @@ OscAction parseOscAction(const QString& address, const QVariantList& args) return parseLayer(rest.mid(1), args); } + if (head == QLatin1String("group")) + { + if (isPathForm) + return parseSettingPath(OscAction::GroupSetting, head, rest.mid(1), args); + return parseGroup(rest.mid(1), args); + } + if (head == QLatin1String("output")) return parseOutput(rest.mid(1), args); diff --git a/src/control/OscAction.h b/src/control/OscAction.h index f6b06325..a8e1fb20 100644 --- a/src/control/OscAction.h +++ b/src/control/OscAction.h @@ -66,6 +66,10 @@ struct OscAction { LayerFlip, ///< Flip the output shape, or the image inside it (input shape). LayerRotate, ///< Turn the output shape, or the image inside it (input shape). + // Per-group commands. Target resolved via the selector below. + GroupProperty, ///< Set a property of a group, named after the selector. + GroupSetting, ///< Write a setting of a group, addressed by its path. + // The output window. OutputSetMode, ///< Hide the output, show it in a window, or cover a screen. OutputSetScreen, ///< Choose the output screen, by name or by number from 1 (selector). @@ -89,7 +93,7 @@ struct OscAction { Type type = Invalid; - // --- Target selection (for Source*/Layer* commands). --- + // --- Target selection (for Source*/Layer*/Group* commands). --- // The target is selected either by integer id, or by a name pattern // (wildcard) matching one or several elements. bool selectByName = false; @@ -134,7 +138,7 @@ struct OscAction { * "/mapmap/layer/opacity" . The path form names the element * by id in the address and follows the path of one of its settings: * "/mapmap/layer/3/output/vertices/5" ; it is recognized when the - * segment after "layer" or "source" is made of digits only, and every argument + * segment after "layer", "source" or "group" is made of digits only, and every argument * is part of the value. * * @param address the full OSC path, e.g. "/mapmap/layer/vertex/source/xy". diff --git a/src/control/OscInterface.cpp b/src/control/OscInterface.cpp index 842c477d..47512dc5 100644 --- a/src/control/OscInterface.cpp +++ b/src/control/OscInterface.cpp @@ -71,6 +71,19 @@ QVector resolveLayers(MappingManager& manager, const OscAction& acti return layers; } +/// Resolves the group(s) targeted by an action (by id or by name pattern). +QVector resolveGroups(MappingManager& manager, const OscAction& action) +{ + if (action.selectByName) + return manager.getGroupsByNameRegExp(action.name); + + QVector groups; + Group::ptr group = manager.getGroupById(action.id); + if (!group.isNull()) + groups.push_back(group); + return groups; +} + /// Writes OSC arguments to the setting of an element at path. Returns false, with a /// warning, when the path names no setting (a group, a list or nothing) or when the /// setting refuses the arguments. @@ -395,6 +408,24 @@ bool OscInterface::applyAction(MainWindow &main_window, const OscAction& action) } return handled; } + + // Per-group commands: the settings of the group, as those of a layer. + case OscAction::GroupProperty: + case OscAction::GroupSetting: + { + bool handled = false; + const QVector groups = resolveGroups(manager, action); + if (groups.isEmpty()) + qWarning() << "OSC: no group" << (action.selectByName ? action.name : QString::number(action.id)); + for (const Group::ptr& group : groups) + { + if (action.type == OscAction::GroupProperty) + handled |= writeSetting(*group, action.property, { action.value }); + else + handled |= writeSetting(*group, action.path, action.values); + } + return handled; + } } return false; diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 1e341780..5ccea5ba 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -4469,6 +4469,23 @@ void MainWindow::groupPropertyChanged(uid id, QString propertyName, QVariant val windowModified(); } +uid MainWindow::createGroup(const QString& name) +{ + Group::ptr group(new Group); + group->setName(name.isEmpty() ? tr("Group %1").arg(group->getId()) : name); + return mappingManager->addGroup(group); +} + +bool MainWindow::deleteGroup(uid groupId, bool withLayers) +{ + if (mappingManager->getGroupById(groupId).isNull()) + return false; + if (withLayers) + for (const Layer::ptr& layer : mappingManager->getGroupLayers(groupId)) + deleteLayer(layer->getId()); + return mappingManager->removeGroup(groupId); +} + void MainWindow::removeSourceItem(uid sourceId) { Source::ptr source = mappingManager->getSourceById(sourceId); diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 7fc07ee6..773879b3 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -325,6 +325,18 @@ public slots: /// Moves an existing layer to a valid row and reports success. bool moveLayer(uid mappingId, int idx); + /** + * Adds a group without layers on top of the stack, named name, or "Group " when name + * is empty. Returns its id. + */ + uid createGroup(const QString& name = QString()); + + /** + * Deletes a group. With its layers, they are deleted too; otherwise they stay where they + * are, out of any group. Returns false for an unknown group. + */ + bool deleteGroup(uid groupId, bool withLayers); + /// Clone/duplicate a mapping void duplicateLayer(uid mappingId); diff --git a/tests/TestOsc.cpp b/tests/TestOsc.cpp index f9a182ee..fb3fe05e 100644 --- a/tests/TestOsc.cpp +++ b/tests/TestOsc.cpp @@ -17,6 +17,8 @@ #include "Source.h" #include "Effect.h" #include "Generators.h" +#include "MappingManager.h" +#include "Shapes.h" using namespace mmp; @@ -396,3 +398,67 @@ void TestOsc::rejectsMalformedOutput() QCOMPARE(typeOf(parseOscAction("/mapmap/output", {})), int(OscAction::Invalid)); QCOMPARE(typeOf(parseOscAction("/mapmap/output/mode/screen", { QString("screen") })), int(OscAction::Invalid)); } + +void TestOsc::parsesGroupCommands() +{ + // The settings of a group, by its id or by a name pattern, as those of a layer. + const OscAction visible = parseOscAction("/mapmap/group/visible", { 4, false }); + QCOMPARE(typeOf(visible), int(OscAction::GroupProperty)); + QCOMPARE(visible.id, 4); + QCOMPARE(visible.property, QString("visible")); + QCOMPARE(visible.value.toBool(), false); + + const OscAction byName = parseOscAction("/mapmap/group/opacity", { QString("Jouet*"), 0.5 }); + QCOMPARE(typeOf(byName), int(OscAction::GroupProperty)); + QVERIFY(byName.selectByName); + QCOMPARE(byName.name, QString("Jouet*")); + + // The path form. + const OscAction path = parseOscAction("/mapmap/group/4/solo", { 1 }); + QCOMPARE(typeOf(path), int(OscAction::GroupSetting)); + QCOMPARE(path.id, 4); + QCOMPARE(path.path, QString("solo")); + + QCOMPARE(typeOf(parseOscAction("/mapmap/group/visible", { 4 })), int(OscAction::Invalid)); + QCOMPARE(typeOf(parseOscAction("/mapmap/group/visible", {})), int(OscAction::Invalid)); + QCOMPARE(typeOf(parseOscAction("/mapmap/group/eye/open", { 4, 1 })), int(OscAction::Invalid)); + + // "group" puts a layer in a group: the setting "group_id". + const OscAction layerGroup = parseOscAction("/mapmap/layer/group", { 3, 4 }); + QCOMPARE(typeOf(layerGroup), int(OscAction::LayerProperty)); + QCOMPARE(layerGroup.property, QString("group_id")); + QCOMPARE(layerGroup.value.toInt(), 4); +} + +void TestOsc::writesGroupOfLayer() +{ + // Written by OSC, the group of a layer moves it next to the other layers of the group. + MappingManager manager; + Source::ptr color(new ColorGenerator(QColor(Qt::red))); + manager.addSource(color); + QVector layers; + for (int i = 0; i < 3; i++) + { + MShape::ptr shape(new Triangle(QPointF(0, 0), QPointF(10, 0), QPointF(5, 8))); + layers.append(Layer::ptr(new TextureLayer(color, shape, MShape::ptr(shape->clone())))); + manager.addLayer(layers.last()); + } + Group::ptr group(new Group); + manager.addGroup(group); + manager.setLayerGroup(layers.at(2)->getId(), group->getId()); + + const OscAction a = parseOscAction("/mapmap/layer/group", { int(layers.at(0)->getId()), int(group->getId()) }); + QVERIFY(writeRemoteSetting(*layers.at(0), layers.at(0)->settings()->find(a.property), { a.value }, false)); + QCOMPARE(manager.getGroupLayers(group->getId()), QVector({ layers.at(0), layers.at(2) })); + + // A group the project does not have is refused; 0 takes the layer out of its group. + QVERIFY(!writeRemoteSetting(*layers.at(1), layers.at(1)->settings()->find("group_id"), { 42 }, false)); + QCOMPARE(layers.at(1)->getGroupId(), NULL_UID); + QVERIFY(writeRemoteSetting(*layers.at(0), layers.at(0)->settings()->find("group_id"), { 0 }, false)); + QCOMPARE(layers.at(0)->getGroupId(), NULL_UID); + + // The path form reaches the settings of the group. + const OscAction hide = parseOscAction(QString("/mapmap/group/%1/visible").arg(group->getId()), { 0 }); + QVERIFY(writeRemoteSetting(*group, group->settings()->find(hide.path), hide.values, false)); + QVERIFY(!manager.layerIsVisible(layers.at(2))); +} diff --git a/tests/TestOsc.h b/tests/TestOsc.h index 1f587b1b..883c1c95 100644 --- a/tests/TestOsc.h +++ b/tests/TestOsc.h @@ -52,6 +52,8 @@ private slots: void parsesOutputScreen(); void parsesOutputWindow(); void rejectsMalformedOutput(); + void parsesGroupCommands(); + void writesGroupOfLayer(); }; #endif /* TEST_OSC_H_ */ From 73049498783c566403ddb3e30ff3184dc27a9cd2 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:01:19 -0500 Subject: [PATCH 03/12] Move a layer in the stack when its depth is written /mapmap/layer/depth, the path form /mapmap/layer//depth and the MCP tool set_property changed the number of a layer but left it at its place in the stack, and the next move put the numbers back. Written once the layer is in a project, the depth now moves the layer to that row, from 0 at the top; past the bottom, to the bottom. A layer of a group stays in its group, as with move_layer. Read from a project file, the depth is only kept, so that the file keeps its bytes. --- docs/informations/osc.md | 4 ++-- src/core/Layer.cpp | 13 ++++++++++--- src/core/Layer.h | 6 +++++- src/core/MappingManager.cpp | 8 ++++++++ tests/TestMappingManager.cpp | 35 +++++++++++++++++++++++++++++++++++ tests/TestMappingManager.h | 1 + 6 files changed, 61 insertions(+), 6 deletions(-) diff --git a/docs/informations/osc.md b/docs/informations/osc.md index c57703fd..7880dcff 100644 --- a/docs/informations/osc.md +++ b/docs/informations/osc.md @@ -58,7 +58,7 @@ Adjust opacity: `/mapmap/layer/opacity ,if ` Set visibility status: `/mapmap/layer/visible ,ii ` Set solo status: `/mapmap/layer/solo ,ii ` Set lock status: `/mapmap/layer/locked ,ii ` -Adjust depth (layer order): `/mapmap/layer/depth ,ii ` +Move to a row of the stack, from 0 at the top (past the bottom, to the bottom): `/mapmap/layer/depth ,ii ` Move so the centre of the layer is at (x, y): `/mapmap/layer/move/xy ,iff ` Move by (dx, dy): `/mapmap/layer/translate/xy ,iff ` Move a vertex of the output shape: `/mapmap/layer/vertex/xy ,iiff ` @@ -69,7 +69,7 @@ Flip the image inside the shape, without moving it: `/mapmap/layer/flip/source/h Rotate the image inside the shape, without moving it: `/mapmap/layer/rotate/source/cw ,i ` (or `/ccw`, `/180`) Put a layer in a group, or take it out of its group with 0: `/mapmap/layer/group ,ii ` -A layer put in a group moves next to the other layers of the group, on top of them. Taken out of its group, it goes just above the group. Moving a layer of a group with the MCP tool `move_layer` keeps it in its group; a layer in no group moves over a whole group, never into it. +A layer put in a group moves next to the other layers of the group, on top of them. Taken out of its group, it goes just above the group. Moving a layer of a group, by its depth or with the MCP tool `move_layer`, keeps it in its group; a layer in no group moves over a whole group, never into it. ## Groups diff --git a/src/core/Layer.cpp b/src/core/Layer.cpp index 6f7fcef9..f0fd54ab 100644 --- a/src/core/Layer.cpp +++ b/src/core/Layer.cpp @@ -72,13 +72,20 @@ Layer::Layer(Source::ptr source, MShape::ptr shape, MShape::ptr inputShape, uid ->bind([this]() { return QVariant(isVisible()); }, [this](const QVariant& value) { setVisible(value.toBool()); return true; }); - // A new layer goes on top of those created before it. + // A new layer goes on top of those created before it. Written once the layer is in a + // project, the depth moves it in the stack; read from a file, it is only kept. root->addSetting(SettingInfo::integer(ProjectLabels::DEPTH, tr("Depth")) .defaultValue(int(getId())) .hidden() - .description(tr("The position of this layer in the stack of layers."))) + .description(tr("The position of this layer in the stack of layers, from 0 at the top. " + "A layer of a group stays in its group."))) ->bind([this]() { return QVariant(getDepth()); }, - [this](const QVariant& value) { setDepth(value.toInt()); return true; }); + [this](const QVariant& value) { + if (_depthMover) + return _depthMover(value.toInt()); + setDepth(value.toInt()); + return true; + }); root->addSetting(SettingInfo::boolean("has_input_shape", tr("Has input shape")) .readOnly().notStored().hidden() diff --git a/src/core/Layer.h b/src/core/Layer.h index 6110a6e0..15302cff 100644 --- a/src/core/Layer.h +++ b/src/core/Layer.h @@ -86,9 +86,13 @@ class Layer : public Element /// Follows the lock of the group, to lock the shapes with it. QMetaObject::Connection _groupConnection; - /// Asks the MappingManager of the layer to put it in a group (see setGroupAssigner()). + /// Asks the MappingManager of the layer to put it in a group (the setting "group_id"). std::function _groupAssigner; + /// Asks the MappingManager of the layer to move it to a row of the stack (the setting + /// "depth", written by OSC or MCP). Unset while the layer is read from a project file. + std::function _depthMover; + friend class MappingManager; protected: diff --git a/src/core/MappingManager.cpp b/src/core/MappingManager.cpp index 167a7f0d..8ab4eefb 100644 --- a/src/core/MappingManager.cpp +++ b/src/core/MappingManager.cpp @@ -220,6 +220,7 @@ bool MappingManager::removeLayer(uid mappingId) Q_UNUSED(idx); layerMap.remove(mappingId); layer->_groupAssigner = nullptr; + layer->_depthMover = nullptr; _flattenStack(true); return true; @@ -392,7 +393,10 @@ void MappingManager::updateLayerDepths() void MappingManager::clearAll() { for (const Layer::ptr& layer : std::as_const(layerVector)) + { layer->_groupAssigner = nullptr; + layer->_depthMover = nullptr; + } sourceVector.clear(); layerVector.clear(); sourceMap.clear(); @@ -665,6 +669,10 @@ void MappingManager::_attachLayer(const Layer::ptr& layer) { const uid layerId = layer->getId(); layer->_groupAssigner = [this, layerId](uid groupId) { return setLayerGroup(layerId, groupId); }; + // A depth past the bottom of the stack moves the layer to the bottom. + layer->_depthMover = [this, layerId](int depth) { + return moveLayer(layerId, qBound(0, depth, int(layerVector.size()) - 1)); + }; } void MappingManager::setOutputResolution(const QSize& resolution) diff --git a/tests/TestMappingManager.cpp b/tests/TestMappingManager.cpp index ad445e8b..d74cbf6c 100644 --- a/tests/TestMappingManager.cpp +++ b/tests/TestMappingManager.cpp @@ -391,6 +391,41 @@ void TestMappingManager::moveKeepsGroupsTogether() QCOMPARE(p.c->getGroup(), group); } +void TestMappingManager::depthMovesTheLayer() +{ + // The setting "depth", written by OSC or MCP, moves the layer to that row, from 0 at the top. + FourLayers p; + Group::ptr group(new Group); + p.manager.addGroup(group); + QVERIFY(p.manager.setLayerGroup(p.b->getId(), group->getId())); + QVERIFY(p.manager.setLayerGroup(p.c->getId(), group->getId())); + // A new group is on top of the stack: so are the layers put in it. + QCOMPARE(layerNames(p.manager), QStringList({ "c", "b", "a", "d" })); + QSignalSpy moved(&p.manager, &MappingManager::layerMoved); + + QVERIFY(p.d->settings()->find("depth")->setValue(0)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "c", "b", "a" })); + QCOMPARE(p.d->getDepth(), 0); + QCOMPARE(p.a->getDepth(), 3); + QCOMPARE(moved.count(), 1); + + // A layer of a group stays in its group: c goes to its bottom. + QVERIFY(p.c->settings()->find("depth")->setValue(3)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "b", "c", "a" })); + QCOMPARE(p.c->getGroup(), group); + + // Past the bottom, the layer goes to the bottom; a layer in no group passes over a group. + QVERIFY(p.d->settings()->find("depth")->setValue(99)); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "c", "a", "d" })); + QCOMPARE(p.d->getDepth(), 3); + + // A layer that is not in a project only keeps its number. + Layer::ptr alone = makeColorLayer(p.red, "alone"); + QVERIFY(alone->settings()->find("depth")->setValue(5)); + QCOMPARE(alone->getDepth(), 5); + QCOMPARE(p.manager.nLayers(), 4); +} + void TestMappingManager::groupStateAddsToItsLayers() { FourLayers p; diff --git a/tests/TestMappingManager.h b/tests/TestMappingManager.h index c6fcbed8..434d6bae 100644 --- a/tests/TestMappingManager.h +++ b/tests/TestMappingManager.h @@ -38,6 +38,7 @@ private slots: void outputResolutionPresets(); void groupKeepsItsLayersTogether(); void moveKeepsGroupsTogether(); + void depthMovesTheLayer(); void groupStateAddsToItsLayers(); void arrangesGroupsReadFromFile(); }; From 2b132d3aa01b4e9ab43c3193a6f1baf28d594647 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:23:15 -0500 Subject: [PATCH 04/12] Ask to save on quit only when the project changed Quitting pauses playback, and pausing redrew the icon of every source through updateSourceItem(), which marks the project modified. So MapMap asked to save the project at every quit, even right after a save or with nothing changed. Playing and pausing are not saved in the project: their icons are now redrawn by showSourceItem(), which does not mark it. Editing a layer in the list (its name, eye, solo or lock) counted on that side effect to mark the project modified; it now does so itself. Fixes #605. --- src/gui/MainWindow.cpp | 17 +++++++++++------ src/gui/MainWindow.h | 7 +++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 5ccea5ba..ce4e0765 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -440,6 +440,7 @@ void MainWindow::handleLayerItemChanged(const QModelIndex &index) layerListModel->updateModel(); updatePlayingState(); + windowModified(); } void MainWindow::updateLayerTreeDecoration() @@ -4260,10 +4261,15 @@ void MainWindow::addSourceItem(uid sourceId, const QIcon& icon, const QString& n } void MainWindow::updateSourceItem(uid sourceId, const QIcon& icon, const QString& name) { + if (showSourceItem(sourceId, icon, name)) + windowModified(); +} + +bool MainWindow::showSourceItem(uid sourceId, const QIcon& icon, const QString& name) { QTreeWidgetItem* item = getItemFromId(*sourceList, sourceId); if (item == nullptr) { // FIXME there was an assert that seemed to make MapMap crash, here. - return; + return false; } // Update item info. @@ -4272,9 +4278,7 @@ void MainWindow::updateSourceItem(uid sourceId, const QIcon& icon, const QString // Update mapping guis. updateMappers(); - - // Window was modified. - windowModified(); + return true; } void MainWindow::addLayerItem(uid layerId) @@ -5328,11 +5332,12 @@ void MainWindow::updatePlayingState() } } - // Update all source items with correct icon according to playing state. + // Update all source items with correct icon according to playing state. Playing or + // pausing does not change the project: quitting, which pauses, must not ask to save it. for (int i=0; inSources(); i++) { Source::ptr source = mappingManager->getSource(i); - updateSourceItem(source->getId(), getSourceIcon(source), source->getName()); + showSourceItem(source->getId(), getSourceIcon(source), source->getName()); } } diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 773879b3..d96850dc 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -502,6 +502,13 @@ public slots: void removeLayerItem(uid mappingId); void addSourceItem(uid sourceId, const QIcon& icon, const QString& name); void updateSourceItem(uid sourceId, const QIcon& icon, const QString& name); + + /** + * Shows the icon and name of a source in the list, as updateSourceItem() does, without + * marking the project modified: for a change that is not saved, such as playing or pausing. + * Returns false when the list has no item for the source. + */ + bool showSourceItem(uid sourceId, const QIcon& icon, const QString& name); void removeSourceItem(uid sourceId); void renameLayer(uid mappingId, const QString& name); void renameSource(uid sourceId, const QString& name); From c1c626f7ab9ee216ed204eb6aaabf36d11f57457 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:40:17 -0500 Subject: [PATCH 05/12] Show groups of layers in the list of layers Each group is a row with its layers under it. Its eye, solo and lock act on the group, even folded, and can be linked to a key or a pad while learning. Selecting a group shows its page, with its opacity. A folded group shows how many layers it holds, as "Trees (3)", and keeps its fold in the project file ("collapsed"). Selecting a layer of a folded group, as when a project opens, keeps the group folded. --- docs/project-format.md | 2 + src/control/McpServer.cpp | 1 + src/core/Group.cpp | 19 +- src/core/Group.h | 6 + src/core/ProjectLabels.cpp | 1 + src/core/ProjectLabels.h | 2 + src/gui/LayerItemDelegate.cpp | 81 +++++- src/gui/LayerTreeModel.cpp | 439 +++++++++++++++++++++++++++------ src/gui/LayerTreeModel.h | 103 ++++++-- src/gui/MainWindow.cpp | 235 +++++++++++++++--- src/gui/MainWindow.h | 30 ++- tests/TestLayerTree.cpp | 209 ++++++++++++++++ tests/TestLayerTree.h | 7 + tests/TestProjectRoundTrip.cpp | 2 + tests/fixtures/groups.mmp | 1 + 15 files changed, 1012 insertions(+), 126 deletions(-) diff --git a/docs/project-format.md b/docs/project-format.md index 165710bc..c6802df3 100644 --- a/docs/project-format.md +++ b/docs/project-format.md @@ -125,6 +125,7 @@ A project may have a `groups` array at the top of the file: the groups of layers ```json "groups": [ { + "collapsed": false, "depth": 0, "id": 2, "locked": false, @@ -145,6 +146,7 @@ A project may have a `groups` array at the top of the file: the groups of layers - `id` is unique among the groups; groups have ids of their own, as sources and layers. Their settings are reached at `/mapmap/group//` by OSC, with the kind `group` by MCP, and with the element `group` by links. - `visible`, `solo`, `locked` and `opacity` add to those of each of its layers: a layer is shown when its eye and that of its group are open; it is in solo when it or its group is; it is locked when it or its group is, and so are its shapes, whose own `locked` is written so; its opacity is multiplied by that of its group. - `depth` is the number of layers above the group. A group takes the place of its topmost layer: `depth` only places a group without layers. +- `collapsed` says whether the group is folded in the list of layers, its layers out of sight. Without it, the group is unfolded. - A group without layers is kept and written. - Groups do not contain groups. diff --git a/src/control/McpServer.cpp b/src/control/McpServer.cpp index 5b3a263d..fadfb836 100644 --- a/src/control/McpServer.cpp +++ b/src/control/McpServer.cpp @@ -633,6 +633,7 @@ QJsonObject McpServer::groupSummary(int groupId) const o["name"] = group->getName(); o["visible"] = group->isVisible(); o["solo"] = group->isSolo(); + o["collapsed"] = group->isCollapsed(); o["locked"] = group->isLocked(); o["opacity"] = group->getOpacity(); o["depth"] = mm.getGroupDepth(group->getId()); diff --git a/src/core/Group.cpp b/src/core/Group.cpp index 410796ab..97c0f764 100644 --- a/src/core/Group.cpp +++ b/src/core/Group.cpp @@ -28,7 +28,8 @@ UidAllocator Group::allocator; Group::Group(int id) : Element(id, &allocator), _isVisible(true), - _isSolo(false) + _isSolo(false), + _isCollapsed(false) { SettingGroup* root = settings(); @@ -45,6 +46,13 @@ Group::Group(int id) "its eye and that of its group are open."))) ->bind([this]() { return QVariant(isVisible()); }, [this](const QVariant& value) { setVisible(value.toBool()); return true; }); + + // Saved with the project, so that a group folded away stays so when the project is opened. + root->addSetting(SettingInfo::boolean(ProjectLabels::COLLAPSED, tr("Collapsed")) + .hidden() + .description(tr("Whether this group is folded in the list of layers, its layers out of sight."))) + ->bind([this]() { return QVariant(isCollapsed()); }, + [this](const QVariant& value) { setCollapsed(value.toBool()); return true; }); } Group::~Group() @@ -71,6 +79,15 @@ void Group::setSolo(bool solo) } } +void Group::setCollapsed(bool collapsed) +{ + if (collapsed != _isCollapsed) + { + _isCollapsed = collapsed; + _emitPropertyChanged(ProjectLabels::COLLAPSED); + } +} + QStringList Group::_reservedKeys() const { return Element::_reservedKeys() << ProjectLabels::DEPTH; diff --git a/src/core/Group.h b/src/core/Group.h index 40a2e91a..f8111bf0 100644 --- a/src/core/Group.h +++ b/src/core/Group.h @@ -69,6 +69,11 @@ class Group : public Element void setSolo(bool solo); void toggleSolo() { setSolo(!isSolo()); } + /// Returns true when the group is folded in the list of layers. + bool isCollapsed() const { return _isCollapsed; } + /// Folds the group in the list of layers, or unfolds it. Saved with the project. + void setCollapsed(bool collapsed); + protected: /// Its place in the stack is written by ProjectWriter, from the stack. QStringList _reservedKeys() const override; @@ -78,6 +83,7 @@ class Group : public Element bool _isVisible; bool _isSolo; + bool _isCollapsed; }; } diff --git a/src/core/ProjectLabels.cpp b/src/core/ProjectLabels.cpp index 5553b3e7..a90fd3c2 100644 --- a/src/core/ProjectLabels.cpp +++ b/src/core/ProjectLabels.cpp @@ -58,6 +58,7 @@ const char* ProjectLabels::VISIBLE = "visible"; const char* ProjectLabels::SOLO = "solo"; const char* ProjectLabels::LOCKED = "locked"; const char* ProjectLabels::DEPTH = "depth"; +const char* ProjectLabels::COLLAPSED = "collapsed"; const char* ProjectLabels::SOURCE_ID = "source_id"; const char* ProjectLabels::FORMER_SOURCE_ID = "sourceId"; const char* ProjectLabels::N_COLUMNS = "n_columns"; diff --git a/src/core/ProjectLabels.h b/src/core/ProjectLabels.h index 5bec49c0..4aa3ac81 100644 --- a/src/core/ProjectLabels.h +++ b/src/core/ProjectLabels.h @@ -110,6 +110,8 @@ class ProjectLabels { static const char* SOLO; /// The place of a layer, or of a group, in the stack: the number of layers above it. static const char* DEPTH; + /// Whether a group is folded in the list of layers, its layers out of sight. + static const char* COLLAPSED; /// The source shown by a layer. static const char* SOURCE_ID; diff --git a/src/gui/LayerItemDelegate.cpp b/src/gui/LayerItemDelegate.cpp index 0bf0659f..6342fc04 100644 --- a/src/gui/LayerItemDelegate.cpp +++ b/src/gui/LayerItemDelegate.cpp @@ -79,6 +79,17 @@ bool isLayerRow(const QModelIndex& index) && index.data(LayerTreeModel::RowKindRole).toInt() == int(LayerTreeModel::RowKind::Layer); } +/// Returns whether the row of an index is a group: it has an eye, a solo and a lock, as a +/// layer, on a lighter background. +bool isGroupRow(const QModelIndex& index) +{ + return index.isValid() + && index.data(LayerTreeModel::RowKindRole).toInt() == int(LayerTreeModel::RowKind::Group); +} + +/// Background of the row of a group, so that it stands out from those of its layers. +const QColor GROUP_ROW_COLOR = MM::MID_GRAY; + /// Returns whether the row of an index is a row under a layer with a switch, such as an /// effect: it has an eye, a cross, and the other buttons greyed. bool isSwitchRow(const QModelIndex& index) @@ -93,6 +104,12 @@ bool isSwitchRow(const QModelIndex& index) LinkTarget buttonTarget(LayerRowButton button, const QModelIndex& index) { QString setting; + if (isGroupRow(index)) { + setting = layerRowButtonSetting(button); + if (setting.isEmpty()) + return LinkTarget(); + return LinkTarget::of(LinkTarget::GroupElement, index.data(LayerTreeModel::GroupIdRole).toInt(), setting); + } if (isLayerRow(index)) setting = layerRowButtonSetting(button); else if (isSwitchRow(index) && button == LayerRowButton::Hide) @@ -102,12 +119,14 @@ LinkTarget buttonTarget(LayerRowButton button, const QModelIndex& index) return LinkTarget::of(LinkTarget::LayerElement, index.data(LayerTreeModel::LayerIdRole).toInt(), setting); } -/// Returns whether a button of a row acts: all of them on a layer, the eye and the cross on a -/// row with a switch. +/// Returns whether a button of a row acts: all of them on a layer, the eye, the solo and the +/// lock on a group, the eye and the cross on a row with a switch. bool buttonActs(LayerRowButton button, const QModelIndex& index) { if (isLayerRow(index)) return true; + if (isGroupRow(index)) + return button == LayerRowButton::Hide || button == LayerRowButton::Solo || button == LayerRowButton::Lock; return isSwitchRow(index) && (button == LayerRowButton::Hide || button == LayerRowButton::Delete); } @@ -207,8 +226,12 @@ void LayerItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt { painter->fillRect(rect, MM::DARK_GRAY); } + else if (isGroupRow(index)) + { + painter->fillRect(rect, GROUP_ROW_COLOR); + } - if (index.column() == MM::HideColumn && (isLayerRow(index) || isSwitchRow(index))) + if (index.column() == MM::HideColumn && (isLayerRow(index) || isGroupRow(index) || isSwitchRow(index))) { bool isVisible = index.model()->data(index, Qt::CheckStateRole).toBool(); // Off, the eye is faint rather than gone, so that it can be found again. @@ -239,14 +262,23 @@ void LayerItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt QApplication::style()->drawItemPixmap(painter, iconRect, Qt::AlignLeft | Qt::AlignVCenter, iconPixmap); - // Draw Text - QString mappingName = index.model()->data(index, Qt::EditRole).toString(); + // Draw Text: what the row shows, such as the number of layers of a folded group. The + // name of a group is bold. + QString mappingName = index.model()->data(index, Qt::DisplayRole).toString(); QRect textRect(x + 40, y, rect.width() - 40, rect.height()); QPalette textColor = QPalette(MM::WHITE); + painter->save(); + if (isGroupRow(index)) + { + QFont font = painter->font(); + font.setBold(true); + painter->setFont(font); + } QApplication::style()->drawItemText(painter, textRect, Qt::AlignLeft | Qt::AlignVCenter, textColor, true, mappingName, QPalette::Window); + painter->restore(); } if (index.column() == MM::GroupButtonColum && isSwitchRow(index)) @@ -268,7 +300,7 @@ void LayerItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt } } - if (index.column() == MM::GroupButtonColum && isLayerRow(index)) + if (index.column() == MM::GroupButtonColum && (isLayerRow(index) || isGroupRow(index))) { bool isSolo = index.model()->data(index, LayerTreeModel::SoloRole).toBool(); bool isLocked = index.model()->data(index, LayerTreeModel::LockedRole).toBool(); @@ -291,18 +323,20 @@ void LayerItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt MM::MAPPING_LIST_ICON_SIZE); mappingLockButton.text = tr("Lock layer"); - // duplicate button + // duplicate button: greyed on a group, which is not duplicated yet QStyleOptionToolButton mappingDuplicateButton; - mappingDuplicateButton.state |= QStyle::State_Enabled; + if (buttonActs(LayerRowButton::Duplicate, index)) + mappingDuplicateButton.state |= QStyle::State_Enabled; mappingDuplicateButton.rect = layerRowButtonRect(LayerRowButton::Duplicate, rect); mappingDuplicateButton.icon = QIcon(":/duplicate-mapping"); mappingDuplicateButton.iconSize = QSize(MM::MAPPING_LIST_ICON_SIZE, MM::MAPPING_LIST_ICON_SIZE); mappingDuplicateButton.text = tr("Duplicate layer"); - // delete button + // delete button: greyed on a group, which is not deleted from the list yet QStyleOptionToolButton mappingDeleteButton; - mappingDeleteButton.state |= QStyle::State_Enabled; + if (buttonActs(LayerRowButton::Delete, index)) + mappingDeleteButton.state |= QStyle::State_Enabled; mappingDeleteButton.rect = layerRowButtonRect(LayerRowButton::Delete, rect); mappingDeleteButton.icon = QIcon(":/delete-mapping"); mappingDeleteButton.iconSize = QSize(MM::MAPPING_LIST_ICON_SIZE, @@ -393,7 +427,7 @@ bool LayerItemDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) { LayerRowButton button; - if (event->type() != QEvent::ToolTip || !(isLayerRow(index) || isSwitchRow(index)) + if (event->type() != QEvent::ToolTip || !(isLayerRow(index) || isGroupRow(index) || isSwitchRow(index)) || !layerRowButtonAt(index.column(), option.rect, event->pos(), &button)) return QStyledItemDelegate::helpEvent(event, view, option, index); @@ -407,6 +441,16 @@ bool LayerItemDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *view, default: lines << tr("Available once a layer can have several effects"); break; } } + else if (isGroupRow(index)) + { + switch (button) + { + case LayerRowButton::Hide: lines << tr("Show or hide the layers of the group"); break; + case LayerRowButton::Solo: lines << tr("Solo group: show only its layers"); break; + case LayerRowButton::Lock: lines << tr("Lock the layers of the group"); break; + default: lines << tr("Not available for a group yet"); break; + } + } else switch (button) { case LayerRowButton::Hide: lines << tr("Show or hide the layer"); break; @@ -430,7 +474,7 @@ bool LayerItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, QMouseEvent *mouseEvent = static_cast(event); LayerRowButton button; LearnMode* learn = LearnMode::current(); - if (mouseEvent->buttons() & Qt::LeftButton && (isLayerRow(index) || isSwitchRow(index)) + if (mouseEvent->buttons() & Qt::LeftButton && (isLayerRow(index) || isGroupRow(index) || isSwitchRow(index)) && layerRowButtonAt(index.column(), option.rect, mouseEvent->pos(), &button) && learn && learn->isActive()) { @@ -450,6 +494,19 @@ bool LayerItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, emit childRemoved(index.data(LayerTreeModel::LayerIdRole).toInt(), index.data(Qt::UserRole).toInt()); return true; } + else if (mouseEvent->buttons() & Qt::LeftButton && isGroupRow(index) + && layerRowButtonAt(index.column(), option.rect, mouseEvent->pos(), &button)) + { + // The eye, the solo and the lock of a group act at the first click, folded or not; its + // other buttons are greyed and do nothing. + if (button == LayerRowButton::Hide) + model->setData(index, !(index.data(Qt::CheckStateRole).toBool()), Qt::CheckStateRole); + else if (button == LayerRowButton::Solo) + model->setData(index, !(index.data(LayerTreeModel::SoloRole).toBool()), LayerTreeModel::SoloRole); + else if (button == LayerRowButton::Lock) + model->setData(index, !(index.data(LayerTreeModel::LockedRole).toBool()), LayerTreeModel::LockedRole); + return true; + } else if (mouseEvent->buttons() & Qt::LeftButton && isLayerRow(index) && layerRowButtonAt(index.column(), option.rect, mouseEvent->pos(), &button)) { diff --git a/src/gui/LayerTreeModel.cpp b/src/gui/LayerTreeModel.cpp index ac44d4ba..06c49b75 100644 --- a/src/gui/LayerTreeModel.cpp +++ b/src/gui/LayerTreeModel.cpp @@ -29,9 +29,13 @@ namespace { /// Number of columns: the eye, the icon and name, the buttons. const int COLUMN_COUNT = 3; -/// Internal id of the rows at the top of the tree, the layers. The internal id of a child row -/// is the id of its layer, and the ids of layers start at 1. -const quintptr LAYER_ROW_INTERNAL_ID = 0; +/// Internal id of the rows at the top of the tree: the layers in no group and the groups. +const quintptr TOP_ROW_INTERNAL_ID = 0; + +/// Mark of the internal id of the rows under a group: the id of the group, with this bit. The +/// internal id of a row under a layer is the id of its layer; the ids of layers and of groups +/// start at 1 and stay below it. +const quintptr UNDER_GROUP_MARK = quintptr(1) << 30; /// Height of a row, in pixels. const int ROW_HEIGHT = 40; @@ -48,6 +52,23 @@ QVariant rowSizeHint(int column) return QVariant(); } +bool isUnderGroup(quintptr internalId) +{ + return internalId != TOP_ROW_INTERNAL_ID && (internalId & UNDER_GROUP_MARK); +} + +uid groupOfInternalId(quintptr internalId) +{ + return uid(internalId & ~UNDER_GROUP_MARK); +} + +bool sameGroupRow(const LayerTreeModel::GroupRow& a, const LayerTreeModel::GroupRow& b) +{ + return a.id == b.id && a.label == b.label && a.icon.cacheKey() == b.icon.cacheKey() + && a.visible == b.visible && a.solo == b.solo && a.locked == b.locked + && a.collapsed == b.collapsed; +} + } // namespace LayerTreeModel::LayerTreeModel(QObject *parent) : @@ -58,27 +79,43 @@ QModelIndex LayerTreeModel::index(int row, int column, const QModelIndex &parent if (!hasIndex(row, column, parent)) return QModelIndex(); if (!parent.isValid()) - return createIndex(row, column, LAYER_ROW_INTERNAL_ID); - // Only layers have rows under them. - return createIndex(row, column, quintptr(layerList.at(parent.row()).id)); + return createIndex(row, column, TOP_ROW_INTERNAL_ID); + if (const TopRow* group = _groupAt(parent)) + return createIndex(row, column, UNDER_GROUP_MARK | quintptr(group->groupId)); + if (const LayerItem* layer = _layerAt(parent)) + return createIndex(row, column, quintptr(layer->id)); + return QModelIndex(); } QModelIndex LayerTreeModel::parent(const QModelIndex &child) const { - if (!child.isValid() || child.internalId() == LAYER_ROW_INTERNAL_ID) + if (!child.isValid() || child.internalId() == TOP_ROW_INTERNAL_ID) + return QModelIndex(); + if (isUnderGroup(child.internalId())) { + const int row = _topRowOfGroup(groupOfInternalId(child.internalId())); + return row < 0 ? QModelIndex() : createIndex(row, 0, TOP_ROW_INTERNAL_ID); + } + // A row under a layer, which is at the top or under its group. + int topRow, groupRow; + if (!_locate(uid(child.internalId()), &topRow, &groupRow)) return QModelIndex(); - const int row = getItemRowFromId(uid(child.internalId())); - return row < 0 ? QModelIndex() : createIndex(row, 0, LAYER_ROW_INTERNAL_ID); + if (groupRow < 0) + return createIndex(topRow, 0, TOP_ROW_INTERNAL_ID); + return createIndex(groupRow, 0, UNDER_GROUP_MARK | quintptr(_rows.at(topRow).groupId)); } int LayerTreeModel::rowCount(const QModelIndex &parent) const { if (!parent.isValid()) - return layerList.size(); - // Rows hang from the first column of a layer; child rows have none under them. - if (parent.column() != 0 || !_isLayerIndex(parent)) + return _rows.size(); + // Rows hang from the first column; child rows have none under them. + if (parent.column() != 0) return 0; - return layerList.at(parent.row()).children.size(); + if (const TopRow* group = _groupAt(parent)) + return group->layers.size(); + if (const LayerItem* layer = _layerAt(parent)) + return layer->children.size(); + return 0; } int LayerTreeModel::columnCount(const QModelIndex &parent) const @@ -98,6 +135,9 @@ QVariant LayerTreeModel::data(const QModelIndex &index, int role) const if (role == LayerIdRole) return QVariant(layerIdOf(index)); + if (role == GroupIdRole) + return QVariant(groupIdOf(index)); + if (const LayerItem* layer = _parentItem(index)) { // A child row shows a name and an icon, and a switch when it has a setting to write. const ChildRow& child = layer->children.at(index.row()); @@ -122,39 +162,70 @@ QVariant LayerTreeModel::data(const QModelIndex &index, int role) const } } + if (const TopRow* top = _groupAt(index)) { + const GroupRow group = groupRow(top->groupId); + switch (role) { + case Qt::SizeHintRole: + return rowSizeHint(index.column()); + case Qt::CheckStateRole: + return group.visible ? Qt::Checked : Qt::Unchecked; + case SoloRole: + return group.solo ? Qt::Checked : Qt::Unchecked; + case LockedRole: + return group.locked ? Qt::Checked : Qt::Unchecked; + case CollapsedRole: + return group.collapsed; + case Qt::UserRole: + return QVariant(top->groupId); + case Qt::EditRole: + return group.label; + case Qt::DisplayRole: + // Folded, a group tells how many layers it hides. + if (group.collapsed) + return QString("%1 (%2)").arg(group.label).arg(top->layers.size()); + return group.label; + case Qt::DecorationRole: + return group.icon; + case Qt::ToolTipRole: + return QString("ID: %1").arg(top->groupId); + default: + return QVariant(); + } + } + + const LayerItem* layer = _layerAt(index); + if (!layer) + return QVariant(); + switch (role) { case Qt::CheckStateRole: - return layerList.at(index.row()).isVisible ? Qt::Checked : Qt::Unchecked; + return layer->isVisible ? Qt::Checked : Qt::Unchecked; case Qt::SizeHintRole: return rowSizeHint(index.column()); case SoloRole: - return layerList.at(index.row()).isSolo ? Qt::Checked : Qt::Unchecked; + return layer->isSolo ? Qt::Checked : Qt::Unchecked; case LockedRole: - return layerList.at(index.row()).isLocked ? Qt::Checked : Qt::Unchecked; + return layer->isLocked ? Qt::Checked : Qt::Unchecked; case Qt::UserRole: - return QVariant(layerList.at(index.row()).id); + return QVariant(layer->id); case Qt::EditRole: - return QVariant(layerList.at(index.row()).label); - case Qt::DisplayRole: - return QVariant(layerList.at(index.row()).label); + return QVariant(layer->label); case Qt::DecorationRole: - return layerList.at(index.row()).icon; + return layer->icon; case Qt::ToolTipRole: - return QString("ID: %1").arg(layerList.at(index.row()).id); + return QString("ID: %1").arg(layer->id); default: return QVariant(); } - - return QVariant(); } Qt::ItemFlags LayerTreeModel::flags(const QModelIndex &index) const @@ -163,9 +234,16 @@ Qt::ItemFlags LayerTreeModel::flags(const QModelIndex &index) const return Qt::NoItemFlags; // A child row can be selected; what else it allows comes with what it stands for. - if (!_isLayerIndex(index)) + if (rowKind(index) == RowKind::Child) return Qt::ItemIsEnabled | Qt::ItemIsSelectable; + // A group is renamed and switched as a layer; it is not dragged yet, and takes no drop. + if (rowKind(index) == RowKind::Group) { + if (index.column() == MM::IconAndNameColum) + return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable; + return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable; + } + if (index.column() == MM::IconAndNameColum) return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; @@ -195,7 +273,7 @@ QMimeData *LayerTreeModel::mimeData(const QModelIndexList &indexes) const QDataStream stream(&encodeData, QIODevice::WriteOnly); for (QModelIndex index: indexes) { - if (index.isValid() && _isLayerIndex(index)) { + if (index.isValid() && rowKind(index) == RowKind::Layer) { if (index.column() == MM::HideColumn) { int id = data(index, Qt::UserRole).toInt(); stream << id; @@ -224,20 +302,26 @@ bool LayerTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, stream >> id; if (stream.status() != QDataStream::Ok) return false; - const int from = getItemRowFromId(id); + // Rows are counted among all the layers, as the stack counts them. + const int from = _flatRow(id); if (from < 0) return false; // A drop between rows names the insertion gap before removal of the dragged row. - // A drop onto a layer names its final row directly. + // A drop onto a layer names its final row directly. A group takes no drop yet. int to; if (parent.isValid()) { - to = getItemRowFromId(layerIdOf(parent)); + if (rowKind(parent) == RowKind::Group) + return false; + to = _flatRow(layerIdOf(parent)); if (to < 0) return false; } else { - const int gap = row < 0 ? int(layerList.size()) : qMin(row, int(layerList.size())); - to = gap > from ? gap - 1 : gap; + const int gap = row < 0 ? int(_rows.size()) : qMin(row, int(_rows.size())); + int layersAbove = 0; + for (int i = 0; i < gap; i++) + layersAbove += _rows.at(i).layers.size(); + to = layersAbove > from ? layersAbove - 1 : layersAbove; } if (to != from) emit layerMoveRequested(id, to); @@ -259,25 +343,57 @@ bool LayerTreeModel::setData(const QModelIndex &index, const QVariant &value, in return true; } + // The row of a group: what it shows changes, and the main window writes it to the group. + if (const TopRow* top = _groupAt(index)) { + GroupRow& group = _groupRows[top->groupId]; + group.id = top->groupId; + bool* flag = nullptr; + if (role == Qt::CheckStateRole) + flag = &group.visible; + else if (role == SoloRole) + flag = &group.solo; + else if (role == LockedRole) + flag = &group.locked; + else if (role == CollapsedRole) + flag = &group.collapsed; + if (flag && value.typeId() == QMetaType::Bool) { + if (*flag == value.toBool()) + return false; + *flag = value.toBool(); + _rowChanged(index); + return true; + } + if (role == Qt::EditRole && group.label != value.toString()) { + group.label = value.toString(); + _rowChanged(index); + return true; + } + return false; + } + + LayerItem* layer = _layerAt(index); + if (!layer) + return false; + if (role == Qt::CheckStateRole && value.typeId() == QMetaType::Bool) { - if (layerList[index.row()].isVisible != value.toBool()) { - layerList[index.row()].isVisible = value.toBool(); + if (layer->isVisible != value.toBool()) { + layer->isVisible = value.toBool(); emit dataChanged(index, index); return true; } } if (role == SoloRole && value.typeId() == QMetaType::Bool) { - if (layerList[index.row()].isSolo != value.toBool()) { - layerList[index.row()].isSolo = value.toBool(); + if (layer->isSolo != value.toBool()) { + layer->isSolo = value.toBool(); emit dataChanged(index, index); return true; } } if (role == LockedRole && value.typeId() == QMetaType::Bool) { - if (layerList[index.row()].isLocked != value.toBool()) { - layerList[index.row()].isLocked = value.toBool(); + if (layer->isLocked != value.toBool()) { + layer->isLocked = value.toBool(); emit dataChanged(index, index); return true; } @@ -285,8 +401,8 @@ bool LayerTreeModel::setData(const QModelIndex &index, const QVariant &value, in // Note: Removed the check for column as this was blocking OSC from changing name. if (role == Qt::EditRole /* && index.column() == MM::IconAndNameColum*/) { - if (layerList[index.row()].label != value.toString()) { - layerList[index.row()].label = value.toString(); + if (layer->label != value.toString()) { + layer->label = value.toString(); emit dataChanged(index, index); return true; } @@ -297,11 +413,22 @@ bool LayerTreeModel::setData(const QModelIndex &index, const QVariant &value, in void LayerTreeModel::removeItem(int index) { - if (index < 0 || index >= layerList.size()) + if (index < 0 || index >= _rows.size() || _rows.at(index).groupId != NULL_UID) + return; + removeLayer(_rows.at(index).layers.first().id); +} + +void LayerTreeModel::removeLayer(uid layerId) +{ + int topRow, groupRow; + if (!_locate(layerId, &topRow, &groupRow)) return; // The main window reads the whole model again right after, as it always did. beginResetModel(); - layerList.removeAt(index); + if (groupRow < 0) + _rows.removeAt(topRow); + else + _rows[topRow].layers.removeAt(groupRow); endResetModel(); } @@ -309,7 +436,7 @@ void LayerTreeModel::moveItem(int row, int endRow) { if (beginMoveRows(QModelIndex(), row, row, QModelIndex(), (row < endRow ? endRow+1 : endRow))) { - layerList.move(row, endRow); + _rows.move(row, endRow); endMoveRows(); } } @@ -324,12 +451,80 @@ void LayerTreeModel::addItem(Layer::ptr mapping, const QIcon &icon, const QStrin item.isVisible = mapping->isVisible(); item.isLocked = mapping->isLocked(); item.isSolo = mapping->isSolo(); + TopRow top; + top.layers << item; // The main window reads the whole model again right after, as it always did. beginResetModel(); - layerList.insert(0, item); + _rows.insert(0, top); endResetModel(); } +void LayerTreeModel::setStack(const QList &stack) +{ + // The rows of the layers, with what they show, by id. + QHash items; + for (const TopRow& top : std::as_const(_rows)) + for (const LayerItem& layer : top.layers) + items.insert(layer.id, layer); + + QList rows; + for (const StackRow& entry : stack) { + if (entry.groupId == NULL_UID) { + // Layers in no group: a row each. + for (uid id : entry.layerIds) + if (items.contains(id)) { + TopRow top; + top.layers << items.take(id); + rows << top; + } + continue; + } + TopRow top; + top.groupId = entry.groupId; + for (uid id : entry.layerIds) + if (items.contains(id)) + top.layers << items.take(id); + rows << top; + if (!_groupRows.contains(entry.groupId)) { + GroupRow group; + group.id = entry.groupId; + _groupRows.insert(entry.groupId, group); + } + } + + // The same order: nothing to read again, so that the selection and the folds stay. + bool same = rows.size() == _rows.size(); + for (int i = 0; same && i < rows.size(); i++) { + same = rows.at(i).groupId == _rows.at(i).groupId + && rows.at(i).layers.size() == _rows.at(i).layers.size(); + for (int j = 0; same && j < rows.at(i).layers.size(); j++) + same = rows.at(i).layers.at(j).id == _rows.at(i).layers.at(j).id; + } + if (same) + return; + + beginResetModel(); + _rows = rows; + endResetModel(); +} + +void LayerTreeModel::setGroupRow(const GroupRow &group) +{ + if (group.id == NULL_UID) + return; + if (_groupRows.contains(group.id) && sameGroupRow(_groupRows.value(group.id), group)) + return; + _groupRows.insert(group.id, group); + const QModelIndex index = groupIndex(group.id); + if (index.isValid()) + _rowChanged(index); +} + +LayerTreeModel::GroupRow LayerTreeModel::groupRow(uid groupId) const +{ + return _groupRows.value(groupId); +} + void LayerTreeModel::updateModel() { beginResetModel(); @@ -339,7 +534,8 @@ void LayerTreeModel::updateModel() void LayerTreeModel::clear() { beginResetModel(); - layerList.clear(); + _rows.clear(); + _groupRows.clear(); endResetModel(); } @@ -350,18 +546,31 @@ QModelIndex LayerTreeModel::getIndexFromRow(int row) int LayerTreeModel::getItemRowFromId(uid id) const { - for ( int row = 0; row < layerList.size(); row++) { - int itemId = layerList.at(row).id; - if (itemId == id) - return row; - } - - return -1; + int topRow, groupRow; + if (!_locate(id, &topRow, &groupRow)) + return -1; + return groupRow < 0 ? topRow : groupRow; } QModelIndex LayerTreeModel::getIndexFromId(uid id) const { - return index(getItemRowFromId(id), MM::HideColumn); + return layerIndex(id, MM::HideColumn); +} + +QModelIndex LayerTreeModel::layerIndex(uid layerId, int column) const +{ + int topRow, groupRow; + if (!_locate(layerId, &topRow, &groupRow)) + return QModelIndex(); + if (groupRow < 0) + return index(topRow, column); + return index(groupRow, column, index(topRow, 0)); +} + +QModelIndex LayerTreeModel::groupIndex(uid groupId, int column) const +{ + const int row = _topRowOfGroup(groupId); + return row < 0 ? QModelIndex() : index(row, column); } uid LayerTreeModel::getItemId(const QModelIndex &index) const @@ -371,7 +580,11 @@ uid LayerTreeModel::getItemId(const QModelIndex &index) const LayerTreeModel::RowKind LayerTreeModel::rowKind(const QModelIndex &index) const { - return _isLayerIndex(index) ? RowKind::Layer : RowKind::Child; + if (_groupAt(index)) + return RowKind::Group; + if (_layerAt(index)) + return RowKind::Layer; + return RowKind::Child; } uid LayerTreeModel::rowId(const QModelIndex &index) const @@ -383,19 +596,33 @@ uid LayerTreeModel::layerIdOf(const QModelIndex &index) const { if (!index.isValid()) return NULL_UID; - if (index.internalId() != LAYER_ROW_INTERNAL_ID) - return uid(index.internalId()); - return layerList.at(index.row()).id; + if (const LayerItem* layer = _layerAt(index)) + return layer->id; + if (const LayerItem* layer = _parentItem(index)) + return layer->id; + return NULL_UID; +} + +uid LayerTreeModel::groupIdOf(const QModelIndex &index) const +{ + if (!index.isValid()) + return NULL_UID; + if (const TopRow* group = _groupAt(index)) + return group->groupId; + int topRow, groupRow; + if (!_locate(layerIdOf(index), &topRow, &groupRow)) + return NULL_UID; + return _rows.at(topRow).groupId; } void LayerTreeModel::setChildRows(uid layerId, const QList &children) { - const int row = getItemRowFromId(layerId); - if (row < 0) + const QModelIndex layer = layerIndex(layerId, 0); + LayerItem* item = _layerAt(layer); + if (!item) return; - const QModelIndex layer = index(row, 0); - QList& current = layerList[row].children; + QList& current = item->children; // The same rows with other values, such as a switch: changed in place, so that a selected // row stays selected. @@ -422,30 +649,104 @@ void LayerTreeModel::setChildRows(uid layerId, const QList &children) QList LayerTreeModel::childRows(uid layerId) const { - const int row = getItemRowFromId(layerId); - return row < 0 ? QList() : layerList.at(row).children; + const LayerItem* layer = _layerAt(layerIndex(layerId, 0)); + return layer ? layer->children : QList(); } bool LayerTreeModel::hasChildRows() const { - for (const LayerItem& layer : layerList) { - if (!layer.children.isEmpty()) + for (const TopRow& top : _rows) { + if (top.groupId != NULL_UID) return true; + for (const LayerItem& layer : top.layers) + if (!layer.children.isEmpty()) + return true; } return false; } -bool LayerTreeModel::_isLayerIndex(const QModelIndex &index) const +const LayerTreeModel::LayerItem* LayerTreeModel::_layerAt(const QModelIndex &index) const { - return index.isValid() && index.internalId() == LAYER_ROW_INTERNAL_ID; + if (!index.isValid()) + return nullptr; + if (index.internalId() == TOP_ROW_INTERNAL_ID) { + if (index.row() < 0 || index.row() >= _rows.size() || _rows.at(index.row()).groupId != NULL_UID) + return nullptr; + return &_rows.at(index.row()).layers.first(); + } + if (isUnderGroup(index.internalId())) { + const int topRow = _topRowOfGroup(groupOfInternalId(index.internalId())); + if (topRow < 0 || index.row() < 0 || index.row() >= _rows.at(topRow).layers.size()) + return nullptr; + return &_rows.at(topRow).layers.at(index.row()); + } + return nullptr; +} + +LayerTreeModel::LayerItem* LayerTreeModel::_layerAt(const QModelIndex &index) +{ + return const_cast(std::as_const(*this)._layerAt(index)); +} + +const LayerTreeModel::TopRow* LayerTreeModel::_groupAt(const QModelIndex &index) const +{ + if (!index.isValid() || index.internalId() != TOP_ROW_INTERNAL_ID + || index.row() < 0 || index.row() >= _rows.size() || _rows.at(index.row()).groupId == NULL_UID) + return nullptr; + return &_rows.at(index.row()); } const LayerTreeModel::LayerItem* LayerTreeModel::_parentItem(const QModelIndex &index) const { - if (!index.isValid() || index.internalId() == LAYER_ROW_INTERNAL_ID) + if (!index.isValid() || index.internalId() == TOP_ROW_INTERNAL_ID || isUnderGroup(index.internalId())) return nullptr; - const int row = getItemRowFromId(uid(index.internalId())); - return row < 0 ? nullptr : &layerList.at(row); + int topRow, groupRow; + if (!_locate(uid(index.internalId()), &topRow, &groupRow)) + return nullptr; + const LayerItem& layer = _rows.at(topRow).layers.at(groupRow < 0 ? 0 : groupRow); + if (index.row() < 0 || index.row() >= layer.children.size()) + return nullptr; + return &layer; +} + +bool LayerTreeModel::_locate(uid layerId, int* topRow, int* groupRow) const +{ + for (int i = 0; i < _rows.size(); i++) { + const TopRow& top = _rows.at(i); + for (int j = 0; j < top.layers.size(); j++) { + if (top.layers.at(j).id == layerId) { + *topRow = i; + *groupRow = top.groupId == NULL_UID ? -1 : j; + return true; + } + } + } + return false; +} + +int LayerTreeModel::_topRowOfGroup(uid groupId) const +{ + for (int i = 0; i < _rows.size(); i++) + if (_rows.at(i).groupId != NULL_UID && _rows.at(i).groupId == groupId) + return i; + return -1; +} + +int LayerTreeModel::_flatRow(uid layerId) const +{ + int row = 0; + for (const TopRow& top : _rows) + for (const LayerItem& layer : top.layers) { + if (layer.id == layerId) + return row; + row++; + } + return -1; +} + +void LayerTreeModel::_rowChanged(const QModelIndex &index) +{ + emit dataChanged(index.siblingAtColumn(0), index.siblingAtColumn(COLUMN_COUNT - 1)); } } diff --git a/src/gui/LayerTreeModel.h b/src/gui/LayerTreeModel.h index 7a757ef6..9d012dd4 100644 --- a/src/gui/LayerTreeModel.h +++ b/src/gui/LayerTreeModel.h @@ -23,7 +23,9 @@ #define LAYERTREEMODEL_H #include +#include #include +#include #include #include #include @@ -37,9 +39,12 @@ typedef int uid; /** * The list of layers, as a tree with three columns: the eye, the icon and name, and the - * buttons. Each layer is a row at the top of the tree, the first one being the layer drawn - * last. Rows can be attached under a layer: they follow it when it moves and go with it when - * it is removed. + * buttons. The top of the tree follows the top of the stack of layers, the first row being + * drawn last: a layer in no group, or a group, with its layers in rows under it. Rows can be + * attached under a layer: they follow it when it moves and go with it when it is removed. + * + * The rows of a layer and of a group keep what the main window gives them (name, icon, eye, + * solo, lock); setStack() puts them in the order of the stack. */ class LayerTreeModel : public QAbstractItemModel { @@ -48,8 +53,9 @@ class LayerTreeModel : public QAbstractItemModel public: /// What a row of the tree stands for. enum class RowKind { - Layer, ///< A layer of the stack, at the top of the tree. - Child ///< A row attached under a layer (later: an effect, the layers of a group). + Layer, ///< A layer of the stack: at the top of the tree, or under its group. + Child, ///< A row attached under a layer, such as an effect. + Group ///< A group of layers, at the top of the tree, with its layers under it. }; /// The role that gives the kind of a row, as an int (see RowKind). @@ -69,6 +75,31 @@ class LayerTreeModel : public QAbstractItemModel /// The check state of the lock button on a layer row. static const int LockedRole = Qt::UserRole + 5; + /// The role that gives the id of the group of a row: the group itself, the group of a layer, + /// or that of the layer a child row is under; NULL_UID for none. + static const int GroupIdRole = Qt::UserRole + 6; + + /// Whether the row of a group is folded, its layers out of sight. + static const int CollapsedRole = Qt::UserRole + 7; + + /// What the row of a group shows. + struct GroupRow { + uid id = NULL_UID; ///< Id of the group. + QString label; ///< Its name. + QIcon icon; ///< Icon shown before the name. + bool visible = true; ///< Whether its eye is open. + bool solo = false; ///< Whether it is in solo. + bool locked = false; ///< Whether it is locked. + bool collapsed = false; ///< Whether it is folded. + }; + + /// One place at the top of the list: a layer in no group (groupId is NULL_UID, one layer), + /// or a group and its layers, from the top. + struct StackRow { + uid groupId = NULL_UID; + QVector layerIds; + }; + /// A row attached under a layer. struct ChildRow { uid id; ///< Id of what the row stands for. @@ -97,13 +128,27 @@ class LayerTreeModel : public QAbstractItemModel bool setData(const QModelIndex &index, const QVariant &value, int role) override; - /// Removes the layer at a row, with the rows attached under it. + /// Removes the layer at a row of the top of the list, with the rows attached under it. void removeItem(int index); - /// Adds a layer at the top of the list. + /// Removes a layer, wherever it is, with the rows attached under it. + void removeLayer(uid layerId); + /// Adds a layer at the top of the list; setStack() then puts it at its place. void addItem(Layer::ptr mapping, const QIcon &icon, const QString &label); - /// Moves the layer at a row to another row. + /// Moves the row at the top of the list at a row to another row. void moveItem(int row, int endRow); + /** + * Puts the rows of the layers in the order of the stack, under their groups. A layer the + * list does not have is left out, as is a layer the stack does not have. Reads the model + * again only when the order changed. + */ + void setStack(const QList &stack); + + /// Sets what the row of a group shows; the row is drawn again when it is in the list. + void setGroupRow(const GroupRow &group); + /// Returns what the row of a group shows, or a GroupRow without id. + GroupRow groupRow(uid groupId) const; + /// Tells the views to read the whole model again. void updateModel(); /// Removes every row. @@ -117,20 +162,27 @@ class LayerTreeModel : public QAbstractItemModel uid getItemId(const QModelIndex &index) const; /// Returns the index of the eye of a layer. QModelIndex getIndexFromId(uid id) const; + /// Returns the index of a column of the row of a layer, wherever it is, or an invalid index. + QModelIndex layerIndex(uid layerId, int column = MM::HideColumn) const; + /// Returns the index of a column of the row of a group, or an invalid index. + QModelIndex groupIndex(uid groupId, int column = MM::HideColumn) const; /// Returns what a row stands for. RowKind rowKind(const QModelIndex &index) const; /// Returns the id of what a row stands for: a layer, or what a child row shows. uid rowId(const QModelIndex &index) const; - /// Returns the id of the layer of a row: the layer itself, or the layer a child row is under. + /// Returns the id of the layer of a row: the layer itself, or the layer a child row is + /// under; NULL_UID for a group. uid layerIdOf(const QModelIndex &index) const; + /// Returns the id of the group of a row (see GroupIdRole). + uid groupIdOf(const QModelIndex &index) const; /// Replaces the rows attached under a layer; rows with the same ids, in the same order, are /// changed in place. Does nothing for an unknown layer. void setChildRows(uid layerId, const QList &children); /// Returns the rows attached under a layer. QList childRows(uid layerId) const; - /// Returns whether at least one layer has a row under it. + /// Returns whether at least one row has rows under it: a layer with an effect, or a group. bool hasChildRows() const; signals: @@ -154,13 +206,36 @@ class LayerTreeModel : public QAbstractItemModel QList children; }; - /// Returns whether an index is a row at the top of the tree, that is a layer. - bool _isLayerIndex(const QModelIndex &index) const; + /// A row at the top of the tree: a layer in no group, or a group and its layers. + struct TopRow { + uid groupId = NULL_UID; ///< The group, or NULL_UID for a layer in no group. + QList layers; ///< The layer, or the layers of the group, from the top. + }; + + /// Returns the layer of the row of an index, or nullptr when it is not the row of a layer. + const LayerItem* _layerAt(const QModelIndex &index) const; + LayerItem* _layerAt(const QModelIndex &index); + + /// Returns the top row of the row of a group, or nullptr when it is not the row of a group. + const TopRow* _groupAt(const QModelIndex &index) const; - /// Returns the layer of a child index, or nullptr. + /// Returns the layer a child row is under, or nullptr. const LayerItem* _parentItem(const QModelIndex &index) const; - QList layerList; + /// Finds a layer: its top row, and its row in its group or -1. Returns false when unknown. + bool _locate(uid layerId, int* topRow, int* groupRow) const; + + /// Returns the top row of a group, or -1. + int _topRowOfGroup(uid groupId) const; + + /// Returns the place of a layer among all the layers, from the top, or -1. + int _flatRow(uid layerId) const; + + /// Emits dataChanged for all the columns of a row. + void _rowChanged(const QModelIndex &index); + + QList _rows; + QHash _groupRows; }; } diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index ce4e0765..84ddfc75 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -369,6 +369,13 @@ void MainWindow::handleSourceItemSelectionChanged() void MainWindow::handleLayerItemSelectionChanged(const QModelIndex &index) { + // The row of a group shows the page of the group; no layer is current then. + if (layerListModel->rowKind(index) == LayerTreeModel::RowKind::Group) + { + setCurrentGroup(layerListModel->groupIdOf(index)); + return; + } + // Set current source and mappings. A row under a layer stands for its layer. uid layerId = layerListModel->layerIdOf(index); Layer::ptr layer = mappingManager->getLayerById(layerId); @@ -384,6 +391,8 @@ void MainWindow::handleLayerItemSelectionChanged(const QModelIndex &index) layerListModel->rowKind(index) == LayerTreeModel::RowKind::Child ? layerListModel->rowId(index) : NULL_UID); updateEffectActions(); + // A group selected before had turned them off. + setLayerActionsEnabled(true); // Enable destination zoom toolbar buttons and avoid loop if (!destinationCanvasToolbar->buttonsAreEnable()) { // Enable destination toolbar @@ -419,6 +428,21 @@ void MainWindow::handleLayerItemSelectionChanged(const QModelIndex &index) void MainWindow::handleLayerItemChanged(const QModelIndex &index) { + // The row of a group: its eye, solo, lock, name and fold go to the group, which tells the + // rest of the window (see groupPropertyChanged()). + if (layerListModel->rowKind(index) == LayerTreeModel::RowKind::Group) + { + const Group::ptr group = mappingManager->getGroupById(layerListModel->groupIdOf(index)); + if (group.isNull()) + return; + group->setName(index.data(Qt::EditRole).toString()); + group->setVisible(index.data(Qt::CheckStateRole).toBool()); + group->setSolo(index.data(LayerTreeModel::SoloRole).toBool()); + group->setLocked(index.data(LayerTreeModel::LockedRole).toBool()); + group->setCollapsed(index.data(LayerTreeModel::CollapsedRole).toBool()); + return; + } + // Only the rows of layers carry their settings. if (layerListModel->rowKind(index) != LayerTreeModel::RowKind::Layer) return; @@ -452,9 +476,156 @@ void MainWindow::updateLayerTreeDecoration() layerList->resetIndentation(); else layerList->setIndentation(0); - // Rows under a layer are shown unfolded, also after the model is read again. - if (hasChildRows) - layerList->expandAll(); + // Rows under a layer are shown unfolded, also after the model is read again; a group is + // folded as it was left. + if (!hasChildRows) + return; + for (int row = 0; row < layerListModel->rowCount(); row++) + { + const QModelIndex top = layerListModel->index(row, 0); + if (layerListModel->rowKind(top) != LayerTreeModel::RowKind::Group) + { + layerList->setExpanded(top, true); + continue; + } + layerList->setExpanded(top, !top.data(LayerTreeModel::CollapsedRole).toBool()); + for (int i = 0; i < layerListModel->rowCount(top); i++) + layerList->setExpanded(layerListModel->index(i, 0, top), true); + } +} + +void MainWindow::followLayerRowFold(const QModelIndex& index, bool collapsed) +{ + if (layerListModel->rowKind(index) == LayerTreeModel::RowKind::Group) + layerListModel->setData(index.siblingAtColumn(0), collapsed, LayerTreeModel::CollapsedRole); +} + +void MainWindow::syncLayerList() +{ + QList rows; + for (int i = 0; i < mappingManager->nStackEntries(); i++) + { + const MappingManager::StackEntry& entry = mappingManager->stackEntry(i); + LayerTreeModel::StackRow row; + if (!entry.group.isNull()) + { + row.groupId = entry.group->getId(); + layerListModel->setGroupRow(groupRowOf(entry.group)); + } + for (const Layer::ptr& layer : entry.layers) + row.layerIds << layer->getId(); + rows << row; + } + layerListModel->setStack(rows); + + // The row of the current group, or of the current layer or one of its effects, stays selected. + const QModelIndex current = layerList->currentIndex(); + if (_currentGroupId != NULL_UID) + { + const QModelIndex group = layerListModel->groupIndex(_currentGroupId, MM::IconAndNameColum); + if (group.isValid() && layerListModel->rowKind(current) != LayerTreeModel::RowKind::Group) + layerList->setCurrentIndex(group); + } + else if (currentLayerId != NULL_UID) + { + currentSelectedIndex = layerListModel->layerIndex(currentLayerId, MM::IconAndNameColum); + if (layerListModel->layerIdOf(current) != currentLayerId) + selectLayerRow(currentSelectedIndex); + } +} + +void MainWindow::selectLayerRow(const QModelIndex& index) +{ + // Selected, a row in a folded group would unfold it (the view shows the current row): the + // layer stays current, out of sight, so that the fold saved in the project stays. + const uid group = layerListModel->groupIdOf(index); + if (!index.isValid() || (group != NULL_UID && layerListModel->groupRow(group).collapsed)) + return; + layerList->selectionModel()->select(index, QItemSelectionModel::Select); + layerList->setCurrentIndex(index); +} + +LayerTreeModel::GroupRow MainWindow::groupRowOf(const Group::ptr& group) const +{ + // One icon for every group: the row is drawn again only when what it shows changes. + static const QIcon folder = QApplication::style()->standardIcon(QStyle::SP_DirIcon); + LayerTreeModel::GroupRow row; + row.id = group->getId(); + row.label = group->getName(); + row.icon = folder; + row.visible = group->isVisible(); + row.solo = group->isSolo(); + row.locked = group->isLocked(); + row.collapsed = group->isCollapsed(); + return row; +} + +Inspector* MainWindow::groupInspector(uid groupId) +{ + if (Inspector* inspector = _groupInspectors.value(groupId)) + return inspector; + const Group::ptr group = mappingManager->getGroupById(groupId); + if (group.isNull()) + return nullptr; + + // Made from the settings of the group, and following them, as the page of a layer. + Inspector* inspector = new Inspector; + inspector->setHeader(group->getName(), tr("Group")); + InspectorPage* page = inspector->addPage(tr("Group"), group->settings(), QStringLiteral("group")); + connect(group.data(), &Group::settingChanged, page, [inspector, page](uid, const QString& path, const QVariant& value) { + page->refresh(path); + if (path == QLatin1String("name")) + inspector->setHeader(value.toString(), tr("Group")); + }); + layerPropertyPanel->addWidget(inspector); + _groupInspectors.insert(groupId, inspector); + return inspector; +} + +void MainWindow::setCurrentGroup(uid groupId) +{ + Inspector* inspector = groupInspector(groupId); + if (!inspector) + return; + _currentGroupId = groupId; + // No layer is current: the actions on a layer, its handles and its effect page are off. + _hasCurrentLayer = false; + currentLayerId = NULL_UID; + currentSelectedIndex = QModelIndex(); + setLayerActionsEnabled(false); + layerPropertyPanel->setCurrentWidget(inspector); + layerPropertyPanel->setEnabled(true); + updateEffectActions(); + updateCuePanel(); + updateCanvases(); +} + +void MainWindow::removeGroupInspectors(bool all) +{ + for (auto it = _groupInspectors.begin(); it != _groupInspectors.end();) + { + if (all || mappingManager->getGroupById(it.key()).isNull()) + { + layerPropertyPanel->removeWidget(it.value()); + it.value()->deleteLater(); + it = _groupInspectors.erase(it); + } + else + ++it; + } + if (all || mappingManager->getGroupById(_currentGroupId).isNull()) + _currentGroupId = NULL_UID; +} + +void MainWindow::setLayerActionsEnabled(bool enabled) +{ + for (QAction* action : { duplicateLayerAction, deleteLayerAction, renameLayerAction, + layerLockedAction, layerHideAction, layerSoloAction, + layerRotate90CWAction, layerRotate90CCWAction, layerRotate180Action, + layerHorizontalFlipAction, layerVerticalFlipAction, + layerRaiseAction, layerLowerAction, layerRaiseToTopAction, + layerLowerToBottomAction }) + action->setEnabled(enabled); } void MainWindow::updateSourceTreeDecoration() @@ -626,10 +797,9 @@ void MainWindow::removeSelectedEffect() void MainWindow::selectEffectRow(LinkTarget::ElementKind element, uid elementId, uid effectId) { if (element == LinkTarget::LayerElement) { - const int row = layerListModel->getItemRowFromId(elementId); - if (row < 0) + const QModelIndex layer = layerListModel->layerIndex(elementId, 0); + if (!layer.isValid()) return; - const QModelIndex layer = layerListModel->index(row, 0); for (int i = 0; i < layerListModel->rowCount(layer); i++) { const QModelIndex child = layerListModel->index(i, MM::IconAndNameColum, layer); if (layerListModel->rowId(child) == effectId) { @@ -2005,6 +2175,7 @@ bool MainWindow::clearProject() // Empty list widgets. layerListModel->clear(); + removeGroupInspectors(true); sourceList->clear(); // Clear property panel. @@ -2401,6 +2572,9 @@ void MainWindow::createLayout() layerList->setAllColumnsShowFocus(true); // A double click renames a layer; it never folds it. layerList->setExpandsOnDoubleClick(false); + // A group keeps its fold in the project. + connect(layerList, &QTreeView::expanded, this, [this](const QModelIndex& index) { followLayerRowFold(index, false); }); + connect(layerList, &QTreeView::collapsed, this, [this](const QModelIndex& index) { followLayerRowFold(index, true); }); // The rows under a layer indent the name, not the eye: their eye stays under that of the layer. layerList->setTreePosition(MM::IconAndNameColum); layerList->setMouseTracking(true);// Important @@ -4348,7 +4522,8 @@ void MainWindow::addLayerItem(uid layerId) // Add item to layerList widget. layerListModel->addItem(layer, icon, layer->getName()); - layerListModel->updateModel(); + // Its row goes to its place in the stack: into its group, when Undo puts it back. + syncLayerList(); setCurrentLayer(layerId); // The rows of its effects, under it. @@ -4376,6 +4551,9 @@ void MainWindow::removeLayerItem(uid layerId) Layer::ptr layer = mappingManager->getLayerById(layerId); Q_CHECK_PTR(layer); + // The layer that takes its place in the stack is selected after it. + const int stackRow = mappingManager->getLayerIndex(layerId); + // Remove mapping from model. mappingManager->removeLayer(layerId); @@ -4386,21 +4564,18 @@ void MainWindow::removeLayerItem(uid layerId) _layerEffectInspector->clearEffect(); // Remove widget from layerList. - int row = layerListModel->getItemRowFromId(layerId); - Q_ASSERT( row >= 0 ); - layerListModel->removeItem(row); + Q_ASSERT( layerListModel->getItemRowFromId(layerId) >= 0 ); + layerListModel->removeLayer(layerId); // Update list. layerListModel->updateModel(); - if (layerListModel->rowCount() == 0) + if (mappingManager->nLayers() == 0) removeCurrentLayer(); else { - int nextSelectedRow = row == layerListModel->rowCount() ? row - 1 : row; - QModelIndex index = layerListModel->getIndexFromRow(nextSelectedRow); - layerList->selectionModel()->select(index, QItemSelectionModel::Select); - layerList->setCurrentIndex(index); + const int nextRow = qBound(0, stackRow, mappingManager->nLayers() - 1); + selectLayerRow(layerListModel->layerIndex(mappingManager->getLayer(nextRow)->getId(), MM::IconAndNameColum)); } // Update everything. @@ -4423,11 +4598,12 @@ bool MainWindow::moveLayer(uid layerId, int idx) void MainWindow::showLayerMove(uid layerId, int from, int idx) { - Q_ASSERT(layerListModel->getItemRowFromId(layerId) == from); - layerListModel->moveItem(from, idx); - QModelIndex index = layerListModel->getIndexFromRow(idx); - layerList->selectionModel()->select(index, QItemSelectionModel::Select); - layerList->setCurrentIndex(index); + // Without groups, the row moves, and the selection with it; otherwise the rows follow the + // stack (see syncLayerList()). + if (mappingManager->nGroups() == 0 && layerListModel->getItemRowFromId(layerId) == from) + layerListModel->moveItem(from, idx); + syncLayerList(); + selectLayerRow(layerListModel->layerIndex(layerId, MM::IconAndNameColum)); // Update everything. updateCanvases(); @@ -4441,13 +4617,11 @@ void MainWindow::showLayerMove(uid layerId, int from, int idx) void MainWindow::showStackChange() { + // The page of a group deleted goes with it. + removeGroupInspectors(false); + // The rows follow the stack: a layer put in a group joins the other layers of the group. - for (int i = 0; i < mappingManager->nLayers(); i++) - { - const int row = layerListModel->getItemRowFromId(mappingManager->getLayer(i)->getId()); - if (row >= 0 && row != i) - layerListModel->moveItem(row, i); - } + syncLayerList(); for (const Group::ptr& group : mappingManager->getGroups()) connect(group.data(), &Group::settingChanged, this, &MainWindow::groupPropertyChanged, Qt::UniqueConnection); @@ -4462,8 +4636,10 @@ void MainWindow::showStackChange() void MainWindow::groupPropertyChanged(uid id, QString propertyName, QVariant value) { - Q_UNUSED(id); Q_UNUSED(value); + // Its row shows its name, eye, solo, lock and fold. + if (const Group::ptr group = mappingManager->getGroupById(id)) + layerListModel->setGroupRow(groupRowOf(group)); // The layers of the group may have to start or stop playing. if (propertyName == ProjectLabels::VISIBLE || propertyName == ProjectLabels::SOLO) updatePlayingState(); @@ -5618,12 +5794,13 @@ void MainWindow::setCurrentLayer(int uid) if (uid == NULL_UID) removeCurrentLayer(); else { + _currentGroupId = NULL_UID; if (currentLayerId != uid) { currentLayerId = uid; - currentSelectedIndex = layerListModel->getIndexFromRow(layerListModel->getItemRowFromId(uid)); + currentSelectedIndex = layerListModel->layerIndex(uid, MM::IconAndNameColum); // A row under the layer, such as its effect, stays selected. if (layerListModel->layerIdOf(layerList->currentIndex()) != uid) - layerList->setCurrentIndex(currentSelectedIndex); + selectLayerRow(currentSelectedIndex); layerPropertyPanel->setCurrentWidget(layerGuis[uid]->getPropertiesEditor()); } _hasCurrentLayer = true; diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index d96850dc..5f01ad25 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -154,8 +154,15 @@ private slots: void showStackChange(); /// Redraws when a group is shown, hidden, isolated, locked or faded. void groupPropertyChanged(uid id, QString propertyName, QVariant value); - /// Shows the triangle and the indentation of the list of layers only when a row is under a layer. + /// Shows the triangle and the indentation of the list of layers only when a row is under a + /// layer or a group, and folds each group as it was left. void updateLayerTreeDecoration(); + /// Puts the rows of the list of layers in the order of the stack, under their groups, and + /// selects again the row of the current layer or group. + void syncLayerList(); + /// Follows the folding of a row of the list of layers: a group keeps it in the project. + void followLayerRowFold(const QModelIndex& index, bool collapsed); + void selectLayerRow(const QModelIndex& index); /// Shows the triangle and the indentation of the list of sources only when a source has an effect. void updateSourceTreeDecoration(); /// Makes the rows of the effects of the source or layer that sent it again. @@ -909,6 +916,27 @@ public slots: /// The pages of the effect of a layer and of a source, in the panels under their lists. EffectInspector* _layerEffectInspector; + + /// The pages of the settings of the groups, in the panel of the layers, by id of the group. + QHash _groupInspectors; + + /// The group whose row is selected in the list of layers, or NULL_UID. + uid _currentGroupId = NULL_UID; + + /// Returns what the row of a group shows in the list of layers. + LayerTreeModel::GroupRow groupRowOf(const Group::ptr& group) const; + + /// Returns the page of the settings of a group, made the first time it is asked for. + Inspector* groupInspector(uid groupId); + + /// Shows the page of a group, whose row is selected; no layer is current then. + void setCurrentGroup(uid groupId); + + /// Removes the pages of the groups the project no longer has, or of all of them. + void removeGroupInspectors(bool all); + + /// Enables or disables the actions on the current layer, which a group does not have. + void setLayerActionsEnabled(bool enabled); EffectInspector* _sourceEffectInspector; // OSC. diff --git a/tests/TestLayerTree.cpp b/tests/TestLayerTree.cpp index 4096da63..79b1f63e 100644 --- a/tests/TestLayerTree.cpp +++ b/tests/TestLayerTree.cpp @@ -514,3 +514,212 @@ void TestLayerTree::sourceDelegateClicksOnEffectButtons() QCOMPARE(toggled.count(), 1); learn.stop(); } + +namespace { + +/// Id of the group of groupTwo(). +const uid TOYS = 7; + +/// Puts the two lowest of three layers in a group named "Toys", below the top layer, as the +/// main window does from the stack. +void groupTwo(ThreeLayers& t, bool collapsed = false) +{ + LayerTreeModel::GroupRow group; + group.id = TOYS; + group.label = "Toys"; + group.collapsed = collapsed; + t.model.setGroupRow(group); + t.model.setStack({ { NULL_UID, { t.id(2) } }, { TOYS, { t.id(1), t.id(0) } } }); +} + +} // namespace + +void TestLayerTree::groupHoldsItsLayers() +{ + ThreeLayers t; + groupTwo(t); + QCOMPARE(t.model.rowCount(), 2); + const QModelIndex group = t.model.index(1, MM::IconAndNameColum); + QCOMPARE(t.model.rowKind(group), LayerTreeModel::RowKind::Group); + QCOMPARE(t.model.rowId(group), TOYS); + QCOMPARE(t.model.layerIdOf(group), NULL_UID); + QCOMPARE(t.model.groupIdOf(group), TOYS); + QCOMPARE(group.data(Qt::DisplayRole).toString(), QString("Toys")); + QCOMPARE(t.model.groupIndex(TOYS, 0), group.siblingAtColumn(0)); + QCOMPARE(t.model.rowCount(group.siblingAtColumn(0)), 2); + QVERIFY(t.model.hasChildRows()); + + // A layer of the group is a row under it. + const QModelIndex inGroup = t.model.layerIndex(t.id(0), MM::IconAndNameColum); + QCOMPARE(inGroup.parent(), group.siblingAtColumn(0)); + QCOMPARE(inGroup.row(), 1); + QCOMPARE(t.model.getItemRowFromId(t.id(0)), 1); + QCOMPARE(t.model.rowKind(inGroup), LayerTreeModel::RowKind::Layer); + QCOMPARE(t.model.layerIdOf(inGroup), t.id(0)); + QCOMPARE(t.model.groupIdOf(inGroup), TOYS); + QCOMPARE(t.model.groupIdOf(t.model.layerIndex(t.id(2))), NULL_UID); + + // The same order again: nothing is read again, so that the selection and the folds stay. + QSignalSpy reset(&t.model, &QAbstractItemModel::modelReset); + t.model.setStack({ { NULL_UID, { t.id(2) } }, { TOYS, { t.id(1), t.id(0) } } }); + QCOMPARE(reset.count(), 0); + + // Taken out of the group, the layers are rows at the top again; the empty group stays. + t.model.setStack({ { NULL_UID, { t.id(2), t.id(1), t.id(0) } }, { TOYS, {} } }); + QCOMPARE(reset.count(), 1); + QCOMPARE(t.model.rowCount(), 4); + QCOMPARE(layerNames(t.model), QStringList({ "Layer 3", "Layer 2", "Layer 1", "Toys" })); + QCOMPARE(t.model.rowCount(t.model.groupIndex(TOYS, 0)), 0); +} + +void TestLayerTree::foldedGroupCountsItsLayers() +{ + ThreeLayers t; + groupTwo(t, true); + const QModelIndex group = t.model.groupIndex(TOYS, MM::IconAndNameColum); + QCOMPARE(group.data(Qt::DisplayRole).toString(), QString("Toys (2)")); + QCOMPARE(group.data(Qt::EditRole).toString(), QString("Toys")); + QVERIFY(group.data(LayerTreeModel::CollapsedRole).toBool()); + + // Unfolded, as the view tells, it shows its name alone. + QSignalSpy changed(&t.model, &QAbstractItemModel::dataChanged); + QVERIFY(t.model.setData(group, false, LayerTreeModel::CollapsedRole)); + QCOMPARE(changed.count(), 1); + QVERIFY(!t.model.setData(group, false, LayerTreeModel::CollapsedRole)); + QCOMPARE(changed.count(), 1); + QCOMPARE(group.data(Qt::DisplayRole).toString(), QString("Toys")); +} + +void TestLayerTree::groupRowSwitches() +{ + ThreeLayers t; + groupTwo(t); + const QModelIndex group = t.model.groupIndex(TOYS); + QSignalSpy changed(&t.model, &QAbstractItemModel::dataChanged); + QVERIFY(t.model.setData(group, false, Qt::CheckStateRole)); + QVERIFY(t.model.setData(group, true, LayerTreeModel::SoloRole)); + QVERIFY(t.model.setData(group, true, LayerTreeModel::LockedRole)); + QVERIFY(t.model.setData(group, QString("Truck"), Qt::EditRole)); + QCOMPARE(changed.count(), 4); + // The whole row is drawn again: the eye, the name and the buttons. + QCOMPARE(changed.at(0).at(0).value().column(), int(MM::HideColumn)); + QCOMPARE(changed.at(0).at(1).value().column(), int(MM::GroupButtonColum)); + + const LayerTreeModel::GroupRow row = t.model.groupRow(TOYS); + QVERIFY(!row.visible); + QVERIFY(row.solo); + QVERIFY(row.locked); + QCOMPARE(row.label, QString("Truck")); + // Its layers keep their own switches. + QVERIFY(t.model.layerIndex(t.id(0)).data(Qt::CheckStateRole).toBool()); + + // The same row given back by the main window draws nothing again. + t.model.setGroupRow(row); + QCOMPARE(changed.count(), 4); + + // A group is not dragged, and takes no drop, yet. + QVERIFY(!(t.model.flags(group) & Qt::ItemIsDragEnabled)); + QVERIFY(!(t.model.flags(group) & Qt::ItemIsDropEnabled)); +} + +void TestLayerTree::effectRowUnderLayerOfGroup() +{ + ThreeLayers t; + groupTwo(t); + t.model.setChildRows(t.id(0), { { 42, QIcon(), "Color Adjustment", true, EFFECT_SWITCH } }); + const QModelIndex layer = t.model.layerIndex(t.id(0), 0); + QCOMPARE(t.model.rowCount(layer), 1); + const QModelIndex child = t.model.index(0, 0, layer); + QCOMPARE(child.parent(), layer); + QCOMPARE(t.model.rowKind(child), LayerTreeModel::RowKind::Child); + QCOMPARE(t.model.layerIdOf(child), t.id(0)); + QCOMPARE(t.model.groupIdOf(child), TOYS); + + // The effect follows its layer out of the group. + t.model.setStack({ { NULL_UID, { t.id(0), t.id(2), t.id(1) } } }); + QCOMPARE(t.model.childRows(t.id(0)).size(), 1); + QCOMPARE(t.model.index(0, 0, t.model.layerIndex(t.id(0), 0)).data(Qt::UserRole).toInt(), 42); + + // Removed, a layer goes with its rows. + t.model.removeLayer(t.id(0)); + QVERIFY(!t.model.layerIndex(t.id(0)).isValid()); + QCOMPARE(t.model.rowCount(), 2); +} + +void TestLayerTree::removingLayerOfGroupKeepsTheGroup() +{ + ThreeLayers t; + groupTwo(t); + t.model.removeLayer(t.id(1)); + QCOMPARE(t.model.rowCount(), 2); + QCOMPARE(t.model.rowCount(t.model.groupIndex(TOYS, 0)), 1); + QCOMPARE(t.model.getItemRowFromId(t.id(0)), 0); + QVERIFY(!t.model.layerIndex(t.id(1)).isValid()); + t.model.removeLayer(t.id(0)); + QCOMPARE(t.model.rowCount(t.model.groupIndex(TOYS, 0)), 0); +} + +void TestLayerTree::dragCountsTheLayersOfGroups() +{ + // The rows are asked to move among all the layers, as the stack counts them. + ThreeLayers t; + QObject::disconnect(&t.model, nullptr, &t.manager, nullptr); + QObject::disconnect(&t.manager, nullptr, &t.model, nullptr); + groupTwo(t); + QSignalSpy requested(&t.model, &LayerTreeModel::layerMoveRequested); + + // The top layer, dropped below the group: under its two layers. + QVERIFY(dragLayer(t.model, 0, t.model.rowCount())); + QCOMPARE(requested.count(), 1); + QCOMPARE(requested.at(0).at(0).toInt(), t.id(2)); + QCOMPARE(requested.at(0).at(1).toInt(), 2); + + // A layer of the group, dropped onto the top layer: at its row. + QMimeData* data = t.model.mimeData({ t.model.layerIndex(t.id(0)) }); + QVERIFY(t.model.dropMimeData(data, Qt::MoveAction, -1, -1, t.model.layerIndex(t.id(2)))); + delete data; + QCOMPARE(requested.count(), 2); + QCOMPARE(requested.at(1).at(0).toInt(), t.id(0)); + QCOMPARE(requested.at(1).at(1).toInt(), 0); + + // Onto a group: not yet. + QVERIFY(!dragLayer(t.model, 0, -1, t.model.groupIndex(TOYS))); + QCOMPARE(requested.count(), 2); +} + +void TestLayerTree::delegateClicksOnGroupButtons() +{ + ThreeLayers t; + groupTwo(t); + LayerView v(t.model); + QVERIFY(QTest::qWaitForWindowExposed(&v.view)); + QSignalSpy removed(&v.delegate, &LayerItemDelegate::itemRemoved); + QSignalSpy duplicated(&v.delegate, &LayerItemDelegate::itemDuplicated); + const QModelIndex group = t.model.groupIndex(TOYS); + + v.click(LayerRowButton::Hide, group); + QVERIFY(!t.model.groupRow(TOYS).visible); + v.click(LayerRowButton::Solo, group); + QVERIFY(t.model.groupRow(TOYS).solo); + + // Folded, the lock still acts at the first click. + v.view.collapse(group); + v.click(LayerRowButton::Lock, group); + QVERIFY(t.model.groupRow(TOYS).locked); + + // Duplicate and delete are greyed on a group. + v.click(LayerRowButton::Duplicate, group); + v.click(LayerRowButton::Delete, group); + QCOMPARE(removed.count(), 0); + QCOMPARE(duplicated.count(), 0); + QCOMPARE(t.model.rowCount(), 2); + + // While learning, the eye of a group chooses the eye of the group, to link it to a key. + LearnMode learn; + learn.makeCurrent(); + learn.start(); + v.click(LayerRowButton::Hide, group); + QVERIFY(learn.target() == LinkTarget::of(LinkTarget::GroupElement, TOYS, "visible")); + QVERIFY(!t.model.groupRow(TOYS).visible); + learn.stop(); +} diff --git a/tests/TestLayerTree.h b/tests/TestLayerTree.h index ec398510..2fa510ae 100644 --- a/tests/TestLayerTree.h +++ b/tests/TestLayerTree.h @@ -40,6 +40,13 @@ private slots: void sourceItemsRefuseDropsOnThem(); void effectItemKeepsItsIds(); void sourceDelegateClicksOnEffectButtons(); + void groupHoldsItsLayers(); + void foldedGroupCountsItsLayers(); + void groupRowSwitches(); + void effectRowUnderLayerOfGroup(); + void removingLayerOfGroupKeepsTheGroup(); + void dragCountsTheLayersOfGroups(); + void delegateClicksOnGroupButtons(); }; #endif /* TEST_LAYER_TREE_H_ */ diff --git a/tests/TestProjectRoundTrip.cpp b/tests/TestProjectRoundTrip.cpp index 38fa4ae8..2b955e87 100644 --- a/tests/TestProjectRoundTrip.cpp +++ b/tests/TestProjectRoundTrip.cpp @@ -1170,6 +1170,8 @@ void TestProjectRoundTrip::keepsGroups() // Their states, and what they do to their layers. QVERIFY(!camion->isVisible()); + QVERIFY(camion->isCollapsed()); + QVERIFY(!manager.getGroupByName("Arbre")->isCollapsed()); QVERIFY(!manager.layerIsVisible(manager.getLayerByName("Camion cabine"))); QVERIFY(arbre->isLocked()); QCOMPARE(arbre->getOpacity(), 0.5f); diff --git a/tests/fixtures/groups.mmp b/tests/fixtures/groups.mmp index 87ae99b5..ffddb2f6 100644 --- a/tests/fixtures/groups.mmp +++ b/tests/fixtures/groups.mmp @@ -1,6 +1,7 @@ { "groups": [ { + "collapsed": true, "depth": 0, "id": 2, "locked": false, From cd6c2014f9b4eb2542b62b4a297359d9f66bb6c9 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:54:53 -0500 Subject: [PATCH 06/12] Group, ungroup and drag layers into groups Group (Ctrl+G) puts the layers selected in the list in a new group, named after them: "Truck 1" and "Truck 2" make "Truck". Ungroup (Ctrl+Shift+G) takes them out, and New Group adds a group without layers. Several layers are selected with Shift or Ctrl. Dropped onto a group, which the list frames, a layer goes into it; dropped between two rows, beside them. A group is dragged too, between the rows of the top level. The cross of a group, or Delete, deletes it with its layers, after asking. Each of these is one step to undo: the places of the stack before and after are kept. --- docs/informations/keyboard-shortcuts.html | 10 +- .../informations/mapmap-keyboard-shortcuts.md | 4 +- src/core/Commands.cpp | 25 +++ src/core/Commands.h | 35 ++++ src/core/Group.cpp | 49 +++++ src/core/Group.h | 11 + src/core/MappingManager.cpp | 112 +++++++++- src/core/MappingManager.h | 30 +++ src/core/StackChangeCommand.cpp | 46 +++++ src/core/core.pri | 1 + src/gui/LayerItemDelegate.cpp | 11 +- src/gui/LayerItemDelegate.h | 2 + src/gui/LayerTreeModel.cpp | 148 ++++++++++---- src/gui/LayerTreeModel.h | 14 +- src/gui/MainWindow.cpp | 193 +++++++++++++++++- src/gui/MainWindow.h | 28 +++ tests/TestLayerTree.cpp | 95 +++++++-- tests/TestLayerTree.h | 1 + tests/TestMappingManager.cpp | 135 ++++++++++++ tests/TestMappingManager.h | 5 + tests/tests.pro | 1 + 21 files changed, 893 insertions(+), 63 deletions(-) create mode 100644 src/core/StackChangeCommand.cpp diff --git a/docs/informations/keyboard-shortcuts.html b/docs/informations/keyboard-shortcuts.html index 26fe6c2a..a9d26c23 100644 --- a/docs/informations/keyboard-shortcuts.html +++ b/docs/informations/keyboard-shortcuts.html @@ -79,7 +79,7 @@ Delete - Delete layer + Delete layer, or the selected group and its layers, after asking F2 @@ -117,6 +117,14 @@ End Lower layer to bottom + + Ctrl + G + Put the selected layers in a new group + + + Ctrl + Shift + G + Ungroup: the layers stay, the group goes + diff --git a/docs/informations/mapmap-keyboard-shortcuts.md b/docs/informations/mapmap-keyboard-shortcuts.md index 483b7c19..a9a5d4e6 100644 --- a/docs/informations/mapmap-keyboard-shortcuts.md +++ b/docs/informations/mapmap-keyboard-shortcuts.md @@ -18,7 +18,7 @@ | Ctrl + Z | Undo | | Ctrl + Shift + Z | Redo | | Ctrl + D | Duplicate layer | -| Delete | Delete layer | +| Delete | Delete layer, or the selected group and its layers, after asking | | F2 | Rename layer | | H | Flip horizontally (in the input view: flip the image inside the layer) | | V | Flip vertically (in the input view: flip the image inside the layer) | @@ -32,6 +32,8 @@ | Page Down | Lower layer | | Home | Raise layer to top | | End | Lower layer to bottom | +| Ctrl + G | Put the selected layers in a new group | +| Ctrl + Shift + G | Ungroup: the layers stay, the group goes | | View | | | --- | --- | diff --git a/src/core/Commands.cpp b/src/core/Commands.cpp index 6fabd440..8fdd125f 100644 --- a/src/core/Commands.cpp +++ b/src/core/Commands.cpp @@ -308,6 +308,31 @@ DeleteLayerCommand::DeleteLayerCommand(MainWindow *mainWindow, uid layerId, QUnd setText(QObject::tr("Delete layer")); } +DeleteGroupCommand::DeleteGroupCommand(MainWindow* mainWindow, uid groupId) : + _mainWindow(mainWindow), + _groupId(groupId) +{ + setText(QObject::tr("Delete group")); + // Its layers are deleted as one by one, as children of this command. + for (const Layer::ptr& layer : mainWindow->getMappingManager().getGroupLayers(groupId)) + new DeleteLayerCommand(mainWindow, layer->getId(), this); +} + +void DeleteGroupCommand::undo() +{ + // The layers come back on top of the stack; the places kept put them back in the group. + QUndoCommand::undo(); + _mainWindow->getMappingManager().restoreStack(_before); +} + +void DeleteGroupCommand::redo() +{ + MappingManager& manager = _mainWindow->getMappingManager(); + _before = manager.stack(); + QUndoCommand::redo(); + manager.removeGroup(_groupId); +} + void DeleteLayerCommand::undo() { if (!_layer.isNull()) diff --git a/src/core/Commands.h b/src/core/Commands.h index 9a4bf7fb..41c694e9 100644 --- a/src/core/Commands.h +++ b/src/core/Commands.h @@ -27,6 +27,7 @@ #include "Effect.h" #include "Link.h" #include "ShapeHandles.h" +#include "MappingManager.h" namespace mmp { @@ -263,6 +264,40 @@ class MoveLayerCommand : public QUndoCommand int _fromIdx = -1; }; +/** + * Changes the arrangement of the stack: groups made, unmade or moved, layers put in them or + * taken out. Keeps the places before and after, as MappingManager::stack() gives them. + */ +class StackChangeCommand : public QUndoCommand +{ +public: + StackChangeCommand(MappingManager& manager, const QVector& before, + const QVector& after, const QString& text); + + void undo() override; + void redo() override; + +private: + MappingManager& _manager; + QVector _before; + QVector _after; +}; + +/// Deletes a group and its layers; undo puts them back, each at its place. +class DeleteGroupCommand : public QUndoCommand +{ +public: + DeleteGroupCommand(MainWindow* mainWindow, uid groupId); + + void undo() override; + void redo() override; + +private: + MainWindow* _mainWindow; + uid _groupId; + QVector _before; +}; + /** * Changes the output resolution of the project. Can also scale the output * shapes with the output frame, so that they stay at the same place in it. diff --git a/src/core/Group.cpp b/src/core/Group.cpp index 97c0f764..80b4b9f8 100644 --- a/src/core/Group.cpp +++ b/src/core/Group.cpp @@ -88,6 +88,55 @@ void Group::setCollapsed(bool collapsed) } } +QString Group::nameFor(const QStringList& layerNames) +{ + if (layerNames.isEmpty()) + return QString(); + + // The start they all share. + QString start = layerNames.first(); + for (const QString& name : layerNames) + { + int i = 0; + while (i < start.size() && i < name.size() && start.at(i) == name.at(i)) + i++; + start.truncate(i); + } + // Cut back to the end of a word: "Car" and "Cat" share "Ca", which names neither. + auto cutsAWord = [&layerNames](const QString& part) { + if (part.isEmpty() || !part.back().isLetterOrNumber()) + return false; + for (const QString& name : layerNames) + if (name.size() > part.size() && name.at(part.size()).isLetter() && part.back().isLetter()) + return true; + return false; + }; + while (cutsAWord(start)) + start.chop(1); + // Without the numbers, spaces and dashes of the end. + while (!start.isEmpty() && (start.back().isDigit() || start.back().isSpace() + || start.back() == QLatin1Char('-') || start.back() == QLatin1Char('_'))) + start.chop(1); + if (!start.isEmpty()) + return start; + + const int MAXIMUM_LENGTH = 30; + const QString names = layerNames.join(QStringLiteral(", ")); + if (names.size() <= MAXIMUM_LENGTH) + return names; + return names.left(MAXIMUM_LENGTH).trimmed() + QChar(0x2026); +} + +QString Group::numberedName(const QStringList& takenNames) +{ + for (int number = 1; ; number++) + { + const QString name = tr("Group %1").arg(number); + if (!takenNames.contains(name)) + return name; + } +} + QStringList Group::_reservedKeys() const { return Element::_reservedKeys() << ProjectLabels::DEPTH; diff --git a/src/core/Group.h b/src/core/Group.h index f8111bf0..a826c3bb 100644 --- a/src/core/Group.h +++ b/src/core/Group.h @@ -74,6 +74,17 @@ class Group : public Element /// Folds the group in the list of layers, or unfolds it. Saved with the project. void setCollapsed(bool collapsed); + /** + * Returns a name for a group of layers with these names: the start they share, ending + * between two words, without the numbers and spaces at its end ("Truck 1", "Truck 2": + * "Truck"). Without such a start, the names, separated by commas, cut near 30 characters. + * Empty for no names. + */ + static QString nameFor(const QStringList& layerNames); + + /// Returns "Group 1", or the first such name, with a greater number, that is not taken. + static QString numberedName(const QStringList& takenNames); + protected: /// Its place in the stack is written by ProjectWriter, from the stack. QStringList _reservedKeys() const override; diff --git a/src/core/MappingManager.cpp b/src/core/MappingManager.cpp index 8ab4eefb..d934855f 100644 --- a/src/core/MappingManager.cpp +++ b/src/core/MappingManager.cpp @@ -581,10 +581,120 @@ void MappingManager::arrangeGroups(const QVector>& groups } _flattenStack(false); + _assignGroups(); + emit stackChanged(); +} + +bool MappingManager::restoreStack(const QVector& stack) +{ + // The same layers, each once: undo never adds nor removes one. + QSet layers; + int count = 0; + for (const StackEntry& entry : stack) + { + if (entry.group.isNull() && entry.layers.size() != 1) + return false; + for (const Layer::ptr& layer : entry.layers) + { + if (layerMap.value(layer->getId()) != layer) + return false; + layers.insert(layer); + count++; + } + } + if (count != layerMap.size() || layers.size() != count) + { + qWarning() << "A stack whose layers are not those of the project is not put back"; + return false; + } + if (stack == _stack) + return true; + + groupMap.clear(); + for (const StackEntry& entry : stack) + if (!entry.group.isNull()) + groupMap.insert(entry.group->getId(), entry.group); + _stack = stack; + _flattenStack(true); + _assignGroups(); + emit stackChanged(); + return true; +} + +bool MappingManager::placeLayers(const QVector& layerIds, uid groupId, int index) +{ + QVector layers; + for (uid layerId : layerIds) + { + const Layer::ptr layer = layerMap.value(layerId); + if (layer.isNull()) + { + qWarning() << "No layer" << layerId << "to place"; + return false; + } + if (!layers.contains(layer)) + layers.append(layer); + } + const Group::ptr group = groupMap.value(groupId); + if (groupId != NULL_UID && group.isNull()) + { + qWarning() << "No group" << groupId << "to place layers in"; + return false; + } + if (layers.isEmpty()) + return true; + + // The place, counted before the layers leave theirs: those above it no longer count. + const int groupIndex = group.isNull() ? -1 : _stackIndexOfGroup(groupId); + const int size = group.isNull() ? int(_stack.size()) : int(_stack.at(groupIndex).layers.size()); + int at = (index < 0 || index > size) ? size : index; + for (int i = at - 1; i >= 0; i--) + { + if (group.isNull() ? (_stack.at(i).group.isNull() && layers.contains(_stack.at(i).layers.first())) + : layers.contains(_stack.at(groupIndex).layers.at(i))) + at--; + } + + for (const Layer::ptr& layer : std::as_const(layers)) + _takeFromStack(layer); + if (group.isNull()) + { + for (int i = 0; i < layers.size(); i++) + _stack.insert(at + i, StackEntry { Group::ptr(), { layers.at(i) } }); + } + else + { + QVector& groupLayers = _stack[_stackIndexOfGroup(groupId)].layers; + for (int i = 0; i < layers.size(); i++) + groupLayers.insert(at + i, layers.at(i)); + } + _flattenStack(true); + _assignGroups(); + emit stackChanged(); + return true; +} + +bool MappingManager::moveGroup(uid groupId, int index) +{ + const int from = _stackIndexOfGroup(groupId); + if (from < 0) + return false; + int to = qBound(0, index, int(_stack.size())); + if (to > from) + to--; + if (to == from) + return true; + _stack.move(from, to); + _flattenStack(true); + emit stackChanged(); + return true; +} + +void MappingManager::_assignGroups() +{ for (const StackEntry& entry : std::as_const(_stack)) for (const Layer::ptr& layer : entry.layers) layer->_setGroup(entry.group); - emit stackChanged(); } QVector MappingManager::_gatherGroups( diff --git a/src/core/MappingManager.h b/src/core/MappingManager.h index 2e6609f5..2c395850 100644 --- a/src/core/MappingManager.h +++ b/src/core/MappingManager.h @@ -61,6 +61,9 @@ class MappingManager : public QObject Group::ptr group; /// The layers, from the top: one when group is null; none or more for a group. QVector layers; + + bool operator==(const StackEntry& other) const { return group == other.group && layers == other.layers; } + bool operator!=(const StackEntry& other) const { return !(*this == other); } }; signals: @@ -336,6 +339,30 @@ class MappingManager : public QObject */ void arrangeGroups(const QVector>& groups, const QHash& layerGroups); + /// Returns the places of the top level of the stack, from the top: what undo keeps. + QVector stack() const { return _stack; } + + /** + * Puts back places got from stack(): their groups come back, other groups go, and the + * layers take their groups and their order. Returns false, changing nothing, when the + * layers are not those of the project. + */ + bool restoreStack(const QVector& stack); + + /** + * Puts layers, in this order, in a group, from index among its layers (0 is the top, -1 + * the bottom); or, when groupId is NULL_UID, out of any group, from index among the places + * of the top level of the stack. index counts the places before the layers leave theirs. + * Returns false, changing nothing, for an unknown layer or group. + */ + bool placeLayers(const QVector& layerIds, uid groupId, int index); + + /** + * Moves a group and its layers to a place of the top level of the stack, counted before + * it leaves its own (0 is the top). Returns false for an unknown group. + */ + bool moveGroup(uid groupId, int index); + /// Returns the list of visible sources (ie. paints for which at least one mapping is visible). QVector getVisibleSources() const; @@ -360,6 +387,9 @@ class MappingManager : public QObject /// Returns the place in _stack of the entry of a group, or -1. int _stackIndexOfGroup(uid groupId) const; + /// Gives each layer the group of its entry, after the entries changed. + void _assignGroups(); + /// Returns the place in _stack of the entry holding the layer at this row of the stack. int _stackIndexOfRow(int row) const; diff --git a/src/core/StackChangeCommand.cpp b/src/core/StackChangeCommand.cpp new file mode 100644 index 00000000..4827a448 --- /dev/null +++ b/src/core/StackChangeCommand.cpp @@ -0,0 +1,46 @@ +/* + * StackChangeCommand.cpp + * + * (c) 2026 MapMap contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "MappingManager.h" +#include "Commands.h" + +namespace mmp { + +// Apart from Commands.cpp, which needs the main window, so that the tests use it. + +StackChangeCommand::StackChangeCommand(MappingManager& manager, const QVector& before, + const QVector& after, const QString& text) : + _manager(manager), + _before(before), + _after(after) +{ + setText(text); +} + +void StackChangeCommand::undo() +{ + _manager.restoreStack(_before); +} + +void StackChangeCommand::redo() +{ + _manager.restoreStack(_after); +} + +} diff --git a/src/core/core.pri b/src/core/core.pri index 66034d34..79837fce 100644 --- a/src/core/core.pri +++ b/src/core/core.pri @@ -68,6 +68,7 @@ SOURCES += $$PWD/Commands.cpp \ $$PWD/Layer.cpp \ $$PWD/Link.cpp \ $$PWD/MoveLayerCommand.cpp \ + $$PWD/StackChangeCommand.cpp \ $$PWD/MappingManager.cpp \ $$PWD/MetaObjectRegistry.cpp \ $$PWD/MidiMessage.cpp \ diff --git a/src/gui/LayerItemDelegate.cpp b/src/gui/LayerItemDelegate.cpp index 6342fc04..1079e4d3 100644 --- a/src/gui/LayerItemDelegate.cpp +++ b/src/gui/LayerItemDelegate.cpp @@ -126,7 +126,7 @@ bool buttonActs(LayerRowButton button, const QModelIndex& index) if (isLayerRow(index)) return true; if (isGroupRow(index)) - return button == LayerRowButton::Hide || button == LayerRowButton::Solo || button == LayerRowButton::Lock; + return button != LayerRowButton::Duplicate; return isSwitchRow(index) && (button == LayerRowButton::Hide || button == LayerRowButton::Delete); } @@ -333,7 +333,7 @@ void LayerItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt MM::MAPPING_LIST_ICON_SIZE); mappingDuplicateButton.text = tr("Duplicate layer"); - // delete button: greyed on a group, which is not deleted from the list yet + // delete button QStyleOptionToolButton mappingDeleteButton; if (buttonActs(LayerRowButton::Delete, index)) mappingDeleteButton.state |= QStyle::State_Enabled; @@ -448,6 +448,7 @@ bool LayerItemDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *view, case LayerRowButton::Hide: lines << tr("Show or hide the layers of the group"); break; case LayerRowButton::Solo: lines << tr("Solo group: show only its layers"); break; case LayerRowButton::Lock: lines << tr("Lock the layers of the group"); break; + case LayerRowButton::Delete: lines << tr("Delete the group and its layers"); break; default: lines << tr("Not available for a group yet"); break; } } @@ -497,14 +498,16 @@ bool LayerItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, else if (mouseEvent->buttons() & Qt::LeftButton && isGroupRow(index) && layerRowButtonAt(index.column(), option.rect, mouseEvent->pos(), &button)) { - // The eye, the solo and the lock of a group act at the first click, folded or not; its - // other buttons are greyed and do nothing. + // The buttons of a group act at the first click, folded or not; duplicate is greyed + // and does nothing. if (button == LayerRowButton::Hide) model->setData(index, !(index.data(Qt::CheckStateRole).toBool()), Qt::CheckStateRole); else if (button == LayerRowButton::Solo) model->setData(index, !(index.data(LayerTreeModel::SoloRole).toBool()), LayerTreeModel::SoloRole); else if (button == LayerRowButton::Lock) model->setData(index, !(index.data(LayerTreeModel::LockedRole).toBool()), LayerTreeModel::LockedRole); + else if (button == LayerRowButton::Delete) + emit groupRemoved(index.data(LayerTreeModel::GroupIdRole).toInt()); return true; } else if (mouseEvent->buttons() & Qt::LeftButton && isLayerRow(index) diff --git a/src/gui/LayerItemDelegate.h b/src/gui/LayerItemDelegate.h index 53d73206..9aa80ed1 100644 --- a/src/gui/LayerItemDelegate.h +++ b/src/gui/LayerItemDelegate.h @@ -81,6 +81,8 @@ class LayerItemDelegate : public QStyledItemDelegate void itemContextMenuRequested(const QPoint &pos); void itemDuplicated(uid itemId); void itemRemoved(uid itemId); + /// Tells that the cross of a group was clicked: the group is not deleted yet. + void groupRemoved(uid groupId); /// Tells that the cross of a row under a layer, such as an effect, was clicked. void childRemoved(uid layerId, uid childId); diff --git a/src/gui/LayerTreeModel.cpp b/src/gui/LayerTreeModel.cpp index 06c49b75..fb72be96 100644 --- a/src/gui/LayerTreeModel.cpp +++ b/src/gui/LayerTreeModel.cpp @@ -21,6 +21,7 @@ #include "LayerTreeModel.h" #include +#include namespace mmp { @@ -230,26 +231,29 @@ QVariant LayerTreeModel::data(const QModelIndex &index, int role) const Qt::ItemFlags LayerTreeModel::flags(const QModelIndex &index) const { + // Rows are dropped between the rows of the top level. if (!index.isValid()) - return Qt::NoItemFlags; + return Qt::ItemIsDropEnabled; // A child row can be selected; what else it allows comes with what it stands for. if (rowKind(index) == RowKind::Child) return Qt::ItemIsEnabled | Qt::ItemIsSelectable; - // A group is renamed and switched as a layer; it is not dragged yet, and takes no drop. + // A group is renamed, switched and dragged as a layer. It takes layers dropped onto it, + // which the view shows with a frame, or between its rows. if (rowKind(index) == RowKind::Group) { + const Qt::ItemFlags flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; if (index.column() == MM::IconAndNameColum) - return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable; - return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable; + return flags | Qt::ItemIsEditable; + return flags | Qt::ItemIsUserCheckable; } + // A layer takes no drop onto it: the view shows a line, above or below it, rather than a + // frame, which means "into a group". if (index.column() == MM::IconAndNameColum) - return Qt::ItemIsEnabled | Qt::ItemIsSelectable | - Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; + return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsDragEnabled; - return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | - Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; + return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable | Qt::ItemIsDragEnabled; } Qt::DropActions LayerTreeModel::supportedDropActions() const @@ -259,6 +263,12 @@ Qt::DropActions LayerTreeModel::supportedDropActions() const #define MIMETYPE QLatin1String("mapping/model.item.list") +namespace { +/// The kinds of rows in dragged data, each followed by its id. +const qint32 DRAGGED_LAYER = 0; +const qint32 DRAGGED_GROUP = 1; +} + QStringList LayerTreeModel::mimeTypes() const { QStringList types; @@ -272,15 +282,30 @@ QMimeData *LayerTreeModel::mimeData(const QModelIndexList &indexes) const QByteArray encodeData; QDataStream stream(&encodeData, QIODevice::WriteOnly); - for (QModelIndex index: indexes) { - if (index.isValid() && rowKind(index) == RowKind::Layer) { - if (index.column() == MM::HideColumn) { - int id = data(index, Qt::UserRole).toInt(); - stream << id; - break; // Just take a first index and go - } + // Each row dragged, once, from the top: its kind, then its id. + QVector> rows; + for (const QModelIndex& index : indexes) { + if (!index.isValid()) + continue; + const RowKind kind = rowKind(index); + if (kind == RowKind::Group) { + const int row = _topRowOfGroup(groupIdOf(index)); + if (!rows.contains({ -1 - row, int(groupIdOf(index)) })) + rows.append({ -1 - row, int(groupIdOf(index)) }); + } else if (kind == RowKind::Layer) { + const int row = _flatRow(layerIdOf(index)); + if (!rows.contains({ row, int(layerIdOf(index)) })) + rows.append({ row, int(layerIdOf(index)) }); } } + // Layers by their row in the stack; groups, before them, by their row. + std::sort(rows.begin(), rows.end(), [](const QPair& a, const QPair& b) { + if ((a.first < 0) != (b.first < 0)) + return a.first < 0; + return a.first < 0 ? a.first > b.first : a.first < b.first; + }); + for (const QPair& row : std::as_const(rows)) + stream << qint32(row.first < 0 ? DRAGGED_GROUP : DRAGGED_LAYER) << qint32(row.second); mimeData->setData(MIMETYPE, encodeData); @@ -289,8 +314,8 @@ QMimeData *LayerTreeModel::mimeData(const QModelIndexList &indexes) const bool LayerTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) { - if (!data->hasFormat(MIMETYPE) - || column > 0) + Q_UNUSED(column); + if (!data->hasFormat(MIMETYPE)) return false; if (action == Qt::IgnoreAction) @@ -298,33 +323,78 @@ bool LayerTreeModel::dropMimeData(const QMimeData *data, Qt::DropAction action, QByteArray encoded = data->data(MIMETYPE); QDataStream stream(&encoded, QIODevice::ReadOnly); - int id; - stream >> id; - if (stream.status() != QDataStream::Ok) - return false; - // Rows are counted among all the layers, as the stack counts them. - const int from = _flatRow(id); - if (from < 0) - return false; + QVector layers; + QVector groups; + while (!stream.atEnd()) { + qint32 kind, id; + stream >> kind >> id; + if (stream.status() != QDataStream::Ok) + return false; + if (kind == DRAGGED_GROUP && _topRowOfGroup(id) >= 0) + groups << id; + else if (kind == DRAGGED_LAYER && _flatRow(id) >= 0) + layers << id; + else + return false; + } - // A drop between rows names the insertion gap before removal of the dragged row. - // A drop onto a layer names its final row directly. A group takes no drop yet. - int to; - if (parent.isValid()) { - if (rowKind(parent) == RowKind::Group) + // A group goes between the rows of the top level, alone: a group holds no group. + if (!groups.isEmpty()) { + if (groups.size() > 1 || !layers.isEmpty() || parent.isValid()) return false; - to = _flatRow(layerIdOf(parent)); - if (to < 0) + const int gap = row < 0 ? int(_rows.size()) : qMin(row, int(_rows.size())); + const int from = _topRowOfGroup(groups.first()); + if (gap != from && gap != from + 1) + emit groupMoveRequested(groups.first(), gap); + return true; + } + if (layers.isEmpty()) + return false; + + // Where the layers go: in a group, at a row among its layers, or out of any, at a row of + // the top level. Both are counted before the dragged rows leave theirs. + uid groupId = NULL_UID; + int index = 0; + if (!parent.isValid()) { + index = row < 0 ? int(_rows.size()) : qMin(row, int(_rows.size())); + } else if (rowKind(parent) == RowKind::Group) { + // Onto the group, at the top of its layers; or between them. + groupId = groupIdOf(parent); + index = row < 0 ? 0 : row; + } else if (rowKind(parent) == RowKind::Layer && row < 0) { + // Onto a layer: at its row, in its group if it is in one. + int topRow, groupRow; + if (!_locate(layerIdOf(parent), &topRow, &groupRow)) return false; + groupId = _rows.at(topRow).groupId; + index = groupId == NULL_UID ? topRow : groupRow; } else { - const int gap = row < 0 ? int(_rows.size()) : qMin(row, int(_rows.size())); - int layersAbove = 0; - for (int i = 0; i < gap; i++) - layersAbove += _rows.at(i).layers.size(); - to = layersAbove > from ? layersAbove - 1 : layersAbove; + // Among the rows under a layer, its effects. + return false; } - if (to != from) - emit layerMoveRequested(id, to); + + // One layer in no group, moved at the top level: its row among all the layers, as the stack + // counts them, as Raise and Lower do. + int topRow, groupRow; + if (layers.size() == 1 && groupId == NULL_UID + && _locate(layers.first(), &topRow, &groupRow) && groupRow < 0) { + const int from = _flatRow(layers.first()); + int to; + if (parent.isValid()) { + // Onto a layer: it takes its row. + to = _flatRow(layerIdOf(parent)); + } else { + int layersAbove = 0; + for (int i = 0; i < index; i++) + layersAbove += _rows.at(i).layers.size(); + to = layersAbove > from ? layersAbove - 1 : layersAbove; + } + if (to != from) + emit layerMoveRequested(layers.first(), to); + return true; + } + + emit layersPlaceRequested(layers, groupId, index); return true; } diff --git a/src/gui/LayerTreeModel.h b/src/gui/LayerTreeModel.h index 9d012dd4..6f3d21d1 100644 --- a/src/gui/LayerTreeModel.h +++ b/src/gui/LayerTreeModel.h @@ -186,9 +186,21 @@ class LayerTreeModel : public QAbstractItemModel bool hasChildRows() const; signals: - /// Requests a new project row for the single layer dragged by the view. + /// Requests a new project row for the single layer, in no group, dragged by the view + /// between two rows of the top level. void layerMoveRequested(uid layerId, int to); + /** + * Requests to put the layers dragged by the view, in this order, in a group from index among + * its layers, or, when groupId is NULL_UID, out of any group from index among the rows of + * the top level: see MappingManager::placeLayers(). + */ + void layersPlaceRequested(const QVector& layerIds, uid groupId, int index); + + /// Requests to move the group dragged by the view to a row of the top level, counted before + /// it leaves its own: see MappingManager::moveGroup(). + void groupMoveRequested(uid groupId, int index); + /** * Tells that the switch of a child row was clicked: on is the value asked for. The row does * not change by itself; it follows the setting through setChildRows(). diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 84ddfc75..d8f9bfc9 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -593,6 +593,8 @@ void MainWindow::setCurrentGroup(uid groupId) currentLayerId = NULL_UID; currentSelectedIndex = QModelIndex(); setLayerActionsEnabled(false); + // Delete deletes the group, after asking. + deleteLayerAction->setEnabled(true); layerPropertyPanel->setCurrentWidget(inspector); layerPropertyPanel->setEnabled(true); updateEffectActions(); @@ -617,6 +619,153 @@ void MainWindow::removeGroupInspectors(bool all) _currentGroupId = NULL_UID; } +bool MainWindow::changeStack(const QString& text, const std::function& change) +{ + const QVector before = mappingManager->stack(); + if (!change()) + return false; + const QVector after = mappingManager->stack(); + if (after == before) + return false; + undoStack->push(new StackChangeCommand(*mappingManager, before, after, text)); + return true; +} + +QVector MainWindow::selectedLayerIds() const +{ + QVector ids; + for (const QModelIndex& index : layerList->selectionModel()->selectedRows(0)) + if (layerListModel->rowKind(index) == LayerTreeModel::RowKind::Layer) + ids << layerListModel->layerIdOf(index); + if (ids.isEmpty() && hasCurrentLayer()) + ids << currentLayerId; + std::sort(ids.begin(), ids.end(), [this](uid a, uid b) { + return mappingManager->getLayerIndex(a) < mappingManager->getLayerIndex(b); + }); + return ids; +} + +uid MainWindow::groupToUngroup() const +{ + if (_currentGroupId != NULL_UID) + return _currentGroupId; + if (hasCurrentLayer()) + { + const Layer::ptr layer = mappingManager->getLayerById(currentLayerId); + if (!layer.isNull() && !layer->getGroup().isNull()) + return layer->getGroup()->getId(); + } + return NULL_UID; +} + +int MainWindow::currentStackIndex() const +{ + const QVector stack = mappingManager->stack(); + for (int i = 0; i < stack.size(); i++) + { + const MappingManager::StackEntry& entry = stack.at(i); + if (_currentGroupId != NULL_UID && !entry.group.isNull() && entry.group->getId() == _currentGroupId) + return i; + if (hasCurrentLayer()) + for (const Layer::ptr& layer : entry.layers) + if (layer->getId() == currentLayerId) + return i; + } + return 0; +} + +void MainWindow::updateGroupActions() +{ + if (!groupLayersAction) + return; + // Grouping a group would put a group in a group. + bool hasGroup = false; + for (const QModelIndex& index : layerList->selectionModel()->selectedRows(0)) + if (layerListModel->rowKind(index) == LayerTreeModel::RowKind::Group) + hasGroup = true; + groupLayersAction->setEnabled(!hasGroup && !selectedLayerIds().isEmpty()); + ungroupLayersAction->setEnabled(groupToUngroup() != NULL_UID); +} + +void MainWindow::selectGroupRow(uid groupId) +{ + const QModelIndex index = layerListModel->groupIndex(groupId, MM::IconAndNameColum); + if (index.isValid()) + layerList->setCurrentIndex(index); +} + +void MainWindow::groupSelectedLayers() +{ + if (!groupLayersAction->isEnabled()) + return; + const QVector ids = selectedLayerIds(); + QStringList names; + for (uid id : ids) + names << mappingManager->getLayerById(id)->getName(); + + // The group takes the place of the topmost layer, named after its layers. + Group::ptr group(new Group); + group->setName(Group::nameFor(names)); + const bool grouped = changeStack(tr("Group layers"), [this, &ids, &group]() { + int at = 0; + const QVector stack = mappingManager->stack(); + for (int i = 0; i < stack.size(); i++) + for (const Layer::ptr& layer : stack.at(i).layers) + if (layer->getId() == ids.first() && at == 0) + at = i; + return mappingManager->addGroup(group, at) != NULL_UID + && mappingManager->placeLayers(ids, group->getId(), 0); + }); + if (grouped) + selectGroupRow(group->getId()); +} + +void MainWindow::ungroupLayers() +{ + const uid groupId = groupToUngroup(); + if (groupId == NULL_UID) + return; + changeStack(tr("Ungroup layers"), [this, groupId]() { return mappingManager->removeGroup(groupId); }); +} + +void MainWindow::addEmptyGroup() +{ + QStringList taken; + for (const Group::ptr& group : mappingManager->getGroups()) + taken << group->getName(); + Group::ptr group(new Group); + group->setName(Group::numberedName(taken)); + const int at = currentStackIndex(); + if (changeStack(tr("New group"), [this, &group, at]() { return mappingManager->addGroup(group, at) != NULL_UID; })) + selectGroupRow(group->getId()); +} + +void MainWindow::askToDeleteGroup(uid groupId) +{ + const Group::ptr group = mappingManager->getGroupById(groupId); + if (group.isNull()) + return; + // Its layers go with it: ask first. Undo puts them back. + const int count = int(mappingManager->getGroupLayers(groupId).size()); + if (count > 0 && QMessageBox::question(this, tr("Delete group"), + tr("Delete the group \"%1\" and its %n layer(s)?", nullptr, count).arg(group->getName()), + QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::Yes) + return; + undoStack->push(new DeleteGroupCommand(this, groupId)); +} + +void MainWindow::placeDroppedLayers(const QVector& layerIds, uid groupId, int index) +{ + changeStack(layerIds.size() == 1 ? tr("Move layer") : tr("Move layers"), [this, &layerIds, groupId, index]() { + return mappingManager->placeLayers(layerIds, groupId, index); + }); +} + +void MainWindow::moveDroppedGroup(uid groupId, int index) +{ + changeStack(tr("Move group"), [this, groupId, index]() { return mappingManager->moveGroup(groupId, index); }); +} + void MainWindow::setLayerActionsEnabled(bool enabled) { for (QAction* action : { duplicateLayerAction, deleteLayerAction, renameLayerAction, @@ -1952,7 +2101,9 @@ void MainWindow::duplicateLayerItem() void MainWindow::deleteLayerItem() { - if (hasCurrentLayer()) + if (_currentGroupId != NULL_UID) + askToDeleteGroup(_currentGroupId); + else if (hasCurrentLayer()) { undoStack->push(new DeleteLayerCommand(this, getCurrentLayerId())); } @@ -2539,7 +2690,8 @@ void MainWindow::createLayout() layerList = new QTreeView; // Named for the stylesheet, which gives it the look of the other lists. layerList->setObjectName(QStringLiteral("layerList")); - layerList->setSelectionMode(QAbstractItemView::SingleSelection); + // Several layers are selected, with Shift or Ctrl, to be grouped. + layerList->setSelectionMode(QAbstractItemView::ExtendedSelection); layerList->setSelectionBehavior(QAbstractItemView::SelectRows); layerList->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); layerList->setDragEnabled(true); @@ -3050,6 +3202,26 @@ void MainWindow::createActions() addAction(layerLowerToBottomAction); connect(layerLowerToBottomAction, &QAction::triggered, this, &MainWindow::reorderLayerItem); + // Groups. + groupLayersAction = new QAction(tr("Group"), this); + groupLayersAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_G)); + groupLayersAction->setToolTip(tr("Put the selected layers in a new group")); + groupLayersAction->setEnabled(false); + addAction(groupLayersAction); + connect(groupLayersAction, &QAction::triggered, this, &MainWindow::groupSelectedLayers); + + ungroupLayersAction = new QAction(tr("Ungroup"), this); + ungroupLayersAction->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_G)); + ungroupLayersAction->setToolTip(tr("Take the layers out of the group, which goes")); + ungroupLayersAction->setEnabled(false); + addAction(ungroupLayersAction); + connect(ungroupLayersAction, &QAction::triggered, this, &MainWindow::ungroupLayers); + + newGroupAction = new QAction(tr("New Group"), this); + newGroupAction->setToolTip(tr("Add a group without layers, to drag layers into")); + addAction(newGroupAction); + connect(newGroupAction, &QAction::triggered, this, &MainWindow::addEmptyGroup); + // Delete source. deleteSourceAction = new QAction(tr("Delete Source"), this); //deleteSourceAction->setShortcut(tr("CTRL+DEL")); @@ -3564,6 +3736,10 @@ void MainWindow::createMenus() editMenu->addAction(layerRaiseToTopAction); editMenu->addAction(layerLowerToBottomAction); editMenu->addSeparator(); + editMenu->addAction(groupLayersAction); + editMenu->addAction(ungroupLayersAction); + editMenu->addAction(newGroupAction); + editMenu->addSeparator(); editMenu->addAction(layerRotate90CWAction); editMenu->addAction(layerRotate90CCWAction); editMenu->addAction(layerRotate180Action); @@ -3697,6 +3873,10 @@ void MainWindow::createLayerContextMenu() layerContextMenu->addAction(layerRaiseToTopAction); layerContextMenu->addAction(layerLowerToBottomAction); layerContextMenu->addSeparator(); + layerContextMenu->addAction(groupLayersAction); + layerContextMenu->addAction(ungroupLayersAction); + layerContextMenu->addAction(newGroupAction); + layerContextMenu->addSeparator(); layerContextMenu->addAction(layerRotate90CWAction); layerContextMenu->addAction(layerRotate90CCWAction); layerContextMenu->addAction(layerRotate180Action); @@ -4622,6 +4802,7 @@ void MainWindow::showStackChange() // The rows follow the stack: a layer put in a group joins the other layers of the group. syncLayerList(); + updateGroupActions(); for (const Group::ptr& group : mappingManager->getGroups()) connect(group.data(), &Group::settingChanged, this, &MainWindow::groupPropertyChanged, Qt::UniqueConnection); @@ -5689,6 +5870,10 @@ void MainWindow::connectProjectWidgets() connect(layerItemDelegate, &LayerItemDelegate::itemDuplicated, this, &MainWindow::duplicateLayer); connect(layerItemDelegate, &LayerItemDelegate::itemRemoved, this, &MainWindow::deleteLayer); + connect(layerItemDelegate, &LayerItemDelegate::groupRemoved, this, &MainWindow::askToDeleteGroup); + connect(layerListModel, &LayerTreeModel::layersPlaceRequested, this, &MainWindow::placeDroppedLayers); + connect(layerListModel, &LayerTreeModel::groupMoveRequested, this, &MainWindow::moveDroppedGroup); + connect(layerList->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MainWindow::updateGroupActions); connect(_preferenceDialog, &PreferenceDialog::settingSaved, this, &MainWindow::updateSettings); } @@ -5714,6 +5899,10 @@ void MainWindow::disconnectProjectWidgets() disconnect(layerItemDelegate, &LayerItemDelegate::itemDuplicated, this, &MainWindow::duplicateLayer); disconnect(layerItemDelegate, &LayerItemDelegate::itemRemoved, this, &MainWindow::deleteLayer); + disconnect(layerItemDelegate, &LayerItemDelegate::groupRemoved, this, &MainWindow::askToDeleteGroup); + disconnect(layerListModel, &LayerTreeModel::layersPlaceRequested, this, &MainWindow::placeDroppedLayers); + disconnect(layerListModel, &LayerTreeModel::groupMoveRequested, this, &MainWindow::moveDroppedGroup); + disconnect(layerList->selectionModel(), &QItemSelectionModel::selectionChanged, this, &MainWindow::updateGroupActions); disconnect(_preferenceDialog, &PreferenceDialog::settingSaved, this, &MainWindow::updateSettings); } diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 5f01ad25..2012b08f 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -937,6 +937,34 @@ public slots: /// Enables or disables the actions on the current layer, which a group does not have. void setLayerActionsEnabled(bool enabled); + + /// Puts the layers selected in the list in a new group, named after them (Group). + void groupSelectedLayers(); + /// Takes the layers of the current group, or of the group of the current layer, out of it. + void ungroupLayers(); + /// Adds a group without layers, above the current row (New Group). + void addEmptyGroup(); + /// Deletes a group and its layers, after asking, when it has layers. + void askToDeleteGroup(uid groupId); + /// Does what a drop in the list asks, as one step to undo. + void placeDroppedLayers(const QVector& layerIds, uid groupId, int index); + void moveDroppedGroup(uid groupId, int index); + /// Changes the stack as one step to undo, named text. Returns false when nothing changed. + bool changeStack(const QString& text, const std::function& change); + /// Returns the layers selected in the list, from the top, or else the current layer. + QVector selectedLayerIds() const; + /// Returns the group to ungroup: the current one, or that of the current layer. + uid groupToUngroup() const; + /// Returns the place, at the top level of the stack, of the current row. + int currentStackIndex() const; + /// Enables Group and Ungroup for what is selected. + void updateGroupActions(); + /// Selects the row of a group, which shows its page. + void selectGroupRow(uid groupId); + + QAction* groupLayersAction = nullptr; + QAction* ungroupLayersAction = nullptr; + QAction* newGroupAction = nullptr; EffectInspector* _sourceEffectInspector; // OSC. diff --git a/tests/TestLayerTree.cpp b/tests/TestLayerTree.cpp index 79b1f63e..4d1a2db2 100644 --- a/tests/TestLayerTree.cpp +++ b/tests/TestLayerTree.cpp @@ -617,9 +617,13 @@ void TestLayerTree::groupRowSwitches() t.model.setGroupRow(row); QCOMPARE(changed.count(), 4); - // A group is not dragged, and takes no drop, yet. - QVERIFY(!(t.model.flags(group) & Qt::ItemIsDragEnabled)); - QVERIFY(!(t.model.flags(group) & Qt::ItemIsDropEnabled)); + // A group is dragged, and takes drops: the view frames it. A layer takes none, so that + // the view draws a line above or below it. + QVERIFY(t.model.flags(group) & Qt::ItemIsDragEnabled); + QVERIFY(t.model.flags(group) & Qt::ItemIsDropEnabled); + QVERIFY(t.model.flags(t.model.layerIndex(t.id(2))) & Qt::ItemIsDragEnabled); + QVERIFY(!(t.model.flags(t.model.layerIndex(t.id(2))) & Qt::ItemIsDropEnabled)); + QVERIFY(t.model.flags(QModelIndex()) & Qt::ItemIsDropEnabled); } void TestLayerTree::effectRowUnderLayerOfGroup() @@ -674,17 +678,77 @@ void TestLayerTree::dragCountsTheLayersOfGroups() QCOMPARE(requested.at(0).at(0).toInt(), t.id(2)); QCOMPARE(requested.at(0).at(1).toInt(), 2); - // A layer of the group, dropped onto the top layer: at its row. - QMimeData* data = t.model.mimeData({ t.model.layerIndex(t.id(0)) }); - QVERIFY(t.model.dropMimeData(data, Qt::MoveAction, -1, -1, t.model.layerIndex(t.id(2)))); - delete data; - QCOMPARE(requested.count(), 2); - QCOMPARE(requested.at(1).at(0).toInt(), t.id(0)); - QCOMPARE(requested.at(1).at(1).toInt(), 0); + // The other drops ask for a place: in a group, or out of any. + QSignalSpy placed(&t.model, &LayerTreeModel::layersPlaceRequested); + auto drop = [&t](const QModelIndexList& rows, int row, const QModelIndex& parent) { + QMimeData* data = t.model.mimeData(rows); + const bool dropped = t.model.dropMimeData(data, Qt::MoveAction, row, -1, parent); + delete data; + return dropped; + }; + + // A layer of the group, dropped onto the top layer: at its row, out of the group. + QVERIFY(drop({ t.model.layerIndex(t.id(0)) }, -1, t.model.layerIndex(t.id(2)))); + QCOMPARE(placed.count(), 1); + QCOMPARE(placed.at(0).at(0).value>(), QVector({ t.id(0) })); + QCOMPARE(placed.at(0).at(1).toInt(), NULL_UID); + QCOMPARE(placed.at(0).at(2).toInt(), 0); + + // The top layer, dropped onto the group, which the view frames: at the top of its layers. + QVERIFY(dragLayer(t.model, 0, -1, t.model.groupIndex(TOYS))); + QCOMPARE(placed.count(), 2); + QCOMPARE(placed.at(1).at(0).value>(), QVector({ t.id(2) })); + QCOMPARE(placed.at(1).at(1).toInt(), TOYS); + QCOMPARE(placed.at(1).at(2).toInt(), 0); + + // Between the two layers of the group, both rows given at once: from the top, wherever + // the selection started. + QVERIFY(drop({ t.model.layerIndex(t.id(0)), t.model.layerIndex(t.id(2), MM::IconAndNameColum), + t.model.layerIndex(t.id(2)) }, 1, t.model.groupIndex(TOYS, 0))); + QCOMPARE(placed.count(), 3); + QCOMPARE(placed.at(2).at(0).value>(), QVector({ t.id(2), t.id(0) })); + QCOMPARE(placed.at(2).at(1).toInt(), TOYS); + QCOMPARE(placed.at(2).at(2).toInt(), 1); + + // Among the effects of a layer: refused. + t.model.setChildRows(t.id(2), { { 42, QIcon(), "Color Adjustment", true, EFFECT_SWITCH } }); + QVERIFY(!drop({ t.model.layerIndex(t.id(0)) }, 0, t.model.layerIndex(t.id(2), 0))); + QCOMPARE(placed.count(), 3); + QCOMPARE(requested.count(), 1); +} + +void TestLayerTree::dragMovesGroups() +{ + ThreeLayers t; + QObject::disconnect(&t.model, nullptr, &t.manager, nullptr); + QObject::disconnect(&t.manager, nullptr, &t.model, nullptr); + groupTwo(t); + QSignalSpy moved(&t.model, &LayerTreeModel::groupMoveRequested); + QSignalSpy placed(&t.model, &LayerTreeModel::layersPlaceRequested); + auto drop = [&t](const QModelIndexList& rows, int row, const QModelIndex& parent) { + QMimeData* data = t.model.mimeData(rows); + const bool dropped = t.model.dropMimeData(data, Qt::MoveAction, row, -1, parent); + delete data; + return dropped; + }; + const QModelIndex group = t.model.groupIndex(TOYS); - // Onto a group: not yet. - QVERIFY(!dragLayer(t.model, 0, -1, t.model.groupIndex(TOYS))); - QCOMPARE(requested.count(), 2); + // To the top: the place counted before it leaves its own. + QVERIFY(drop({ group }, 0, QModelIndex())); + QCOMPARE(moved.count(), 1); + QCOMPARE(moved.at(0).at(0).toInt(), TOYS); + QCOMPARE(moved.at(0).at(1).toInt(), 0); + // Just above or below itself: it stays, and asks nothing. + QVERIFY(drop({ group }, 1, QModelIndex())); + QVERIFY(drop({ group }, 2, QModelIndex())); + QCOMPARE(moved.count(), 1); + + // A group holds no group, and goes alone. + QVERIFY(!drop({ group }, -1, group)); + QVERIFY(!drop({ group }, 0, group.siblingAtColumn(0))); + QVERIFY(!drop({ group, t.model.layerIndex(t.id(2)) }, 0, QModelIndex())); + QCOMPARE(moved.count(), 1); + QCOMPARE(placed.count(), 0); } void TestLayerTree::delegateClicksOnGroupButtons() @@ -707,11 +771,14 @@ void TestLayerTree::delegateClicksOnGroupButtons() v.click(LayerRowButton::Lock, group); QVERIFY(t.model.groupRow(TOYS).locked); - // Duplicate and delete are greyed on a group. + // Duplicate is greyed on a group. Its cross asks to delete it: the main window asks first. + QSignalSpy groupRemoved(&v.delegate, &LayerItemDelegate::groupRemoved); v.click(LayerRowButton::Duplicate, group); v.click(LayerRowButton::Delete, group); QCOMPARE(removed.count(), 0); QCOMPARE(duplicated.count(), 0); + QCOMPARE(groupRemoved.count(), 1); + QCOMPARE(groupRemoved.at(0).at(0).toInt(), TOYS); QCOMPARE(t.model.rowCount(), 2); // While learning, the eye of a group chooses the eye of the group, to link it to a key. diff --git a/tests/TestLayerTree.h b/tests/TestLayerTree.h index 2fa510ae..b64355a2 100644 --- a/tests/TestLayerTree.h +++ b/tests/TestLayerTree.h @@ -46,6 +46,7 @@ private slots: void effectRowUnderLayerOfGroup(); void removingLayerOfGroupKeepsTheGroup(); void dragCountsTheLayersOfGroups(); + void dragMovesGroups(); void delegateClicksOnGroupButtons(); }; diff --git a/tests/TestMappingManager.cpp b/tests/TestMappingManager.cpp index d74cbf6c..65ef97d7 100644 --- a/tests/TestMappingManager.cpp +++ b/tests/TestMappingManager.cpp @@ -509,3 +509,138 @@ void TestMappingManager::arrangesGroupsReadFromFile() QCOMPARE(p.manager.nGroups(), 0); QCOMPARE(p.manager.nStackEntries(), 0); } + +void TestMappingManager::placesLayersInAndOutOfGroups() +{ + FourLayers p; + Group::ptr group(new Group); + // From the top: a, the group, b, c, d. + p.manager.addGroup(group, 1); + QSignalSpy stackChanged(&p.manager, &MappingManager::stackChanged); + + // c and a, in the order given, at the top of the group. + QVERIFY(p.manager.placeLayers({ p.c->getId(), p.a->getId() }, group->getId(), 0)); + QCOMPARE(layerNames(p.manager), QStringList({ "c", "a", "b", "d" })); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.c, p.a })); + QCOMPARE(p.a->getGroup(), group); + QCOMPARE(p.a->getDepth(), 1); + QCOMPARE(stackChanged.count(), 1); + + // d between c and a; a row past the bottom of the group is its bottom. + QVERIFY(p.manager.placeLayers({ p.d->getId() }, group->getId(), 1)); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.c, p.d, p.a })); + // Within the group, the row is counted before c leaves its own: below a. + QVERIFY(p.manager.placeLayers({ p.c->getId() }, group->getId(), 99)); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.d, p.a, p.c })); + + // Out of the group, at a place of the top level: the group, then b, are the places 0 and 1. + QVERIFY(p.manager.placeLayers({ p.a->getId() }, NULL_UID, 2)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "c", "b", "a" })); + QCOMPARE(p.a->getGroup(), Group::ptr()); + QCOMPARE(p.manager.nStackEntries(), 3); + // At the top level, b leaving its place above a counts too: a stays below b. + QVERIFY(p.manager.placeLayers({ p.b->getId() }, NULL_UID, 3)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "c", "a", "b" })); + + // Unknown layers or groups change nothing. + QVERIFY(!p.manager.placeLayers({ p.b->getId(), 999 }, group->getId(), 0)); + QVERIFY(!p.manager.placeLayers({ p.b->getId() }, 999, 0)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "c", "a", "b" })); + QCOMPARE(p.b->getGroup(), Group::ptr()); +} + +void TestMappingManager::movesGroupWithItsLayers() +{ + FourLayers p; + Group::ptr group(new Group); + p.manager.addGroup(group, 0); + p.manager.placeLayers({ p.a->getId(), p.b->getId() }, group->getId(), 0); + // From the top: the group (a, b), c, d. + QCOMPARE(p.manager.nStackEntries(), 3); + + // Below d: the places are counted before the group leaves its own. + QVERIFY(p.manager.moveGroup(group->getId(), 3)); + QCOMPARE(layerNames(p.manager), QStringList({ "c", "d", "a", "b" })); + QCOMPARE(p.a->getDepth(), 2); + QCOMPARE(p.manager.getGroupDepth(group->getId()), 2); + QVERIFY(p.manager.moveGroup(group->getId(), 1)); + QCOMPARE(layerNames(p.manager), QStringList({ "c", "a", "b", "d" })); + QVERIFY(!p.manager.moveGroup(999, 0)); +} + +void TestMappingManager::restoresTheStack() +{ + FourLayers p; + const QVector flat = p.manager.stack(); + Group::ptr group(new Group); + p.manager.addGroup(group, 2); + p.manager.placeLayers({ p.d->getId(), p.a->getId() }, group->getId(), 0); + const QVector grouped = p.manager.stack(); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "d", "a", "c" })); + + // Back to the start: the group goes, its layers take their rows again. + QSignalSpy stackChanged(&p.manager, &MappingManager::stackChanged); + QVERIFY(p.manager.restoreStack(flat)); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + QCOMPARE(p.manager.nGroups(), 0); + QCOMPARE(p.a->getGroup(), Group::ptr()); + QCOMPARE(p.d->getDepth(), 3); + QCOMPARE(stackChanged.count(), 1); + // The same again changes nothing. + QVERIFY(p.manager.restoreStack(flat)); + QCOMPARE(stackChanged.count(), 1); + + // And forth: the same group, with its layers. + QVERIFY(p.manager.restoreStack(grouped)); + QCOMPARE(p.manager.getGroupById(group->getId()), group); + QCOMPARE(p.d->getGroup(), group); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "d", "a", "c" })); + + // Places whose layers are not those of the project are refused. + QVector missing = flat; + missing.removeLast(); + QVERIFY(!p.manager.restoreStack(missing)); + QVector twice = flat; + twice.append(flat.first()); + QVERIFY(!p.manager.restoreStack(twice)); + QCOMPARE(layerNames(p.manager), QStringList({ "b", "d", "a", "c" })); +} + +void TestMappingManager::undoesStackChanges() +{ + FourLayers p; + QUndoStack undo; + const QVector before = p.manager.stack(); + Group::ptr group(new Group); + p.manager.addGroup(group, 1); + p.manager.placeLayers({ p.b->getId(), p.c->getId() }, group->getId(), 0); + undo.push(new StackChangeCommand(p.manager, before, p.manager.stack(), "Group layers")); + QCOMPARE(p.manager.nGroups(), 1); + + undo.undo(); + QCOMPARE(p.manager.nGroups(), 0); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + QCOMPARE(p.b->getGroup(), Group::ptr()); + undo.redo(); + QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.b, p.c })); + QCOMPARE(p.c->getGroup(), group); +} + +void TestMappingManager::namesGroupsAfterTheirLayers() +{ + QCOMPARE(Group::nameFor({ "Camion 1", "Camion 2", "Camion 3" }), QString("Camion")); + QCOMPARE(Group::nameFor({ "Camion cabine", "Camion roue" }), QString("Camion")); + QCOMPARE(Group::nameFor({ "Arbre1", "Arbre2" }), QString("Arbre")); + QCOMPARE(Group::nameFor({ "tree-left", "tree-right" }), QString("tree")); + QCOMPARE(Group::nameFor({ "Maison" }), QString("Maison")); + // A start that cuts a word names neither: the names instead. + QCOMPARE(Group::nameFor({ "Car", "Cat" }), QString("Car, Cat")); + QCOMPARE(Group::nameFor({ "Lune", "Soleil" }), QString("Lune, Soleil")); + // Cut near 30 characters. + const QString longNames = Group::nameFor({ "Fenêtre du haut", "Porte d'entrée", "Toit" }); + QCOMPARE(longNames, QString("Fenêtre du haut, Porte d'entré") + QChar(0x2026)); + QVERIFY(Group::nameFor({}).isEmpty()); + + QCOMPARE(Group::numberedName({}), QString("Group 1")); + QCOMPARE(Group::numberedName({ "Group 1", "Group 3" }), QString("Group 2")); +} diff --git a/tests/TestMappingManager.h b/tests/TestMappingManager.h index 434d6bae..9302df04 100644 --- a/tests/TestMappingManager.h +++ b/tests/TestMappingManager.h @@ -41,6 +41,11 @@ private slots: void depthMovesTheLayer(); void groupStateAddsToItsLayers(); void arrangesGroupsReadFromFile(); + void placesLayersInAndOutOfGroups(); + void movesGroupWithItsLayers(); + void restoresTheStack(); + void undoesStackChanges(); + void namesGroupsAfterTheirLayers(); }; #endif /* TEST_MAPPING_MANAGER_H_ */ diff --git a/tests/tests.pro b/tests/tests.pro index bdaa7830..9631d36d 100644 --- a/tests/tests.pro +++ b/tests/tests.pro @@ -195,6 +195,7 @@ SOURCES += \ $$CORE/Layer.cpp \ $$CORE/Link.cpp \ $$CORE/MoveLayerCommand.cpp \ + $$CORE/StackChangeCommand.cpp \ $$CORE/MappingManager.cpp \ $$CORE/ProjectReader.cpp \ $$CORE/ProjectWriter.cpp \ From fc3fc3d83c079a179a715e1fb57a055eb01b5097 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:55:30 -0500 Subject: [PATCH 07/12] Collect the texts to translate --- translations/mapmap_ar.ts | 2054 +++++++++++++++++++++------------- translations/mapmap_de.ts | 2018 ++++++++++++++++++++------------- translations/mapmap_en.ts | 1679 ++++++++++++++------------- translations/mapmap_es.ts | 2018 ++++++++++++++++++++------------- translations/mapmap_fr.ts | 1679 ++++++++++++++------------- translations/mapmap_hi.ts | 2018 ++++++++++++++++++++------------- translations/mapmap_pt.ts | 2018 ++++++++++++++++++++------------- translations/mapmap_ru.ts | 2027 ++++++++++++++++++++------------- translations/mapmap_zh_CN.ts | 2009 ++++++++++++++++++++------------- translations/mapmap_zh_TW.ts | 2009 ++++++++++++++++++++------------- 10 files changed, 11805 insertions(+), 7724 deletions(-) diff --git a/translations/mapmap_ar.ts b/translations/mapmap_ar.ts index ab864707..9e5cb7b6 100644 --- a/translations/mapmap_ar.ts +++ b/translations/mapmap_ar.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. تتعذّر قراءة الملف %1. - + %1 does not start with an ISF header. لا يبدأ %1 بترويسة ISF. - + The ISF header of %1 is not closed. ترويسة ISF في %1 غير مغلقة. - + The ISF header of %1 is not a JSON object: %2. ترويسة ISF في %1 ليست كائن JSON: %2. - + %1: the key %2 is ignored. %1: تم تجاهل المفتاح %2. - + %1 has %2 passes: MapMap reads shaders of one pass only. يحتوي %1 على %2 من التمريرات: لا يقرأ MapMap إلا المظلِّلات ذات التمريرة الواحدة. - + %1 draws its pass into an image: MapMap does not read such passes yet. يرسم %1 تمريرته داخل صورة: لا يقرأ MapMap هذه التمريرات بعد. - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. يحتفظ %1 بالصور من إطار إلى الإطار التالي: لا يقرأ MapMap هذه المظلِّلات بعد. - + %1 imports images: MapMap does not read such shaders yet. يستورد %1 صورًا: لا يقرأ MapMap هذه المظلِّلات بعد. - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: المدخل %2 ليس له NAME صالح. - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: رُفض مدخل الصورة %2: يعطي MapMap التأثير صورة واحدة، اسمها %3. - - + + %1: two inputs are named %2. %1: يحمل مدخلان الاسم %2. - + %1: the name %2 is reserved. %1: الاسم %2 محجوز. - + %1: the key %2 of the input %3 is ignored. %1: تم تجاهل المفتاح %2 من المدخل %3. - + %1: inputs of type %2 are not read by MapMap. %1: لا يقرأ MapMap المدخلات من النوع %2. - + (none) (لا شيء) - + %1: the unit %2 of the input %3 is ignored. %1: تم تجاهل الوحدة %2 من المدخل %3. - + %1: generator %2 has no valid NAME. %1: المولِّد %2 ليس له NAME صالح. - + %1: the generator %2 has the name of an input. %1: المولِّد %2 يحمل اسم مدخل. - + %1: generators of type %2 are not read: %3 stays at 0. %1: لا تُقرأ المولِّدات من النوع %2: تبقى %3 عند 0. - + %1: the generator %2 names an input that does not exist: %3. %1: المولِّد %2 يشير إلى مدخل غير موجود: %3. - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: المولِّد %2 يحدد سرعته مرتين: تم تجاهل %3. - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: للمحرِّك %2 شكل لا يرسمه MapMap، %3: يبقى عند 0. - + %1: the parameter %2 of the generator %3 is ignored. %1: تم تجاهل المعامل %2 من المولِّد %3. - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: تم تجاهل سطر #version فيه: يترجم MapMap المظلِّلات بلغة GLSL 1.20. - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 تأثير يقرأ الوقت: لا يحرّك MapMap التأثيرات بعد. - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 تأثير يحتوي على GENERATORS: لا يحرّك MapMap التأثيرات بعد. - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 تأثير له مدخل الحدث %2: لا يحرّك MapMap التأثيرات بعد. - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: الاسم %2 محجوز: الأسماء التي تبدأ بـ %3 خاصة بـ MapMap. @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. RTL @@ -315,12 +330,12 @@ QObject - + Initiating program... جارٍ تشغيل البرنامج... - + Done. تم. @@ -375,222 +390,232 @@ حذف الطبقة - + Raise layer رفع الطبقة - + Lower layer خفض الطبقة - + Raise layer to top رفع الطبقة إلى الأعلى - + Lower layer to bottom خفض الطبقة إلى الأسفل - + + Delete group + + + + Flip Image Horizontally قلب الصورة أفقيًا - + Flip Horizontally قلب أفقي - + Flip Image Vertically قلب الصورة عموديًا - + Flip Vertically قلب عمودي - + Rotate Image 90° CW تدوير الصورة 90° يمينًا - + Rotate 90° CW تدوير 90° يمينًا - + Rotate Image 90° CCW تدوير الصورة 90° يسارًا - + Rotate 90° CCW تدوير 90° يسارًا - + Rotate Image 180° تدوير الصورة 180° - + Rotate 180° تدوير 180° - + Change output resolution تغيير دقة الإخراج - + + Move layer + + + + Add effect %1 إضافة التأثير %1 - + Remove effect %1 إزالة التأثير %1 - + Problem at creation of shape. حدثت مشكلة أثناء إنشاء الشكل. - + Unable to create shape of type '%1'. تعذّر إنشاء شكل من النوع «%1». - + CC %1 CC %1 - + %1 ch %2 %1 قناة %2 - + Keyboard لوحة المفاتيح - + MIDI MIDI - + Follow the control اتباع عنصر التحكم - + Follow the turns اتباع الدورات - + Move right تحريك لليمين - + Move down تحريك لأسفل - + Increase زيادة - + Move left تحريك لليسار - + Move up تحريك لأعلى - + Decrease إنقاص - + Toggle تبديل - + Turn on تشغيل - + Turn off إيقاف - + Next option الخيار التالي - + Last option الخيار الأخير - + First option الخيار الأول - + Minimum or maximum الحد الأدنى أو الأقصى - + Set to maximum ضبط على الحد الأقصى - + Set to minimum ضبط على الحد الأدنى - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1، x - + %1, y %1، y @@ -615,32 +640,32 @@ %1، القيمة %2 - + unknown غير معروف - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. حُفظ هذا المشروع بصيغة XML القديمة بواسطة MapMap %1. هذا الإصدار من MapMap (%2) لا يفتح إلا مشاريع JSON. - + Parse error at offset %1: %2 خطأ في التحليل عند الموضع %1: %2 - + The contents of this file does not look like a MapMap project. لا يبدو محتوى هذا الملف مشروعًا من MapMap. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. إصدار MapMap %1 الذي حُفظ به هذا الملف غير مقروء بإصدار MapMap هذا %2. - + The project field '%1' must be an array. يجب أن يكون حقل المشروع '%1' مصفوفة. @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 رُفض المظلِّل: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker رقعة شطرنج - + A checkerboard of two colours; the square at the top left has the front colour. رقعة شطرنج من لونين؛ المربع في أعلى اليسار باللون الأمامي. - + Count العدد - + The number of squares on each side. عدد المربعات على كل ضلع. - + Back Color اللون الخلفي - + The colour of every other square. لون مربع من كل مربعين. - + Front Color اللون الأمامي - + The colour of the square at the top left, and of every other square. لون المربع في أعلى اليسار، ولون مربع من كل مربعين. - + Color Adjustment ضبط الألوان - + Brightness السطوع - + Added to each colour: below 0 darker, above 0 lighter. يُضاف إلى كل لون: تحت 0 أغمق، وفوق 0 أفتح. - + Contrast التباين - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. مدى بُعد الألوان عن الرمادي المتوسط: 0% كله رمادي، و100% دون تغيير. - + Saturation التشبع - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. مدى حيوية الألوان: 0% درجات من الرمادي، و100% دون تغيير. - + Hue درجة اللون - + Turns the colours around the colour wheel, by this angle. يدير الألوان حول عجلة الألوان بهذه الزاوية. - + Color Wheel عجلة الألوان - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. عجلات ألوان ولوالب وحلقات متحدة المركز ورقع شطرنج قطبية، مستقيمة أو ملتوية، من مجموعة إعدادات واحدة. - + Geometry الهندسة - + Segments المقاطع - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. عدد الأجزاء حول الدائرة؛ 1 يبقيها كاملة. مع لوحة ألوان من لونين، يعطي العدد الفردي العدد الزوجي الذي تحته، كي تتناوب الألوان على طول الدائرة. - + Rings الحلقات - + Number of rings from the centre to the edge of the disk; 0 for none. عدد الحلقات من المركز إلى حافة القرص؛ 0 لعدم وجود حلقات. - + Twist الالتواء - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. يلفّ المقاطع على شكل لوالب: عدد الدورات التي تقطعها من المركز إلى حافة القرص. القيم السالبة تلفّها في الاتجاه الآخر. - + Smoothness النعومة - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. الاستيفاء بين الألوان المتجاورة: حاد عند 0، ومتصل عند 100%. - + Color اللون - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette لوحة الألوان - + The colours of the pattern, in the order of their cycle. ألوان النقش، بترتيب دورتها. - + Spectrum الطيف - + Monochromatic أحادي اللون - + Grayscale تدرّج رمادي - + Black and White أبيض وأسود - + Complementary متكاملة - + Analogous متجاورة - + Triadic ثلاثية - + Hue Shift إزاحة درجة اللون - + Turns the hue of every colour; greys stay as they are. يدير درجة كل لون؛ يبقى الرمادي كما هو. - + Radial Color لون شعاعي - + Radial Saturation تشبع شعاعي - + Positive: grey centre; negative: grey circumference. The lightness is kept. موجب: مركز رمادي؛ سالب: محيط رمادي. تبقى الإضاءة كما هي. - + Radial Lightness إضاءة شعاعية - + Positive: white centre; negative: black centre. موجب: مركز أبيض؛ سالب: مركز أسود. - + Radial Falloff تلاشٍ شعاعي - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. منحنى التدرجين الشعاعيين: واسع تحت 1، وخطي عند 1، ومركّز فوق 1. - + Reverse Radial Gradient عكس التدرج الشعاعي - + Swaps the centre and the circumference in both radial gradients. يبادل بين المركز والمحيط في التدرجين الشعاعيين. - + Animation الحركة - + Speed السرعة - + How fast the pattern turns; 0 keeps it still. سرعة دوران النقش؛ 0 يبقيه ثابتًا. - + Reverse عكس - + Turns the pattern the other way. يدير النقش في الاتجاه الآخر. - + Flow التدفق - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. سرعة ابتعاد الحلقات عن المركز، بأنصاف الأقطار في الدقيقة، مهما كان عددها: عند 6، تنتقل الحلقة من المركز إلى الحافة في 10 ثوانٍ؛ 0 يبقيها ثابتة. - + Flow Inward تدفق نحو الداخل - + Moves the rings towards the centre. يحرّك الحلقات نحو المركز. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid شبكة خطوط - + Lines of a colour on a background, along the borders and between columns and rows. خطوط بلون على خلفية، على طول الحواف وبين الأعمدة والصفوف. - + Columns الأعمدة - + The number of columns between the lines. عدد الأعمدة بين الخطوط. - + Rows الصفوف - + The number of rows between the lines. عدد الصفوف بين الخطوط. - + Thickness السماكة - + The thickness of the lines. سماكة الخطوط. - + The colour between the lines. اللون بين الخطوط. - + Line Color لون الخطوط - + The colour of the lines. لون الخطوط. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,336 @@ mmp::AboutDialog - + About %1 حول %1 - + MapMap is a free/open source video mapping software. MapMap برنامج حر ومفتوح المصدر لإسقاط الفيديو. - + Copyright &copy; 2013 %1. حقوق النشر &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. لمزيد من المعلومات عن هذا البرنامج، راجع <a href="%1">موقع %2</a>. - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - يطوّر %1 ويرعاه Art Plus Code. هل تحتاج إلى تركيب مخصص لإسقاط الفيديو، أو ميزة جديدة، أو تكامل، أو تدريب؟ + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + يطوّر %1 ويرعاه Art Plus Code. هل تحتاج إلى تركيب مخصص لإسقاط الفيديو، أو ميزة جديدة، أو تكامل، أو تدريب؟ + + + + Hire us + استأجرنا + + + + Enjoying %1? + هل يعجبك %1؟ + + + + Support the project + ادعم المشروع + + + + About + حول + + + + Changelog + سجل التغييرات + + + + Libraries + المكتبات + + + + Contributors + المساهمون + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + يتضمن MapMap مكتبة RtMidi، التي تستقبل أجهزة MIDI، بموجب هذا الترخيص: + + + + MapMap uses SDL, which receives the game controllers, under this license: + يستخدم MapMap مكتبة SDL، التي تستقبل أذرع التحكم في الألعاب، بموجب هذا الترخيص: + + + + License + الترخيص + + + + OSC Commands + أوامر OSC + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + ابدأ + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - استأجرنا + + Scanning: do not move. + - - Enjoying %1? - هل يعجبك %1؟ + + Scan cancelled. + - - Support the project - ادعم المشروع + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + + + + + %n outline(s) to place by hand + + + + + + + + - - About - حول + + + Update Shapes + - - Changelog - سجل التغييرات + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + + + + + %n new face(s) will be added. + + + + + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + + + + + - - Libraries - المكتبات + + Update and Remove Them + - - Contributors - المساهمون + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - يتضمن MapMap مكتبة RtMidi، التي تستقبل أجهزة MIDI، بموجب هذا الترخيص: + + Update + + + + + %n layer(s) moved + + + + + + + + + + + + %n shape(s) created + + + + + + + + + + + + %n layer(s) removed + + + + + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - يستخدم MapMap مكتبة SDL، التي تستقبل أذرع التحكم في الألعاب، بموجب هذا الترخيص: + + %1. Edit > Undo takes it all back at once. + - - License - الترخيص + + Cancel + - - OSC Commands - أوامر OSC + + Close + @@ -1871,15 +2148,23 @@ إظهار المحرر في الأعلى + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (مفقود) - + (none) (لا شيء) @@ -1887,7 +2172,7 @@ mmp::ColorControl - + Show the colour picker إظهار منتقي الألوان @@ -1991,27 +2276,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap سجل الرسائل - MapMap - + &Close إغلاق(&C) - + Close the console إغلاق الطرفية - + &File ملف(&F) - + MMM dd yy HH:mm dd MMM yy HH:mm @@ -2128,21 +2413,31 @@ mmp::Effect - + Enabled مفعّل - + Whether this effect changes the image; off, the image passes unchanged. يحدد ما إذا كان هذا التأثير يغيّر الصورة؛ عند إيقافه، تمر الصورة دون تغيير. + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect التأثير @@ -2150,42 +2445,42 @@ mmp::Element - + ID المعرّف - + The number that identifies this element in the project. الرقم الذي يعرّف هذا العنصر في المشروع. - + Name الاسم - + The name shown in the lists and used to find this element by OSC. الاسم المعروض في القوائم والمستخدم للعثور على هذا العنصر عبر OSC. - + Locked مقفل - + Whether this element is protected from changes made with the mouse. يحدد ما إذا كان هذا العنصر محميًا من التغييرات التي تتم بالفأرة. - + Opacity العتامة - + How opaque this element is, from fully transparent to fully opaque. مدى عتامة هذا العنصر، من شفاف تمامًا إلى معتم تمامًا. @@ -2237,6 +2532,44 @@ مولِّد %1، يُرسم على معالج الرسوميات + + mmp::Group + + + Solo + منفرد + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + مرئية + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2601,14 @@ mmp::Inspector - Type in project files: %1 - النوع في ملفات المشروع: %1 + النوع في ملفات المشروع: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2616,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1، %2 - + Learn Keys to Move It تعلّم مفاتيح لتحريكه - + Learn MIDI Controls to Move It تعلّم عناصر تحكم MIDI لتحريكه - + Remove the Links That Move It إزالة الروابط التي تحرّكه - + Learn a Key تعلّم مفتاح - + Remove the Key إزالة المفتاح - + Learn a MIDI Control تعلّم عنصر تحكم MIDI - + Remove the MIDI Control إزالة عنصر تحكم MIDI @@ -2332,52 +2664,66 @@ mmp::Layer - + Solo منفرد - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. يحدد ما إذا كانت هذه الطبقة منفردة: ما دامت هناك طبقة منفردة، لا تُعرض إلا الطبقات المنفردة. - + Visible مرئية - + Whether this layer is shown. يحدد ما إذا كانت هذه الطبقة معروضة. - + Depth العمق - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - موضع هذه الطبقة في كومة الطبقات. + موضع هذه الطبقة في كومة الطبقات. - + Has input shape لها شكل إدخال - + Whether this layer picks the region of its source it shows with an input shape. يحدد ما إذا كانت هذه الطبقة تختار بشكل إدخال المنطقةَ التي تعرضها من مصدرها. - + Source المصدر - + The source shown in this layer. المصدر المعروض في هذه الطبقة. @@ -2385,42 +2731,42 @@ mmp::LayerGui - + Surface السطح - + Output shape شكل الإخراج - + Input shape شكل الإدخال - + Media الوسائط - + Mesh شبكة - + Triangle مثلث - + Ellipse قطع ناقص - + Quad رباعي @@ -2433,46 +2779,71 @@ mmp::LayerItemDelegate - - + + Solo layer إفراد الطبقة - - + + Lock layer قفل الطبقة - - + + Duplicate layer تكرار الطبقة - - + + Delete layer حذف الطبقة - + Turn the effect on or off تشغيل التأثير أو إيقافه - + Remove the effect إزالة التأثير - + Available once a layer can have several effects متاح عندما يمكن للطبقة أن تحمل عدة تأثيرات - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer إظهار الطبقة أو إخفاؤها @@ -2553,27 +2924,27 @@ mmp::MShape - + Locked مقفل - + Whether the vertices of this shape are protected from changes made with the mouse. يحدد ما إذا كانت رؤوس هذا الشكل محمية من التغييرات التي تتم بالفأرة. - + Points النقاط - + Point النقطة - + The position of a control point of the shape, in pixels. موضع نقطة تحكم في الشكل، بالبكسل. @@ -2581,1058 +2952,1173 @@ mmp::MainWindow - + Cue %1 العلامة %1 - + Cue %1 — %2 العلامة %1 — %2 - + %1 set at %2 وُضعت %1 عند %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. تستخدمه %1 من الطبقات: تغييره يغيّرها كلها. - + Replace effect استبدال التأثير - - + + Replace Effect استبدال التأثير - - - + + + Add Effect إضافة تأثير - - + + Open project فتح مشروع - - - - + + + + MapMap files (*.%1) ملفات MapMap (*.%1) - + Save over a project of a later version? الحفظ فوق مشروع من إصدار أحدث؟ - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? حُفظ %1 بإصدار أحدث من MapMap، بالصيغة %2. يحتفظ هذا الإصدار بما لا يعرفه، لكن قد لا يفتح الإصدار الأحدث المشروع كما كان. هل تريد الحفظ فوقه على أي حال؟ - - + + Save project حفظ المشروع - - + + Import media source file استيراد ملف مصدر وسائط - - + + Media files (%1 %2);;All files (*) ملفات الوسائط (%1 %2);;كل الملفات (*) - + Camera device جهاز الكاميرا - + Select camera اختيار كاميرا - - + + No camera available لا توجد كاميرا متاحة - - + + You can not use this feature! No camera available in your system لا يمكنك استخدام هذه الميزة! لا توجد كاميرا متاحة في نظامك - + Syphon source added تمت إضافة مصدر Syphon - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. تعلّم MIDI لـ %1: اضغط لوحة لـ «%2»، أو أدر زرًا دوارًا لتحريكه في الاتجاهين. Escape للإيقاف، وDelete لإزالة عناصر تحكم MIDI الخاصة بالنقطة. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. تعلّم المفاتيح لـ %1: اضغط مفتاحًا لـ «%2». Escape للإيقاف، وDelete لإزالة مفاتيح النقطة. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. تعلّم MIDI: حرّك عنصر تحكم أو اضغط لوحة لـ %1. Delete لإزالة عنصر تحكم MIDI الخاص به. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. تعلّم MIDI: انقر عنصر تحكم محاطًا بالأزرق، ثم حرّك عنصر تحكم في جهاز MIDI. عناصر تحكم MIDI المتعلَّمة سابقًا تعمل. - + Learning keys: press a key for %1. Delete removes its key. تعلّم المفاتيح: اضغط مفتاحًا لـ %1. Delete لإزالة مفتاحه. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). تعلّم المفاتيح: انقر عنصر تحكم محاطًا بالأزرق، ثم اضغط مفتاحًا. لا تعمل المفاتيح المتعلَّمة حتى يتوقف التعلّم (Escape). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. حرّك عنصر تحكم MIDI لـ %1. Delete لإزالة عنصر تحكم MIDI الخاص به، وEscape لإيقاف التعلّم. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. تعلّم MIDI: انقر عنصر تحكم محاطًا بالأزرق، ثم حرّك عنصر تحكم في جهاز MIDI. Escape لإيقاف التعلّم. - + Press a key for %1. Delete removes its key, Escape stops learning. اضغط مفتاحًا لـ %1. Delete لإزالة مفتاحه، وEscape لإيقاف التعلّم. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. تعلّم لوحة المفاتيح: انقر عنصر تحكم محاطًا بالأزرق، ثم اضغط مفتاحًا. Escape لإيقاف التعلّم. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. تعلّم MIDI: حرّك عنصر تحكم في جهاز MIDI، لا مفتاحًا. لتعلّم المفاتيح: تحرير > تعلّم لوحة المفاتيح. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 يتحكم في %2. اضغط Escape لإيقاف التعلّم: عندها يعمل %1. - + Click a control outlined in blue first, then press %1. انقر أولًا عنصر تحكم محاطًا بالأزرق، ثم اضغط %1. - + %1 is already the shortcut of %2: choose another key. %1 هو بالفعل اختصار %2: اختر مفتاحًا آخر. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 أُزيل عنصر تحكم MIDI من %1 - + Key removed from %1 أُزيل المفتاح من %1 - + Click a control outlined in blue first, then move %1. انقر أولًا عنصر تحكم محاطًا بالأزرق، ثم حرّك %1. - + Input Editor: %1% محرر الإدخال: %1% - + Output Editor: %1% محرر الإخراج: %1% - - - + + + MapMap MapMap - + Remove this source and all its associated layers? إزالة هذا المصدر وكل الطبقات المرتبطة به؟ - + Input Editor محرر الإدخال - + Output Editor محرر الإخراج - + Library المكتبة - + Layers الطبقات - + Cues العلامات - + Stop Learning إيقاف التعلّم - + Stop learning (Escape) إيقاف التعلّم (Escape) - + &New جديد(&N) - + Create a new project إنشاء مشروع جديد - + &Open… فتح(&O)… - + Open an existing project فتح مشروع موجود - + &Save حفظ(&S) - + Save the project حفظ المشروع - + Save &As… حفظ باسم(&A)… - + Save the project as… حفظ المشروع باسم… - + No Recents Videos لا توجد مقاطع فيديو حديثة - + &Import Media File… استيراد ملف وسائط(&I)… - + Import a video or image file… استيراد ملف فيديو أو صورة… - + Open &Camera Device… فتح جهاز كاميرا(&C)… - + Choose your camera device… اختر جهاز الكاميرا… - - + + Add &Generator إضافة مولِّد(&G) - + Add a generator إضافة مولِّد - + Add &Syphon Source… إضافة مصدر Syphon(&S)… - + Receive live video from another application via Syphon… استقبال فيديو مباشر من تطبيق آخر عبر Syphon… - + E&xit إنهاء(&X) - + Exit the application إنهاء التطبيق - + &Undo تراجع(&U) - + &Redo إعادة(&R) - + &About MapMap حول MapMap(&A) - + Show the application's About box إظهار نافذة «حول» الخاصة بالتطبيق - + Duplicate Layer تكرار الطبقة - + Duplicate layer item تكرار عنصر الطبقة - + Delete Layer حذف الطبقة - + Delete layer item حذف عنصر الطبقة - + Remove Effect إزالة التأثير - + Remove the selected effect إزالة التأثير المحدد - + Rename Layer إعادة تسمية الطبقة - + Rename layer item إعادة تسمية عنصر الطبقة - + Lock Layer قفل الطبقة - + Lock layer item قفل عنصر الطبقة - + Hide Layer إخفاء الطبقة - + Hide layer item إخفاء عنصر الطبقة - + Solo Layer إفراد الطبقة - + Solo layer item إفراد عنصر الطبقة - + Rotate 90° CW تدوير 90° يمينًا - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. تدوير 90° مع عقارب الساعة. في عرض الإدخال، يدير الصورة داخل الطبقة. - + Rotate 90° CCW تدوير 90° يسارًا - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. تدوير 90° عكس عقارب الساعة. في عرض الإدخال، يدير الصورة داخل الطبقة. - + Rotate 180° تدوير 180° - + Rotate 180°. In the input view, rotates the image inside the layer. تدوير 180°. في عرض الإدخال، يدير الصورة داخل الطبقة. - + Flip Horizontally قلب أفقي - + Flip horizontally. In the input view, flips the image inside the layer. قلب أفقي. في عرض الإدخال، يقلب الصورة داخل الطبقة. - + Flip Vertically قلب عمودي - + Flip vertically. In the input view, flips the image inside the layer. قلب عمودي. في عرض الإدخال، يقلب الصورة داخل الطبقة. - - + + Raise رفع - - + + Lower خفض - + Raise to Top رفع إلى الأعلى - + Raise to top رفع إلى الأعلى - + Lower to Bottom خفض إلى الأسفل - + Lower to bottom خفض إلى الأسفل - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source حذف المصدر - + Delete source item حذف عنصر المصدر - + Rename Source إعادة تسمية المصدر - + Rename source item إعادة تسمية عنصر المصدر - + Import New Media استيراد وسائط جديدة - + Import new media file if not exists on the list استيراد ملف وسائط جديد إن لم يكن في القائمة - + &Preferences… التفضيلات(&P)… - + Configure preferences… ضبط التفضيلات… - + Add &Mesh Layer إضافة طبقة شبكة(&M) - + Add mesh layer إضافة طبقة شبكة - + Add &Triangle Layer إضافة طبقة مثلث(&T) - + Add triangle layer إضافة طبقة مثلث - + Add &Ellipse Layer إضافة طبقة قطع ناقص(&E) - + Add ellipse layer إضافة طبقة قطع ناقص - - + + Play تشغيل - - + + Pause إيقاف مؤقت - - + + Restart إعادة التشغيل - + &Hide Output إخفاء الإخراج(&H) - + Output in a &Window الإخراج في نافذة(&W) - + Output &Fills a Screen الإخراج يملأ شاشة(&F) - + Output الإخراج - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. الإخراج يملأ شاشة (%1). يحدد السهم كيف وأين يُعرض الإخراج. - + &Display Controls عرض أدوات التحكم(&D) - + Display canvas controls عرض أدوات التحكم في مساحة الرسم - + &Display Controls of Layers of a Source عرض أدوات تحكم طبقات المصدر(&D) - + Display all canvas controls related to current source عرض كل أدوات التحكم في مساحة الرسم المرتبطة بالمصدر الحالي - + &Sticky Vertices رؤوس لاصقة(&S) - + Enable sticky vertices تفعيل الرؤوس اللاصقة - + &Keyboard Learn تعلّم لوحة المفاتيح(&K) - + Link keys of the keyboard to settings: click a control, then press a key ربط مفاتيح لوحة المفاتيح بالإعدادات: انقر عنصر تحكم، ثم اضغط مفتاحًا - + &MIDI Learn تعلّم MIDI(&M) - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control ربط عناصر تحكم جهاز MIDI ونوتاته بالإعدادات: انقر عنصر تحكم، ثم حرّك عنصر تحكم MIDI - + Learned K&eys Active المفاتيح المتعلَّمة مفعّلة(&E) - + Turn the learned keys off while typing for something else, and on again إيقاف المفاتيح المتعلَّمة أثناء الكتابة لغرض آخر، ثم إعادة تشغيلها - + Show &Test Signal إظهار إشارة الاختبار(&T) - + Show Test signal إظهار إشارة الاختبار - + &Publish Syphon Output نشر الإخراج عبر Syphon(&P) - + Publish the output composition as a Syphon server other apps can receive نشر تركيبة الإخراج كخادم Syphon يمكن للتطبيقات الأخرى استقباله - + Display &Undo History عرض سجل التراجع(&U) - + Open Conso&le فتح الطرفية(&L) - + &Links الروابط(&L) - + List the keys linked to settings عرض المفاتيح المربوطة بالإعدادات - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Display &Zoom Toolbar عرض شريط التكبير(&Z) - + &Menu Bar شريط القوائم(&M) - + Main Layout التخطيط الرئيسي - + Switch to the Main layout. التبديل إلى التخطيط الرئيسي. - + Input editor Layout تخطيط محرر الإدخال - + Switch to the Input editor Layout. التبديل إلى تخطيط محرر الإدخال. - + Output Editor Layout تخطيط محرر الإخراج - + Switch to the Output Editors Layout. التبديل إلى تخطيط محرر الإخراج. - + Editor المحرر - + Show the editor and hide the bottom section إظهار المحرر وإخفاء القسم السفلي - + Bottom Section القسم السفلي - + Show the bottom section, such as the cues, and hide the editor إظهار القسم السفلي، مثل العلامات، وإخفاء المحرر - + Editor and Bottom Section المحرر والقسم السفلي - + Show the editor, and the bottom section under it إظهار المحرر، والقسم السفلي تحته - - + + Zoom In تكبير - - + + Zoom Out تصغير - + Actual Pixels (1:1) البكسلات الفعلية (1:1) - + Show one image pixel per screen pixel عرض بكسل واحد من الصورة لكل بكسل من الشاشة - + Fit To View (100%) ملاءمة العرض (100%) - + Show the whole image or output frame عرض الصورة كاملة أو إطار الإخراج كاملًا - + Output &Resolution... دقة الإخراج(&R)... - + Choose the size of the output frame اختيار حجم إطار الإخراج - + Report an issue الإبلاغ عن مشكلة - + Professional services && custom development… خدمات احترافية وتطوير حسب الطلب… - + Hire Art Plus Code for video mapping installations, custom features, integration and training استأجر Art Plus Code لتركيبات إسقاط الفيديو والميزات المخصصة والتكامل والتدريب - + Support the project (donate)… ادعم المشروع (تبرّع)… - + Help fund MapMap's ongoing development ساعد في تمويل التطوير المستمر لـ MapMap - + Documentation التوثيق - + Submit feedback via email إرسال ملاحظات عبر البريد الإلكتروني - + &Keyboard shortcuts اختصارات لوحة المفاتيح(&K) - + Welcome to %1… مرحبًا بك في %1… - + &File ملف(&F) - + Open Recents Projects فتح المشاريع الحديثة - + Open Recents Videos فتح مقاطع الفيديو الحديثة - + &Edit تحرير(&E) - + &View عرض(&V) - + &Output الإخراج(&O) - + + &Tools + + + + &Window نافذة(&W) - + &Help مساعدة(&H) - + Change Layer Source تغيير مصدر الطبقة - + &Toolbar شريط الأدوات(&T) - + The learned keys act again. المفاتيح المتعلَّمة تعمل من جديد. - + The learned keys are off: they do nothing until turned on again. المفاتيح المتعلَّمة متوقفة: لا تفعل شيئًا حتى يُعاد تشغيلها. - + Learned keys: on المفاتيح المتعلَّمة: مفعّلة - + Learned keys: off المفاتيح المتعلَّمة: متوقفة - + Edit > Learned Keys Active (%1) turns them on and off. تحرير > المفاتيح المتعلَّمة مفعّلة (%1) يشغّلها ويوقفها. - + The document has been modified. Do you want to save your changes? تم تعديل المستند. هل تريد حفظ التغييرات؟ - - + + Error reading mapping project file خطأ في قراءة ملف مشروع الإسقاط - - + + Cannot read file %1: %2. تتعذّر قراءة الملف %1: %2. - + Cannot read %1: %2 تتعذّر قراءة %1: %2 - + Project of a later version مشروع من إصدار أحدث - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. حُفظ هذا المشروع بإصدار أحدث من MapMap، بالصيغة %1؛ وهذا الإصدار يكتب %2. ما لا يعرفه هذا الإصدار يُحتفظ به، لكنه قد لا يعمل كما أراد الإصدار الأحدث. - + Project opened with missing entries فُتح المشروع مع إدخالات مفقودة - + MapMap skipped these project entries: %1 تخطّى MapMap إدخالات المشروع هذه: %1 - + Sources this version cannot open مصادر لا يستطيع هذا الإصدار فتحها - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. يحتوي هذا المشروع على مصادر من أنواع لا يستطيع هذا الإصدار من MapMap فتحها: %1. يُحتفظ بها مع طبقاتها، التي تعرض صورة «مفقود»، وتُحفظ كما هي. - + File loaded تم تحميل الملف - - + + File loaded: %n link(s) active تم تحميل الملف: %n رابط نشط @@ -3644,7 +4130,7 @@ They are kept with their layers, which show a "missing" image, and sav - + , %n kept but not usable here ، %n منها محفوظة دون استخدام هنا @@ -3656,182 +4142,198 @@ They are kept with their layers, which show a "missing" image, and sav - - + + Error saving mapping project خطأ في حفظ مشروع الإسقاط - + Cannot write file %1: %2. تتعذّر كتابة الملف %1: %2. - + Cannot rename temporary file to %1. تعذّرت إعادة تسمية الملف المؤقت إلى %1. - + File saved تم حفظ الملف - + Untitled بلا عنوان - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project مشروع MapMap - - - + + + &%1 %2 &%1 %2 - + Clear List مسح القائمة - + No Recents Projects لا توجد مشاريع حديثة - + File imported تم استيراد الملف - + %1 added تمت إضافة %1 - + + Group %1 + + + + Output %1 × %2 الإخراج %1 × %2 - + Output Editor (%1 × %2) محرر الإخراج (%1 × %2) - + Output Resolution دقة الإخراج - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. حجم إطار الإخراج، وهو عادةً دقة جهاز العرض. تحجّمه نافذة الإخراج لتملأ شاشة الإخراج. - + Scale the shapes to keep them in place in the frame تحجيم الأشكال لإبقائها في مكانها داخل الإطار - + %1 %2 × %3 %1 %2 × %3 - + + + Face %1 + + + + + Auto-Mapping + + + + The output screen %1 is disconnected: the output is hidden until it comes back. شاشة الإخراج %1 مفصولة: يبقى الإخراج مخفيًا حتى تعود. - + The output screen %1 is back. عادت شاشة الإخراج %1. - + %1 - %2x%3 %1 - %2x%3 - + - Primary - الرئيسية - + %1 - disconnected %1 - مفصولة - + Output Fills a Screen الإخراج يملأ شاشة - + The output will cover this screen. Press Esc to bring MapMap back. سيغطي الإخراج هذه الشاشة. اضغط Esc لإعادة MapMap. - + Cover the Screen تغطية الشاشة - + Don't ask again لا تسأل مجددًا - + Warning تحذير - + The following file is not supported: %1 الملف التالي غير مدعوم: %1 - + Cannot load movie تعذّر تحميل الفيديو - + Unable to use file %1. The original file is not found. Please locate. تعذّر استخدام الملف %1. لم يُعثر على الملف الأصلي. يُرجى تحديد موقعه. - - + + Locate file %1 تحديد موقع الملف %1 - - + + %1 files (%2) ملفات %1 (%2) - + Undo history سجل التراجع @@ -3839,22 +4341,22 @@ The original file is not found. Please locate. mmp::MapperGLCanvasToolbar - + Zoom in تكبير - + Zoom out تصغير - + Actual pixels (1:1): one image pixel per screen pixel البكسلات الفعلية (1:1): بكسل واحد من الصورة لكل بكسل من الشاشة - + Fit to view (100%): show the whole image or output frame ملاءمة العرض (100%): عرض الصورة كاملة أو إطار الإخراج كاملًا @@ -3870,22 +4372,22 @@ The original file is not found. Please locate. mmp::Mesh - + Columns الأعمدة - + The number of columns of vertices of the mesh, its two edges included. عدد أعمدة رؤوس الشبكة، بما في ذلك حافتاها. - + Rows الصفوف - + The number of rows of vertices of the mesh, its two edges included. عدد صفوف رؤوس الشبكة، بما في ذلك حافتاها. @@ -3893,7 +4395,7 @@ The original file is not found. Please locate. mmp::OutputGLWindow - + MapMap - Output MapMap - الإخراج @@ -3937,312 +4439,312 @@ The original file is not found. Please locate. mmp::PreferenceDialog - + Preferences التفضيلات - + Current project: %1 × %2 المشروع الحالي: %1 × %2 - + Large كبير - + Medium متوسط - + Small صغير - + Language (requires restart) اللغة (تتطلب إعادة التشغيل) - + Toolbar icon size (requires restart) حجم أيقونات شريط الأدوات (يتطلب إعادة التشغيل) - + Show the welcome dialog at startup إظهار نافذة الترحيب عند بدء التشغيل - + Enable Sticky vertices تفعيل الرؤوس اللاصقة - + Sensitivity الحساسية - + Vertices الرؤوس - + Only show output controls on mouse over إظهار أدوات تحكم الإخراج عند مرور الفأرة فقط - + Output Layers طبقات الإخراج - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. حجم إطار الإخراج، وهو عادةً دقة جهاز العرض. يتبع خيار «شاشة الإخراج» الشاشةَ المختارة للإخراج. - + Change... تغيير... - + Default Output Resolution for New Projects دقة الإخراج الافتراضية للمشاريع الجديدة - + Show resolution on output test cards إظهار الدقة على بطاقات اختبار الإخراج - + Classic test card بطاقة اختبار كلاسيكية - + PAL test card بطاقة اختبار PAL - + NTSC test card بطاقة اختبار NTSC - + Test Card بطاقة الاختبار - + Listen to OSC messages الاستماع إلى رسائل OSC - + Allow message with existing media source السماح برسالة بمصدر الوسائط الحالي - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. عند إيقافه (الافتراضي)، تُتجاهل رسالة OSC التي تضبط وسائط مصدر على الملف الذي يستخدمه بالفعل، حتى لا تعيد الرسائل المتكررة تحميل الفيديو نفسه — وإعادة تشغيله. فعّله لإعادة تحميل الوسائط على أي حال، مثلًا لإعادة تشغيل مقطع من بدايته عبر OSC. - + Accept OSC from the network (less secure) قبول OSC من الشبكة (أقل أمانًا) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. عند إيقافه، لا يمكن الوصول إلى OSC إلا من هذا الحاسوب (127.0.0.1). لا تفعّله إلا على شبكة عرض موثوقة — لا يوفر OSC أي مصادقة. - + Allow OSC to quit the application السماح لـ OSC بإنهاء التطبيق - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. عند إيقافه، يُتجاهل الأمر /mapmap/quit من OSC حتى لا يتمكن مرسل بعيد من إغلاق التطبيق أثناء العرض. - + on port على المنفذ - + Refresh تحديث - + Local IP عنوان IP المحلي - + OSC Setup إعداد OSC - + Disabled معطّل - + MCP port (0 to disable) منفذ MCP (0 للتعطيل) - + MCP Setup إعداد MCP - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. يستمع MapMap إلى كل جهاز MIDI متصل بهذا الحاسوب. ألغِ تحديد جهاز لتجاهله. - + Devices: الأجهزة: - + MIDI MIDI - + MIDI is not available on this computer. MIDI غير متاح على هذا الحاسوب. - + No MIDI device found. Connect one: it appears here. لم يُعثر على أي جهاز MIDI. صِل جهازًا: سيظهر هنا. - + %1 (not connected) %1 (غير متصل) - + Last message received: none yet. Turn a knob or press a pad to see it here. آخر رسالة مستلمة: لا شيء بعد. أدر زرًا دوارًا أو اضغط لوحة لتراها هنا. - + Last message received: %1, from %2 آخر رسالة مستلمة: %1، من %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. يستمع MapMap إلى كل ذراع تحكم ألعاب متصلة بهذا الحاسوب، سلكيًا أو لاسلكيًا. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: يمكن وصف ذراع التحكم غير المعروفة بصيغة SDL، سطرًا لكل ذراع، في هذا الملف: - + Open Folder فتح المجلد - + Controllers: أذرع التحكم: - + This version of MapMap was built without game controllers. بُني هذا الإصدار من MapMap دون دعم أذرع تحكم الألعاب. - + Game controllers أذرع تحكم الألعاب - + Game controllers are not available on this computer. أذرع تحكم الألعاب غير متاحة على هذا الحاسوب. - + No game controller found. Connect one or turn it on: it appears here. لم يُعثر على أي ذراع تحكم ألعاب. صِل واحدة أو شغّلها: ستظهر هنا. - + Last button received: none yet. Press a button or push a stick to see it here. آخر زر مستلم: لا شيء بعد. اضغط زرًا أو حرّك عصا لتراه هنا. - + Last button received: %1, from %2 آخر زر مستلم: %1، من %2 - + Play in loop (requires restart) التشغيل المتكرر (يتطلب إعادة التشغيل) - + Custom... مخصص... - + Frame rate (frames per second) معدل الإطارات (إطار في الثانية) - + Playback التشغيل - + Interface الواجهة - + Layers الطبقات - + Output الإخراج - + Controls التحكم - + Advanced متقدم @@ -4250,7 +4752,7 @@ The original file is not found. Please locate. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - اختصارات لوحة المفاتيح @@ -4276,12 +4778,12 @@ The original file is not found. Please locate. mmp::SourceGui - + Media الوسائط - + Missing (%1) مفقود (%1) @@ -4289,12 +4791,12 @@ The original file is not found. Please locate. mmp::SourceItemDelegate - + Turn the effect on or off تشغيل التأثير أو إيقافه - + Remove the effect إزالة التأثير @@ -4302,42 +4804,42 @@ The original file is not found. Please locate. mmp::Syphon - + Server UUID معرّف UUID للخادم - + The system-wide identifier of the Syphon server this source receives. معرّف خادم Syphon الذي يستقبله هذا المصدر، على مستوى النظام. - + Server name اسم الخادم - + The name of the Syphon server this source receives. اسم خادم Syphon الذي يستقبله هذا المصدر. - + Application name اسم التطبيق - + The name of the application publishing the Syphon server. اسم التطبيق الذي ينشر خادم Syphon. - + Respect source alpha احترام قناة ألفا للمصدر - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. يحدد ما إذا كانت الشفافية التي يرسلها الخادم محفوظة؛ وإلا تُجعل الإطارات معتمة. @@ -4345,37 +4847,37 @@ The original file is not found. Please locate. mmp::SyphonGui - + Server الخادم - + Status الحالة - + (none) (لا شيء) - + Unknown server خادم غير معروف - + Connected متصل - + No server selected لم يُحدد أي خادم - + Waiting for server… في انتظار الخادم… @@ -4438,7 +4940,7 @@ The original file is not found. Please locate. mmp::TextControl - + Choose a file اختيار ملف @@ -4612,12 +5114,12 @@ The original file is not found. Please locate. mmp::WelcomeDialog - + Welcome to %1 مرحبًا بك في %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4626,17 +5128,17 @@ To get started, import a media file to create a source, then add a shape to proj للبدء، استورد ملف وسائط لإنشاء مصدر، ثم أضف شكلًا لتُسقطه عليه. - + Import a media file… استيراد ملف وسائط… - + Read the documentation قراءة التوثيق - + Show this window at startup إظهار هذه النافذة عند بدء التشغيل diff --git a/translations/mapmap_de.ts b/translations/mapmap_de.ts index 6c6a2315..dad09518 100644 --- a/translations/mapmap_de.ts +++ b/translations/mapmap_de.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. Die Datei %1 kann nicht gelesen werden. - + %1 does not start with an ISF header. %1 beginnt nicht mit einem ISF-Header. - + The ISF header of %1 is not closed. Der ISF-Header von %1 ist nicht abgeschlossen. - + The ISF header of %1 is not a JSON object: %2. Der ISF-Header von %1 ist kein JSON-Objekt: %2. - + %1: the key %2 is ignored. %1: Der Schlüssel %2 wird ignoriert. - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 hat %2 Durchläufe: MapMap liest nur Shader mit einem Durchlauf. - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 zeichnet seinen Durchlauf in ein Bild: MapMap liest solche Durchläufe noch nicht. - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 behält Bilder von einem Frame zum nächsten: MapMap liest solche Shader noch nicht. - + %1 imports images: MapMap does not read such shaders yet. %1 importiert Bilder: MapMap liest solche Shader noch nicht. - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: Eingang %2 hat keinen gültigen NAME. - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: Der Bildeingang %2 wird abgelehnt: MapMap gibt einem Effekt ein einziges Bild namens %3. - - + + %1: two inputs are named %2. %1: Zwei Eingänge heißen %2. - + %1: the name %2 is reserved. %1: Der Name %2 ist reserviert. - + %1: the key %2 of the input %3 is ignored. %1: Der Schlüssel %2 des Eingangs %3 wird ignoriert. - + %1: inputs of type %2 are not read by MapMap. %1: Eingänge vom Typ %2 werden von MapMap nicht gelesen. - + (none) (keiner) - + %1: the unit %2 of the input %3 is ignored. %1: Die Einheit %2 des Eingangs %3 wird ignoriert. - + %1: generator %2 has no valid NAME. %1: Generator %2 hat keinen gültigen NAME. - + %1: the generator %2 has the name of an input. %1: Der Generator %2 trägt den Namen eines Eingangs. - + %1: generators of type %2 are not read: %3 stays at 0. %1: Generatoren vom Typ %2 werden nicht gelesen: %3 bleibt bei 0. - + %1: the generator %2 names an input that does not exist: %3. %1: Der Generator %2 nennt einen Eingang, der nicht existiert: %3. - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: Der Generator %2 gibt seine Geschwindigkeit zweimal an: %3 wird ignoriert. - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: Der Animator %2 hat eine Form, die MapMap nicht zeichnet, %3: Er bleibt bei 0. - + %1: the parameter %2 of the generator %3 is ignored. %1: Der Parameter %2 des Generators %3 wird ignoriert. - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: Die #version-Zeile wird ignoriert: MapMap kompiliert Shader in GLSL 1.20. - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 ist ein Effekt, der die Zeit liest: MapMap animiert Effekte noch nicht. - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 ist ein Effekt mit GENERATORS: MapMap animiert Effekte noch nicht. - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 ist ein Effekt mit dem Ereigniseingang %2: MapMap animiert Effekte noch nicht. - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: Der Name %2 ist reserviert: Namen, die mit %3 beginnen, gehören MapMap. @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... Programm wird gestartet... - + Done. Fertig. @@ -375,252 +390,262 @@ Ebene löschen - + Raise layer Ebene anheben - + Lower layer Ebene absenken - + Raise layer to top Ebene ganz nach oben - + Lower layer to bottom Ebene ganz nach unten - + + Delete group + + + + Flip Image Horizontally Bild horizontal spiegeln - + Flip Horizontally Horizontal spiegeln - + Flip Image Vertically Bild vertikal spiegeln - + Flip Vertically Vertikal spiegeln - + Rotate Image 90° CW Bild um 90° im Uhrzeigersinn drehen - + Rotate 90° CW Um 90° im Uhrzeigersinn drehen - + Rotate Image 90° CCW Bild um 90° gegen den Uhrzeigersinn drehen - + Rotate 90° CCW Um 90° gegen den Uhrzeigersinn drehen - + Rotate Image 180° Bild um 180° drehen - + Rotate 180° Um 180° drehen - + Change output resolution Ausgabeauflösung ändern - + + Move layer + + + + Add effect %1 Effekt %1 hinzufügen - + Remove effect %1 Effekt %1 entfernen - + Problem at creation of shape. Problem beim Erstellen der Form. - + Unable to create shape of type '%1'. Die Form vom Typ „%1“ kann nicht erstellt werden. - + unknown unbekannt - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. Dieses Projekt wurde mit MapMap %1 im alten XML-Format gespeichert. Diese Version von MapMap (%2) öffnet nur JSON-Projekte. - + Parse error at offset %1: %2 Syntaxfehler an Position %1: %2 - + The contents of this file does not look like a MapMap project. Der Inhalt dieser Datei sieht nicht wie ein MapMap-Projekt aus. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. Diese Datei wurde mit MapMap %1 gespeichert und kann mit dieser Version (%2) nicht gelesen werden. - + The project field '%1' must be an array. Das Projektfeld „%1“ muss ein Array sein. - + CC %1 CC %1 - + %1 ch %2 %1 Kan. %2 - + Keyboard Tastatur - + MIDI MIDI - + Follow the control Dem Regler folgen - + Follow the turns Den Drehungen folgen - + Move right Nach rechts - + Move down Nach unten - + Increase Erhöhen - + Move left Nach links - + Move up Nach oben - + Decrease Verringern - + Toggle Umschalten - + Turn on Einschalten - + Turn off Ausschalten - + Next option Nächste Option - + Last option Letzte Option - + First option Erste Option - + Minimum or maximum Minimum oder Maximum - + Set to maximum Auf Maximum setzen - + Set to minimum Auf Minimum setzen - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 Shader abgelehnt: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker Schachbrett - + A checkerboard of two colours; the square at the top left has the front colour. Ein Schachbrett aus zwei Farben; das Feld oben links hat die Vordergrundfarbe. - + Count Anzahl - + The number of squares on each side. Die Anzahl der Felder pro Seite. - + Back Color Hintergrundfarbe - + The colour of every other square. Die Farbe jedes zweiten Feldes. - + Front Color Vordergrundfarbe - + The colour of the square at the top left, and of every other square. Die Farbe des Feldes oben links und jedes zweiten Feldes. - + Color Adjustment Farbkorrektur - + Brightness Helligkeit - + Added to each colour: below 0 darker, above 0 lighter. Wird zu jeder Farbe addiert: unter 0 dunkler, über 0 heller. - + Contrast Kontrast - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. Wie weit die Farben von mittlerem Grau entfernt sind: 0 % ist ganz grau, 100 % unverändert. - + Saturation Sättigung - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. Wie kräftig die Farben sind: 0 % ergibt Grautöne, 100 % unverändert. - + Hue Farbton - + Turns the colours around the colour wheel, by this angle. Dreht die Farben um diesen Winkel auf dem Farbkreis. - + Color Wheel Farbkreis - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Farbkreise, Spiralen, konzentrische Ringe und polare Schachbretter, gerade oder verdreht, aus einem einzigen Satz von Einstellungen. - + Geometry Geometrie - + Segments Segmente - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Anzahl der Teile rund um den Kreis; 1 lässt ihn ganz. Bei einer Palette aus zwei Farben ergibt eine ungerade Zahl die gerade Zahl darunter, damit sich die Farben ringsum abwechseln. - + Rings Ringe - + Number of rings from the centre to the edge of the disk; 0 for none. Anzahl der Ringe von der Mitte bis zum Rand der Scheibe; 0 für keine. - + Twist Verdrehung - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Windet die Segmente zu Spiralen: die Umdrehungen, die sie von der Mitte bis zum Rand der Scheibe machen. Negative Werte winden in die andere Richtung. - + Smoothness Weichheit - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Übergang zwischen benachbarten Farben: scharf bei 0, fließend bei 100%. - + Color Farbe - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Palette - + The colours of the pattern, in the order of their cycle. Die Farben des Musters, in der Reihenfolge ihres Zyklus. - + Spectrum Spektrum - + Monochromatic Monochrom - + Grayscale Graustufen - + Black and White Schwarz-Weiß - + Complementary Komplementär - + Analogous Analog - + Triadic Triadisch - + Hue Shift Farbtonverschiebung - + Turns the hue of every colour; greys stay as they are. Dreht den Farbton jeder Farbe; Grautöne bleiben, wie sie sind. - + Radial Color Radiale Farbe - + Radial Saturation Radiale Sättigung - + Positive: grey centre; negative: grey circumference. The lightness is kept. Positiv: graue Mitte; negativ: grauer Rand. Die Helligkeit bleibt erhalten. - + Radial Lightness Radiale Helligkeit - + Positive: white centre; negative: black centre. Positiv: weiße Mitte; negativ: schwarze Mitte. - + Radial Falloff Radialer Abfall - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. Die Kurve beider radialer Verläufe: breit unter 1, linear bei 1, konzentriert über 1. - + Reverse Radial Gradient Radialen Verlauf umkehren - + Swaps the centre and the circumference in both radial gradients. Vertauscht Mitte und Rand in beiden radialen Verläufen. - + Animation Animation - + Speed Geschwindigkeit - + How fast the pattern turns; 0 keeps it still. Wie schnell sich das Muster dreht; 0 lässt es stillstehen. - + Reverse Umkehren - + Turns the pattern the other way. Dreht das Muster in die andere Richtung. - + Flow Fluss - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. Wie schnell sich die Ringe von der Mitte entfernen, in Radien pro Minute, unabhängig von ihrer Anzahl: bei 6 läuft ein Ring in 10 Sekunden von der Mitte zum Rand; 0 lässt sie stillstehen. - + Flow Inward Nach innen fließen - + Moves the rings towards the centre. Bewegt die Ringe zur Mitte hin. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid Raster - + Lines of a colour on a background, along the borders and between columns and rows. Linien einer Farbe auf einem Hintergrund, entlang der Ränder und zwischen Spalten und Zeilen. - + Columns Spalten - + The number of columns between the lines. Die Anzahl der Spalten zwischen den Linien. - + Rows Zeilen - + The number of rows between the lines. Die Anzahl der Zeilen zwischen den Linien. - + Thickness Stärke - + The thickness of the lines. Die Stärke der Linien. - + The colour between the lines. Die Farbe zwischen den Linien. - + Line Color Linienfarbe - + The colour of the lines. Die Farbe der Linien. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,304 @@ mmp::AboutDialog - + About %1 Über %1 - + MapMap is a free/open source video mapping software. MapMap ist eine freie Open-Source-Software für Video-Mapping. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. Weitere Informationen zu dieser Software finden Sie auf der <a href="%1">Website von %2</a>. - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 wird von Art Plus Code entwickelt und gesponsert. Brauchen Sie eine individuelle Video-Mapping-Installation, eine neue Funktion, eine Integration oder eine Schulung? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 wird von Art Plus Code entwickelt und gesponsert. Brauchen Sie eine individuelle Video-Mapping-Installation, eine neue Funktion, eine Integration oder eine Schulung? + + + + Hire us + Beauftragen Sie uns + + + + Enjoying %1? + Gefällt Ihnen %1? + + + + Support the project + Unterstützen Sie das Projekt + + + + About + Über + + + + Changelog + Änderungen + + + + Libraries + Bibliotheken + + + + Contributors + Mitwirkende + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap enthält RtMidi, das die MIDI-Geräte empfängt, unter dieser Lizenz: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap verwendet SDL, das die Gamecontroller empfängt, unter dieser Lizenz: + + + + License + Lizenz + + + + OSC Commands + OSC-Befehle + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + Start + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - Beauftragen Sie uns + + Scanning: do not move. + - - Enjoying %1? - Gefällt Ihnen %1? + + Scan cancelled. + - - Support the project - Unterstützen Sie das Projekt + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + %n outline(s) to place by hand + + + + - - About - Über + + + Update Shapes + - - Changelog - Änderungen + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + %n new face(s) will be added. + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + - - Libraries - Bibliotheken + + Update and Remove Them + - - Contributors - Mitwirkende + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap enthält RtMidi, das die MIDI-Geräte empfängt, unter dieser Lizenz: + + Update + + + + + %n layer(s) moved + + + + + + + + %n shape(s) created + + + + + + + + %n layer(s) removed + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap verwendet SDL, das die Gamecontroller empfängt, unter dieser Lizenz: + + %1. Edit > Undo takes it all back at once. + - - License - Lizenz + + Cancel + - - OSC Commands - OSC-Befehle + + Close + @@ -1871,15 +2116,23 @@ Editor darüber einblenden + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (fehlt) - + (none) (keine) @@ -1887,7 +2140,7 @@ mmp::ColorControl - + Show the colour picker Farbwähler anzeigen @@ -1991,27 +2244,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap Protokollausgabe - MapMap - + &Close &Schließen - + Close the console Konsole schließen - + &File &Datei - + MMM dd yy HH:mm dd. MMM yy HH:mm @@ -2128,21 +2381,31 @@ mmp::Effect - + Enabled Aktiviert - + Whether this effect changes the image; off, the image passes unchanged. Ob dieser Effekt das Bild verändert; ausgeschaltet bleibt das Bild unverändert. + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect Effekt @@ -2150,42 +2413,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. Die Nummer, die dieses Element im Projekt kennzeichnet. - + Name Name - + The name shown in the lists and used to find this element by OSC. Der Name, der in den Listen angezeigt und über OSC zum Finden dieses Elements verwendet wird. - + Locked Gesperrt - + Whether this element is protected from changes made with the mouse. Ob dieses Element vor Änderungen mit der Maus geschützt ist. - + Opacity Deckkraft - + How opaque this element is, from fully transparent to fully opaque. Wie deckend dieses Element ist, von völlig transparent bis völlig deckend. @@ -2237,6 +2500,44 @@ Generator %1, auf der GPU gezeichnet + + mmp::Group + + + Solo + Solo + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Sichtbar + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2569,14 @@ mmp::Inspector - Type in project files: %1 - Typ in Projektdateien: %1 + Typ in Projektdateien: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2584,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Tasten zum Bewegen zuweisen - + Learn MIDI Controls to Move It MIDI-Regler zum Bewegen zuweisen - + Remove the Links That Move It Verknüpfungen zum Bewegen entfernen - + Learn a Key Taste zuweisen - + Remove the Key Taste entfernen - + Learn a MIDI Control MIDI-Regler zuweisen - + Remove the MIDI Control MIDI-Regler entfernen @@ -2332,52 +2632,66 @@ mmp::Layer - + Solo Solo - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Ob diese Ebene solo geschaltet ist: Solange eine Ebene solo ist, werden nur die Solo-Ebenen angezeigt. - + Visible Sichtbar - + Whether this layer is shown. Ob diese Ebene angezeigt wird. - + Depth Tiefe - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - Die Position dieser Ebene im Ebenenstapel. + Die Position dieser Ebene im Ebenenstapel. - + Has input shape Hat Eingabeform - + Whether this layer picks the region of its source it shows with an input shape. Ob diese Ebene den gezeigten Bereich ihrer Quelle mit einer Eingabeform auswählt. - + Source Quelle - + The source shown in this layer. Die Quelle, die diese Ebene zeigt. @@ -2385,42 +2699,42 @@ mmp::LayerGui - + Surface Fläche - + Output shape Ausgabeform - + Input shape Eingabeform - + Media Medium - + Mesh Gitter - + Triangle Dreieck - + Ellipse Ellipse - + Quad Viereck @@ -2433,46 +2747,71 @@ mmp::LayerItemDelegate - - + + Solo layer Ebene solo schalten - - + + Lock layer Ebene sperren - - + + Duplicate layer Ebene duplizieren - - + + Delete layer Ebene löschen - + Turn the effect on or off Effekt ein- oder ausschalten - + Remove the effect Effekt entfernen - + Available once a layer can have several effects Verfügbar, sobald eine Ebene mehrere Effekte haben kann - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Ebene ein- oder ausblenden @@ -2549,27 +2888,27 @@ mmp::MShape - + Locked Gesperrt - + Whether the vertices of this shape are protected from changes made with the mouse. Ob die Eckpunkte dieser Form vor Änderungen mit der Maus geschützt sind. - + Points Punkte - + Point Punkt - + The position of a control point of the shape, in pixels. Die Position eines Kontrollpunkts der Form, in Pixeln. @@ -2577,1083 +2916,1210 @@ mmp::MainWindow - - + + Open project Projekt öffnen - - - - + + + + MapMap files (*.%1) MapMap-Dateien (*.%1) - - + + Save project Projekt speichern - - + + Import media source file Mediendatei importieren - - + + Media files (%1 %2);;All files (*) Mediendateien (%1 %2);;Alle Dateien (*) - + Camera device Kamera - + Select camera Kamera auswählen - - + + No camera available Keine Kamera verfügbar - - + + You can not use this feature! No camera available in your system Sie können diese Funktion nicht verwenden! In Ihrem System ist keine Kamera verfügbar - + Syphon source added Syphon-Quelle hinzugefügt - - - + + + MapMap MapMap - + Remove this source and all its associated layers? Diese Quelle und alle zugehörigen Ebenen entfernen? - + Input Editor Eingabe-Editor - + Output Editor Ausgabe-Editor - + Library Bibliothek - + Layers Ebenen - + &New &Neu - + Create a new project Ein neues Projekt erstellen - + &Open… Ö&ffnen… - + Open an existing project Ein vorhandenes Projekt öffnen - + &Save &Speichern - + Save the project Das Projekt speichern - + Save &As… Speichern &unter… - + Save the project as… Das Projekt speichern unter… - + No Recents Videos Keine zuletzt verwendeten Videos - + &Import Media File… &Mediendatei importieren… - + Import a video or image file… Eine Video- oder Bilddatei importieren… - + Open &Camera Device… &Kamera öffnen… - + Choose your camera device… Ihre Kamera auswählen… - + Cue %1 Cue %1 - + Cue %1 — %2 Cue %1 — %2 - + %1 set at %2 %1 gesetzt bei %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Von %1 Ebenen verwendet: Eine Änderung wirkt sich auf alle aus. - + Replace effect Effekt ersetzen - - + + Replace Effect Effekt ersetzen - - - + + + Add Effect Effekt hinzufügen - + Save over a project of a later version? Projekt einer neueren Version überschreiben? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 wurde mit einer neueren Version von MapMap im Format %2 gespeichert. Diese Version behält, was sie nicht kennt, aber die neuere Version öffnet das Projekt möglicherweise nicht mehr so, wie es war. Trotzdem überschreiben? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. MIDI-Zuweisung für %1: Drücken Sie ein Pad für „%2“ oder drehen Sie einen Regler, um in beide Richtungen zu bewegen. Esc beendet, Entf entfernt die MIDI-Regler des Punkts. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Tastenzuweisung für %1: Drücken Sie eine Taste für „%2“. Esc beendet, Entf entfernt die Tasten des Punkts. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. MIDI-Zuweisung: Bewegen Sie einen Regler oder drücken Sie ein Pad für %1. Entf entfernt den zugewiesenen MIDI-Regler. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. MIDI-Zuweisung: Klicken Sie auf ein blau umrandetes Bedienelement und bewegen Sie dann einen Regler des MIDI-Geräts. Bereits zugewiesene MIDI-Regler bleiben wirksam. - + Learning keys: press a key for %1. Delete removes its key. Tastenzuweisung: Drücken Sie eine Taste für %1. Entf entfernt die zugewiesene Taste. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Tastenzuweisung: Klicken Sie auf ein blau umrandetes Bedienelement und drücken Sie dann eine Taste. Zugewiesene Tasten wirken erst, wenn die Zuweisung beendet ist (Esc). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Bewegen Sie einen MIDI-Regler für %1. Entf entfernt den zugewiesenen MIDI-Regler, Esc beendet die Zuweisung. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. MIDI zuweisen: Klicken Sie auf ein blau umrandetes Bedienelement und bewegen Sie dann einen Regler des MIDI-Geräts. Esc beendet die Zuweisung. - + Press a key for %1. Delete removes its key, Escape stops learning. Drücken Sie eine Taste für %1. Entf entfernt die zugewiesene Taste, Esc beendet die Zuweisung. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Tasten zuweisen: Klicken Sie auf ein blau umrandetes Bedienelement und drücken Sie dann eine Taste. Esc beendet die Zuweisung. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. MIDI-Zuweisung: Bewegen Sie einen Regler des MIDI-Geräts, keine Taste. Tasten weisen Sie mit Bearbeiten > Tasten zuweisen zu. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 steuert %2. Drücken Sie Esc, um die Zuweisung zu beenden: Dann wirkt %1. - + Click a control outlined in blue first, then press %1. Klicken Sie zuerst auf ein blau umrandetes Bedienelement und drücken Sie dann %1. - + %1 is already the shortcut of %2: choose another key. %1 ist bereits das Tastenkürzel für %2: Wählen Sie eine andere Taste. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 MIDI-Regler von %1 entfernt - + Key removed from %1 Taste von %1 entfernt - + Click a control outlined in blue first, then move %1. Klicken Sie zuerst auf ein blau umrandetes Bedienelement und bewegen Sie dann %1. - + Input Editor: %1% Eingabe-Editor: %1% - + Output Editor: %1% Ausgabe-Editor: %1% - + Cues Cues - + Stop Learning Zuweisung beenden - + Stop learning (Escape) Zuweisung beenden (Esc) - - + + Add &Generator &Generator hinzufügen - + Add a generator Generator hinzufügen - + Add &Syphon Source… &Syphon-Quelle hinzufügen… - + Receive live video from another application via Syphon… Live-Video aus einer anderen Anwendung über Syphon empfangen… - + E&xit &Beenden - + Exit the application Die Anwendung beenden - + &Undo &Rückgängig - + &Redo &Wiederholen - + &About MapMap Ü&ber MapMap - + Show the application's About box Informationen über die Anwendung anzeigen - + Duplicate Layer Ebene duplizieren - + Duplicate layer item Ebene duplizieren - + Delete Layer Ebene löschen - + Delete layer item Ebene löschen - + Remove Effect Effekt entfernen - + Remove the selected effect Den ausgewählten Effekt entfernen - + Rename Layer Ebene umbenennen - + Rename layer item Ebene umbenennen - + Lock Layer Ebene sperren - + Lock layer item Ebene sperren - + Hide Layer Ebene ausblenden - + Hide layer item Ebene ausblenden - + Solo Layer Ebene solo schalten - + Solo layer item Ebene solo schalten - + Rotate 90° CW Um 90° im Uhrzeigersinn drehen - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Um 90° im Uhrzeigersinn drehen. In der Eingabeansicht wird das Bild innerhalb der Ebene gedreht. - + Rotate 90° CCW Um 90° gegen den Uhrzeigersinn drehen - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Um 90° gegen den Uhrzeigersinn drehen. In der Eingabeansicht wird das Bild innerhalb der Ebene gedreht. - + Rotate 180° Um 180° drehen - + Rotate 180°. In the input view, rotates the image inside the layer. Um 180° drehen. In der Eingabeansicht wird das Bild innerhalb der Ebene gedreht. - + Flip Horizontally Horizontal spiegeln - + Flip horizontally. In the input view, flips the image inside the layer. Horizontal spiegeln. In der Eingabeansicht wird das Bild innerhalb der Ebene gespiegelt. - + Flip Vertically Vertikal spiegeln - + Flip vertically. In the input view, flips the image inside the layer. Vertikal spiegeln. In der Eingabeansicht wird das Bild innerhalb der Ebene gespiegelt. - - + + Raise Anheben - - + + Lower Absenken - + Raise to Top Ganz nach oben - + Raise to top Ganz nach oben - + Lower to Bottom Ganz nach unten - + Lower to bottom Ganz nach unten - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source Quelle löschen - + Delete source item Quelle löschen - + Rename Source Quelle umbenennen - + Rename source item Quelle umbenennen - + Import New Media Neues Medium importieren - + Import new media file if not exists on the list Neue Mediendatei importieren, falls sie nicht in der Liste ist - + &Preferences… &Einstellungen… - + Configure preferences… Einstellungen ändern… - + Add &Mesh Layer &Gitterebene hinzufügen - + Add mesh layer Gitterebene hinzufügen - + Add &Triangle Layer &Dreiecksebene hinzufügen - + Add triangle layer Dreiecksebene hinzufügen - + Add &Ellipse Layer &Ellipsenebene hinzufügen - + Add ellipse layer Ellipsenebene hinzufügen - - + + Play Wiedergabe - - + + Pause Pause - - + + Restart Neu starten - + &Hide Output Ausgabe &ausblenden - + Output in a &Window Ausgabe im &Fenster - + Output &Fills a Screen Ausgabe als &Vollbild - + Output Ausgabe - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. Ausgabe als Vollbild (%1). Der Pfeil wählt, wie und wo die Ausgabe angezeigt wird. - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Editor Editor - + Show the editor and hide the bottom section Editor anzeigen und unteren Bereich ausblenden - + Bottom Section Unterer Bereich - + Show the bottom section, such as the cues, and hide the editor Unteren Bereich, etwa die Cues, anzeigen und Editor ausblenden - + Editor and Bottom Section Editor und unterer Bereich - + Show the editor, and the bottom section under it Editor anzeigen, und darunter den unteren Bereich - + Actual Pixels (1:1) Originalgröße (1:1) - + Show one image pixel per screen pixel Ein Bildpixel pro Bildschirmpixel anzeigen - + Fit To View (100%) In Ansicht einpassen (100%) - + Show the whole image or output frame Das ganze Bild oder den ganzen Ausgaberahmen anzeigen - + Output &Resolution... Ausgabeauf&lösung... - + Choose the size of the output frame Die Größe des Ausgaberahmens wählen - + &Output &Ausgabe - + + &Tools + + + + Cannot read %1: %2 %1 kann nicht gelesen werden: %2 - + Project of a later version Projekt einer neueren Version - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. Dieses Projekt wurde mit einer neueren Version von MapMap im Format %1 gespeichert; diese Version schreibt %2. Was diese Version nicht kennt, bleibt erhalten, funktioniert aber möglicherweise nicht so, wie es die neuere Version vorsieht. - + Project opened with missing entries Projekt mit fehlenden Einträgen geöffnet - + MapMap skipped these project entries: %1 MapMap hat diese Projekteinträge übersprungen: %1 - + Sources this version cannot open Quellen, die diese Version nicht öffnen kann - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. Dieses Projekt enthält Quellen von Typen, die diese Version von MapMap nicht öffnen kann: %1. Sie bleiben mit ihren Ebenen erhalten, die ein „fehlt“-Bild zeigen, und werden unverändert gespeichert. - + + Group %1 + + + + + + Face %1 + + + + + Auto-Mapping + + + + %1 - disconnected %1 - getrennt - + Output Fills a Screen Ausgabe als Vollbild - + The output will cover this screen. Press Esc to bring MapMap back. Die Ausgabe wird diesen Bildschirm bedecken. Drücken Sie Esc, um MapMap zurückzuholen. - + Cover the Screen Bildschirm bedecken - + Don't ask again Nicht mehr fragen - + &Display Controls &Bedienelemente anzeigen - + Display canvas controls Bedienelemente der Ansichten anzeigen - + &Display Controls of Layers of a Source Bedienelemente der &Ebenen einer Quelle anzeigen - + Display all canvas controls related to current source Alle Bedienelemente anzeigen, die zur aktuellen Quelle gehören - + &Sticky Vertices &Magnetische Eckpunkte - + Enable sticky vertices Magnetische Eckpunkte aktivieren - + &Keyboard Learn &Tasten zuweisen - + Link keys of the keyboard to settings: click a control, then press a key Tasten der Tastatur mit Einstellungen verknüpfen: auf ein Bedienelement klicken, dann eine Taste drücken - + &MIDI Learn M&IDI zuweisen - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Regler und Noten eines MIDI-Geräts mit Einstellungen verknüpfen: auf ein Bedienelement klicken, dann einen MIDI-Regler bewegen - + Learned K&eys Active Zugewiesene Tasten &aktiv - + Turn the learned keys off while typing for something else, and on again Die zugewiesenen Tasten beim Tippen für etwas anderes aus- und danach wieder einschalten - + Show &Test Signal &Testbild anzeigen - + Show Test signal Testbild anzeigen - + &Publish Syphon Output Syphon-Ausgabe &veröffentlichen - + Publish the output composition as a Syphon server other apps can receive Die Ausgabe als Syphon-Server veröffentlichen, den andere Anwendungen empfangen können - + Display &Undo History &Änderungsverlauf anzeigen - + Open Conso&le K&onsole öffnen - + &Links &Verknüpfungen - + List the keys linked to settings Die mit Einstellungen verknüpften Tasten auflisten - + Display &Zoom Toolbar &Zoom-Werkzeugleiste anzeigen - + &Menu Bar &Menüleiste - + Main Layout Hauptlayout - + Switch to the Main layout. Zum Hauptlayout wechseln. - + Input editor Layout Layout des Eingabe-Editors - + Switch to the Input editor Layout. Zum Layout des Eingabe-Editors wechseln. - + Output Editor Layout Layout des Ausgabe-Editors - + Switch to the Output Editors Layout. Zum Layout des Ausgabe-Editors wechseln. - - + + Zoom In Vergrößern - - + + Zoom Out Verkleinern - + Report an issue Ein Problem melden - + Professional services && custom development… Professionelle Dienste && individuelle Entwicklung… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Beauftragen Sie Art Plus Code mit Video-Mapping-Installationen, individuellen Funktionen, Integration und Schulung - + Support the project (donate)… Das Projekt unterstützen (spenden)… - + Help fund MapMap's ongoing development Helfen Sie, die Weiterentwicklung von MapMap zu finanzieren - + Documentation Dokumentation - + Submit feedback via email Feedback per E-Mail senden - + &Keyboard shortcuts &Tastenkürzel - + Welcome to %1… Willkommen bei %1… - + &File &Datei - + Open Recents Projects Zuletzt verwendete Projekte öffnen - + Open Recents Videos Zuletzt verwendete Videos öffnen - + &Edit &Bearbeiten - + &View &Ansicht - + &Window &Fenster - + &Help &Hilfe - + Change Layer Source Quelle der Ebene ändern - + &Toolbar &Werkzeugleiste - + The learned keys act again. Die zugewiesenen Tasten wirken wieder. - + The learned keys are off: they do nothing until turned on again. Die zugewiesenen Tasten sind aus: Sie bewirken nichts, bis sie wieder eingeschaltet werden. - + Learned keys: on Zugewiesene Tasten: an - + Learned keys: off Zugewiesene Tasten: aus - + Edit > Learned Keys Active (%1) turns them on and off. Bearbeiten > Zugewiesene Tasten aktiv (%1) schaltet sie ein und aus. - + The document has been modified. Do you want to save your changes? Das Dokument wurde geändert. Möchten Sie Ihre Änderungen speichern? - - + + Error reading mapping project file Fehler beim Lesen der Projektdatei - - + + Cannot read file %1: %2. Die Datei %1 kann nicht gelesen werden: %2. - + File loaded Datei geladen - - + + File loaded: %n link(s) active Datei geladen: %n Verknüpfung aktiv @@ -3661,7 +4127,7 @@ Möchten Sie Ihre Änderungen speichern? - + , %n kept but not usable here , %n behalten, aber hier nicht verwendbar @@ -3669,157 +4135,157 @@ Möchten Sie Ihre Änderungen speichern? - - + + Error saving mapping project Fehler beim Speichern des Projekts - + Cannot write file %1: %2. Die Datei %1 kann nicht geschrieben werden: %2. - + Cannot rename temporary file to %1. Die temporäre Datei kann nicht in %1 umbenannt werden. - + File saved Datei gespeichert - + Untitled Unbenannt - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap-Projekt - - - + + + &%1 %2 &%1 %2 - + Clear List Liste leeren - + No Recents Projects Keine zuletzt verwendeten Projekte - + %1 added %1 hinzugefügt - + Output %1 × %2 Ausgabe %1 × %2 - + Output Editor (%1 × %2) Ausgabe-Editor (%1 × %2) - + Output Resolution Ausgabeauflösung - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Größe des Ausgaberahmens, meist die Auflösung des Projektors. Das Ausgabefenster skaliert ihn, um den Ausgabebildschirm zu füllen. - + Scale the shapes to keep them in place in the frame Formen skalieren, damit sie im Rahmen an ihrem Platz bleiben - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. Der Ausgabebildschirm %1 ist getrennt: Die Ausgabe ist ausgeblendet, bis er wieder verbunden ist. - + The output screen %1 is back. Der Ausgabebildschirm %1 ist wieder da. - + %1 - %2x%3 %1 - %2x%3 - + - Primary - Primär - + File imported Datei importiert - + Warning Warnung - + The following file is not supported: %1 Die folgende Datei wird nicht unterstützt: %1 - + Cannot load movie Film kann nicht geladen werden - + Unable to use file %1. The original file is not found. Please locate. Die Datei %1 kann nicht verwendet werden. Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. - - + + Locate file %1 Datei %1 suchen - - + + %1 files (%2) %1-Dateien (%2) - + Undo history Änderungsverlauf @@ -3827,22 +4293,22 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::MapperGLCanvasToolbar - + Zoom in Vergrößern - + Zoom out Verkleinern - + Actual pixels (1:1): one image pixel per screen pixel Originalgröße (1:1): ein Bildpixel pro Bildschirmpixel - + Fit to view (100%): show the whole image or output frame In Ansicht einpassen (100%): das ganze Bild oder den ganzen Ausgaberahmen anzeigen @@ -3858,22 +4324,22 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::Mesh - + Columns Spalten - + The number of columns of vertices of the mesh, its two edges included. Die Anzahl der Spalten von Eckpunkten des Gitters, seine beiden Ränder eingeschlossen. - + Rows Zeilen - + The number of rows of vertices of the mesh, its two edges included. Die Anzahl der Zeilen von Eckpunkten des Gitters, seine beiden Ränder eingeschlossen. @@ -3881,7 +4347,7 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::OutputGLWindow - + MapMap - Output MapMap - Ausgabe @@ -3925,312 +4391,312 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::PreferenceDialog - + Preferences Einstellungen - + Current project: %1 × %2 Aktuelles Projekt: %1 × %2 - + Large Groß - + Medium Mittel - + Small Klein - + Language (requires restart) Sprache (Neustart erforderlich) - + Toolbar icon size (requires restart) Symbolgröße der Werkzeugleiste (Neustart erforderlich) - + Show the welcome dialog at startup Willkommensfenster beim Start anzeigen - + Enable Sticky vertices Magnetische Eckpunkte aktivieren - + Sensitivity Empfindlichkeit - + Vertices Eckpunkte - + Only show output controls on mouse over Bedienelemente der Ausgabe nur beim Überfahren mit der Maus anzeigen - + Output Layers Ausgabeebenen - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Größe des Ausgaberahmens, meist die Auflösung des Projektors. „Ausgabebildschirm“ folgt dem für die Ausgabe gewählten Bildschirm. - + Change... Ändern... - + Default Output Resolution for New Projects Standard-Ausgabeauflösung für neue Projekte - + Show resolution on output test cards Auflösung auf den Testbildern der Ausgabe anzeigen - + Classic test card Klassisches Testbild - + PAL test card PAL-Testbild - + NTSC test card NTSC-Testbild - + Test Card Testbild - + Listen to OSC messages OSC-Nachrichten empfangen - + Allow message with existing media source Nachricht mit bereits verwendeter Mediendatei zulassen - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. Wenn diese Option ausgeschaltet ist (Standard), wird eine OSC-Nachricht ignoriert, die einer Quelle die Datei zuweist, die sie bereits verwendet. So wird dasselbe Video durch wiederholte Nachrichten nicht neu geladen und neu gestartet. Schalten Sie sie ein, um die Datei trotzdem neu zu laden, zum Beispiel um einen Clip über OSC von vorne zu starten. - + Accept OSC from the network (less secure) OSC aus dem Netzwerk annehmen (weniger sicher) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. Wenn diese Option ausgeschaltet ist, ist OSC nur von diesem Computer aus erreichbar (127.0.0.1). Schalten Sie sie nur in einem vertrauenswürdigen Shownetzwerk ein: OSC hat keine Authentifizierung. - + Allow OSC to quit the application OSC darf die Anwendung beenden - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. Wenn diese Option ausgeschaltet ist, wird der OSC-Befehl /mapmap/quit ignoriert, damit ein entfernter Absender die Anwendung während einer Show nicht beenden kann. - + on port auf Port - + Refresh Aktualisieren - + Local IP Lokale IP - + OSC Setup OSC-Einrichtung - + Disabled Deaktiviert - + MCP port (0 to disable) MCP-Port (0 zum Deaktivieren) - + MCP Setup MCP-Einrichtung - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap empfängt alle MIDI-Geräte, die an diesen Computer angeschlossen sind. Entfernen Sie das Häkchen bei einem Gerät, um es zu ignorieren. - + Devices: Geräte: - + MIDI MIDI - + MIDI is not available on this computer. MIDI ist auf diesem Computer nicht verfügbar. - + No MIDI device found. Connect one: it appears here. Kein MIDI-Gerät gefunden. Schließen Sie eines an: Es erscheint hier. - + %1 (not connected) %1 (nicht verbunden) - + Last message received: none yet. Turn a knob or press a pad to see it here. Letzte empfangene Nachricht: noch keine. Drehen Sie einen Regler oder drücken Sie ein Pad, um sie hier zu sehen. - + Last message received: %1, from %2 Letzte empfangene Nachricht: %1, von %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap empfängt alle Gamecontroller, die per Kabel oder drahtlos mit diesem Computer verbunden sind. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: Ein nicht erkannter Controller kann im SDL-Format, eine Zeile pro Controller, in dieser Datei beschrieben werden: - + Open Folder Ordner öffnen - + Controllers: Controller: - + This version of MapMap was built without game controllers. Diese Version von MapMap wurde ohne Gamecontroller-Unterstützung erstellt. - + Game controllers Gamecontroller - + Game controllers are not available on this computer. Gamecontroller sind auf diesem Computer nicht verfügbar. - + No game controller found. Connect one or turn it on: it appears here. Kein Gamecontroller gefunden. Schließen Sie einen an oder schalten Sie ihn ein: Er erscheint hier. - + Last button received: none yet. Press a button or push a stick to see it here. Letzte empfangene Taste: noch keine. Drücken Sie eine Taste oder bewegen Sie einen Stick, um sie hier zu sehen. - + Last button received: %1, from %2 Letzte empfangene Taste: %1, von %2 - + Play in loop (requires restart) In Schleife abspielen (Neustart erforderlich) - + Custom... Benutzerdefiniert... - + Frame rate (frames per second) Bildrate (Bilder pro Sekunde) - + Playback Wiedergabe - + Interface Oberfläche - + Layers Ebenen - + Output Ausgabe - + Controls Steuerung - + Advanced Erweitert @@ -4238,7 +4704,7 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - Tastenkürzel @@ -4264,12 +4730,12 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::SourceGui - + Media Medium - + Missing (%1) Fehlt (%1) @@ -4277,12 +4743,12 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::SourceItemDelegate - + Turn the effect on or off Effekt ein- oder ausschalten - + Remove the effect Effekt entfernen @@ -4290,42 +4756,42 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::Syphon - + Server UUID Server-UUID - + The system-wide identifier of the Syphon server this source receives. Die systemweite Kennung des Syphon-Servers, den diese Quelle empfängt. - + Server name Servername - + The name of the Syphon server this source receives. Der Name des Syphon-Servers, den diese Quelle empfängt. - + Application name Anwendungsname - + The name of the application publishing the Syphon server. Der Name der Anwendung, die den Syphon-Server veröffentlicht. - + Respect source alpha Alpha der Quelle berücksichtigen - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Ob die vom Server gesendete Transparenz erhalten bleibt; andernfalls werden die Bilder deckend gemacht. @@ -4333,37 +4799,37 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::SyphonGui - + Server Server - + Status Status - + (none) (keiner) - + Unknown server Unbekannter Server - + Connected Verbunden - + No server selected Kein Server ausgewählt - + Waiting for server… Warten auf den Server… @@ -4422,7 +4888,7 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::TextControl - + Choose a file Datei auswählen @@ -4596,12 +5062,12 @@ Die Originaldatei wurde nicht gefunden. Bitte suchen Sie sie. mmp::WelcomeDialog - + Welcome to %1 Willkommen bei %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4610,17 +5076,17 @@ To get started, import a media file to create a source, then add a shape to proj Importieren Sie zuerst eine Mediendatei, um eine Quelle zu erstellen, und fügen Sie dann eine Form hinzu, auf die sie projiziert wird. - + Import a media file… Eine Mediendatei importieren… - + Read the documentation Dokumentation lesen - + Show this window at startup Dieses Fenster beim Start anzeigen diff --git a/translations/mapmap_en.ts b/translations/mapmap_en.ts index f08cf760..f551c4c7 100644 --- a/translations/mapmap_en.ts +++ b/translations/mapmap_en.ts @@ -400,112 +400,117 @@ Lower layer to bottom - + + Delete group + + + + Flip Horizontally Flip Horizontally - + Flip Image Horizontally Flip Image Horizontally - + Flip Vertically Flip Vertically - + Flip Image Vertically Flip Image Vertically - + Rotate 90° CW Rotate 90° CW - + Rotate Image 90° CW Rotate Image 90° CW - + Rotate 90° CCW Rotate 90° CCW - + Rotate Image 90° CCW Rotate Image 90° CCW - + Rotate 180° Rotate 180° - + Rotate Image 180° Rotate Image 180° - + Change output resolution Change output resolution - + Move layer Move layer - + Add effect %1 Add effect %1 - + Remove effect %1 Remove effect %1 - + Problem at creation of shape. Problem at creation of shape. - + Unable to create shape of type '%1'. Unable to create shape of type '%1'. - + unknown unknown - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. - + Parse error at offset %1: %2 Parse error at offset %1: %2 - + The contents of this file does not look like a MapMap project. The contents of this file does not look like a MapMap project. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. The version of MapMap %1 used to save this file is not readable by this MapMap version %2. - + The project field '%1' must be an array. The project field '%1' must be an array. @@ -520,127 +525,127 @@ Done. - + CC %1 CC %1 - + %1 ch %2 %1 ch %2 - + Keyboard Keyboard - + MIDI MIDI - + Follow the control Follow the control - + Follow the turns Follow the turns - + Move right Move right - + Move down Move down - + Increase Increase - + Move left Move left - + Move up Move up - + Decrease Decrease - + Toggle Toggle - + Turn on Turn on - + Turn off Turn off - + Next option Next option - + Last option Last option - + First option First option - + Minimum or maximum Minimum or maximum - + Set to maximum Set to maximum - + Set to minimum Set to minimum - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -706,1077 +711,1077 @@ Shaders - + Checker Checker - + A checkerboard of two colours; the square at the top left has the front colour. A checkerboard of two colours; the square at the top left has the front colour. - + Count Count - + The number of squares on each side. The number of squares on each side. - + Back Color Back Color - + The colour of every other square. The colour of every other square. - + Front Color Front Color - + The colour of the square at the top left, and of every other square. The colour of the square at the top left, and of every other square. - + Color Adjustment Color Adjustment - + Brightness Brightness - + Added to each colour: below 0 darker, above 0 lighter. Added to each colour: below 0 darker, above 0 lighter. - + Contrast Contrast - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. - + Saturation Saturation - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. How vivid the colours are: 0 % is shades of grey, 100 % unchanged. - + Hue Hue - + Turns the colours around the colour wheel, by this angle. Turns the colours around the colour wheel, by this angle. - + Color Wheel Color Wheel - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. - + Geometry Geometry - + Segments Segments - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. - + Rings Rings - + Number of rings from the centre to the edge of the disk; 0 for none. Number of rings from the centre to the edge of the disk; 0 for none. - + Twist Twist - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. - + Smoothness Smoothness - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Interpolation between neighbouring colours: sharp at 0, continuous at 100%. - + Color Color - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels Levels - + Black Point Black Point - + Colours this dark or darker become black. Colours this dark or darker become black. - + White Point White Point - + Colours this light or lighter become white. Colours this light or lighter become white. - + Gamma Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black Output Black - + What black becomes: above 0 % it is lifted to a grey. What black becomes: above 0 % it is lifted to a grey. - + Output White Output White - + What white becomes: below 100 % it is dimmed to a grey. What white becomes: below 100 % it is dimmed to a grey. - + Channels Channels - + Red Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Palette - + The colours of the pattern, in the order of their cycle. The colours of the pattern, in the order of their cycle. - + Spectrum Spectrum - + Monochromatic Monochromatic - + Grayscale Grayscale - + Black and White Black and White - + Complementary Complementary - + Analogous Analogous - + Triadic Triadic - + Hue Shift Hue Shift - + Turns the hue of every colour; greys stay as they are. Turns the hue of every colour; greys stay as they are. - + Radial Color Radial Color - + Radial Saturation Radial Saturation - + Positive: grey centre; negative: grey circumference. The lightness is kept. Positive: grey centre; negative: grey circumference. The lightness is kept. - + Radial Lightness Radial Lightness - + Positive: white centre; negative: black centre. Positive: white centre; negative: black centre. - + Radial Falloff Radial Falloff - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. - + Reverse Radial Gradient Reverse Radial Gradient - + Swaps the centre and the circumference in both radial gradients. Swaps the centre and the circumference in both radial gradients. - + Animation Animation - + Speed Speed - + How fast the pattern turns; 0 keeps it still. How fast the pattern turns; 0 keeps it still. - + Reverse Reverse - + Turns the pattern the other way. Turns the pattern the other way. - + Flow Flow - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. - + Flow Inward Flow Inward - + Moves the rings towards the centre. Moves the rings towards the centre. - + Colorize Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color Dark Color - + The colour that black becomes. The colour that black becomes. - + Light Color Light Color - + The colour that white becomes. The colour that white becomes. - + Options Options - + Tone From Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance Luminance - + Maximum Maximum - + Average Average - + Gradient Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear Linear - + Radial Radial - + Conic Conic - + Diamond Diamond - + Angle Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A Color A - + The first colour. The first colour. - + Color B Color B - + The second colour, the last one with two colours. The second colour, the last one with two colours. - + Color C Color C - + The third colour, used with Three Colors. The third colour, used with Three Colors. - + Three Colors Three Colors - + Goes from Color A to Color B, then to Color C. Goes from Color A to Color B, then to Color C. - + Swap Colors Swap Colors - + Swaps the first and the last colour. Swaps the first and the last colour. - + Blend Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB RGB - + Rainbow Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. The gradient moves the other way: towards the centre, or anticlockwise. - + Grid Grid - + Lines of a colour on a background, along the borders and between columns and rows. Lines of a colour on a background, along the borders and between columns and rows. - + Columns Columns - + The number of columns between the lines. The number of columns between the lines. - + Rows Rows - + The number of rows between the lines. The number of rows between the lines. - + Thickness Thickness - + The thickness of the lines. The thickness of the lines. - + The colour between the lines. The colour between the lines. - + Line Color Line Color - + The colour of the lines. The colour of the lines. - + Invert Invert - + Inverts the colours of the image, as a photographic negative. Inverts the colours of the image, as a photographic negative. - + Keep Colors Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold Threshold - + Only what is at least this light is inverted, as a solarized photograph. Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. Inverts the blue, unless the colours are kept. - + Luma Key Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying Keying - + Low Threshold Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. Removes the light parts instead of the dark ones. - + Channel Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth Smooth - + Cells Cells - + Plasma Plasma - + Scale Scale - + How many clouds, cells or waves cross the image. How many clouds, cells or waves cross the image. - + Detail Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed Seed - + Changes the pattern: each number gives another one, always the same. Changes the pattern: each number gives another one, always the same. - + The colour of the low values. The colour of the low values. - + The colour of the high values. The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. The noise goes through its motion the other way. - + Posterize Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. The number of levels of each colour, black and full included. - + Softness Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only Brightness Only - + Keeps the colours and reduces only their brightness to levels. Keeps the colours and reduces only their brightness to levels. - + Stripes Stripes - + Stripes of two colours, at any angle and width, going by. Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width Width - + The share of each pair taken by the stripe of Color A. The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. The colour of every other stripe. - + The colour of the stripes between. The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors Colors - + The colour of what is below the threshold. The colour of what is below the threshold. - + The colour of what is above the threshold. The colour of what is above the threshold. - + Transparent Transparent - + Which side lets what is behind show through instead of its colour. Which side lets what is behind show through instead of its colour. - + None None - + Dark Dark - + Light Light - + Waves Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. Lines are straight waves across the image; rings go out from the centre. - + Lines Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. How many waves cross the image, or go from the centre to the edge. - + Sharpness Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. The colour of the troughs. - + The colour of the crests. The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. The waves go the other way: rings come towards the centre. @@ -1792,82 +1797,82 @@ mmp::AboutDialog - + About %1 About %1 - + MapMap is a free/open source video mapping software. MapMap is a free/open source video mapping software. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - + Hire us Hire us - + Enjoying %1? Enjoying %1? - + Support the project Support the project - + About About - + Changelog Changelog - + Libraries Libraries - + MapMap includes RtMidi, which receives the MIDI devices, under this license: MapMap includes RtMidi, which receives the MIDI devices, under this license: - + MapMap uses SDL, which receives the game controllers, under this license: MapMap uses SDL, which receives the game controllers, under this license: - + OSC Commands OSC Commands - + Contributors Contributors - + See the <a href="%1">%2 website</a> for more information on this software. See the <a href="%1">%2 website</a> for more information on this software. - + License License @@ -2123,12 +2128,12 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::ChoiceControl - + %1 (missing) %1 (missing) - + (none) (none) @@ -2136,7 +2141,7 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::ColorControl - + Show the colour picker Show the colour picker @@ -2240,27 +2245,27 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::ConsoleWindow - + Message Log Output - Mapmap Message Log Output - Mapmap - + &Close &Close - + Close the console Close the console - + &File &File - + MMM dd yy HH:mm MMM dd yy HH:mm @@ -2400,8 +2405,8 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::EffectInspector - - + + Effect Effect @@ -2409,42 +2414,42 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::Element - + ID ID - + The number that identifies this element in the project. The number that identifies this element in the project. - + Name Name - + The name shown in the lists and used to find this element by OSC. The name shown in the lists and used to find this element by OSC. - + Locked Locked - + Whether this element is protected from changes made with the mouse. Whether this element is protected from changes made with the mouse. - + Opacity Opacity - + How opaque this element is, from fully transparent to fully opaque. How opaque this element is, from fully transparent to fully opaque. @@ -2496,30 +2501,68 @@ After the scan, do not touch the zoom, the focus or the framing of the projector %1 generator, drawn on the GPU + + mmp::Group + + + Solo + Solo + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Visible + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image - + Image file Image file - + Image files (%1);;All files (*) Image files (%1);;All files (*) - + The image file shown by this source. The image file shown by this source. - + Speed Speed - + How fast an animated image plays; a negative speed plays it backwards. How fast an animated image plays; a negative speed plays it backwards. @@ -2534,7 +2577,7 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::InspectorPage - + %1 %2 %1 %2 @@ -2542,47 +2585,47 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Learn Keys to Move It - + Learn MIDI Controls to Move It Learn MIDI Controls to Move It - + Remove the Links That Move It Remove the Links That Move It - + Learn a Key Learn a Key - + Remove the Key Remove the Key - + Learn a MIDI Control Learn a MIDI Control - + Remove the MIDI Control Remove the MIDI Control @@ -2590,52 +2633,66 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::Layer - + Solo Solo - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. - + Visible Visible - + Whether this layer is shown. Whether this layer is shown. - + Depth Depth - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - The position of this layer in the stack of layers. + The position of this layer in the stack of layers. - + Has input shape Has input shape - + Whether this layer picks the region of its source it shows with an input shape. Whether this layer picks the region of its source it shows with an input shape. - + Source Source - + The source shown in this layer. The source shown in this layer. @@ -2643,47 +2700,47 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::LayerGui - + Surface Surface - + Output shape Output shape - + Input shape Input shape - + Media Media - + Mesh Mesh - + Triangle Triangle - + Ellipse Ellipse - + Quad Quad - + Used by %1 layers: changing it changes them all. Used by %1 layers: changing it changes them all. @@ -2691,46 +2748,71 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::LayerItemDelegate - - + + Solo layer Solo layer - - + + Lock layer Lock layer - - + + Duplicate layer Duplicate layer - - + + Delete layer Delete layer - + Turn the effect on or off Turn the effect on or off - + Remove the effect Remove the effect - + Available once a layer can have several effects Available once a layer can have several effects - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Show or hide the layer @@ -2807,27 +2889,27 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::MShape - + Locked Locked - + Whether the vertices of this shape are protected from changes made with the mouse. Whether the vertices of this shape are protected from changes made with the mouse. - + Points Points - + Point Point - + The position of a control point of the shape, in pixels. The position of a control point of the shape, in pixels. @@ -2835,1147 +2917,1228 @@ After the scan, do not touch the zoom, the focus or the framing of the projector mmp::MainWindow - - + + Open project Open project - - - - + + + + MapMap files (*.%1) MapMap files (*.%1) - - + + Save project Save project - - + + Import media source file Import media source file - - + + Media files (%1 %2);;All files (*) Media files (%1 %2);;All files (*) - + Camera device Camera device - + Select camera Select camera - - + + No camera available No camera available - - + + You can not use this feature! No camera available in your system You can not use this feature! No camera available in your system - + Syphon source added Syphon source added - - - + + + MapMap MapMap - + &New &New - + Create a new project Create a new project - + &Open… &Open… - + Open an existing project Open an existing project - + &Save &Save - + Save the project Save the project - + Save &As… Save &As… - + Save the project as… Save the project as… - + No Recents Videos No Recents Videos - + &Import Media File… &Import Media File… - + Import a video or image file… Import a video or image file… - + Open &Camera Device… Open &Camera Device… - + Choose your camera device… Choose your camera device… - + E&xit E&xit - + Exit the application Exit the application - + &Undo &Undo - + &Redo &Redo - + &About MapMap &About MapMap - + Show the application's About box Show the application's About box - + &Preferences… &Preferences… - + Configure preferences… Configure preferences… - - + + Play Play - - + + Pause Pause - + &Display Controls &Display Controls - + Display canvas controls Display canvas controls - + &Sticky Vertices &Sticky Vertices - + Enable sticky vertices Enable sticky vertices - + Show &Test Signal Show &Test Signal - + Show Test signal Show Test signal - + Display &Undo History Display &Undo History - + Open Conso&le Open Conso&le - + Display &Zoom Toolbar Display &Zoom Toolbar - + &Menu Bar &Menu Bar - + Main Layout Main Layout - + Switch to the Main layout. Switch to the Main layout. - - + + Zoom In Zoom In - - + + Zoom Out Zoom Out - + Report an issue Report an issue - + Submit feedback via email Submit feedback via email - + &View &View - + - Primary - Primary - + Unable to use file %1. The original file is not found. Please locate. Unable to use file %1. The original file is not found. Please locate. - - + + Locate file %1 Locate file %1 - + Documentation Documentation - + &File &File - + Open Recents Projects Open Recents Projects - + Open Recents Videos Open Recents Videos - + &Edit &Edit - + &Output &Output - + &Window &Window - + Remove this source and all its associated layers? Remove this source and all its associated layers? - + Input Editor Input Editor - + Output Editor Output Editor - + Library Library - + Layers Layers - + Cue %1 Cue %1 - + Cue %1 — %2 Cue %1 — %2 - + %1 set at %2 %1 set at %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + Move layer + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Used by %1 layers: changing it changes them all. - + Replace effect Replace effect - - + + Replace Effect Replace Effect - - - + + + Add Effect Add Effect - + Save over a project of a later version? Save over a project of a later version? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. - + Learning keys: press a key for %1. Delete removes its key. Learning keys: press a key for %1. Delete removes its key. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. - + Press a key for %1. Delete removes its key, Escape stops learning. Press a key for %1. Delete removes its key, Escape stops learning. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 drives %2. Press Escape to stop learning: %1 then acts. - + Click a control outlined in blue first, then press %1. Click a control outlined in blue first, then press %1. - + %1 is already the shortcut of %2: choose another key. %1 is already the shortcut of %2: choose another key. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 MIDI control removed from %1 - + Key removed from %1 Key removed from %1 - + Click a control outlined in blue first, then move %1. Click a control outlined in blue first, then move %1. - + Input Editor: %1% Input Editor: %1% - + Output Editor: %1% Output Editor: %1% - + Cues Cues - + Stop Learning Stop Learning - + Stop learning (Escape) Stop learning (Escape) - - + + Add &Generator Add &Generator - + Add a generator Add a generator - + Add &Syphon Source… Add &Syphon Source… - + Receive live video from another application via Syphon… Receive live video from another application via Syphon… - + Duplicate Layer Duplicate Layer - + Duplicate layer item Duplicate layer item - + Delete Layer Delete Layer - + Delete layer item Delete layer item - + Remove Effect Remove Effect - + Remove the selected effect Remove the selected effect - + Rename Layer Rename Layer - + Rename layer item Rename layer item - + Lock Layer Lock Layer - + Lock layer item Lock layer item - + Hide Layer Hide Layer - + Hide layer item Hide layer item - + Solo Layer Solo Layer - + Solo layer item Solo layer item - + Rotate 90° CW Rotate 90° CW - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Rotate 90° clockwise. In the input view, rotates the image inside the layer. - + Rotate 90° CCW Rotate 90° CCW - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. - + Rotate 180° Rotate 180° - + Rotate 180°. In the input view, rotates the image inside the layer. Rotate 180°. In the input view, rotates the image inside the layer. - + Flip Horizontally Flip Horizontally - + Flip horizontally. In the input view, flips the image inside the layer. Flip horizontally. In the input view, flips the image inside the layer. - + Flip Vertically Flip Vertically - + Flip vertically. In the input view, flips the image inside the layer. Flip vertically. In the input view, flips the image inside the layer. - - + + Raise Raise - - + + Lower Lower - + Raise to Top Raise to Top - + Raise to top Raise to top - + Lower to Bottom Lower to Bottom - + Lower to bottom Lower to bottom - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source Delete Source - + Delete source item Delete source item - + Rename Source Rename Source - + Rename source item Rename source item - + Import New Media Import New Media - + Import new media file if not exists on the list Import new media file if not exists on the list - + Add &Mesh Layer Add &Mesh Layer - + Add mesh layer Add mesh layer - + Add &Triangle Layer Add &Triangle Layer - + Add triangle layer Add triangle layer - + Add &Ellipse Layer Add &Ellipse Layer - + Add ellipse layer Add ellipse layer - - + + Restart Restart - + &Hide Output &Hide Output - + Output in a &Window Output in a &Window - + Output &Fills a Screen Output &Fills a Screen - + Output Output - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. Output Fills a Screen (%1). The arrow chooses how and where the output is shown. - + &Display Controls of Layers of a Source &Display Controls of Layers of a Source - + Display all canvas controls related to current source Display all canvas controls related to current source - + &Keyboard Learn &Keyboard Learn - + Link keys of the keyboard to settings: click a control, then press a key Link keys of the keyboard to settings: click a control, then press a key - + &MIDI Learn &MIDI Learn - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control - + Learned K&eys Active Learned K&eys Active - + Turn the learned keys off while typing for something else, and on again Turn the learned keys off while typing for something else, and on again - + &Publish Syphon Output &Publish Syphon Output - + Publish the output composition as a Syphon server other apps can receive Publish the output composition as a Syphon server other apps can receive - + &Links &Links - + List the keys linked to settings List the keys linked to settings - + &Auto-Mapping… &Auto-Mapping… - + Film stripes projected on the scene, to see it from the projector Film stripes projected on the scene, to see it from the projector - + &Show Auto-Mapping Image &Show Auto-Mapping Image - + Show the scene seen from the projector under the shapes of the output Show the scene seen from the projector under the shapes of the output - + &Clear Auto-Mapping Image &Clear Auto-Mapping Image - + Forget the scene seen from the projector Forget the scene seen from the projector - + Input editor Layout Input editor Layout - + Switch to the Input editor Layout. Switch to the Input editor Layout. - + Output Editor Layout Output Editor Layout - + Switch to the Output Editors Layout. Switch to the Output Editors Layout. - + Editor Editor - + Show the editor and hide the bottom section Show the editor and hide the bottom section - + Bottom Section Bottom Section - + Show the bottom section, such as the cues, and hide the editor Show the bottom section, such as the cues, and hide the editor - + Editor and Bottom Section Editor and Bottom Section - + Show the editor, and the bottom section under it Show the editor, and the bottom section under it - + Actual Pixels (1:1) Actual Pixels (1:1) - + Show one image pixel per screen pixel Show one image pixel per screen pixel - + Fit To View (100%) Fit To View (100%) - + Show the whole image or output frame Show the whole image or output frame - + Output &Resolution... Output &Resolution... - + Choose the size of the output frame Choose the size of the output frame - + Professional services && custom development… Professional services && custom development… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Hire Art Plus Code for video mapping installations, custom features, integration and training - + Support the project (donate)… Support the project (donate)… - + Help fund MapMap's ongoing development Help fund MapMap's ongoing development - + &Keyboard shortcuts &Keyboard shortcuts - + Welcome to %1… Welcome to %1… - + &Tools &Tools - + &Help &Help - + Change Layer Source Change Layer Source - + &Toolbar &Toolbar - + The learned keys act again. The learned keys act again. - + The learned keys are off: they do nothing until turned on again. The learned keys are off: they do nothing until turned on again. - + Learned keys: on Learned keys: on - + Learned keys: off Learned keys: off - + Edit > Learned Keys Active (%1) turns them on and off. Edit > Learned Keys Active (%1) turns them on and off. - + The document has been modified. Do you want to save your changes? The document has been modified. Do you want to save your changes? - - + + Error reading mapping project file Error reading mapping project file - - + + Cannot read file %1: %2. Cannot read file %1: %2. - + Cannot read %1: %2 Cannot read %1: %2 - + Project of a later version Project of a later version - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. - + Project opened with missing entries Project opened with missing entries - + MapMap skipped these project entries: %1 MapMap skipped these project entries: %1 - + Sources this version cannot open Sources this version cannot open - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. - - + + Group %1 + + + + + Face %1 Face %1 - + Auto-Mapping Auto-Mapping - + %1 - disconnected %1 - disconnected - + Output Fills a Screen Output Fills a Screen - + The output will cover this screen. Press Esc to bring MapMap back. The output will cover this screen. Press Esc to bring MapMap back. - + Cover the Screen Cover the Screen - + Don't ask again Don't ask again - + File loaded File loaded - - + + File loaded: %n link(s) active File loaded: %n link active @@ -3983,7 +4146,7 @@ They are kept with their layers, which show a "missing" image, and sav - + , %n kept but not usable here , %n kept but not usable here @@ -3991,139 +4154,139 @@ They are kept with their layers, which show a "missing" image, and sav - - + + Error saving mapping project Error saving mapping project - + Cannot write file %1: %2. Cannot write file %1: %2. - + Cannot rename temporary file to %1. Cannot rename temporary file to %1. - + File saved File saved - + Untitled Untitled - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap Project - - - + + + &%1 %2 &%1 %2 - + Clear List Clear List - + No Recents Projects No Recents Projects - + %1 added %1 added - + Output %1 × %2 Output %1 × %2 - + Output Editor (%1 × %2) Output Editor (%1 × %2) - + Output Resolution Output Resolution - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. - + Scale the shapes to keep them in place in the frame Scale the shapes to keep them in place in the frame - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. The output screen %1 is disconnected: the output is hidden until it comes back. - + The output screen %1 is back. The output screen %1 is back. - + %1 - %2x%3 %1 - %2x%3 - + File imported File imported - + Warning Warning - + The following file is not supported: %1 The following file is not supported: %1 - + Cannot load movie Cannot load movie - - + + %1 files (%2) %1 files (%2) - + Undo history Undo history @@ -4131,22 +4294,22 @@ They are kept with their layers, which show a "missing" image, and sav mmp::MapperGLCanvasToolbar - + Zoom in Zoom in - + Zoom out Zoom out - + Actual pixels (1:1): one image pixel per screen pixel Actual pixels (1:1): one image pixel per screen pixel - + Fit to view (100%): show the whole image or output frame Fit to view (100%): show the whole image or output frame @@ -4162,22 +4325,22 @@ They are kept with their layers, which show a "missing" image, and sav mmp::Mesh - + Columns Columns - + The number of columns of vertices of the mesh, its two edges included. The number of columns of vertices of the mesh, its two edges included. - + Rows Rows - + The number of rows of vertices of the mesh, its two edges included. The number of rows of vertices of the mesh, its two edges included. @@ -4185,7 +4348,7 @@ They are kept with their layers, which show a "missing" image, and sav mmp::OutputGLWindow - + MapMap - Output MapMap - Output @@ -4229,312 +4392,312 @@ They are kept with their layers, which show a "missing" image, and sav mmp::PreferenceDialog - + Preferences Preferences - + Current project: %1 × %2 Current project: %1 × %2 - + Large Large - + Medium Medium - + Small Small - + Language (requires restart) Language (requires restart) - + Toolbar icon size (requires restart) Toolbar icon size (requires restart) - + Show the welcome dialog at startup Show the welcome dialog at startup - + Enable Sticky vertices Enable Sticky vertices - + Sensitivity Sensitivity - + Listen to OSC messages Listen to OSC messages - + Layers Layers - + Classic test card Classic test card - + PAL test card PAL test card - + NTSC test card NTSC test card - + Vertices Vertices - + Only show output controls on mouse over Only show output controls on mouse over - + Output Layers Output Layers - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. - + Change... Change... - + Default Output Resolution for New Projects Default Output Resolution for New Projects - + Show resolution on output test cards Show resolution on output test cards - + Test Card Test Card - + Allow message with existing media source Allow message with existing media source - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. - + Accept OSC from the network (less secure) Accept OSC from the network (less secure) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. - + Allow OSC to quit the application Allow OSC to quit the application - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. - + on port on port - + Refresh Refresh - + Local IP Local IP - + OSC Setup OSC Setup - + Disabled Disabled - + MCP port (0 to disable) MCP port (0 to disable) - + MCP Setup MCP Setup - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. - + Devices: Devices: - + MIDI MIDI - + MIDI is not available on this computer. MIDI is not available on this computer. - + No MIDI device found. Connect one: it appears here. No MIDI device found. Connect one: it appears here. - + %1 (not connected) %1 (not connected) - + Last message received: none yet. Turn a knob or press a pad to see it here. Last message received: none yet. Turn a knob or press a pad to see it here. - + Last message received: %1, from %2 Last message received: %1, from %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap listens to every game controller connected to this computer, by cable or wireless. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: - + Open Folder Open Folder - + Controllers: Controllers: - + This version of MapMap was built without game controllers. This version of MapMap was built without game controllers. - + Game controllers Game controllers - + Game controllers are not available on this computer. Game controllers are not available on this computer. - + No game controller found. Connect one or turn it on: it appears here. No game controller found. Connect one or turn it on: it appears here. - + Last button received: none yet. Press a button or push a stick to see it here. Last button received: none yet. Press a button or push a stick to see it here. - + Last button received: %1, from %2 Last button received: %1, from %2 - + Play in loop (requires restart) Play in loop (requires restart) - + Custom... Custom... - + Frame rate (frames per second) Frame rate (frames per second) - + Playback Playback - + Interface Interface - + Output Output - + Controls Controls - + Advanced Advanced @@ -4542,7 +4705,7 @@ They are kept with their layers, which show a "missing" image, and sav mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - Keyboard Shortcuts @@ -4568,12 +4731,12 @@ They are kept with their layers, which show a "missing" image, and sav mmp::SourceGui - + Media Media - + Missing (%1) Missing (%1) @@ -4581,12 +4744,12 @@ They are kept with their layers, which show a "missing" image, and sav mmp::SourceItemDelegate - + Turn the effect on or off Turn the effect on or off - + Remove the effect Remove the effect @@ -4594,42 +4757,42 @@ They are kept with their layers, which show a "missing" image, and sav mmp::Syphon - + Server UUID Server UUID - + The system-wide identifier of the Syphon server this source receives. The system-wide identifier of the Syphon server this source receives. - + Server name Server name - + The name of the Syphon server this source receives. The name of the Syphon server this source receives. - + Application name Application name - + The name of the application publishing the Syphon server. The name of the application publishing the Syphon server. - + Respect source alpha Respect source alpha - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Whether the transparency sent by the server is kept; otherwise the frames are made opaque. @@ -4637,37 +4800,37 @@ They are kept with their layers, which show a "missing" image, and sav mmp::SyphonGui - + Server Server - + Status Status - + (none) (none) - + Unknown server Unknown server - + Connected Connected - + No server selected No server selected - + Waiting for server… Waiting for server… @@ -4726,7 +4889,7 @@ They are kept with their layers, which show a "missing" image, and sav mmp::TextControl - + Choose a file Choose a file @@ -4734,22 +4897,22 @@ They are kept with their layers, which show a "missing" image, and sav mmp::Texture - + X X - + The horizontal position of the top-left corner of the texture. The horizontal position of the top-left corner of the texture. - + Y Y - + The vertical position of the top-left corner of the texture. The vertical position of the top-left corner of the texture. @@ -4757,142 +4920,142 @@ They are kept with their layers, which show a "missing" image, and sav mmp::Video - + Source Source - + Video files (%1);;All files (*) Video files (%1);;All files (*) - + The video file, or the camera, shown by this source. The video file, or the camera, shown by this source. - + Speed Speed - + How fast the video plays; at zero the image stops. A negative speed stops it too for now: the video cannot play backwards yet. How fast the video plays; at zero the image stops. A negative speed stops it too for now: the video cannot play backwards yet. - + Volume Volume - + How loud the sound of the video plays. How loud the sound of the video plays. - + Mute Mute - + Silences the sound of the video; its volume comes back when the sound does. Silences the sound of the video; its volume comes back when the sound does. - + Play Play - + Plays this video, or pauses it alone while the others play. Plays this video, or pauses it alone while the others play. - + Position Position - + The moment of the video being played; writing it moves there. The moment of the video being played; writing it moves there. - + Duration Duration - + How long the video lasts. How long the video lasts. - + Cue %1 Cue %1 - + Colour Colour - + The colour of the cue. The colour of the cue. - + Name Name - + The name of the cue, shown when it is reached. The name of the cue, shown when it is reached. - + Time Time - + The moment of the video where the cue is; empty while it is not placed. The moment of the video where the cue is; empty while it is not placed. - + Go Go - + Jumps to the cue and plays from there; places it where the video plays when it is empty. Jumps to the cue and plays from there; places it where the video plays when it is empty. - + Set Set - + Places or moves the cue where the video plays. Places or moves the cue where the video plays. - + Clear Clear - + Removes the cue. Removes the cue. @@ -4900,12 +5063,12 @@ They are kept with their layers, which show a "missing" image, and sav mmp::WelcomeDialog - + Welcome to %1 Welcome to %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4914,17 +5077,17 @@ To get started, import a media file to create a source, then add a shape to proj To get started, import a media file to create a source, then add a shape to project it onto. - + Import a media file… Import a media file… - + Read the documentation Read the documentation - + Show this window at startup Show this window at startup diff --git a/translations/mapmap_es.ts b/translations/mapmap_es.ts index 788a4c58..9423790d 100644 --- a/translations/mapmap_es.ts +++ b/translations/mapmap_es.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. No se puede leer el archivo %1. - + %1 does not start with an ISF header. %1 no empieza con un encabezado ISF. - + The ISF header of %1 is not closed. El encabezado ISF de %1 no está cerrado. - + The ISF header of %1 is not a JSON object: %2. El encabezado ISF de %1 no es un objeto JSON: %2. - + %1: the key %2 is ignored. %1: se ignora la clave %2. - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 tiene %2 pasadas: MapMap solo lee shaders de una pasada. - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 dibuja su pasada en una imagen: MapMap todavía no lee ese tipo de pasadas. - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 conserva imágenes de un fotograma al siguiente: MapMap todavía no lee ese tipo de shaders. - + %1 imports images: MapMap does not read such shaders yet. %1 importa imágenes: MapMap todavía no lee ese tipo de shaders. - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: la entrada %2 no tiene un NAME válido. - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: se rechaza la entrada de imagen %2: MapMap da a un efecto una sola imagen, llamada %3. - - + + %1: two inputs are named %2. %1: dos entradas se llaman %2. - + %1: the name %2 is reserved. %1: el nombre %2 está reservado. - + %1: the key %2 of the input %3 is ignored. %1: se ignora la clave %2 de la entrada %3. - + %1: inputs of type %2 are not read by MapMap. %1: MapMap no lee las entradas de tipo %2. - + (none) (ninguno) - + %1: the unit %2 of the input %3 is ignored. %1: se ignora la unidad %2 de la entrada %3. - + %1: generator %2 has no valid NAME. %1: el generador %2 no tiene un NAME válido. - + %1: the generator %2 has the name of an input. %1: el generador %2 tiene el nombre de una entrada. - + %1: generators of type %2 are not read: %3 stays at 0. %1: no se leen los generadores de tipo %2: %3 se queda en 0. - + %1: the generator %2 names an input that does not exist: %3. %1: el generador %2 nombra una entrada que no existe: %3. - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: el generador %2 indica su velocidad dos veces: se ignora %3. - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: el animador %2 tiene una forma que MapMap no dibuja, %3: se queda en 0. - + %1: the parameter %2 of the generator %3 is ignored. %1: se ignora el parámetro %2 del generador %3. - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: se ignora su línea #version: MapMap compila los shaders en GLSL 1.20. - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 es un efecto que lee el tiempo: MapMap todavía no anima los efectos. - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 es un efecto con GENERATORS: MapMap todavía no anima los efectos. - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 es un efecto con la entrada de evento %2: MapMap todavía no anima los efectos. - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: el nombre %2 está reservado: los nombres que empiezan por %3 son de MapMap. @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... Iniciando el programa... - + Done. Listo. @@ -375,252 +390,262 @@ Eliminar capa - + Raise layer Subir la capa - + Lower layer Bajar la capa - + Raise layer to top Subir la capa hasta arriba - + Lower layer to bottom Bajar la capa hasta el fondo - + + Delete group + + + + Flip Horizontally Voltear horizontalmente - + Flip Image Horizontally Voltear la imagen horizontalmente - + Flip Vertically Voltear verticalmente - + Flip Image Vertically Voltear la imagen verticalmente - + Rotate 90° CW Rotar 90° en sentido horario - + Rotate Image 90° CW Rotar la imagen 90° en sentido horario - + Rotate 90° CCW Rotar 90° en sentido antihorario - + Rotate Image 90° CCW Rotar la imagen 90° en sentido antihorario - + Rotate 180° Rotar 180° - + Rotate Image 180° Rotar la imagen 180° - + Change output resolution Cambiar la resolución de salida - + + Move layer + + + + Add effect %1 Añadir el efecto %1 - + Remove effect %1 Quitar el efecto %1 - + Problem at creation of shape. Problema al crear la forma. - + Unable to create shape of type '%1'. No se puede crear una forma del tipo '%1'. - + unknown desconocida - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. Este proyecto se guardó en el antiguo formato XML con MapMap %1. Esta versión de MapMap (%2) solo abre proyectos JSON. - + Parse error at offset %1: %2 Error de análisis en la posición %1: %2 - + The contents of this file does not look like a MapMap project. El contenido de este archivo no parece un proyecto de MapMap. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. La versión de MapMap %1 usada para guardar este archivo no se puede leer con esta versión de MapMap %2. - + The project field '%1' must be an array. El campo '%1' del proyecto debe ser una lista. - + CC %1 CC %1 - + %1 ch %2 %1 can. %2 - + Keyboard Teclado - + MIDI MIDI - + Follow the control Seguir el control - + Follow the turns Seguir los giros - + Move right Mover a la derecha - + Move down Mover abajo - + Increase Aumentar - + Move left Mover a la izquierda - + Move up Mover arriba - + Decrease Disminuir - + Toggle Alternar - + Turn on Activar - + Turn off Desactivar - + Next option Opción siguiente - + Last option Última opción - + First option Primera opción - + Minimum or maximum Mínimo o máximo - + Set to maximum Poner al máximo - + Set to minimum Poner al mínimo - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 Shader rechazado: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker Damero - + A checkerboard of two colours; the square at the top left has the front colour. Un damero de dos colores; el cuadrado de arriba a la izquierda tiene el color frontal. - + Count Cantidad - + The number of squares on each side. El número de cuadrados en cada lado. - + Back Color Color de fondo - + The colour of every other square. El color de uno de cada dos cuadrados. - + Front Color Color frontal - + The colour of the square at the top left, and of every other square. El color del cuadrado de arriba a la izquierda y de uno de cada dos cuadrados. - + Color Adjustment Ajuste de color - + Brightness Brillo - + Added to each colour: below 0 darker, above 0 lighter. Se suma a cada color: por debajo de 0 más oscuro, por encima de 0 más claro. - + Contrast Contraste - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. Cuánto se alejan los colores del gris medio: 0 % es todo gris, 100 % sin cambios. - + Saturation Saturación - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. Cuán vivos son los colores: 0 % son tonos de gris, 100 % sin cambios. - + Hue Tono - + Turns the colours around the colour wheel, by this angle. Gira los colores alrededor de la rueda de color, en este ángulo. - + Color Wheel Rueda de color - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Ruedas de color, espirales, anillos concéntricos y dameros polares, rectos o torcidos, a partir de un mismo conjunto de ajustes. - + Geometry Geometría - + Segments Segmentos - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Número de partes alrededor del círculo; 1 lo deja entero. Con una paleta de dos colores, un número impar da el número par inferior, para que los colores se alternen en toda la vuelta. - + Rings Anillos - + Number of rings from the centre to the edge of the disk; 0 for none. Número de anillos del centro al borde del disco; 0 para ninguno. - + Twist Torsión - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Enrolla los segmentos en espirales: las vueltas que dan del centro al borde del disco. Los valores negativos enrollan en el otro sentido. - + Smoothness Suavidad - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Interpolación entre colores vecinos: nítida en 0, continua en 100%. - + Color Color - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Paleta - + The colours of the pattern, in the order of their cycle. Los colores del motivo, en el orden de su ciclo. - + Spectrum Espectro - + Monochromatic Monocromática - + Grayscale Escala de grises - + Black and White Blanco y negro - + Complementary Complementaria - + Analogous Análoga - + Triadic Triádica - + Hue Shift Rotación de tono - + Turns the hue of every colour; greys stay as they are. Gira el tono de cada color; los grises se quedan como están. - + Radial Color Color radial - + Radial Saturation Saturación radial - + Positive: grey centre; negative: grey circumference. The lightness is kept. Positivo: centro gris; negativo: circunferencia gris. Se conserva la luminosidad. - + Radial Lightness Luminosidad radial - + Positive: white centre; negative: black centre. Positivo: centro blanco; negativo: centro negro. - + Radial Falloff Atenuación radial - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. La curva de ambos degradados radiales: amplia por debajo de 1, lineal en 1, concentrada por encima de 1. - + Reverse Radial Gradient Degradado radial invertido - + Swaps the centre and the circumference in both radial gradients. Intercambia el centro y la circunferencia en ambos degradados radiales. - + Animation Animación - + Speed Velocidad - + How fast the pattern turns; 0 keeps it still. Qué tan rápido gira el motivo; 0 lo deja quieto. - + Reverse Sentido inverso - + Turns the pattern the other way. Gira el motivo en el otro sentido. - + Flow Flujo - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. Qué tan rápido se alejan los anillos del centro, en radios por minuto, sea cual sea su número: a 6, un anillo va del centro al borde en 10 segundos; 0 los deja quietos. - + Flow Inward Flujo hacia dentro - + Moves the rings towards the centre. Mueve los anillos hacia el centro. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient Degradado - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. Un degradado de dos o tres colores, lineal, radial, cónico o en rombo, repetido, en espejo, que se desplaza a lo largo de su forma. - + Shape Forma - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. Lineal atraviesa la imagen; radial sale del centro en círculos; cónico gira alrededor del centro; rombo sale del centro en cuadrados apoyados en una esquina. - + Linear Lineal - + Radial Radial - + Conic Cónico - + Diamond Rombo - + Angle Ángulo - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. La dirección de un degradado lineal, en el sentido de las agujas del reloj desde la izquierda hacia la derecha; dónde empieza un degradado cónico; cómo gira un rombo. Un degradado radial no lo usa. - + Center Centro - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. El centro de un degradado radial, cónico o en rombo, desde la esquina superior izquierda (0, 0) hasta la esquina inferior derecha (1, 1). Un degradado lineal no lo usa. - + Repeats Repeticiones - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. Cuántas veces se repite el degradado de un lado a otro de la imagen, del centro al borde, o alrededor del centro, donde se redondea a un número entero. - + Mirror Espejo - + Each repeat goes from the first colour to the last and back, with no edge between repeats. Cada repetición va del primer color al último y vuelve, sin borde entre repeticiones. - + Hardness Dureza - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. 0 funde los colores suavemente; 100 % da bandas de color liso con bordes nítidos. - + Color A Color A - + The first colour. El primer color. - + Color B Color B - + The second colour, the last one with two colours. El segundo color, el último con dos colores. - + Color C Color C - + The third colour, used with Three Colors. El tercer color, usado con Tres colores. - + Three Colors Tres colores - + Goes from Color A to Color B, then to Color C. Va del color A al color B, y luego al color C. - + Swap Colors Intercambiar colores - + Swaps the first and the last colour. Intercambia el primer y el último color. - + Blend Mezcla - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. Cómo un color se convierte en el siguiente: RGB en línea recta; Tono pasando por los tonos, por el camino más corto de la rueda de color; Arco iris por el más largo, todos los tonos cuando ambos colores tienen el mismo. Un gris toma el tono del otro color. - + RGB RGB - + Rainbow Arco iris - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. Cuántas repeticiones pasan en un minuto: a 6, el degradado avanza una repetición cada 10 segundos; 0 lo deja quieto. - + The gradient moves the other way: towards the centre, or anticlockwise. El degradado se desplaza en el otro sentido: hacia el centro, o en sentido contrario a las agujas del reloj. - + Grid Cuadrícula - + Lines of a colour on a background, along the borders and between columns and rows. Líneas de un color sobre un fondo, a lo largo de los bordes y entre columnas y filas. - + Columns Columnas - + The number of columns between the lines. El número de columnas entre las líneas. - + Rows Filas - + The number of rows between the lines. El número de filas entre las líneas. - + Thickness Grosor - + The thickness of the lines. El grosor de las líneas. - + The colour between the lines. El color entre las líneas. - + Line Color Color de línea - + The colour of the lines. El color de las líneas. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise Ruido - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. Un ruido que se mueve despacio: nubes suaves, celdas o un plasma, entre dos colores. - + Kind Tipo - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. Suave da nubes suaves; Celdas, celdas alrededor de puntos que se desplazan; Plasma, ondas que se cruzan. - + Smooth Suave - + Cells Celdas - + Plasma Plasma - + Scale Escala - + How many clouds, cells or waves cross the image. Cuántas nubes, celdas u ondas hay de un lado a otro de la imagen. - + Detail Detalle - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. Cuántas capas de ruido cada vez más fino, u ondas para el plasma, se suman. Cada capa cuesta tiempo de dibujo; las celdas tienen una sola capa. - + Seed Semilla - + Changes the pattern: each number gives another one, always the same. Cambia el motivo: cada número da otro, siempre el mismo. - + The colour of the low values. El color de los valores bajos. - + The colour of the high values. El color de los valores altos. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. Cuántas veces por minuto el ruido hace su movimiento y vuelve a su punto de partida: a 6, cada 10 segundos; 0 lo deja quieto. - + The noise goes through its motion the other way. El ruido hace su movimiento en el otro sentido. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness Difuminado - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes Rayas - + Stripes of two colours, at any angle and width, going by. Rayas de dos colores, de cualquier ángulo y anchura, que se desplazan. - + How many pairs of stripes, one of each colour, cross the image. Cuántos pares de rayas, una de cada color, hay de un lado a otro de la imagen. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. La dirección a través de las rayas, en el sentido de las agujas del reloj desde la izquierda hacia la derecha: a 0°, las rayas son verticales. - + Width Anchura - + The share of each pair taken by the stripe of Color A. La parte de cada par que ocupa la raya del color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. El ancho de la fusión entre dos rayas, en píxeles de la imagen: 0 da bordes nítidos. - + The colour of every other stripe. El color de una de cada dos rayas. - + The colour of the stripes between. El color de las rayas intermedias. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. Cuántos pares de rayas pasan en un minuto: a 6, las rayas avanzan un par cada 10 segundos; 0 las deja quietas. - + The stripes go by the other way. Las rayas se desplazan en el otro sentido. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves Ondas - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. Ondas de dos colores, en líneas rectas o en anillos alrededor de un centro, suaves o nítidas, que avanzan. - + Lines are straight waves across the image; rings go out from the centre. Líneas da ondas rectas que atraviesan la imagen; anillos, ondas que salen del centro. - + Lines Líneas - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. La dirección de las ondas rectas, en el sentido de las agujas del reloj desde la izquierda hacia la derecha. Los anillos no la usan. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. El centro de los anillos, desde la esquina superior izquierda (0, 0) hasta la esquina inferior derecha (1, 1). Las ondas rectas no lo usan. - + How many waves cross the image, or go from the centre to the edge. Cuántas ondas hay de un lado a otro de la imagen, o del centro al borde. - + Sharpness Nitidez - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. 0 da ondas suaves, una sinusoide; 100 % da bandas de color liso con bordes nítidos. - + The colour of the troughs. El color de los valles. - + The colour of the crests. El color de las crestas. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. Cuántas ondas pasan en un minuto: a 6, las ondas avanzan una onda cada 10 segundos; 0 las deja quietas. - + The waves go the other way: rings come towards the centre. Las ondas van en el otro sentido: los anillos vienen hacia el centro. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,304 @@ mmp::AboutDialog - + About %1 Acerca de %1 - + MapMap is a free/open source video mapping software. MapMap es un software libre y de código abierto de mapeo de vídeo (video mapping). - + Copyright &copy; 2013 %1. Derechos de autor &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. Consulte el <a href="%1">sitio web de %2</a> para obtener más información sobre este programa. - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 es desarrollado y patrocinado por Art Plus Code. ¿Necesita una instalación de mapeo de vídeo a medida, una nueva funcionalidad, integración o formación? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 es desarrollado y patrocinado por Art Plus Code. ¿Necesita una instalación de mapeo de vídeo a medida, una nueva funcionalidad, integración o formación? + + + + Hire us + Contrátenos + + + + Enjoying %1? + ¿Le gusta %1? + + + + Support the project + Apoyar el proyecto + + + + About + Acerca de + + + + Changelog + Registro de cambios + + + + Libraries + Bibliotecas + + + + Contributors + Colaboradores + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap incluye RtMidi, que recibe los dispositivos MIDI, bajo esta licencia: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap usa SDL, que recibe los controladores de juego, bajo esta licencia: + + + + License + Licencia + + + + OSC Commands + Comandos OSC + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + Inicio + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - Contrátenos + + Scanning: do not move. + - - Enjoying %1? - ¿Le gusta %1? + + Scan cancelled. + - - Support the project - Apoyar el proyecto + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + %n outline(s) to place by hand + + + + - - About - Acerca de + + + Update Shapes + - - Changelog - Registro de cambios + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + %n new face(s) will be added. + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + - - Libraries - Bibliotecas + + Update and Remove Them + - - Contributors - Colaboradores + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap incluye RtMidi, que recibe los dispositivos MIDI, bajo esta licencia: + + Update + + + + + %n layer(s) moved + + + + + + + + %n shape(s) created + + + + + + + + %n layer(s) removed + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap usa SDL, que recibe los controladores de juego, bajo esta licencia: + + %1. Edit > Undo takes it all back at once. + - - License - Licencia + + Cancel + - - OSC Commands - Comandos OSC + + Close + @@ -1871,15 +2116,23 @@ Mostrar el editor de arriba + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (falta) - + (none) (ninguno) @@ -1887,7 +2140,7 @@ mmp::ColorControl - + Show the colour picker Mostrar el selector de color @@ -1991,27 +2244,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap Registro de mensajes - Mapmap - + &Close &Cerrar - + Close the console Cerrar la consola - + &File &Archivo - + MMM dd yy HH:mm MMM dd yy HH:mm @@ -2128,21 +2381,31 @@ mmp::Effect - + Enabled Activado - + Whether this effect changes the image; off, the image passes unchanged. Si este efecto cambia la imagen; desactivado, la imagen pasa sin cambios. + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect Efecto @@ -2150,42 +2413,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. El número que identifica este elemento en el proyecto. - + Name Nombre - + The name shown in the lists and used to find this element by OSC. El nombre que se muestra en las listas y que sirve para encontrar este elemento por OSC. - + Locked Bloqueado - + Whether this element is protected from changes made with the mouse. Si este elemento está protegido contra los cambios hechos con el puntero. - + Opacity Opacidad - + How opaque this element is, from fully transparent to fully opaque. Qué tan opaco es este elemento, de totalmente transparente a totalmente opaco. @@ -2237,6 +2500,44 @@ Generador %1, dibujado en la GPU + + mmp::Group + + + Solo + Solo + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Visible + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2569,14 @@ mmp::Inspector - Type in project files: %1 - Tipo en los archivos de proyecto: %1 + Tipo en los archivos de proyecto: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2584,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Aprender teclas para moverlo - + Learn MIDI Controls to Move It Aprender controles MIDI para moverlo - + Remove the Links That Move It Quitar los vínculos que lo mueven - + Learn a Key Aprender una tecla - + Remove the Key Quitar la tecla - + Learn a MIDI Control Aprender un control MIDI - + Remove the MIDI Control Quitar el control MIDI @@ -2332,52 +2632,66 @@ mmp::Layer - + Solo Solo - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Si esta capa está en solo: mientras una capa está en solo, solo se muestran las capas en solo. - + Visible Visible - + Whether this layer is shown. Si esta capa se muestra. - + Depth Profundidad - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - La posición de esta capa en la pila de capas. + La posición de esta capa en la pila de capas. - + Has input shape Con forma de entrada - + Whether this layer picks the region of its source it shows with an input shape. Si esta capa elige con una forma de entrada la región de su fuente que muestra. - + Source Fuente - + The source shown in this layer. La fuente que se muestra en esta capa. @@ -2385,42 +2699,42 @@ mmp::LayerGui - + Surface Superficie - + Output shape Forma de salida - + Input shape Forma de entrada - + Media Multimedia - + Mesh Malla - + Triangle Triángulo - + Ellipse Elipse - + Quad Cuadrilátero @@ -2433,46 +2747,71 @@ mmp::LayerItemDelegate - - + + Solo layer Capa en solo - - + + Lock layer Bloquear capa - - + + Duplicate layer Duplicar capa - - + + Delete layer Eliminar capa - + Turn the effect on or off Activar o desactivar el efecto - + Remove the effect Quitar el efecto - + Available once a layer can have several effects Disponible cuando una capa pueda tener varios efectos - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Mostrar u ocultar la capa @@ -2549,27 +2888,27 @@ mmp::MShape - + Locked Bloqueada - + Whether the vertices of this shape are protected from changes made with the mouse. Si los vértices de esta forma están protegidos contra los cambios hechos con el puntero. - + Points Puntos - + Point Punto - + The position of a control point of the shape, in pixels. La posición de un punto de control de la forma, en píxeles. @@ -2577,1083 +2916,1210 @@ mmp::MainWindow - - + + Open project Abrir proyecto - - - - + + + + MapMap files (*.%1) Archivos de MapMap (*.%1) - - + + Save project Guardar proyecto - - + + Import media source file Importar archivo de fuente multimedia - - + + Media files (%1 %2);;All files (*) Archivos multimedia (%1 %2);;Todos los archivos (*) - + Camera device Dispositivo de cámara - + Select camera Seleccionar cámara - - + + No camera available No hay cámara disponible - - + + You can not use this feature! No camera available in your system No puede usar esta función. No hay ninguna cámara disponible en el sistema. - + Syphon source added Fuente Syphon añadida - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. Aprendiendo MIDI para %1: presione un pad para "%2", o gire un control giratorio para moverlo en ambos sentidos. Esc detiene, Supr quita los controles MIDI del punto. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Aprendiendo teclas para %1: presione una tecla para "%2". Esc detiene, Supr quita las teclas del punto. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. Aprendiendo MIDI: mueva un control o presione un pad para %1. Supr quita su control MIDI. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. Aprendiendo MIDI: haga clic en un control con contorno azul y luego mueva un control del dispositivo MIDI. Los controles MIDI ya aprendidos actúan. - + Learning keys: press a key for %1. Delete removes its key. Aprendiendo teclas: presione una tecla para %1. Supr quita su tecla. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Aprendiendo teclas: haga clic en un control con contorno azul y luego presione una tecla. Las teclas aprendidas no actúan hasta que se detiene el aprendizaje (Esc). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Mueva un control MIDI para %1. Supr quita su control MIDI, Esc detiene el aprendizaje. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. Aprendizaje MIDI: haga clic en un control con contorno azul y luego mueva un control del dispositivo MIDI. Esc detiene el aprendizaje. - + Press a key for %1. Delete removes its key, Escape stops learning. Presione una tecla para %1. Supr quita su tecla, Esc detiene el aprendizaje. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Aprendizaje de teclado: haga clic en un control con contorno azul y luego presione una tecla. Esc detiene el aprendizaje. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. Aprendiendo MIDI: mueva un control del dispositivo MIDI, no una tecla. Editar > Aprendizaje de teclado aprende teclas. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 controla %2. Presione Esc para detener el aprendizaje: %1 actuará entonces. - + Click a control outlined in blue first, then press %1. Primero haga clic en un control con contorno azul y luego presione %1. - + %1 is already the shortcut of %2: choose another key. %1 ya es el atajo de %2: elija otra tecla. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 Control MIDI quitado de %1 - + Key removed from %1 Tecla quitada de %1 - + Click a control outlined in blue first, then move %1. Primero haga clic en un control con contorno azul y luego mueva %1. - + Input Editor: %1% Editor de entrada: %1% - + Output Editor: %1% Editor de salida: %1% - - - + + + MapMap MapMap - + Stop Learning Detener aprendizaje - + Stop learning (Escape) Detener el aprendizaje (Esc) - + &New &Nuevo - + Create a new project Crear un nuevo proyecto - + &Open… &Abrir… - + Open an existing project Abrir un proyecto existente - + &Save &Guardar - + Save the project Guardar el proyecto - + Save &As… Guardar &como… - + Save the project as… Guardar el proyecto como… - + No Recents Videos No hay vídeos recientes - + &Import Media File… &Importar archivo multimedia… - + Import a video or image file… Importar un archivo de vídeo o imagen… - + Open &Camera Device… Abrir dispositivo de &cámara… - + Choose your camera device… Elija su dispositivo de cámara… - - + + Add &Generator Añadir gene&rador - + Add a generator Añadir un generador - + E&xit S&alir - + Exit the application Salir de la aplicación - + &Undo &Deshacer - + &Redo &Rehacer - + &About MapMap &Acerca de MapMap - + Show the application's About box Mostrar el cuadro Acerca de de la aplicación - + Remove Effect Quitar efecto - + Remove the selected effect Quitar el efecto seleccionado - + Solo layer item Elemento de capa en solo - + Rotate 90° CW Rotar 90° en sentido horario - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Rotar 90° en sentido horario. En la vista de entrada, rota la imagen dentro de la capa. - + Rotate 90° CCW Rotar 90° en sentido antihorario - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Rotar 90° en sentido antihorario. En la vista de entrada, rota la imagen dentro de la capa. - + Rotate 180° Rotar 180° - + Rotate 180°. In the input view, rotates the image inside the layer. Rotar 180°. En la vista de entrada, rota la imagen dentro de la capa. - + &Preferences… &Preferencias… - + Configure preferences… Configurar preferencias… - - + + Play Reproducir - - + + Pause Pausa - + &Display Controls &Mostrar controles - + Display canvas controls Mostrar los controles del lienzo - + &Sticky Vertices &Vértices magnéticos - + Enable sticky vertices Activar vértices magnéticos - + Show &Test Signal Mostrar señal de &prueba - + Show Test signal Mostrar señal de prueba - + Display &Undo History Mostrar &historial de deshacer - + Open Conso&le Abrir conso&la - + Display &Zoom Toolbar Mostrar barra de &zoom - + &Menu Bar Barra de &menús - + Main Layout Disposición principal - + Switch to the Main layout. Cambiar a la disposición principal. - + Remove this source and all its associated layers? ¿Quitar esta fuente y todas sus capas asociadas? - + Cue %1 Marca %1 - + Cue %1 — %2 Marca %1 — %2 - + %1 set at %2 %1 fijada en %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Usada por %1 capas: cambiarla las cambia todas. - + Replace effect Reemplazar el efecto - - + + Replace Effect Reemplazar efecto - - - + + + Add Effect Añadir efecto - + Save over a project of a later version? ¿Sobrescribir un proyecto de una versión posterior? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 se guardó con una versión posterior de MapMap, en el formato %2. Esta versión conserva lo que no conoce, pero es posible que la versión posterior no abra el proyecto tal como estaba. ¿Sobrescribirlo de todos modos? - + Input Editor Editor de entrada - + Output Editor Editor de salida - + Library Biblioteca - + Layers Capas - + Cues Marcas - + Add &Syphon Source… Añadir fuente &Syphon… - + Receive live video from another application via Syphon… Recibir vídeo en directo de otra aplicación mediante Syphon… - + Duplicate Layer Duplicar capa - + Duplicate layer item Duplicar elemento de capa - + Delete Layer Eliminar capa - + Delete layer item Eliminar elemento de capa - + Rename Layer Renombrar capa - + Rename layer item Renombrar elemento de capa - + Lock Layer Bloquear capa - + Lock layer item Bloquear elemento de capa - + Hide Layer Ocultar capa - + Hide layer item Ocultar elemento de capa - + Solo Layer Capa en solo - + Flip Horizontally Voltear horizontalmente - + Flip horizontally. In the input view, flips the image inside the layer. Voltear horizontalmente. En la vista de entrada, voltea la imagen dentro de la capa. - + Flip Vertically Voltear verticalmente - + Flip vertically. In the input view, flips the image inside the layer. Voltear verticalmente. En la vista de entrada, voltea la imagen dentro de la capa. - - + + Raise Subir - - + + Lower Bajar - + Raise to Top Subir hasta arriba - + Raise to top Subir hasta arriba - + Lower to Bottom Bajar hasta el fondo - + Lower to bottom Bajar hasta el fondo - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source Eliminar fuente - + Delete source item Eliminar elemento de fuente - + Rename Source Renombrar fuente - + Rename source item Renombrar elemento de fuente - + Import New Media Importar nuevo archivo multimedia - + Import new media file if not exists on the list Importar un nuevo archivo multimedia si no está en la lista - + Add &Mesh Layer Añadir capa de &malla - + Add mesh layer Añadir capa de malla - + Add &Triangle Layer Añadir capa de &triángulo - + Add triangle layer Añadir capa de triángulo - + Add &Ellipse Layer Añadir capa de &elipse - + Add ellipse layer Añadir capa de elipse - - + + Restart Reiniciar - + &Hide Output &Ocultar la salida - + Output in a &Window Salida en una &ventana - + Output &Fills a Screen La salida &cubre una pantalla - + Output Salida - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. La salida cubre una pantalla (%1). La flecha elige cómo y dónde se muestra la salida. - + &Display Controls of Layers of a Source &Mostrar controles de las capas de una fuente - + Display all canvas controls related to current source Mostrar todos los controles del lienzo relacionados con la fuente actual - + &Keyboard Learn Aprendizaje de &teclado - + Link keys of the keyboard to settings: click a control, then press a key Vincular teclas del teclado a ajustes: haga clic en un control y luego presione una tecla - + &MIDI Learn Aprendizaje &MIDI - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Vincular controles y notas de un dispositivo MIDI a ajustes: haga clic en un control y luego mueva un control MIDI - + Learned K&eys Active T&eclas aprendidas activas - + Turn the learned keys off while typing for something else, and on again Desactivar las teclas aprendidas mientras escribe otra cosa, y volver a activarlas - + &Publish Syphon Output &Publicar la salida Syphon - + Publish the output composition as a Syphon server other apps can receive Publicar la composición de salida como un servidor Syphon que otras aplicaciones pueden recibir - + &Links &Vínculos - + List the keys linked to settings Listar las teclas vinculadas a ajustes - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Input editor Layout Disposición del editor de entrada - + Switch to the Input editor Layout. Cambiar a la disposición del editor de entrada. - + Output Editor Layout Disposición del editor de salida - + Switch to the Output Editors Layout. Cambiar a la disposición del editor de salida. - + Editor Editor - + Show the editor and hide the bottom section Mostrar el editor y ocultar la sección inferior - + Bottom Section Sección inferior - + Show the bottom section, such as the cues, and hide the editor Mostrar la sección inferior, como las marcas, y ocultar el editor - + Editor and Bottom Section Editor y sección inferior - + Show the editor, and the bottom section under it Mostrar el editor, y la sección inferior debajo - - + + Zoom In Acercar - - + + Zoom Out Alejar - + Actual Pixels (1:1) Píxeles reales (1:1) - + Show one image pixel per screen pixel Mostrar un píxel de la imagen por cada píxel de la pantalla - + Fit To View (100%) Ajustar a la vista (100%) - + Show the whole image or output frame Mostrar toda la imagen o todo el marco de salida - + Output &Resolution... &Resolución de salida... - + Choose the size of the output frame Elegir el tamaño del marco de salida - + &Output &Salida - + + &Tools + + + + Cannot read %1: %2 No se puede leer %1: %2 - + Project of a later version Proyecto de una versión posterior - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. Este proyecto se guardó con una versión posterior de MapMap, en el formato %1; esta versión escribe %2. Lo que esta versión no conoce se conserva, pero puede no funcionar como lo previó la versión posterior. - + Project opened with missing entries Proyecto abierto con entradas omitidas - + MapMap skipped these project entries: %1 MapMap omitió estas entradas del proyecto: %1 - + Sources this version cannot open Fuentes que esta versión no puede abrir - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. Este proyecto tiene fuentes de tipos que esta versión de MapMap no puede abrir: %1. Se conservan con sus capas, que muestran una imagen de «falta», y se guardan tal como están. - + + Group %1 + + + + + + Face %1 + + + + + Auto-Mapping + + + + %1 - disconnected %1 - desconectada - + Output Fills a Screen La salida cubre una pantalla - + The output will cover this screen. Press Esc to bring MapMap back. La salida cubrirá esta pantalla. Presione Esc para volver a MapMap. - + Cover the Screen Cubrir la pantalla - + Don't ask again No volver a preguntar - + Report an issue Informar de un problema - + Professional services && custom development… Servicios profesionales && desarrollo a medida… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Contrate a Art Plus Code para instalaciones de mapeo de vídeo, funcionalidades a medida, integración y formación - + Support the project (donate)… Apoyar el proyecto (donar)… - + Help fund MapMap's ongoing development Ayude a financiar el desarrollo continuo de MapMap - + Documentation Documentación - + Submit feedback via email Enviar comentarios por correo electrónico - + &Keyboard shortcuts Atajos de &teclado - + Welcome to %1… Te damos la bienvenida a %1… - + &File &Archivo - + Open Recents Projects Abrir proyectos recientes - + Open Recents Videos Abrir vídeos recientes - + &Edit &Editar - + &View &Ver - + &Window Ve&ntana - + &Help A&yuda - + Change Layer Source Cambiar la fuente de la capa - + &Toolbar Barra de &herramientas - + The learned keys act again. Las teclas aprendidas vuelven a actuar. - + The learned keys are off: they do nothing until turned on again. Las teclas aprendidas están desactivadas: no hacen nada hasta que se vuelvan a activar. - + Learned keys: on Teclas aprendidas: activadas - + Learned keys: off Teclas aprendidas: desactivadas - + Edit > Learned Keys Active (%1) turns them on and off. Editar > Teclas aprendidas activas (%1) las activa y desactiva. - + The document has been modified. Do you want to save your changes? El documento ha sido modificado. ¿Desea guardar los cambios? - - + + Error reading mapping project file Error al leer el archivo de proyecto - - + + Cannot read file %1: %2. No se puede leer el archivo %1: %2. - + File loaded Archivo cargado - - + + File loaded: %n link(s) active Archivo cargado: %n vínculo activo @@ -3661,7 +4127,7 @@ Do you want to save your changes? - + , %n kept but not usable here , %n conservado pero no utilizable aquí @@ -3669,157 +4135,157 @@ Do you want to save your changes? - - + + Error saving mapping project Error al guardar el proyecto - + Cannot write file %1: %2. No se puede escribir el archivo %1: %2. - + Cannot rename temporary file to %1. No se puede renombrar el archivo temporal a %1. - + File saved Archivo guardado - + Untitled Sin título - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project Proyecto de MapMap - - - + + + &%1 %2 &%1 %2 - + Clear List Vaciar lista - + No Recents Projects No hay proyectos recientes - + %1 added Añadido: %1 - + Output %1 × %2 Salida %1 × %2 - + Output Editor (%1 × %2) Editor de salida (%1 × %2) - + Output Resolution Resolución de salida - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Tamaño del marco de salida, normalmente la resolución del proyector. La ventana de salida lo escala para llenar la pantalla de salida. - + Scale the shapes to keep them in place in the frame Escalar las formas para mantenerlas en su sitio en el marco - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. La pantalla de salida %1 está desconectada: la salida se oculta hasta que vuelva. - + The output screen %1 is back. La pantalla de salida %1 ha vuelto. - + %1 - %2x%3 %1 - %2x%3 - + - Primary - Principal - + File imported Archivo importado - + Warning Advertencia - + The following file is not supported: %1 El siguiente archivo no es compatible: %1 - + Cannot load movie No se puede cargar el vídeo - + Unable to use file %1. The original file is not found. Please locate. No se puede usar el archivo %1. No se encuentra el archivo original. Búsquelo. - - + + Locate file %1 Localizar el archivo %1 - - + + %1 files (%2) Archivos %1 (%2) - + Undo history Historial de deshacer @@ -3827,22 +4293,22 @@ No se encuentra el archivo original. Búsquelo. mmp::MapperGLCanvasToolbar - + Zoom in Acercar - + Zoom out Alejar - + Actual pixels (1:1): one image pixel per screen pixel Píxeles reales (1:1): un píxel de la imagen por cada píxel de la pantalla - + Fit to view (100%): show the whole image or output frame Ajustar a la vista (100%): mostrar toda la imagen o todo el marco de salida @@ -3858,22 +4324,22 @@ No se encuentra el archivo original. Búsquelo. mmp::Mesh - + Columns Columnas - + The number of columns of vertices of the mesh, its two edges included. El número de columnas de vértices de la malla, incluidos sus dos bordes. - + Rows Filas - + The number of rows of vertices of the mesh, its two edges included. El número de filas de vértices de la malla, incluidos sus dos bordes. @@ -3881,7 +4347,7 @@ No se encuentra el archivo original. Búsquelo. mmp::OutputGLWindow - + MapMap - Output MapMap - Salida @@ -3925,312 +4391,312 @@ No se encuentra el archivo original. Búsquelo. mmp::PreferenceDialog - + Preferences Preferencias - + Current project: %1 × %2 Proyecto actual: %1 × %2 - + Large Grande - + Medium Mediano - + Small Pequeño - + Language (requires restart) Idioma (requiere reiniciar) - + Toolbar icon size (requires restart) Tamaño de los iconos de la barra de herramientas (requiere reiniciar) - + Show the welcome dialog at startup Mostrar la ventana de bienvenida al iniciar - + Enable Sticky vertices Activar vértices magnéticos - + Sensitivity Sensibilidad - + Vertices Vértices - + Only show output controls on mouse over Mostrar los controles de salida solo al pasar el ratón - + Output Layers Capas de salida - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Tamaño del marco de salida, normalmente la resolución del proyector. "Pantalla de salida" sigue la pantalla elegida para la salida. - + Change... Cambiar... - + Default Output Resolution for New Projects Resolución de salida predeterminada para proyectos nuevos - + Show resolution on output test cards Mostrar la resolución en las cartas de ajuste de salida - + Classic test card Carta de ajuste clásica - + PAL test card Carta de ajuste PAL - + NTSC test card Carta de ajuste NTSC - + Test Card Carta de ajuste - + Listen to OSC messages Escuchar mensajes OSC - + Allow message with existing media source Permitir mensaje con fuente multimedia existente - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. Cuando está desactivada (por defecto), se ignora un mensaje OSC que asigna a una fuente el archivo que ya utiliza, para no recargar — ni reiniciar — el mismo video. Actívala para recargar el archivo de todos modos, por ejemplo para reiniciar un clip desde el principio por OSC. - + Accept OSC from the network (less secure) Aceptar OSC desde la red (menos seguro) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. Cuando está desactivado, OSC solo es accesible desde este ordenador (127.0.0.1). Actívelo solo en una red de espectáculo de confianza — OSC no tiene autenticación. - + Allow OSC to quit the application Permitir que OSC cierre la aplicación - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. Cuando está desactivado, el comando OSC /mapmap/quit se ignora para que un emisor remoto no pueda cerrar la aplicación durante un espectáculo. - + on port en el puerto - + Refresh Actualizar - + Local IP IP local - + OSC Setup Configuración de OSC - + Disabled Desactivado - + MCP port (0 to disable) Puerto MCP (0 para desactivar) - + MCP Setup Configuración de MCP - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap escucha todos los dispositivos MIDI conectados a este equipo. Desmarque un dispositivo para ignorarlo. - + Devices: Dispositivos: - + MIDI MIDI - + MIDI is not available on this computer. MIDI no está disponible en este equipo. - + No MIDI device found. Connect one: it appears here. No se encontró ningún dispositivo MIDI. Conecte uno: aparecerá aquí. - + %1 (not connected) %1 (no conectado) - + Last message received: none yet. Turn a knob or press a pad to see it here. Último mensaje recibido: ninguno todavía. Gire un control giratorio o presione un pad para verlo aquí. - + Last message received: %1, from %2 Último mensaje recibido: %1, de %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap escucha todos los controladores de juego conectados a este equipo, por cable o inalámbricos. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: Un controlador que no se reconoce puede describirse, en el formato de SDL, una línea por controlador, en este archivo: - + Open Folder Abrir carpeta - + Controllers: Controladores: - + This version of MapMap was built without game controllers. Esta versión de MapMap se compiló sin controladores de juego. - + Game controllers Controladores de juego - + Game controllers are not available on this computer. Los controladores de juego no están disponibles en este equipo. - + No game controller found. Connect one or turn it on: it appears here. No se encontró ningún controlador de juego. Conecte uno o enciéndalo: aparecerá aquí. - + Last button received: none yet. Press a button or push a stick to see it here. Último botón recibido: ninguno todavía. Presione un botón o mueva una palanca para verlo aquí. - + Last button received: %1, from %2 Último botón recibido: %1, de %2 - + Play in loop (requires restart) Reproducir en bucle (requiere reiniciar) - + Custom... Personalizada... - + Frame rate (frames per second) Cuadros por segundo - + Playback Reproducción - + Interface Interfaz - + Layers Capas - + Output Salida - + Controls Controles - + Advanced Avanzado @@ -4238,7 +4704,7 @@ No se encuentra el archivo original. Búsquelo. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - Atajos de teclado @@ -4264,12 +4730,12 @@ No se encuentra el archivo original. Búsquelo. mmp::SourceGui - + Media Multimedia - + Missing (%1) Falta (%1) @@ -4277,12 +4743,12 @@ No se encuentra el archivo original. Búsquelo. mmp::SourceItemDelegate - + Turn the effect on or off Activar o desactivar el efecto - + Remove the effect Quitar el efecto @@ -4290,42 +4756,42 @@ No se encuentra el archivo original. Búsquelo. mmp::Syphon - + Server UUID UUID del servidor - + The system-wide identifier of the Syphon server this source receives. El identificador, único en todo el sistema, del servidor Syphon que recibe esta fuente. - + Server name Nombre del servidor - + The name of the Syphon server this source receives. El nombre del servidor Syphon que recibe esta fuente. - + Application name Nombre de la aplicación - + The name of the application publishing the Syphon server. El nombre de la aplicación que publica el servidor Syphon. - + Respect source alpha Respetar el alfa de la fuente - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Si se conserva la transparencia enviada por el servidor; si no, las imágenes se vuelven opacas. @@ -4333,37 +4799,37 @@ No se encuentra el archivo original. Búsquelo. mmp::SyphonGui - + Server Servidor - + Status Estado - + (none) (ninguno) - + Unknown server Servidor desconocido - + Connected Conectado - + No server selected Ningún servidor seleccionado - + Waiting for server… Esperando al servidor… @@ -4422,7 +4888,7 @@ No se encuentra el archivo original. Búsquelo. mmp::TextControl - + Choose a file Elegir un archivo @@ -4596,12 +5062,12 @@ No se encuentra el archivo original. Búsquelo. mmp::WelcomeDialog - + Welcome to %1 Te damos la bienvenida a %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4610,17 +5076,17 @@ To get started, import a media file to create a source, then add a shape to proj Para empezar, importa un archivo multimedia para crear una fuente y luego agrega una forma sobre la cual proyectarla. - + Import a media file… Importar un archivo multimedia… - + Read the documentation Leer la documentación - + Show this window at startup Mostrar esta ventana al iniciar diff --git a/translations/mapmap_fr.ts b/translations/mapmap_fr.ts index 567739c4..9c351bb6 100644 --- a/translations/mapmap_fr.ts +++ b/translations/mapmap_fr.ts @@ -360,12 +360,12 @@ Supprimer le calque - + Problem at creation of shape. Problème à la création de la forme. - + Unable to create shape of type '%1'. Impossible de créer une forme de type « %1 ». @@ -405,72 +405,77 @@ Descendre le calque tout en bas - + + Delete group + + + + Flip Horizontally Retourner horizontalement - + Flip Image Horizontally Retourner l’image horizontalement - + Flip Vertically Retourner verticalement - + Flip Image Vertically Retourner l’image verticalement - + Rotate 90° CW Pivoter de 90° dans le sens horaire - + Rotate Image 90° CW Pivoter l’image de 90° dans le sens horaire - + Rotate 90° CCW Pivoter de 90° dans le sens antihoraire - + Rotate Image 90° CCW Pivoter l’image de 90° dans le sens antihoraire - + Rotate 180° Pivoter de 180° - + Rotate Image 180° Pivoter l’image de 180° - + Change output resolution Changer la résolution de sortie - + Move layer Déplacer le calque - + Add effect %1 Ajouter l'effet %1 - + Remove effect %1 Retirer l'effet %1 @@ -490,157 +495,157 @@ Tourner et mettre à l'échelle la forme - + unknown inconnue - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. Ce projet a été sauvegardé dans l’ancien format XML par MapMap %1. Cette version de MapMap (%2) ouvre seulement les projets JSON. - + Parse error at offset %1: %2 Erreur d'analyse à la position %1 : %2 - + The contents of this file does not look like a MapMap project. Le contenu de ce fichier ne ressemble pas à un projet MapMap. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. La version de MapMap (%1) utilisée pour sauvegarder ce fichier n'est pas lisible par cette version de MapMap (%2). - + The project field '%1' must be an array. Le champ « %1 » du projet doit être un tableau. - + CC %1 CC %1 - + %1 ch %2 %1 can. %2 - + Keyboard Clavier - + MIDI MIDI - + Follow the control Suivre le contrôle - + Follow the turns Suivre les tours - + Move right Vers la droite - + Move down Vers le bas - + Increase Augmenter - + Move left Vers la gauche - + Move up Vers le haut - + Decrease Diminuer - + Toggle Basculer - + Turn on Activer - + Turn off Désactiver - + Next option Option suivante - + Last option Dernière option - + First option Première option - + Minimum or maximum Minimum ou maximum - + Set to maximum Mettre au maximum - + Set to minimum Mettre au minimum - + %1: %2 %1 : %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -706,1077 +711,1077 @@ Shaders - + Checker Damier - + A checkerboard of two colours; the square at the top left has the front colour. Un damier de deux couleurs; le carré en haut à gauche a la couleur principale. - + Count Nombre - + The number of squares on each side. Le nombre de carrés de chaque côté. - + Back Color Couleur de fond - + The colour of every other square. La couleur d'un carré sur deux. - + Front Color Couleur principale - + The colour of the square at the top left, and of every other square. La couleur du carré en haut à gauche, et d'un carré sur deux. - + Color Adjustment Réglage des couleurs - + Brightness Luminosité - + Added to each colour: below 0 darker, above 0 lighter. Ajoutée à chaque couleur : sous 0 plus sombre, au-dessus de 0 plus clair. - + Contrast Contraste - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. L'écart des couleurs avec le gris moyen : 0 % donne tout gris, 100 % laisse inchangé. - + Saturation Saturation - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. La vivacité des couleurs : 0 % donne des nuances de gris, 100 % laisse inchangé. - + Hue Teinte - + Turns the colours around the colour wheel, by this angle. Fait tourner les couleurs sur la roue chromatique, de cet angle. - + Color Wheel Roue chromatique - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Roues chromatiques, spirales, anneaux concentriques et damiers polaires, droits ou torsadés, à partir d'un seul jeu de réglages. - + Geometry Géométrie - + Segments Segments - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Nombre de parts autour du cercle; 1 le garde entier. Avec une palette de deux couleurs, un nombre impair donne le nombre pair inférieur, pour que les couleurs alternent tout autour. - + Rings Anneaux - + Number of rings from the centre to the edge of the disk; 0 for none. Nombre d'anneaux du centre au bord du disque; 0 pour aucun. - + Twist Torsion - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Enroule les segments en spirales : les tours qu'ils font du centre au bord du disque. Les valeurs négatives enroulent dans l'autre sens. - + Smoothness Lissage - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Interpolation entre couleurs voisines : nette à 0, continue à 100 %. - + Color Couleur - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Palette - + The colours of the pattern, in the order of their cycle. Les couleurs du motif, dans l'ordre de leur cycle. - + Spectrum Spectre - + Monochromatic Monochrome - + Grayscale Niveaux de gris - + Black and White Noir et blanc - + Complementary Complémentaire - + Analogous Analogue - + Triadic Triadique - + Hue Shift Décalage de teinte - + Turns the hue of every colour; greys stay as they are. Fait tourner la teinte de chaque couleur; les gris restent tels quels. - + Radial Color Couleur radiale - + Radial Saturation Saturation radiale - + Positive: grey centre; negative: grey circumference. The lightness is kept. Positif : centre gris; négatif : circonférence grise. La clarté est conservée. - + Radial Lightness Clarté radiale - + Positive: white centre; negative: black centre. Positif : centre blanc; négatif : centre noir. - + Radial Falloff Atténuation radiale - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. La courbe des deux dégradés radiaux : large sous 1, linéaire à 1, concentrée au-dessus de 1. - + Reverse Radial Gradient Inverser le dégradé radial - + Swaps the centre and the circumference in both radial gradients. Échange le centre et la circonférence dans les deux dégradés radiaux. - + Animation Animation - + Speed Vitesse - + How fast the pattern turns; 0 keeps it still. La vitesse de rotation du motif; 0 le garde immobile. - + Reverse Inverser - + Turns the pattern the other way. Fait tourner le motif dans l'autre sens. - + Flow Défilement - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. La vitesse à laquelle les anneaux s'éloignent du centre, en rayons par minute, quel que soit leur nombre : à 6, un anneau va du centre au bord en 10 secondes; 0 les garde immobiles. - + Flow Inward Défilement vers le centre - + Moves the rings towards the centre. Déplace les anneaux vers le centre. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient Dégradé - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. Un dégradé de deux ou trois couleurs, linéaire, radial, conique ou en losange, répété, en miroir, qui défile le long de sa forme. - + Shape Forme - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. Linéaire traverse l'image; radial part du centre en cercles; conique tourne autour du centre; losange part du centre en carrés posés sur la pointe. - + Linear Linéaire - + Radial Radial - + Conic Conique - + Diamond Losange - + Angle Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. La direction d'un dégradé linéaire, dans le sens des aiguilles d'une montre depuis la gauche vers la droite; le départ d'un dégradé conique; la rotation d'un losange. Un dégradé radial ne s'en sert pas. - + Center Centre - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. Le centre d'un dégradé radial, conique ou en losange, du coin en haut à gauche (0, 0) au coin en bas à droite (1, 1). Un dégradé linéaire ne s'en sert pas. - + Repeats Répétitions - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. Le nombre de fois que le dégradé se répète d'un bord à l'autre de l'image, du centre au bord, ou autour du centre, où il est arrondi à un nombre entier. - + Mirror Miroir - + Each repeat goes from the first colour to the last and back, with no edge between repeats. Chaque répétition va de la première couleur à la dernière et revient, sans cassure entre les répétitions. - + Hardness Dureté - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. 0 fond les couleurs en douceur; 100 % donne des bandes de couleur unie aux bords nets. - + Color A Couleur A - + The first colour. La première couleur. - + Color B Couleur B - + The second colour, the last one with two colours. La deuxième couleur, la dernière avec deux couleurs. - + Color C Couleur C - + The third colour, used with Three Colors. La troisième couleur, utilisée avec Trois couleurs. - + Three Colors Trois couleurs - + Goes from Color A to Color B, then to Color C. Va de la couleur A à la couleur B, puis à la couleur C. - + Swap Colors Échanger les couleurs - + Swaps the first and the last colour. Échange la première et la dernière couleur. - + Blend Mélange - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. Comment une couleur devient la suivante : RVB en ligne droite; Teinte en passant par les teintes, par le plus court chemin sur la roue chromatique; Arc-en-ciel par le plus long, toutes les teintes quand les deux couleurs ont la même. Un gris prend la teinte de l'autre couleur. - + RGB RVB - + Rainbow Arc-en-ciel - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. Le nombre de répétitions qui défilent en une minute : à 6, le dégradé avance d'une répétition toutes les 10 secondes; 0 le garde immobile. - + The gradient moves the other way: towards the centre, or anticlockwise. Le dégradé défile dans l'autre sens : vers le centre, ou dans le sens inverse des aiguilles d'une montre. - + Grid Grille - + Lines of a colour on a background, along the borders and between columns and rows. Des lignes d'une couleur sur un fond, le long des bords et entre les colonnes et les rangées. - + Columns Colonnes - + The number of columns between the lines. Le nombre de colonnes entre les lignes. - + Rows Rangées - + The number of rows between the lines. Le nombre de rangées entre les lignes. - + Thickness Épaisseur - + The thickness of the lines. L'épaisseur des lignes. - + The colour between the lines. La couleur entre les lignes. - + Line Color Couleur des lignes - + The colour of the lines. La couleur des lignes. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise Bruit - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. Un bruit qui bouge lentement : des nuages doux, des cellules ou un plasma, entre deux couleurs. - + Kind Type - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. Doux donne des nuages; Cellules, des cellules autour de points qui se promènent; Plasma, des ondes qui se croisent. - + Smooth Doux - + Cells Cellules - + Plasma Plasma - + Scale Échelle - + How many clouds, cells or waves cross the image. Le nombre de nuages, de cellules ou d'ondes d'un bord à l'autre de l'image. - + Detail Détail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. Le nombre de couches de bruit de plus en plus fin, ou d'ondes pour le plasma, additionnées. Chaque couche prend du temps à dessiner; les cellules n'ont qu'une couche. - + Seed Graine - + Changes the pattern: each number gives another one, always the same. Change le motif : chaque nombre en donne un autre, toujours le même. - + The colour of the low values. La couleur des valeurs basses. - + The colour of the high values. La couleur des valeurs hautes. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. Le nombre de fois par minute que le bruit fait son mouvement et revient à son point de départ : à 6, toutes les 10 secondes; 0 le garde immobile. - + The noise goes through its motion the other way. Le bruit fait son mouvement dans l'autre sens. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness Douceur - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes Rayures - + Stripes of two colours, at any angle and width, going by. Des rayures de deux couleurs, de tout angle et de toute largeur, qui défilent. - + How many pairs of stripes, one of each colour, cross the image. Le nombre de paires de rayures, une de chaque couleur, d'un bord à l'autre de l'image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. La direction en travers des rayures, dans le sens des aiguilles d'une montre depuis la gauche vers la droite : à 0°, les rayures sont verticales. - + Width Largeur - + The share of each pair taken by the stripe of Color A. La part de chaque paire prise par la rayure de la couleur A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. La largeur du fondu entre deux rayures, en pixels de l'image : 0 donne des bords nets. - + The colour of every other stripe. La couleur d'une rayure sur deux. - + The colour of the stripes between. La couleur des rayures entre les deux. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. Le nombre de paires de rayures qui défilent en une minute : à 6, les rayures avancent d'une paire toutes les 10 secondes; 0 les garde immobiles. - + The stripes go by the other way. Les rayures défilent dans l'autre sens. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves Ondes - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. Des ondes de deux couleurs, en lignes droites ou en anneaux autour d'un centre, douces ou nettes, qui avancent. - + Lines are straight waves across the image; rings go out from the centre. Lignes donne des ondes droites qui traversent l'image; anneaux, des ondes qui partent du centre. - + Lines Lignes - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. La direction des ondes droites, dans le sens des aiguilles d'une montre depuis la gauche vers la droite. Les anneaux ne s'en servent pas. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. Le centre des anneaux, du coin en haut à gauche (0, 0) au coin en bas à droite (1, 1). Les ondes droites ne s'en servent pas. - + How many waves cross the image, or go from the centre to the edge. Le nombre d'ondes d'un bord à l'autre de l'image, ou du centre au bord. - + Sharpness Netteté - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. 0 donne des ondes douces, une sinusoïde; 100 % donne des bandes de couleur unie aux bords nets. - + The colour of the troughs. La couleur des creux. - + The colour of the crests. La couleur des crêtes. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. Le nombre d'ondes qui passent en une minute : à 6, les ondes avancent d'une onde toutes les 10 secondes; 0 les garde immobiles. - + The waves go the other way: rings come towards the centre. Les ondes vont dans l'autre sens : les anneaux viennent vers le centre. @@ -1792,82 +1797,82 @@ mmp::AboutDialog - + About %1 À propos de %1 - + MapMap is a free/open source video mapping software. MapMap est un logiciel libre de mapping vidéo. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? %1 est développé et commandité par Art Plus Code. Besoin d'une installation de mapping vidéo sur mesure, d'une nouvelle fonctionnalité, d'intégration ou de formation ? - + Hire us Engagez-nous - + Enjoying %1? Vous aimez %1 ? - + Support the project Soutenir le projet - + About À propos - + Changelog Changements - + Contributors Contributeurs - + MapMap includes RtMidi, which receives the MIDI devices, under this license: MapMap inclut RtMidi, qui reçoit les appareils MIDI, sous cette licence : - + License Licence - + OSC Commands Commandes OSC - + Libraries Librairies - + See the <a href="%1">%2 website</a> for more information on this software. Consultez le <a href="%1">site Web de %2</a> pour en savoir plus sur ce logiciel. - + MapMap uses SDL, which receives the game controllers, under this license: MapMap utilise SDL, qui reçoit les manettes de jeu, sous cette licence : @@ -2127,12 +2132,12 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::ChoiceControl - + %1 (missing) %1 (manquant) - + (none) (aucun) @@ -2140,7 +2145,7 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::ColorControl - + Show the colour picker Afficher le sélecteur de couleur @@ -2244,27 +2249,27 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::ConsoleWindow - + Message Log Output - Mapmap Registre des message - MapMap - + &Close &Fermer - + Close the console Fermer la console - + &File &Fichier - + MMM dd yy HH:mm dd MMM yy HH:mm @@ -2404,8 +2409,8 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::EffectInspector - - + + Effect Effet @@ -2413,42 +2418,42 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::Element - + ID ID - + The number that identifies this element in the project. Le numéro qui identifie cet élément dans le projet. - + Name Nom - + The name shown in the lists and used to find this element by OSC. Le nom affiché dans les listes et utilisé pour trouver cet élément par OSC. - + Locked Verrouillé - + Whether this element is protected from changes made with the mouse. Protège cet élément des modifications faites à la souris. - + Opacity Opacité - + How opaque this element is, from fully transparent to fully opaque. L'opacité de cet élément, de complètement transparent à complètement opaque. @@ -2500,30 +2505,68 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du Générateur %1, dessiné par le GPU + + mmp::Group + + + Solo + Solo + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Visible + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image - + Image file Fichier image - + Image files (%1);;All files (*) Fichiers image (%1);;Tous les fichiers (*) - + The image file shown by this source. Le fichier image affiché par cette source. - + Speed Vitesse - + How fast an animated image plays; a negative speed plays it backwards. La vitesse de lecture d'une image animée; une vitesse négative la lit à l'envers. @@ -2538,7 +2581,7 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::InspectorPage - + %1 %2 %1 %2 @@ -2546,47 +2589,47 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::InspectorRow - + %1: %2 %1 : %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Apprendre des touches pour le déplacer - + Learn MIDI Controls to Move It Apprendre des contrôles MIDI pour le déplacer - + Remove the Links That Move It Retirer les liens qui le déplacent - + Learn a Key Apprendre une touche - + Remove the Key Retirer la touche - + Learn a MIDI Control Apprendre un contrôle MIDI - + Remove the MIDI Control Retirer le contrôle MIDI @@ -2594,52 +2637,66 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::Layer - + Solo Solo - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Met ce calque en solo : tant qu'un calque est en solo, seuls les calques en solo sont affichés. - + Visible Visible - + Whether this layer is shown. Affiche ce calque. - + Depth Profondeur - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - La position de ce calque dans la pile des calques. + La position de ce calque dans la pile des calques. - + Has input shape Avec forme en entrée - + Whether this layer picks the region of its source it shows with an input shape. Ce calque choisit avec une forme en entrée la région de sa source qu'il affiche. - + Source Source - + The source shown in this layer. La source affichée dans ce calque. @@ -2647,47 +2704,47 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::LayerGui - + Surface Surface - + Output shape Forme en sortie - + Input shape Forme en entrée - + Media Média - + Mesh Maillage - + Triangle Triangle - + Ellipse Ellipse - + Quad Quadrilatère - + Used by %1 layers: changing it changes them all. Utilisée par %1 calques : la modifier les modifie tous. @@ -2695,46 +2752,71 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::LayerItemDelegate - - + + Solo layer Calque en solo - - + + Lock layer Verrouiller le calque - - + + Duplicate layer Dupliquer le calque - - + + Delete layer Supprimer le calque - + Turn the effect on or off Activer ou désactiver l'effet - + Remove the effect Retirer l'effet - + Available once a layer can have several effects Disponible quand un calque pourra avoir plusieurs effets - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Afficher ou cacher le calque @@ -2811,27 +2893,27 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::MShape - + Locked Verrouillée - + Whether the vertices of this shape are protected from changes made with the mouse. Protège les sommets de cette forme des modifications faites à la souris. - + Points Points - + Point Point - + The position of a control point of the shape, in pixels. La position d'un point de contrôle de la forme, en pixels. @@ -2839,1204 +2921,1285 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du mmp::MainWindow - - + + Open project Ouvrir un projet - - - - + + + + MapMap files (*.%1) Fichiers MapMap (*.%1) - - + + Save project Sauvegarder le projet - - + + Import media source file Importer un média - - + + Media files (%1 %2);;All files (*) Fichiers média (%1-%2);;Tous les fichiers (*) - + Select camera Selectionner une caméra - - + + No camera available Aucune caméra disponible - - + + You can not use this feature! No camera available in your system Vous ne pouvez pas utiliser cette fonctionnalité. Aucune caméra n'est disponible sur ce système. - - - + + + MapMap MapMap - + Cues Repères - + &New &Nouveau - + Create a new project Créer un nouveau projet - + &Open… &Ouvrir… - + Open an existing project Ouvrir un projet existant - + &Save &Sauvegarder - + Save the project Sauvegarder le projet - + Save &As… S&auvegarder sous… - + Save the project as… Sauvegarder le projet sous… - + No Recents Videos Pas de vidéos récentes - + &Import Media File… &Importer un fichier média … - + Import a video or image file… Importer un fichier vidéo ou image … - + Open &Camera Device… Ajouter une source &caméra… - + Choose your camera device… Choisir la caméra… - + E&xit &Quitter - + Exit the application Quitter l'application - + &Undo Ann&uler - + &Redo &Retablir - + &About MapMap &A propos de MapMap - + Show the application's About box Afficher le dialogue "À propos de l'application" - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + &Preferences… &Préférences… - + Configure preferences… Configurer les préférences… - - + + Play Lecture - - + + Pause Pause - + &Display Controls &Afficher les points de contrôle - + Display canvas controls Afficher les points de contrôle du canevas - + &Sticky Vertices &Sommets collants - + Enable sticky vertices Activer les sommets collants - + Show &Test Signal Afficher le signal de &Test - + Show Test signal Afficher le signal de Test - + Display &Undo History &Afficher l'historique des opérations - + Open Conso&le Ouvrir la conso&le - + &Auto-Mapping… &Calage automatique… - + Film stripes projected on the scene, to see it from the projector Filmer des rayures projetées sur la scène, pour la voir depuis le projecteur - + &Show Auto-Mapping Image &Montrer l'image du calage - + Show the scene seen from the projector under the shapes of the output Montrer la scène vue depuis le projecteur sous les formes de la sortie - + &Clear Auto-Mapping Image &Effacer l'image du calage - + Forget the scene seen from the projector Oublier la scène vue depuis le projecteur - + Display &Zoom Toolbar Afficher la barre de contrôle du &Zoom - + &Menu Bar Barre de &Menu - + Main Layout Vue normale - + Switch to the Main layout. Passer à la vue normale. - + Editor Éditeur - + Show the editor and hide the bottom section Montrer l'éditeur et cacher la section du bas - + Bottom Section Section du bas - + Show the bottom section, such as the cues, and hide the editor Montrer la section du bas, comme les repères, et cacher l'éditeur - + Editor and Bottom Section Éditeur et section du bas - + Show the editor, and the bottom section under it Montrer l'éditeur, et la section du bas en dessous - + Documentation Documentation - + &File &Fichier - + Open Recents Projects Ouvrir les projets récents - + Open Recents Videos Ouvrir les vidéo récentes - + &Edit &Édition - + &Tools &Outils - + &Window &Fenêtre - + &Help &Aide - + &Toolbar &Barre de menu - + The document has been modified. Do you want to save your changes? Ce document a été modifié. Voulez-vous sauvegarder vos changements? - - + + Error reading mapping project file Erreur de lecture du projet - - + + Cannot read file %1: %2. Impossible de lire le fichier %1: %2. - + File loaded Fichier chargé - - + + Error saving mapping project Erreur en sauvegardant le fichier du projet - + Cannot write file %1: %2. Impossible d'écrire le fichier %1 : %2. - + Cannot rename temporary file to %1. Impossible de renommer le fichier temporaire en %1. - + File saved Fichier sauvegardé - + Untitled Sans titre - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project Projet MapMap - - - + + + &%1 %2 &%1 %2 - + Clear List Vider la liste - + No Recents Projects Aucun projet récent - - + + Group %1 + + + + + Face %1 Face %1 - + Auto-Mapping Calage automatique - + %1 - %2x%3 %1 - %2x%3 - + File imported Fichier importé - + Warning Avertissement - + The following file is not supported: %1 Le fichier suivant n'est pas supporté: %1 - + Cannot load movie Impossible de charger le film - - + + %1 files (%2) Fichiers %1 (%2) - + Undo history Historique - + Camera device Dispositif caméra - + Report an issue Rapporter un problème - + Submit feedback via email Soumettre une remarque par courriel - + &View &Apparence - + Unable to use file %1. The original file is not found. Please locate. Impossible d'utiliser le fichier %1. Le fichier original est introuvable. Prière de le localiser. - - + + Locate file %1 Localiser le fichier %1 - + - Primary - Principal - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + Déplacer le calque + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Utilisé par %1 calques : le modifier les modifie tous. - + Replace effect Remplacer l'effet - - + + Replace Effect Remplacer l'effet - - - + + + Add Effect Ajouter un effet - + Save over a project of a later version? Écraser un projet d'une version plus récente? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 a été sauvegardé par une version plus récente de MapMap, au format %2. Cette version garde ce qu'elle ne connaît pas, mais la version plus récente pourrait ne pas ouvrir le projet tel qu'il était. L'écraser quand même? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. Apprentissage MIDI pour %1 : appuyez sur un pad pour « %2 », ou tournez un bouton pour le déplacer dans les deux sens. Échap arrête, Suppr retire les contrôles MIDI du point. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Apprentissage des touches pour %1 : appuyez sur une touche pour « %2 ». Échap arrête, Suppr retire les touches du point. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. Apprentissage MIDI : bougez un contrôle ou appuyez sur un pad pour %1. Suppr retire son contrôle MIDI. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. Apprentissage MIDI : cliquez sur un contrôle entouré de bleu, puis bougez un contrôle de l'appareil MIDI. Les contrôles MIDI déjà appris agissent. - + Learning keys: press a key for %1. Delete removes its key. Apprentissage des touches : appuyez sur une touche pour %1. Suppr retire sa touche. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Apprentissage des touches : cliquez sur un contrôle entouré de bleu, puis appuyez sur une touche. Les touches apprises n'agissent qu'à la fin de l'apprentissage (Échap). - - + + %1: %2 %1 : %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Bougez un contrôle MIDI pour %1. Suppr retire son contrôle MIDI, Échap arrête l'apprentissage. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. Apprentissage MIDI : cliquez sur un contrôle entouré de bleu, puis bougez un contrôle de l'appareil MIDI. Échap arrête l'apprentissage. - + Press a key for %1. Delete removes its key, Escape stops learning. Appuyez sur une touche pour %1. Suppr retire sa touche, Échap arrête l'apprentissage. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Apprentissage clavier : cliquez sur un contrôle entouré de bleu, puis appuyez sur une touche. Échap arrête l'apprentissage. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. Apprentissage MIDI : bougez un contrôle de l'appareil MIDI, pas une touche. Édition > Apprentissage clavier apprend les touches. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 commande %2. Appuyez sur Échap pour arrêter l'apprentissage : %1 agira alors. - + Click a control outlined in blue first, then press %1. Cliquez d'abord sur un contrôle entouré de bleu, puis appuyez sur %1. - + %1 is already the shortcut of %2: choose another key. %1 sert déjà (%2) : choisissez une autre touche. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2 : %3 - + MIDI control removed from %1 Contrôle MIDI retiré de %1 - + Key removed from %1 Touche retirée de %1 - + Click a control outlined in blue first, then move %1. Cliquez d'abord sur un contrôle entouré de bleu, puis bougez %1. - + Input Editor: %1% Éditeur d'entrée : %1 % - + Output Editor: %1% Éditeur de sortie : %1 % - + Stop Learning Arrêter l'apprentissage - + Stop learning (Escape) Arrêter l'apprentissage (Échap) - - + + Add &Generator Ajouter un &générateur - + Add a generator Ajouter un générateur - + Remove Effect Retirer l'effet - + Remove the selected effect Retirer l'effet sélectionné - + Solo layer item Calque en solo - + Rotate 90° CW Pivoter de 90° dans le sens horaire - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Pivoter de 90° dans le sens horaire. Dans la vue d’entrée, fait pivoter l’image à l’intérieur du calque. - + Rotate 90° CCW Pivoter de 90° dans le sens antihoraire - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Pivoter de 90° dans le sens antihoraire. Dans la vue d’entrée, fait pivoter l’image à l’intérieur du calque. - + Rotate 180° Pivoter de 180° - + Rotate 180°. In the input view, rotates the image inside the layer. Pivoter de 180°. Dans la vue d’entrée, fait pivoter l’image à l’intérieur du calque. - + Flip horizontally. In the input view, flips the image inside the layer. Retourner horizontalement. Dans la vue d’entrée, retourne l’image à l’intérieur du calque. - + Flip vertically. In the input view, flips the image inside the layer. Retourner verticalement. Dans la vue d’entrée, retourne l’image à l’intérieur du calque. - - + + Raise Monter - - + + Lower Descendre - + Raise to Top Monter tout en haut - + Raise to top Monter tout en haut - + Lower to Bottom Descendre tout en bas - + Lower to bottom Descendre tout en bas - + &Keyboard Learn Apprentissage &clavier - + Link keys of the keyboard to settings: click a control, then press a key Lier des touches du clavier à des réglages : cliquez sur un contrôle, puis appuyez sur une touche - + &MIDI Learn Apprentissage &MIDI - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Lier des contrôles et des notes d'un appareil MIDI à des réglages : cliquez sur un contrôle, puis bougez un contrôle MIDI - + Learned K&eys Active &Touches apprises actives - + Turn the learned keys off while typing for something else, and on again Désactiver les touches apprises le temps de taper autre chose, puis les réactiver - + &Publish Syphon Output &Publier la sortie Syphon - + Publish the output composition as a Syphon server other apps can receive Publier la composition de sortie comme un serveur Syphon que d'autres applications peuvent recevoir - + &Links Lie&ns - + List the keys linked to settings Lister les touches liées aux réglages - - + + Zoom In Agrandir - - + + Zoom Out Réduire - + Remove this source and all its associated layers? Supprimer cette source et tous les calques associés ? - + Syphon source added Source Syphon ajoutée - + Input Editor Éditeur d'entrée - + Output Editor Éditeur de sortie - + Library Bibliothèque - + Layers Calques - + Add &Syphon Source… Ajouter une source &Syphon… - + Receive live video from another application via Syphon… Recevoir de la vidéo en direct d'une autre application via Syphon… - + Duplicate Layer Dupliquer le calque - + Duplicate layer item Dupliquer un élément du calque - + Delete Layer Supprimer le calque - + Delete layer item Supprimer un élément du calque - + Rename Layer Renommer le calque - + Rename layer item Renommer un élément du calque - + Lock Layer Vérouiller le calque - + Lock layer item Vérouiller un élément du calque - + Hide Layer Cacher le calque - + Hide layer item Cacher un élément du calque - + Solo Layer Calque solo - + Delete Source Supprimer la source - + Delete source item Supprimer un élément de la source - + Rename Source Renommer la source - + Rename source item Renommer un élément de la source - + Add &Mesh Layer Ajouter un calque &maillage - + Add mesh layer Ajouter un calque de maillage - + Add &Triangle Layer Ajouter un calque &triangle - + Add triangle layer Ajouter un calque triangulaire - + Add &Ellipse Layer Ajouter un calque &ellipse - + Add ellipse layer Ajouter un calque elliptique - + &Display Controls of Layers of a Source Commandes d'&affichage des calques d'une source - + Display all canvas controls related to current source Afficher tous les contrôles de la toile liés à la source actuelle - + Input editor Layout Vue de l'éditeur d'entrée - + Switch to the Input editor Layout. Passer à la vue de l'éditeur d'entrée. - + Output Editor Layout Vue de l'éditeur de sortie - + Switch to the Output Editors Layout. Passer à la vue de l'éditeur de sortie. - + Import New Media Importer un nouveau média - + Import new media file if not exists on the list Importer un nouveau média si le fichier n'existe pas sur la liste - - + + Restart Redémarrer - + Actual Pixels (1:1) Taille réelle (1:1) - + Show one image pixel per screen pixel Afficher un pixel de l'image par pixel de l'écran - + Fit To View (100%) Ajuster à la vue (100 %) - + Show the whole image or output frame Afficher toute l'image ou tout le cadre de sortie - + Output &Resolution... &Résolution de sortie... - + Choose the size of the output frame Choisir la taille du cadre de sortie - + Professional services && custom development… Services professionnels && développement sur mesure… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Engagez Art Plus Code pour des installations de mapping vidéo, des fonctionnalités sur mesure, de l'intégration et de la formation - + Support the project (donate)… Soutenir le projet (faire un don)… - + Help fund MapMap's ongoing development Aidez à financer le développement continu de MapMap - + &Keyboard shortcuts &Raccourcis clavier - + Welcome to %1… Bienvenue dans %1… - + Change Layer Source Changer la source du calque - + Flip Horizontally Retourner horizontalement - + Flip Vertically Retourner verticalement - + The output screen %1 is disconnected: the output is hidden until it comes back. L'écran de sortie %1 est débranché : la sortie est cachée jusqu'à son retour. - + The output screen %1 is back. L'écran de sortie %1 est revenu. - + &Hide Output &Cacher la sortie - + Output in a &Window Sortie dans une &fenêtre - + Output &Fills a Screen La sortie &couvre un écran - + Output Sortie - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. La sortie couvre un écran (%1). La flèche choisit comment et où montrer la sortie. - + The learned keys act again. Les touches apprises agissent de nouveau. - + The learned keys are off: they do nothing until turned on again. Les touches apprises sont désactivées : elles ne font rien jusqu'à ce qu'on les réactive. - + Learned keys: on Touches apprises : actives - + Learned keys: off Touches apprises : inactives - + Edit > Learned Keys Active (%1) turns them on and off. Édition > Touches apprises actives (%1) les active et les désactive. - + Cannot read %1: %2 Impossible de lire %1 : %2 - + Project of a later version Projet d'une version plus récente - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. Ce projet a été sauvegardé par une version plus récente de MapMap, au format %1; cette version écrit %2. Ce que cette version ne connaît pas est conservé, mais pourrait ne pas fonctionner comme la version plus récente le prévoyait. - + Project opened with missing entries Projet ouvert avec des entrées manquantes - + MapMap skipped these project entries: %1 MapMap a ignoré ces entrées du projet : %1 - + Sources this version cannot open Sources que cette version ne peut pas ouvrir - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. Ce projet a des sources de types que cette version de MapMap ne peut pas ouvrir : %1. Elles sont conservées avec leurs calques, qui affichent une image « manquante », et sauvegardées telles quelles. - - + + File loaded: %n link(s) active Fichier chargé : %n lien actif @@ -4044,7 +4207,7 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu - + , %n kept but not usable here , %n conservé mais inutilisable ici @@ -4052,82 +4215,82 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu - + %1 added Source ajoutée : %1 - + Output %1 × %2 Sortie %1 × %2 - + Output Editor (%1 × %2) Éditeur de sortie (%1 × %2) - + Output Resolution Résolution de sortie - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Taille du cadre de sortie, en général la résolution du projecteur. La fenêtre de sortie le met à l'échelle pour remplir l'écran de sortie. - + Scale the shapes to keep them in place in the frame Mettre les formes à l'échelle pour les garder en place dans le cadre - + %1 %2 × %3 %1 %2 × %3 - + %1 - disconnected %1 - débranché - + Output Fills a Screen La sortie couvre un écran - + The output will cover this screen. Press Esc to bring MapMap back. La sortie va couvrir cet écran. Appuyez sur Échap pour faire revenir MapMap. - + Cover the Screen Couvrir l'écran - + Don't ask again Ne plus demander - + &Output &Sortie - + Cue %1 Repère %1 - + Cue %1 — %2 Repère %1 — %2 - + %1 set at %2 %1 posé à %2 @@ -4135,22 +4298,22 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::MapperGLCanvasToolbar - + Zoom in Agrandir - + Zoom out Réduire - + Actual pixels (1:1): one image pixel per screen pixel Taille réelle (1:1) : un pixel de l'image par pixel de l'écran - + Fit to view (100%): show the whole image or output frame Ajuster à la vue (100 %) : afficher toute l'image ou tout le cadre de sortie @@ -4166,22 +4329,22 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::Mesh - + Columns Colonnes - + The number of columns of vertices of the mesh, its two edges included. Le nombre de colonnes de sommets du maillage, ses deux bords compris. - + Rows Rangées - + The number of rows of vertices of the mesh, its two edges included. Le nombre de rangées de sommets du maillage, ses deux bords compris. @@ -4189,7 +4352,7 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::OutputGLWindow - + MapMap - Output MapMap - Sortie @@ -4233,312 +4396,312 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::PreferenceDialog - + Preferences Préférences - + Large Grande - + Medium Moyenne - + Small Petite - + Language (requires restart) Langue (redémarrage nécessaire) - + Toolbar icon size (requires restart) Taille des icônes de la barre d'outils (redémarrage nécessaire) - + Show the welcome dialog at startup Afficher la fenêtre de bienvenue au démarrage - + Enable Sticky vertices Activer les sommets collants - + Sensitivity Sensibilité - + Layers Calques - + Classic test card Classique - + PAL test card PAL - + NTSC test card NTSC - + on port sur le port - + Refresh Rafraîchir - + Local IP IP local - + OSC Setup Configuration OSC - + Interface Interface - + Output Sortie - + Controls Contrôles - + Advanced Avancé - + Listen to OSC messages Écouter les messages OSC - + Vertices Sommets - + Only show output controls on mouse over Afficher uniquement les contrôles de sortie au passage de la souris - + Output Layers Calques de sortie - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Taille du cadre de sortie, en général la résolution du projecteur. « Écran de sortie » suit l'écran choisi pour la sortie. - + Change... Changer... - + Default Output Resolution for New Projects Résolution de sortie par défaut des nouveaux projets - + Show resolution on output test cards Afficher la résolution sur les cartes de test de sortie - + Test Card Carte de test - + Allow message with existing media source Autoriser le message avec la source de média existante - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. Quand cette option est désactivée (par défaut), un message OSC qui donne à une source le fichier qu’elle utilise déjà est ignoré, pour éviter de recharger — et de redémarrer — la même vidéo. Activez-la pour recharger le fichier quand même, par exemple pour reprendre un clip du début par OSC. - + Accept OSC from the network (less secure) Accepter l'OSC depuis le réseau (moins sécurisé) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. Désactivé, l'OSC n'est accessible que depuis cet ordinateur (127.0.0.1). Ne l'activez que sur un réseau de spectacle de confiance — l'OSC n'a aucune authentification. - + Allow OSC to quit the application Autoriser l'OSC à quitter l'application - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. Désactivé, la commande OSC /mapmap/quit est ignorée afin qu'un émetteur distant ne puisse pas fermer l'application pendant un spectacle. - + Disabled Désactivé - + MCP port (0 to disable) Port MCP (0 pour désactiver) - + MCP Setup Configuration MCP - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap écoute tous les appareils MIDI branchés à cet ordinateur. Décochez un appareil pour l'ignorer. - + Devices: Appareils : - + MIDI MIDI - + MIDI is not available on this computer. Le MIDI n'est pas disponible sur cet ordinateur. - + No MIDI device found. Connect one: it appears here. Aucun appareil MIDI trouvé. Branchez-en un : il apparaîtra ici. - + %1 (not connected) %1 (débranché) - + Last message received: none yet. Turn a knob or press a pad to see it here. Dernier message reçu : aucun pour l'instant. Tournez un bouton ou appuyez sur un pad pour le voir ici. - + Last message received: %1, from %2 Dernier message reçu : %1, de %2 - + Play in loop (requires restart) Jouer en boucle (nécessite un redémarrage) - + Custom... Personnalisée... - + Frame rate (frames per second) Cadence (images par seconde) - + Playback Lecture - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap écoute toutes les manettes de jeu branchées à cet ordinateur, par câble ou sans fil. - + Current project: %1 × %2 Projet actuel : %1 × %2 - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: Une manette qui n'est pas reconnue peut être décrite, au format de SDL, une ligne par manette, dans ce fichier : - + Open Folder Ouvrir le dossier - + Controllers: Manettes : - + This version of MapMap was built without game controllers. Cette version de MapMap a été compilée sans les manettes de jeu. - + Game controllers Manettes de jeu - + Game controllers are not available on this computer. Les manettes de jeu ne sont pas disponibles sur cet ordinateur. - + No game controller found. Connect one or turn it on: it appears here. Aucune manette de jeu trouvée. Branchez-en une ou allumez-la : elle apparaîtra ici. - + Last button received: none yet. Press a button or push a stick to see it here. Dernier bouton reçu : aucun pour l'instant. Appuyez sur un bouton ou poussez un manche pour le voir ici. - + Last button received: %1, from %2 Dernier bouton reçu : %1, de %2 @@ -4546,7 +4709,7 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - Raccourcis clavier @@ -4572,12 +4735,12 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::SourceGui - + Media Média - + Missing (%1) Manquant (%1) @@ -4585,12 +4748,12 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::SourceItemDelegate - + Turn the effect on or off Activer ou désactiver l'effet - + Remove the effect Retirer l'effet @@ -4598,42 +4761,42 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::Syphon - + Server UUID UUID du serveur - + The system-wide identifier of the Syphon server this source receives. L'identifiant, unique dans tout le système, du serveur Syphon que reçoit cette source. - + Server name Nom du serveur - + The name of the Syphon server this source receives. Le nom du serveur Syphon que reçoit cette source. - + Application name Nom de l'application - + The name of the application publishing the Syphon server. Le nom de l'application qui publie le serveur Syphon. - + Respect source alpha Respecter l'alpha de la source - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Garde la transparence envoyée par le serveur; sinon, les images sont rendues opaques. @@ -4641,37 +4804,37 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::SyphonGui - + Server Serveur - + Status État - + (none) (aucun) - + Unknown server Serveur inconnu - + Connected Connecté - + No server selected Aucun serveur sélectionné - + Waiting for server… En attente du serveur… @@ -4730,7 +4893,7 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::TextControl - + Choose a file Choisir un fichier @@ -4738,22 +4901,22 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::Texture - + X X - + The horizontal position of the top-left corner of the texture. La position horizontale du coin supérieur gauche de la texture. - + Y Y - + The vertical position of the top-left corner of the texture. La position verticale du coin supérieur gauche de la texture. @@ -4761,142 +4924,142 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::Video - + Source Source - + Video files (%1);;All files (*) Fichiers vidéo (%1);;Tous les fichiers (*) - + The video file, or the camera, shown by this source. Le fichier vidéo, ou la caméra, affiché par cette source. - + Speed Vitesse - + How fast the video plays; at zero the image stops. A negative speed stops it too for now: the video cannot play backwards yet. La vitesse de lecture de la vidéo; à zéro, l'image s'arrête. Une vitesse négative l'arrête aussi pour l'instant : la vidéo ne peut pas encore être lue à l'envers. - + Volume Volume - + How loud the sound of the video plays. Le volume du son de la vidéo. - + Mute Sourdine - + Silences the sound of the video; its volume comes back when the sound does. Coupe le son de la vidéo; son volume revient quand le son revient. - + Play Lecture - + Plays this video, or pauses it alone while the others play. Lit cette vidéo, ou la met en pause seule pendant que les autres jouent. - + Position Position - + The moment of the video being played; writing it moves there. Le moment de la vidéo en cours de lecture; le modifier y déplace la lecture. - + Duration Durée - + How long the video lasts. La durée de la vidéo. - + Cue %1 Repère %1 - + Colour Couleur - + The colour of the cue. La couleur du repère. - + Name Nom - + The name of the cue, shown when it is reached. Le nom du repère, affiché quand on y saute. - + Time Moment - + The moment of the video where the cue is; empty while it is not placed. Le moment de la vidéo où se trouve le repère ; vide tant qu'il n'est pas posé. - + Go Aller - + Jumps to the cue and plays from there; places it where the video plays when it is empty. Saute au repère et lance la lecture depuis là ; s'il est vide, le pose à l'endroit en cours de lecture. - + Set Poser - + Places or moves the cue where the video plays. Pose ou déplace le repère à l'endroit en cours de lecture. - + Clear Effacer - + Removes the cue. Efface le repère. @@ -4904,12 +5067,12 @@ Elles sont conservées avec leurs calques, qui affichent une image « manqu mmp::WelcomeDialog - + Welcome to %1 Bienvenue dans %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4918,17 +5081,17 @@ To get started, import a media file to create a source, then add a shape to proj Pour commencer, importez un fichier média pour créer une source, puis ajoutez une forme sur laquelle la projeter. - + Import a media file… Importer un fichier média… - + Read the documentation Lire la documentation - + Show this window at startup Afficher cette fenêtre au démarrage diff --git a/translations/mapmap_hi.ts b/translations/mapmap_hi.ts index 5051c6a2..a74772cd 100644 --- a/translations/mapmap_hi.ts +++ b/translations/mapmap_hi.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. फ़ाइल %1 पढ़ी नहीं जा सकती। - + %1 does not start with an ISF header. %1 ISF हेडर से शुरू नहीं होती। - + The ISF header of %1 is not closed. %1 का ISF हेडर बंद नहीं है। - + The ISF header of %1 is not a JSON object: %2. %1 का ISF हेडर JSON ऑब्जेक्ट नहीं है: %2। - + %1: the key %2 is ignored. %1: कुंजी %2 को अनदेखा किया गया। - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 में %2 पास हैं: MapMap केवल एक पास वाले शेडर पढ़ता है। - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 अपना पास एक इमेज में बनाता है: MapMap अभी ऐसे पास नहीं पढ़ता। - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 इमेज को एक फ़्रेम से अगले फ़्रेम तक रखता है: MapMap अभी ऐसे शेडर नहीं पढ़ता। - + %1 imports images: MapMap does not read such shaders yet. %1 इमेज आयात करता है: MapMap अभी ऐसे शेडर नहीं पढ़ता। - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: इनपुट %2 का कोई मान्य NAME नहीं है। - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: इमेज इनपुट %2 अस्वीकार किया गया: MapMap इफ़ेक्ट को एक ही इमेज देता है, जिसका नाम %3 है। - - + + %1: two inputs are named %2. %1: दो इनपुट का नाम %2 है। - + %1: the name %2 is reserved. %1: नाम %2 आरक्षित है। - + %1: the key %2 of the input %3 is ignored. %1: इनपुट %3 की कुंजी %2 को अनदेखा किया गया। - + %1: inputs of type %2 are not read by MapMap. %1: %2 प्रकार के इनपुट MapMap नहीं पढ़ता। - + (none) (कोई नहीं) - + %1: the unit %2 of the input %3 is ignored. %1: इनपुट %3 की इकाई %2 को अनदेखा किया गया। - + %1: generator %2 has no valid NAME. %1: जनरेटर %2 का कोई मान्य NAME नहीं है। - + %1: the generator %2 has the name of an input. %1: जनरेटर %2 का नाम किसी इनपुट का नाम है। - + %1: generators of type %2 are not read: %3 stays at 0. %1: %2 प्रकार के जनरेटर नहीं पढ़े जाते: %3 0 पर रहता है। - + %1: the generator %2 names an input that does not exist: %3. %1: जनरेटर %2 ऐसे इनपुट का नाम लेता है जो मौजूद नहीं है: %3। - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: जनरेटर %2 अपनी गति दो बार देता है: %3 को अनदेखा किया गया। - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: एनिमेटर %2 का आकार %3 है, जिसे MapMap नहीं बनाता: यह 0 पर रहता है। - + %1: the parameter %2 of the generator %3 is ignored. %1: जनरेटर %3 के पैरामीटर %2 को अनदेखा किया गया। - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: इसकी #version पंक्ति को अनदेखा किया गया: MapMap शेडर को GLSL 1.20 में कंपाइल करता है। - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 एक इफ़ेक्ट है जो समय पढ़ता है: MapMap अभी इफ़ेक्ट को एनिमेट नहीं करता। - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 GENERATORS वाला इफ़ेक्ट है: MapMap अभी इफ़ेक्ट को एनिमेट नहीं करता। - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 इवेंट इनपुट %2 वाला इफ़ेक्ट है: MapMap अभी इफ़ेक्ट को एनिमेट नहीं करता। - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: नाम %2 आरक्षित है: %3 से शुरू होने वाले नाम MapMap के हैं। @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... प्रोग्राम शुरू हो रहा है... - + Done. हो गया। @@ -375,222 +390,232 @@ लेयर हटाएँ - + Raise layer लेयर ऊपर ले जाएँ - + Lower layer लेयर नीचे ले जाएँ - + Raise layer to top लेयर सबसे ऊपर ले जाएँ - + Lower layer to bottom लेयर सबसे नीचे ले जाएँ - + + Delete group + + + + Flip Image Horizontally इमेज क्षैतिज पलटें - + Flip Horizontally क्षैतिज पलटें - + Flip Image Vertically इमेज लंबवत पलटें - + Flip Vertically लंबवत पलटें - + Rotate Image 90° CW इमेज 90° दक्षिणावर्त घुमाएँ - + Rotate 90° CW 90° दक्षिणावर्त घुमाएँ - + Rotate Image 90° CCW इमेज 90° वामावर्त घुमाएँ - + Rotate 90° CCW 90° वामावर्त घुमाएँ - + Rotate Image 180° इमेज 180° घुमाएँ - + Rotate 180° 180° घुमाएँ - + Change output resolution आउटपुट रिज़ॉल्यूशन बदलें - + + Move layer + + + + Add effect %1 इफ़ेक्ट %1 जोड़ें - + Remove effect %1 इफ़ेक्ट %1 हटाएँ - + Problem at creation of shape. आकृति बनाने में समस्या। - + Unable to create shape of type '%1'. '%1' प्रकार की आकृति नहीं बनाई जा सकी। - + CC %1 CC %1 - + %1 ch %2 %1 चैनल %2 - + Keyboard कीबोर्ड - + MIDI MIDI - + Follow the control कंट्रोल का अनुसरण करें - + Follow the turns घुमाव का अनुसरण करें - + Move right दाएँ खिसकाएँ - + Move down नीचे खिसकाएँ - + Increase बढ़ाएँ - + Move left बाएँ खिसकाएँ - + Move up ऊपर खिसकाएँ - + Decrease घटाएँ - + Toggle चालू/बंद करें - + Turn on चालू करें - + Turn off बंद करें - + Next option अगला विकल्प - + Last option अंतिम विकल्प - + First option पहला विकल्प - + Minimum or maximum न्यूनतम या अधिकतम - + Set to maximum अधिकतम पर सेट करें - + Set to minimum न्यूनतम पर सेट करें - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -615,32 +640,32 @@ %1, मान %2 - + unknown अज्ञात - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. यह प्रोजेक्ट MapMap %1 द्वारा पुराने XML फ़ॉर्मैट में सहेजा गया था। MapMap का यह संस्करण (%2) केवल JSON प्रोजेक्ट खोलता है। - + Parse error at offset %1: %2 ऑफ़सेट %1 पर पार्स त्रुटि: %2 - + The contents of this file does not look like a MapMap project. इस फ़ाइल की सामग्री MapMap प्रोजेक्ट जैसी नहीं लगती। - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. इस फ़ाइल को सहेजने वाला MapMap संस्करण %1, MapMap के इस संस्करण %2 से पढ़ा नहीं जा सकता। - + The project field '%1' must be an array. प्रोजेक्ट फ़ील्ड '%1' एक ऐरे होना चाहिए। @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 शेडर अस्वीकार किया गया: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker चेकर - + A checkerboard of two colours; the square at the top left has the front colour. दो रंगों का चेकरबोर्ड; ऊपर बाएँ कोने के वर्ग में आगे का रंग होता है। - + Count संख्या - + The number of squares on each side. हर तरफ़ वर्गों की संख्या। - + Back Color पीछे का रंग - + The colour of every other square. हर दूसरे वर्ग का रंग। - + Front Color आगे का रंग - + The colour of the square at the top left, and of every other square. ऊपर बाएँ कोने के वर्ग का, और उससे हर दूसरे वर्ग का रंग। - + Color Adjustment रंग समायोजन - + Brightness चमक - + Added to each colour: below 0 darker, above 0 lighter. हर रंग में जोड़ा जाता है: 0 से कम पर गहरा, 0 से ज़्यादा पर हल्का। - + Contrast कंट्रास्ट - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. रंग बीच के स्लेटी से कितने दूर हैं: 0 % पर सब स्लेटी, 100 % पर कोई बदलाव नहीं। - + Saturation सैचुरेशन - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. रंग कितने चटख हैं: 0 % पर स्लेटी के शेड, 100 % पर कोई बदलाव नहीं। - + Hue ह्यू - + Turns the colours around the colour wheel, by this angle. रंगों को कलर व्हील पर इस कोण से घुमाता है। - + Color Wheel कलर व्हील - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. कलर व्हील, सर्पिल, संकेंद्रित वलय और ध्रुवीय चेकरबोर्ड, सीधे या मुड़े हुए, सेटिंग्स के एक ही सेट से। - + Geometry ज्यामिति - + Segments सेगमेंट - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. वृत्त के चारों ओर हिस्सों की संख्या; 1 पर यह पूरा रहता है। दो रंगों के पैलेट के साथ, विषम संख्या उससे नीचे की सम संख्या देती है, ताकि रंग चारों ओर बारी-बारी से आएँ। - + Rings वलय - + Number of rings from the centre to the edge of the disk; 0 for none. केंद्र से डिस्क के किनारे तक वलयों की संख्या; 0 पर कोई नहीं। - + Twist ट्विस्ट - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. सेगमेंट को सर्पिल में लपेटता है: केंद्र से डिस्क के किनारे तक वे जितने चक्कर लगाते हैं। ऋणात्मक मान दूसरी दिशा में लपेटते हैं। - + Smoothness स्मूदनेस - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. पड़ोसी रंगों के बीच इंटरपोलेशन: 0 पर तीखा, 100% पर लगातार। - + Color रंग - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette पैलेट - + The colours of the pattern, in the order of their cycle. पैटर्न के रंग, उनके चक्र के क्रम में। - + Spectrum स्पेक्ट्रम - + Monochromatic एकवर्णी - + Grayscale ग्रेस्केल - + Black and White श्वेत-श्याम - + Complementary पूरक - + Analogous सदृश - + Triadic त्रिक - + Hue Shift ह्यू शिफ़्ट - + Turns the hue of every colour; greys stay as they are. हर रंग का ह्यू घुमाता है; स्लेटी रंग जैसे हैं वैसे रहते हैं। - + Radial Color रेडियल रंग - + Radial Saturation रेडियल सैचुरेशन - + Positive: grey centre; negative: grey circumference. The lightness is kept. धनात्मक: स्लेटी केंद्र; ऋणात्मक: स्लेटी परिधि। लाइटनेस बनी रहती है। - + Radial Lightness रेडियल लाइटनेस - + Positive: white centre; negative: black centre. धनात्मक: सफ़ेद केंद्र; ऋणात्मक: काला केंद्र। - + Radial Falloff रेडियल फ़ॉलऑफ़ - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. दोनों रेडियल ग्रेडिएंट का वक्र: 1 से कम पर फैला हुआ, 1 पर रैखिक, 1 से ज़्यादा पर केंद्रित। - + Reverse Radial Gradient उल्टा रेडियल ग्रेडिएंट - + Swaps the centre and the circumference in both radial gradients. दोनों रेडियल ग्रेडिएंट में केंद्र और परिधि की अदला-बदली करता है। - + Animation एनिमेशन - + Speed गति - + How fast the pattern turns; 0 keeps it still. पैटर्न कितनी तेज़ी से घूमता है; 0 पर यह स्थिर रहता है। - + Reverse उल्टा - + Turns the pattern the other way. पैटर्न को दूसरी दिशा में घुमाता है। - + Flow प्रवाह - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. वलय केंद्र से कितनी तेज़ी से दूर जाते हैं, त्रिज्या प्रति मिनट में, उनकी संख्या चाहे जो हो: 6 पर, एक वलय 10 सेकंड में केंद्र से किनारे तक जाता है; 0 पर वे स्थिर रहते हैं। - + Flow Inward अंदर की ओर प्रवाह - + Moves the rings towards the centre. वलयों को केंद्र की ओर ले जाता है। - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid ग्रिड - + Lines of a colour on a background, along the borders and between columns and rows. पृष्ठभूमि पर एक रंग की रेखाएँ, किनारों के साथ और कॉलम व पंक्तियों के बीच। - + Columns कॉलम - + The number of columns between the lines. रेखाओं के बीच कॉलम की संख्या। - + Rows पंक्तियाँ - + The number of rows between the lines. रेखाओं के बीच पंक्तियों की संख्या। - + Thickness मोटाई - + The thickness of the lines. रेखाओं की मोटाई। - + The colour between the lines. रेखाओं के बीच का रंग। - + Line Color रेखा का रंग - + The colour of the lines. रेखाओं का रंग। - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,304 @@ mmp::AboutDialog - + About %1 %1 के बारे में - + MapMap is a free/open source video mapping software. MapMap एक मुफ़्त/ओपन सोर्स वीडियो मैपिंग सॉफ़्टवेयर है। - + Copyright &copy; 2013 %1. कॉपीराइट &copy; 2013 %1। - + See the <a href="%1">%2 website</a> for more information on this software. इस सॉफ़्टवेयर के बारे में अधिक जानकारी के लिए <a href="%1">%2 की वेबसाइट</a> देखें। - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 को Art Plus Code विकसित और प्रायोजित करता है। क्या आपको कस्टम वीडियो मैपिंग इंस्टॉलेशन, नया फ़ीचर, इंटीग्रेशन या ट्रेनिंग चाहिए? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 को Art Plus Code विकसित और प्रायोजित करता है। क्या आपको कस्टम वीडियो मैपिंग इंस्टॉलेशन, नया फ़ीचर, इंटीग्रेशन या ट्रेनिंग चाहिए? + + + + Hire us + हमें काम दें + + + + Enjoying %1? + %1 पसंद आ रहा है? + + + + Support the project + प्रोजेक्ट का समर्थन करें + + + + About + परिचय + + + + Changelog + बदलावों की सूची + + + + Libraries + लाइब्रेरी + + + + Contributors + योगदानकर्ता + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap में RtMidi शामिल है, जो MIDI डिवाइस से संदेश पाती है, इस लाइसेंस के तहत: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap SDL का उपयोग करता है, जो गेम कंट्रोलर से संदेश पाती है, इस लाइसेंस के तहत: + + + + License + लाइसेंस + + + + OSC Commands + OSC कमांड + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + स्टार्ट + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - हमें काम दें + + Scanning: do not move. + - - Enjoying %1? - %1 पसंद आ रहा है? + + Scan cancelled. + - - Support the project - प्रोजेक्ट का समर्थन करें + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + %n outline(s) to place by hand + + + + - - About - परिचय + + + Update Shapes + - - Changelog - बदलावों की सूची + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + %n new face(s) will be added. + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + - - Libraries - लाइब्रेरी + + Update and Remove Them + - - Contributors - योगदानकर्ता + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap में RtMidi शामिल है, जो MIDI डिवाइस से संदेश पाती है, इस लाइसेंस के तहत: + + Update + + + + + %n layer(s) moved + + + + + + + + %n shape(s) created + + + + + + + + %n layer(s) removed + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap SDL का उपयोग करता है, जो गेम कंट्रोलर से संदेश पाती है, इस लाइसेंस के तहत: + + %1. Edit > Undo takes it all back at once. + - - License - लाइसेंस + + Cancel + - - OSC Commands - OSC कमांड + + Close + @@ -1871,15 +2116,23 @@ ऊपर का एडिटर दिखाएँ + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (गायब) - + (none) (कोई नहीं) @@ -1887,7 +2140,7 @@ mmp::ColorControl - + Show the colour picker कलर पिकर दिखाएँ @@ -1991,27 +2244,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap संदेश लॉग आउटपुट - MapMap - + &Close बंद करें(&C) - + Close the console कंसोल बंद करें - + &File फ़ाइल(&F) - + MMM dd yy HH:mm dd MMM yy HH:mm @@ -2128,21 +2381,31 @@ mmp::Effect - + Enabled चालू - + Whether this effect changes the image; off, the image passes unchanged. यह इफ़ेक्ट इमेज बदलता है या नहीं; बंद होने पर इमेज बिना बदले गुज़रती है। + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect इफ़ेक्ट @@ -2150,42 +2413,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. वह संख्या जो प्रोजेक्ट में इस एलिमेंट की पहचान करती है। - + Name नाम - + The name shown in the lists and used to find this element by OSC. सूचियों में दिखने वाला नाम, जिससे OSC इस एलिमेंट को ढूँढता है। - + Locked लॉक - + Whether this element is protected from changes made with the mouse. यह एलिमेंट माउस से किए गए बदलावों से सुरक्षित है या नहीं। - + Opacity अपारदर्शिता - + How opaque this element is, from fully transparent to fully opaque. यह एलिमेंट कितना अपारदर्शी है, पूरी तरह पारदर्शी से पूरी तरह अपारदर्शी तक। @@ -2237,6 +2500,44 @@ %1 जनरेटर, GPU पर बनाया गया + + mmp::Group + + + Solo + सोलो + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + दृश्यमान + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2569,14 @@ mmp::Inspector - Type in project files: %1 - प्रोजेक्ट फ़ाइलों में प्रकार: %1 + प्रोजेक्ट फ़ाइलों में प्रकार: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2584,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It इसे खिसकाने के लिए कुंजियाँ लर्न करें - + Learn MIDI Controls to Move It इसे खिसकाने के लिए MIDI कंट्रोल लर्न करें - + Remove the Links That Move It इसे खिसकाने वाले लिंक हटाएँ - + Learn a Key कुंजी लर्न करें - + Remove the Key कुंजी हटाएँ - + Learn a MIDI Control MIDI कंट्रोल लर्न करें - + Remove the MIDI Control MIDI कंट्रोल हटाएँ @@ -2332,52 +2632,66 @@ mmp::Layer - + Solo सोलो - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. यह लेयर सोलो में है या नहीं: जब कोई लेयर सोलो में हो, तो केवल सोलो वाली लेयर दिखती हैं। - + Visible दृश्यमान - + Whether this layer is shown. यह लेयर दिखाई जाती है या नहीं। - + Depth गहराई - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - लेयर के ढेर में इस लेयर की स्थिति। + लेयर के ढेर में इस लेयर की स्थिति। - + Has input shape इनपुट आकृति है - + Whether this layer picks the region of its source it shows with an input shape. यह लेयर अपने सोर्स का दिखाया जाने वाला हिस्सा इनपुट आकृति से चुनती है या नहीं। - + Source सोर्स - + The source shown in this layer. इस लेयर में दिखाया गया सोर्स। @@ -2385,42 +2699,42 @@ mmp::LayerGui - + Surface सतह - + Output shape आउटपुट आकृति - + Input shape इनपुट आकृति - + Media मीडिया - + Mesh मेश - + Triangle त्रिभुज - + Ellipse दीर्घवृत्त - + Quad चतुर्भुज @@ -2433,46 +2747,71 @@ mmp::LayerItemDelegate - - + + Solo layer लेयर सोलो करें - - + + Lock layer लेयर लॉक करें - - + + Duplicate layer लेयर डुप्लिकेट करें - - + + Delete layer लेयर हटाएँ - + Turn the effect on or off इफ़ेक्ट चालू या बंद करें - + Remove the effect इफ़ेक्ट हटाएँ - + Available once a layer can have several effects जब एक लेयर में कई इफ़ेक्ट हो सकेंगे, तब उपलब्ध - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer लेयर दिखाएँ या छिपाएँ @@ -2549,27 +2888,27 @@ mmp::MShape - + Locked लॉक - + Whether the vertices of this shape are protected from changes made with the mouse. इस आकृति के वर्टेक्स माउस से किए गए बदलावों से सुरक्षित हैं या नहीं। - + Points पॉइंट - + Point पॉइंट - + The position of a control point of the shape, in pixels. आकृति के किसी कंट्रोल पॉइंट की स्थिति, पिक्सेल में। @@ -2577,1058 +2916,1169 @@ mmp::MainWindow - + Cue %1 क्यू %1 - + Cue %1 — %2 क्यू %1 — %2 - + %1 set at %2 %1 को %2 पर सेट किया गया - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. %1 लेयर इसका उपयोग करती हैं: इसे बदलने से वे सभी बदल जाती हैं। - + Replace effect इफ़ेक्ट बदलें - - + + Replace Effect इफ़ेक्ट बदलें - - - + + + Add Effect इफ़ेक्ट जोड़ें - - + + Open project प्रोजेक्ट खोलें - - - - + + + + MapMap files (*.%1) MapMap फ़ाइलें (*.%1) - + Save over a project of a later version? बाद के संस्करण के प्रोजेक्ट के ऊपर सहेजें? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 को MapMap के बाद के संस्करण ने %2 फ़ॉर्मैट में सहेजा था। यह संस्करण वह रखता है जो यह नहीं जानता, लेकिन हो सकता है बाद का संस्करण प्रोजेक्ट को पहले जैसा न खोले। फिर भी इसके ऊपर सहेजें? - - + + Save project प्रोजेक्ट सहेजें - - + + Import media source file मीडिया सोर्स फ़ाइल आयात करें - - + + Media files (%1 %2);;All files (*) मीडिया फ़ाइलें (%1 %2);;सभी फ़ाइलें (*) - + Camera device कैमरा डिवाइस - + Select camera कैमरा चुनें - - + + No camera available कोई कैमरा उपलब्ध नहीं - - + + You can not use this feature! No camera available in your system आप इस सुविधा का उपयोग नहीं कर सकते! आपके सिस्टम में कोई कैमरा उपलब्ध नहीं है - + Syphon source added Syphon सोर्स जोड़ा गया - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. %1 के लिए MIDI लर्न: "%2" के लिए एक पैड दबाएँ, या इसे दोनों ओर खिसकाने के लिए एक नॉब घुमाएँ। Escape रोकता है, Delete पॉइंट के MIDI कंट्रोल हटाता है। - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. %1 के लिए कुंजी लर्न: "%2" के लिए एक कुंजी दबाएँ। Escape रोकता है, Delete पॉइंट की कुंजियाँ हटाता है। - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. MIDI लर्न: %1 के लिए कोई कंट्रोल हिलाएँ या पैड दबाएँ। Delete इसका MIDI कंट्रोल हटाता है। - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. MIDI लर्न: नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर MIDI डिवाइस का कोई कंट्रोल हिलाएँ। पहले से लर्न किए गए MIDI कंट्रोल काम करते हैं। - + Learning keys: press a key for %1. Delete removes its key. कुंजी लर्न: %1 के लिए एक कुंजी दबाएँ। Delete इसकी कुंजी हटाता है। - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). कुंजी लर्न: नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर एक कुंजी दबाएँ। लर्न की गई कुंजियाँ लर्न करना रुकने (Escape) तक काम नहीं करतीं। - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. %1 के लिए एक MIDI कंट्रोल हिलाएँ। Delete इसका MIDI कंट्रोल हटाता है, Escape लर्न करना रोकता है। - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. MIDI लर्न: नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर MIDI डिवाइस का कोई कंट्रोल हिलाएँ। Escape लर्न करना रोकता है। - + Press a key for %1. Delete removes its key, Escape stops learning. %1 के लिए एक कुंजी दबाएँ। Delete इसकी कुंजी हटाता है, Escape लर्न करना रोकता है। - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. कीबोर्ड लर्न: नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर एक कुंजी दबाएँ। Escape लर्न करना रोकता है। - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. MIDI लर्न: MIDI डिवाइस का कोई कंट्रोल हिलाएँ, कुंजी नहीं। संपादित करें > कीबोर्ड लर्न कुंजियाँ लर्न करता है। - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1, %2 को चलाता है। लर्न करना रोकने के लिए Escape दबाएँ: तब %1 काम करेगा। - + Click a control outlined in blue first, then press %1. पहले नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर %1 दबाएँ। - + %1 is already the shortcut of %2: choose another key. %1 पहले से इस काम का शॉर्टकट है: %2। कोई दूसरी कुंजी चुनें। - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 %1 से MIDI कंट्रोल हटाया गया - + Key removed from %1 %1 से कुंजी हटाई गई - + Click a control outlined in blue first, then move %1. पहले नीले घेरे वाले किसी कंट्रोल पर क्लिक करें, फिर %1 हिलाएँ। - + Input Editor: %1% इनपुट एडिटर: %1% - + Output Editor: %1% आउटपुट एडिटर: %1% - - - + + + MapMap MapMap - + Remove this source and all its associated layers? यह सोर्स और इससे जुड़ी सभी लेयर हटाएँ? - + Input Editor इनपुट एडिटर - + Output Editor आउटपुट एडिटर - + Library लाइब्रेरी - + Layers लेयर - + Cues क्यू - + Stop Learning लर्न करना रोकें - + Stop learning (Escape) लर्न करना रोकें (Escape) - + &New नया(&N) - + Create a new project नया प्रोजेक्ट बनाएँ - + &Open… खोलें(&O)… - + Open an existing project मौजूदा प्रोजेक्ट खोलें - + &Save सहेजें(&S) - + Save the project प्रोजेक्ट सहेजें - + Save &As… इस रूप में सहेजें(&A)… - + Save the project as… प्रोजेक्ट को इस रूप में सहेजें… - + No Recents Videos कोई हालिया वीडियो नहीं - + &Import Media File… मीडिया फ़ाइल आयात करें(&I)… - + Import a video or image file… वीडियो या इमेज फ़ाइल आयात करें… - + Open &Camera Device… कैमरा डिवाइस खोलें(&C)… - + Choose your camera device… अपना कैमरा डिवाइस चुनें… - - + + Add &Generator जनरेटर जोड़ें(&G) - + Add a generator एक जनरेटर जोड़ें - + Add &Syphon Source… Syphon सोर्स जोड़ें(&S)… - + Receive live video from another application via Syphon… Syphon के ज़रिए किसी दूसरे ऐप्लिकेशन से लाइव वीडियो पाएँ… - + E&xit बाहर निकलें(&X) - + Exit the application ऐप्लिकेशन से बाहर निकलें - + &Undo पूर्ववत करें(&U) - + &Redo फिर से करें(&R) - + &About MapMap MapMap के बारे में(&A) - + Show the application's About box ऐप्लिकेशन की जानकारी वाला बॉक्स दिखाएँ - + Duplicate Layer लेयर डुप्लिकेट करें - + Duplicate layer item लेयर आइटम डुप्लिकेट करें - + Delete Layer लेयर हटाएँ - + Delete layer item लेयर आइटम हटाएँ - + Remove Effect इफ़ेक्ट हटाएँ - + Remove the selected effect चुना गया इफ़ेक्ट हटाएँ - + Rename Layer लेयर का नाम बदलें - + Rename layer item लेयर आइटम का नाम बदलें - + Lock Layer लेयर लॉक करें - + Lock layer item लेयर आइटम लॉक करें - + Hide Layer लेयर छिपाएँ - + Hide layer item लेयर आइटम छिपाएँ - + Solo Layer लेयर सोलो करें - + Solo layer item लेयर आइटम सोलो करें - + Rotate 90° CW 90° दक्षिणावर्त घुमाएँ - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. 90° दक्षिणावर्त घुमाएँ। इनपुट व्यू में, लेयर के अंदर इमेज को घुमाता है। - + Rotate 90° CCW 90° वामावर्त घुमाएँ - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. 90° वामावर्त घुमाएँ। इनपुट व्यू में, लेयर के अंदर इमेज को घुमाता है। - + Rotate 180° 180° घुमाएँ - + Rotate 180°. In the input view, rotates the image inside the layer. 180° घुमाएँ। इनपुट व्यू में, लेयर के अंदर इमेज को घुमाता है। - + Flip Horizontally क्षैतिज पलटें - + Flip horizontally. In the input view, flips the image inside the layer. क्षैतिज पलटें। इनपुट व्यू में, लेयर के अंदर इमेज को पलटता है। - + Flip Vertically लंबवत पलटें - + Flip vertically. In the input view, flips the image inside the layer. लंबवत पलटें। इनपुट व्यू में, लेयर के अंदर इमेज को पलटता है। - - + + Raise ऊपर ले जाएँ - - + + Lower नीचे ले जाएँ - + Raise to Top सबसे ऊपर ले जाएँ - + Raise to top सबसे ऊपर ले जाएँ - + Lower to Bottom सबसे नीचे ले जाएँ - + Lower to bottom सबसे नीचे ले जाएँ - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source सोर्स हटाएँ - + Delete source item सोर्स आइटम हटाएँ - + Rename Source सोर्स का नाम बदलें - + Rename source item सोर्स आइटम का नाम बदलें - + Import New Media नया मीडिया आयात करें - + Import new media file if not exists on the list नई मीडिया फ़ाइल आयात करें, अगर वह सूची में नहीं है - + &Preferences… प्राथमिकताएँ(&P)… - + Configure preferences… प्राथमिकताएँ कॉन्फ़िगर करें… - + Add &Mesh Layer मेश लेयर जोड़ें(&M) - + Add mesh layer मेश लेयर जोड़ें - + Add &Triangle Layer त्रिभुज लेयर जोड़ें(&T) - + Add triangle layer त्रिभुज लेयर जोड़ें - + Add &Ellipse Layer दीर्घवृत्त लेयर जोड़ें(&E) - + Add ellipse layer दीर्घवृत्त लेयर जोड़ें - - + + Play चलाएँ - - + + Pause रोकें - - + + Restart फिर से शुरू करें - + &Hide Output आउटपुट छिपाएँ(&H) - + Output in a &Window विंडो में आउटपुट(&W) - + Output &Fills a Screen आउटपुट पूरी स्क्रीन पर(&F) - + Output आउटपुट - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. आउटपुट पूरी स्क्रीन पर (%1)। तीर से चुनें कि आउटपुट कैसे और कहाँ दिखे। - + &Display Controls कंट्रोल दिखाएँ(&D) - + Display canvas controls कैनवस के कंट्रोल दिखाएँ - + &Display Controls of Layers of a Source एक सोर्स की लेयर के कंट्रोल दिखाएँ(&D) - + Display all canvas controls related to current source मौजूदा सोर्स से जुड़े कैनवस के सभी कंट्रोल दिखाएँ - + &Sticky Vertices चिपकने वाले वर्टेक्स(&S) - + Enable sticky vertices चिपकने वाले वर्टेक्स चालू करें - + &Keyboard Learn कीबोर्ड लर्न(&K) - + Link keys of the keyboard to settings: click a control, then press a key कीबोर्ड की कुंजियों को सेटिंग्स से लिंक करें: किसी कंट्रोल पर क्लिक करें, फिर एक कुंजी दबाएँ - + &MIDI Learn MIDI लर्न(&M) - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control MIDI डिवाइस के कंट्रोल और नोट्स को सेटिंग्स से लिंक करें: किसी कंट्रोल पर क्लिक करें, फिर कोई MIDI कंट्रोल हिलाएँ - + Learned K&eys Active लर्न की गई कुंजियाँ सक्रिय(&E) - + Turn the learned keys off while typing for something else, and on again किसी और चीज़ के लिए टाइप करते समय लर्न की गई कुंजियाँ बंद करें, और फिर से चालू करें - + Show &Test Signal टेस्ट सिग्नल दिखाएँ(&T) - + Show Test signal टेस्ट सिग्नल दिखाएँ - + &Publish Syphon Output Syphon आउटपुट प्रकाशित करें(&P) - + Publish the output composition as a Syphon server other apps can receive आउटपुट कंपोज़िशन को Syphon सर्वर के रूप में प्रकाशित करें, जिसे दूसरे ऐप पा सकें - + Display &Undo History पूर्ववत इतिहास दिखाएँ(&U) - + Open Conso&le कंसोल खोलें(&L) - + &Links लिंक(&L) - + List the keys linked to settings सेटिंग्स से लिंक की गई कुंजियों की सूची - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Display &Zoom Toolbar ज़ूम टूलबार दिखाएँ(&Z) - + &Menu Bar मेनू बार(&M) - + Main Layout मुख्य लेआउट - + Switch to the Main layout. मुख्य लेआउट पर जाएँ। - + Input editor Layout इनपुट एडिटर लेआउट - + Switch to the Input editor Layout. इनपुट एडिटर लेआउट पर जाएँ। - + Output Editor Layout आउटपुट एडिटर लेआउट - + Switch to the Output Editors Layout. आउटपुट एडिटर लेआउट पर जाएँ। - + Editor एडिटर - + Show the editor and hide the bottom section एडिटर दिखाएँ और निचला सेक्शन छिपाएँ - + Bottom Section निचला सेक्शन - + Show the bottom section, such as the cues, and hide the editor निचला सेक्शन, जैसे क्यू, दिखाएँ और एडिटर छिपाएँ - + Editor and Bottom Section एडिटर और निचला सेक्शन - + Show the editor, and the bottom section under it एडिटर दिखाएँ, और उसके नीचे निचला सेक्शन - - + + Zoom In ज़ूम इन - - + + Zoom Out ज़ूम आउट - + Actual Pixels (1:1) असली पिक्सेल (1:1) - + Show one image pixel per screen pixel स्क्रीन के हर पिक्सेल पर इमेज का एक पिक्सेल दिखाएँ - + Fit To View (100%) व्यू में फ़िट करें (100%) - + Show the whole image or output frame पूरी इमेज या आउटपुट फ़्रेम दिखाएँ - + Output &Resolution... आउटपुट रिज़ॉल्यूशन(&R)... - + Choose the size of the output frame आउटपुट फ़्रेम का आकार चुनें - + Report an issue समस्या की रिपोर्ट करें - + Professional services && custom development… पेशेवर सेवाएँ && कस्टम डेवलपमेंट… - + Hire Art Plus Code for video mapping installations, custom features, integration and training वीडियो मैपिंग इंस्टॉलेशन, कस्टम फ़ीचर, इंटीग्रेशन और ट्रेनिंग के लिए Art Plus Code को काम पर रखें - + Support the project (donate)… प्रोजेक्ट का समर्थन करें (दान दें)… - + Help fund MapMap's ongoing development MapMap के लगातार विकास के लिए धन जुटाने में मदद करें - + Documentation दस्तावेज़ - + Submit feedback via email ईमेल से प्रतिक्रिया भेजें - + &Keyboard shortcuts कीबोर्ड शॉर्टकट(&K) - + Welcome to %1… %1 में आपका स्वागत है… - + &File फ़ाइल(&F) - + Open Recents Projects हालिया प्रोजेक्ट खोलें - + Open Recents Videos हालिया वीडियो खोलें - + &Edit संपादित करें(&E) - + &View देखें(&V) - + &Output आउटपुट(&O) - + + &Tools + + + + &Window विंडो(&W) - + &Help सहायता(&H) - + Change Layer Source लेयर का सोर्स बदलें - + &Toolbar टूलबार(&T) - + The learned keys act again. लर्न की गई कुंजियाँ फिर से काम करती हैं। - + The learned keys are off: they do nothing until turned on again. लर्न की गई कुंजियाँ बंद हैं: फिर से चालू होने तक वे कुछ नहीं करतीं। - + Learned keys: on लर्न की गई कुंजियाँ: चालू - + Learned keys: off लर्न की गई कुंजियाँ: बंद - + Edit > Learned Keys Active (%1) turns them on and off. संपादित करें > लर्न की गई कुंजियाँ सक्रिय (%1) इन्हें चालू और बंद करता है। - + The document has been modified. Do you want to save your changes? दस्तावेज़ बदल गया है। क्या आप अपने बदलाव सहेजना चाहते हैं? - - + + Error reading mapping project file मैपिंग प्रोजेक्ट फ़ाइल पढ़ने में त्रुटि - - + + Cannot read file %1: %2. फ़ाइल %1 पढ़ी नहीं जा सकती: %2। - + Cannot read %1: %2 %1 पढ़ी नहीं जा सकती: %2 - + Project of a later version बाद के संस्करण का प्रोजेक्ट - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. यह प्रोजेक्ट MapMap के बाद के संस्करण द्वारा %1 फ़ॉर्मैट में सहेजा गया था; यह संस्करण %2 लिखता है। जो यह संस्करण नहीं जानता उसे रखा जाता है, लेकिन हो सकता है वह वैसे काम न करे जैसा बाद के संस्करण में था। - + Project opened with missing entries कुछ प्रविष्टियों के बिना प्रोजेक्ट खुला - + MapMap skipped these project entries: %1 MapMap ने प्रोजेक्ट की ये प्रविष्टियाँ छोड़ दीं: %1 - + Sources this version cannot open सोर्स जिन्हें यह संस्करण नहीं खोल सकता - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. इस प्रोजेक्ट में ऐसे प्रकारों के सोर्स हैं जिन्हें MapMap का यह संस्करण नहीं खोल सकता: %1। वे अपनी लेयर के साथ रखे जाते हैं, जो "गायब" इमेज दिखाती हैं, और जैसे हैं वैसे ही सहेजे जाते हैं। - + File loaded फ़ाइल लोड हुई - - + + File loaded: %n link(s) active फ़ाइल लोड हुई: %n लिंक सक्रिय @@ -3636,7 +4086,7 @@ They are kept with their layers, which show a "missing" image, and sav - + , %n kept but not usable here , %n रखा गया पर यहाँ इस्तेमाल नहीं हो सकता @@ -3644,182 +4094,198 @@ They are kept with their layers, which show a "missing" image, and sav - - + + Error saving mapping project मैपिंग प्रोजेक्ट सहेजने में त्रुटि - + Cannot write file %1: %2. फ़ाइल %1 लिखी नहीं जा सकती: %2। - + Cannot rename temporary file to %1. अस्थायी फ़ाइल का नाम बदलकर %1 नहीं किया जा सका। - + File saved फ़ाइल सहेजी गई - + Untitled बिना शीर्षक - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap प्रोजेक्ट - - - + + + &%1 %2 &%1 %2 - + Clear List सूची साफ़ करें - + No Recents Projects कोई हालिया प्रोजेक्ट नहीं - + File imported फ़ाइल आयात हुई - + %1 added %1 जोड़ा गया - + + Group %1 + + + + Output %1 × %2 आउटपुट %1 × %2 - + Output Editor (%1 × %2) आउटपुट एडिटर (%1 × %2) - + Output Resolution आउटपुट रिज़ॉल्यूशन - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. आउटपुट फ़्रेम का आकार, आम तौर पर प्रोजेक्टर का रिज़ॉल्यूशन। आउटपुट विंडो इसे आउटपुट स्क्रीन भरने के लिए स्केल करती है। - + Scale the shapes to keep them in place in the frame आकृतियों को फ़्रेम में अपनी जगह पर रखने के लिए स्केल करें - + %1 %2 × %3 %1 %2 × %3 - + + + Face %1 + + + + + Auto-Mapping + + + + The output screen %1 is disconnected: the output is hidden until it comes back. आउटपुट स्क्रीन %1 डिस्कनेक्ट है: उसके वापस आने तक आउटपुट छिपा रहेगा। - + The output screen %1 is back. आउटपुट स्क्रीन %1 वापस आ गई है। - + %1 - %2x%3 %1 - %2x%3 - + - Primary - प्राथमिक - + %1 - disconnected %1 - डिस्कनेक्ट - + Output Fills a Screen आउटपुट पूरी स्क्रीन पर - + The output will cover this screen. Press Esc to bring MapMap back. आउटपुट इस स्क्रीन को ढक लेगा। MapMap को वापस लाने के लिए Esc दबाएँ। - + Cover the Screen स्क्रीन ढकें - + Don't ask again फिर से न पूछें - + Warning चेतावनी - + The following file is not supported: %1 यह फ़ाइल समर्थित नहीं है: %1 - + Cannot load movie वीडियो लोड नहीं हो सका - + Unable to use file %1. The original file is not found. Please locate. फ़ाइल %1 का उपयोग नहीं हो सका। मूल फ़ाइल नहीं मिली। कृपया उसे ढूँढें। - - + + Locate file %1 फ़ाइल %1 ढूँढें - - + + %1 files (%2) %1 फ़ाइलें (%2) - + Undo history पूर्ववत इतिहास @@ -3827,22 +4293,22 @@ The original file is not found. Please locate. mmp::MapperGLCanvasToolbar - + Zoom in ज़ूम इन - + Zoom out ज़ूम आउट - + Actual pixels (1:1): one image pixel per screen pixel असली पिक्सेल (1:1): स्क्रीन के हर पिक्सेल पर इमेज का एक पिक्सेल - + Fit to view (100%): show the whole image or output frame व्यू में फ़िट करें (100%): पूरी इमेज या आउटपुट फ़्रेम दिखाएँ @@ -3858,22 +4324,22 @@ The original file is not found. Please locate. mmp::Mesh - + Columns कॉलम - + The number of columns of vertices of the mesh, its two edges included. मेश के वर्टेक्स के कॉलम की संख्या, उसके दोनों किनारों सहित। - + Rows पंक्तियाँ - + The number of rows of vertices of the mesh, its two edges included. मेश के वर्टेक्स की पंक्तियों की संख्या, उसके दोनों किनारों सहित। @@ -3881,7 +4347,7 @@ The original file is not found. Please locate. mmp::OutputGLWindow - + MapMap - Output MapMap - आउटपुट @@ -3925,312 +4391,312 @@ The original file is not found. Please locate. mmp::PreferenceDialog - + Preferences प्राथमिकताएँ - + Current project: %1 × %2 मौजूदा प्रोजेक्ट: %1 × %2 - + Large बड़ा - + Medium मध्यम - + Small छोटा - + Language (requires restart) भाषा (रीस्टार्ट ज़रूरी) - + Toolbar icon size (requires restart) टूलबार आइकन का आकार (रीस्टार्ट ज़रूरी) - + Show the welcome dialog at startup शुरू होने पर स्वागत डायलॉग दिखाएँ - + Enable Sticky vertices चिपकने वाले वर्टेक्स चालू करें - + Sensitivity संवेदनशीलता - + Vertices वर्टेक्स - + Only show output controls on mouse over आउटपुट कंट्रोल केवल माउस ऊपर होने पर दिखाएँ - + Output Layers आउटपुट लेयर - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. आउटपुट फ़्रेम का आकार, आम तौर पर प्रोजेक्टर का रिज़ॉल्यूशन। "आउटपुट स्क्रीन" आउटपुट के लिए चुनी गई स्क्रीन के अनुसार चलता है। - + Change... बदलें... - + Default Output Resolution for New Projects नए प्रोजेक्ट के लिए डिफ़ॉल्ट आउटपुट रिज़ॉल्यूशन - + Show resolution on output test cards आउटपुट टेस्ट कार्ड पर रिज़ॉल्यूशन दिखाएँ - + Classic test card क्लासिक टेस्ट कार्ड - + PAL test card PAL टेस्ट कार्ड - + NTSC test card NTSC टेस्ट कार्ड - + Test Card टेस्ट कार्ड - + Listen to OSC messages OSC संदेश सुनें - + Allow message with existing media source मौजूदा मीडिया सोर्स वाले संदेश की अनुमति दें - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. बंद होने पर (डिफ़ॉल्ट), ऐसा OSC संदेश अनदेखा किया जाता है जो किसी सोर्स का मीडिया उसी फ़ाइल पर सेट करता है जिसे वह पहले से इस्तेमाल कर रहा है, ताकि बार-बार आने वाले संदेश उसी वीडियो को दोबारा लोड — और रीस्टार्ट — न करें। फिर भी मीडिया दोबारा लोड करने के लिए इसे चालू करें, जैसे OSC से किसी क्लिप को शुरू से फिर चलाने के लिए। - + Accept OSC from the network (less secure) नेटवर्क से OSC स्वीकार करें (कम सुरक्षित) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. बंद होने पर, OSC तक केवल इसी कंप्यूटर (127.0.0.1) से पहुँचा जा सकता है। इसे केवल भरोसेमंद शो नेटवर्क पर चालू करें — OSC में कोई प्रमाणीकरण नहीं है। - + Allow OSC to quit the application OSC को ऐप्लिकेशन बंद करने की अनुमति दें - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. बंद होने पर, /mapmap/quit OSC कमांड अनदेखा किया जाता है, ताकि कोई दूर का प्रेषक शो के दौरान ऐप्लिकेशन बंद न कर सके। - + on port पोर्ट पर - + Refresh रीफ़्रेश करें - + Local IP लोकल IP - + OSC Setup OSC सेटअप - + Disabled बंद - + MCP port (0 to disable) MCP पोर्ट (बंद करने के लिए 0) - + MCP Setup MCP सेटअप - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap इस कंप्यूटर से जुड़े हर MIDI डिवाइस को सुनता है। किसी डिवाइस को अनदेखा करने के लिए उसका निशान हटाएँ। - + Devices: डिवाइस: - + MIDI MIDI - + MIDI is not available on this computer. इस कंप्यूटर पर MIDI उपलब्ध नहीं है। - + No MIDI device found. Connect one: it appears here. कोई MIDI डिवाइस नहीं मिला। एक कनेक्ट करें: वह यहाँ दिखेगा। - + %1 (not connected) %1 (कनेक्ट नहीं) - + Last message received: none yet. Turn a knob or press a pad to see it here. अंतिम प्राप्त संदेश: अभी कोई नहीं। इसे यहाँ देखने के लिए कोई नॉब घुमाएँ या पैड दबाएँ। - + Last message received: %1, from %2 अंतिम प्राप्त संदेश: %1, %2 से - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap इस कंप्यूटर से केबल या वायरलेस से जुड़े हर गेम कंट्रोलर को सुनता है। - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: जो कंट्रोलर पहचाना नहीं जाता, उसका वर्णन SDL के फ़ॉर्मैट में, हर कंट्रोलर के लिए एक पंक्ति, इस फ़ाइल में किया जा सकता है: - + Open Folder फ़ोल्डर खोलें - + Controllers: कंट्रोलर: - + This version of MapMap was built without game controllers. MapMap का यह संस्करण गेम कंट्रोलर के बिना बनाया गया था। - + Game controllers गेम कंट्रोलर - + Game controllers are not available on this computer. इस कंप्यूटर पर गेम कंट्रोलर उपलब्ध नहीं हैं। - + No game controller found. Connect one or turn it on: it appears here. कोई गेम कंट्रोलर नहीं मिला। एक कनेक्ट करें या उसे चालू करें: वह यहाँ दिखेगा। - + Last button received: none yet. Press a button or push a stick to see it here. अंतिम प्राप्त बटन: अभी कोई नहीं। इसे यहाँ देखने के लिए कोई बटन दबाएँ या स्टिक हिलाएँ। - + Last button received: %1, from %2 अंतिम प्राप्त बटन: %1, %2 से - + Play in loop (requires restart) लूप में चलाएँ (रीस्टार्ट ज़रूरी) - + Custom... कस्टम... - + Frame rate (frames per second) फ़्रेम रेट (फ़्रेम प्रति सेकंड) - + Playback प्लेबैक - + Interface इंटरफ़ेस - + Layers लेयर - + Output आउटपुट - + Controls कंट्रोल - + Advanced उन्नत @@ -4238,7 +4704,7 @@ The original file is not found. Please locate. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - कीबोर्ड शॉर्टकट @@ -4264,12 +4730,12 @@ The original file is not found. Please locate. mmp::SourceGui - + Media मीडिया - + Missing (%1) गायब (%1) @@ -4277,12 +4743,12 @@ The original file is not found. Please locate. mmp::SourceItemDelegate - + Turn the effect on or off इफ़ेक्ट चालू या बंद करें - + Remove the effect इफ़ेक्ट हटाएँ @@ -4290,42 +4756,42 @@ The original file is not found. Please locate. mmp::Syphon - + Server UUID सर्वर UUID - + The system-wide identifier of the Syphon server this source receives. उस Syphon सर्वर का सिस्टम-व्यापी पहचानकर्ता जिससे यह सोर्स वीडियो पाता है। - + Server name सर्वर का नाम - + The name of the Syphon server this source receives. उस Syphon सर्वर का नाम जिससे यह सोर्स वीडियो पाता है। - + Application name ऐप्लिकेशन का नाम - + The name of the application publishing the Syphon server. Syphon सर्वर प्रकाशित करने वाले ऐप्लिकेशन का नाम। - + Respect source alpha सोर्स का अल्फ़ा मानें - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. सर्वर से भेजी गई पारदर्शिता रखी जाए या नहीं; नहीं तो फ़्रेम अपारदर्शी बना दिए जाते हैं। @@ -4333,37 +4799,37 @@ The original file is not found. Please locate. mmp::SyphonGui - + Server सर्वर - + Status स्थिति - + (none) (कोई नहीं) - + Unknown server अज्ञात सर्वर - + Connected कनेक्टेड - + No server selected कोई सर्वर नहीं चुना गया - + Waiting for server… सर्वर की प्रतीक्षा… @@ -4422,7 +4888,7 @@ The original file is not found. Please locate. mmp::TextControl - + Choose a file फ़ाइल चुनें @@ -4596,12 +5062,12 @@ The original file is not found. Please locate. mmp::WelcomeDialog - + Welcome to %1 %1 में आपका स्वागत है - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4610,17 +5076,17 @@ To get started, import a media file to create a source, then add a shape to proj शुरू करने के लिए, सोर्स बनाने के लिए एक मीडिया फ़ाइल आयात करें, फिर उसे प्रोजेक्ट करने के लिए एक आकृति जोड़ें। - + Import a media file… मीडिया फ़ाइल आयात करें… - + Read the documentation दस्तावेज़ पढ़ें - + Show this window at startup शुरू होने पर यह विंडो दिखाएँ diff --git a/translations/mapmap_pt.ts b/translations/mapmap_pt.ts index 9eaa2769..4d16e0ff 100644 --- a/translations/mapmap_pt.ts +++ b/translations/mapmap_pt.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. Não foi possível ler o arquivo %1. - + %1 does not start with an ISF header. %1 não começa com um cabeçalho ISF. - + The ISF header of %1 is not closed. O cabeçalho ISF de %1 não está fechado. - + The ISF header of %1 is not a JSON object: %2. O cabeçalho ISF de %1 não é um objeto JSON: %2. - + %1: the key %2 is ignored. %1: a chave %2 é ignorada. - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 tem %2 passagens: o MapMap só lê shaders de uma passagem. - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 desenha sua passagem em uma imagem: o MapMap ainda não lê esse tipo de passagem. - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 guarda imagens de um quadro para o seguinte: o MapMap ainda não lê esse tipo de shader. - + %1 imports images: MapMap does not read such shaders yet. %1 importa imagens: o MapMap ainda não lê esse tipo de shader. - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: a entrada %2 não tem um NAME válido. - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: a entrada de imagem %2 é recusada: o MapMap dá a um efeito uma única imagem, chamada %3. - - + + %1: two inputs are named %2. %1: duas entradas se chamam %2. - + %1: the name %2 is reserved. %1: o nome %2 é reservado. - + %1: the key %2 of the input %3 is ignored. %1: a chave %2 da entrada %3 é ignorada. - + %1: inputs of type %2 are not read by MapMap. %1: o MapMap não lê entradas do tipo %2. - + (none) (nenhum) - + %1: the unit %2 of the input %3 is ignored. %1: a unidade %2 da entrada %3 é ignorada. - + %1: generator %2 has no valid NAME. %1: o gerador %2 não tem um NAME válido. - + %1: the generator %2 has the name of an input. %1: o gerador %2 tem o nome de uma entrada. - + %1: generators of type %2 are not read: %3 stays at 0. %1: geradores do tipo %2 não são lidos: %3 fica em 0. - + %1: the generator %2 names an input that does not exist: %3. %1: o gerador %2 cita uma entrada que não existe: %3. - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: o gerador %2 dá sua velocidade duas vezes: %3 é ignorado. - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: o animador %2 tem uma forma que o MapMap não desenha, %3: ele fica em 0. - + %1: the parameter %2 of the generator %3 is ignored. %1: o parâmetro %2 do gerador %3 é ignorado. - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: sua linha #version é ignorada: o MapMap compila os shaders em GLSL 1.20. - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 é um efeito que lê o tempo: o MapMap ainda não anima efeitos. - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 é um efeito com GENERATORS: o MapMap ainda não anima efeitos. - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 é um efeito com a entrada de evento %2: o MapMap ainda não anima efeitos. - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: o nome %2 é reservado: os nomes que começam com %3 são do MapMap. @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... Iniciando o programa... - + Done. Pronto. @@ -375,252 +390,262 @@ Excluir camada - + Raise layer Subir camada - + Lower layer Descer camada - + Raise layer to top Trazer camada para o topo - + Lower layer to bottom Enviar camada para o fundo - + + Delete group + + + + Flip Image Horizontally Virar a imagem horizontalmente - + Flip Horizontally Virar horizontalmente - + Flip Image Vertically Virar a imagem verticalmente - + Flip Vertically Virar verticalmente - + Rotate Image 90° CW Girar a imagem 90° no sentido horário - + Rotate 90° CW Girar 90° no sentido horário - + Rotate Image 90° CCW Girar a imagem 90° no sentido anti-horário - + Rotate 90° CCW Girar 90° no sentido anti-horário - + Rotate Image 180° Girar a imagem 180° - + Rotate 180° Girar 180° - + Change output resolution Alterar resolução da saída - + + Move layer + + + + Add effect %1 Adicionar efeito %1 - + Remove effect %1 Remover efeito %1 - + Problem at creation of shape. Problema ao criar a forma. - + Unable to create shape of type '%1'. Não foi possível criar a forma do tipo '%1'. - + unknown desconhecida - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. Este projeto foi salvo no antigo formato XML pelo MapMap %1. Esta versão do MapMap (%2) só abre projetos JSON. - + Parse error at offset %1: %2 Erro de análise na posição %1: %2 - + The contents of this file does not look like a MapMap project. O conteúdo deste arquivo não parece ser um projeto do MapMap. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. Este arquivo foi salvo pelo MapMap %1 e não pode ser lido por esta versão do MapMap (%2). - + The project field '%1' must be an array. O campo '%1' do projeto deve ser uma lista. - + CC %1 CC %1 - + %1 ch %2 %1 can %2 - + Keyboard Teclado - + MIDI MIDI - + Follow the control Seguir o controle - + Follow the turns Seguir os giros - + Move right Mover para a direita - + Move down Mover para baixo - + Increase Aumentar - + Move left Mover para a esquerda - + Move up Mover para cima - + Decrease Diminuir - + Toggle Alternar - + Turn on Ligar - + Turn off Desligar - + Next option Próxima opção - + Last option Última opção - + First option Primeira opção - + Minimum or maximum Mínimo ou máximo - + Set to maximum Pôr no máximo - + Set to minimum Pôr no mínimo - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 Shader recusado: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker Xadrez - + A checkerboard of two colours; the square at the top left has the front colour. Um tabuleiro de xadrez de duas cores; a casa do canto superior esquerdo tem a cor da frente. - + Count Quantidade - + The number of squares on each side. O número de casas em cada lado. - + Back Color Cor de fundo - + The colour of every other square. A cor de uma casa em cada duas. - + Front Color Cor da frente - + The colour of the square at the top left, and of every other square. A cor da casa do canto superior esquerdo e de uma casa em cada duas. - + Color Adjustment Ajuste de cor - + Brightness Brilho - + Added to each colour: below 0 darker, above 0 lighter. Somado a cada cor: abaixo de 0 mais escuro, acima de 0 mais claro. - + Contrast Contraste - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. Quanto as cores se afastam do cinza médio: 0 % é todo cinza, 100 % sem alteração. - + Saturation Saturação - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. Quão vivas são as cores: 0 % são tons de cinza, 100 % sem alteração. - + Hue Matiz - + Turns the colours around the colour wheel, by this angle. Gira as cores ao redor da roda de cores, por este ângulo. - + Color Wheel Roda de cores - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Rodas de cores, espirais, anéis concêntricos e tabuleiros de xadrez polares, retos ou torcidos, a partir de um só conjunto de parâmetros. - + Geometry Geometria - + Segments Segmentos - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Número de partes ao redor do círculo; 1 o mantém inteiro. Com uma paleta de duas cores, um número ímpar dá o número par abaixo, para que as cores se alternem em toda a volta. - + Rings Anéis - + Number of rings from the centre to the edge of the disk; 0 for none. Número de anéis do centro até a borda do disco; 0 para nenhum. - + Twist Torção - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Enrola os segmentos em espirais: as voltas que eles dão do centro até a borda do disco. Valores negativos enrolam no outro sentido. - + Smoothness Suavidade - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Interpolação entre cores vizinhas: nítida em 0, contínua em 100%. - + Color Cor - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Paleta - + The colours of the pattern, in the order of their cycle. As cores do padrão, na ordem do seu ciclo. - + Spectrum Espectro - + Monochromatic Monocromática - + Grayscale Tons de cinza - + Black and White Preto e branco - + Complementary Complementar - + Analogous Análoga - + Triadic Triádica - + Hue Shift Mudança de matiz - + Turns the hue of every colour; greys stay as they are. Gira o matiz de cada cor; os cinzas ficam como estão. - + Radial Color Cor radial - + Radial Saturation Saturação radial - + Positive: grey centre; negative: grey circumference. The lightness is kept. Positivo: centro cinza; negativo: circunferência cinza. A luminosidade é mantida. - + Radial Lightness Luminosidade radial - + Positive: white centre; negative: black centre. Positivo: centro branco; negativo: centro preto. - + Radial Falloff Atenuação radial - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. A curva dos dois gradientes radiais: ampla abaixo de 1, linear em 1, concentrada acima de 1. - + Reverse Radial Gradient Inverter gradiente radial - + Swaps the centre and the circumference in both radial gradients. Troca o centro e a circunferência nos dois gradientes radiais. - + Animation Animação - + Speed Velocidade - + How fast the pattern turns; 0 keeps it still. A rapidez com que o padrão gira; 0 o mantém parado. - + Reverse Inverter - + Turns the pattern the other way. Gira o padrão no outro sentido. - + Flow Fluxo - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. A rapidez com que os anéis se afastam do centro, em raios por minuto, seja qual for o seu número: em 6, um anel vai do centro até a borda em 10 segundos; 0 os mantém parados. - + Flow Inward Fluxo para dentro - + Moves the rings towards the centre. Move os anéis em direção ao centro. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid Grade - + Lines of a colour on a background, along the borders and between columns and rows. Traços de uma cor sobre um fundo, ao longo das bordas e entre as colunas e as linhas. - + Columns Colunas - + The number of columns between the lines. O número de colunas entre os traços. - + Rows Linhas - + The number of rows between the lines. O número de linhas entre os traços. - + Thickness Espessura - + The thickness of the lines. A espessura dos traços. - + The colour between the lines. A cor entre os traços. - + Line Color Cor dos traços - + The colour of the lines. A cor dos traços. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,304 @@ mmp::AboutDialog - + About %1 Sobre o %1 - + MapMap is a free/open source video mapping software. MapMap é um software livre e de código aberto para video mapping. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. Consulte o <a href="%1">site do %2</a> para mais informações sobre este programa. - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - O %1 é desenvolvido e patrocinado pela Art Plus Code. Precisa de uma instalação de video mapping sob medida, de uma nova função, de integração ou de treinamento? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + O %1 é desenvolvido e patrocinado pela Art Plus Code. Precisa de uma instalação de video mapping sob medida, de uma nova função, de integração ou de treinamento? + + + + Hire us + Contrate-nos + + + + Enjoying %1? + Gosta do %1? + + + + Support the project + Apoie o projeto + + + + About + Sobre + + + + Changelog + Mudanças + + + + Libraries + Bibliotecas + + + + Contributors + Colaboradores + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + O MapMap inclui o RtMidi, que recebe os dispositivos MIDI, sob esta licença: + + + + MapMap uses SDL, which receives the game controllers, under this license: + O MapMap usa o SDL, que recebe os controles de jogo, sob esta licença: + + + + License + Licença + + + + OSC Commands + Comandos OSC + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + Start + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - Contrate-nos + + Scanning: do not move. + - - Enjoying %1? - Gosta do %1? + + Scan cancelled. + - - Support the project - Apoie o projeto + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + %n outline(s) to place by hand + + + + - - About - Sobre + + + Update Shapes + - - Changelog - Mudanças + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + %n new face(s) will be added. + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + - - Libraries - Bibliotecas + + Update and Remove Them + - - Contributors - Colaboradores + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - O MapMap inclui o RtMidi, que recebe os dispositivos MIDI, sob esta licença: + + Update + + + + + %n layer(s) moved + + + + + + + + %n shape(s) created + + + + + + + + %n layer(s) removed + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - O MapMap usa o SDL, que recebe os controles de jogo, sob esta licença: + + %1. Edit > Undo takes it all back at once. + - - License - Licença + + Cancel + - - OSC Commands - Comandos OSC + + Close + @@ -1871,15 +2116,23 @@ Mostrar o editor acima + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (ausente) - + (none) (nenhum) @@ -1887,7 +2140,7 @@ mmp::ColorControl - + Show the colour picker Mostrar o seletor de cores @@ -1991,27 +2244,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap Registro de mensagens - MapMap - + &Close &Fechar - + Close the console Fechar o console - + &File &Arquivo - + MMM dd yy HH:mm dd MMM yy HH:mm @@ -2128,21 +2381,31 @@ mmp::Effect - + Enabled Ativado - + Whether this effect changes the image; off, the image passes unchanged. Se este efeito altera a imagem; desativado, a imagem passa sem alteração. + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect Efeito @@ -2150,42 +2413,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. O número que identifica este elemento no projeto. - + Name Nome - + The name shown in the lists and used to find this element by OSC. O nome mostrado nas listas e usado para encontrar este elemento por OSC. - + Locked Bloqueado - + Whether this element is protected from changes made with the mouse. Se este elemento está protegido contra alterações feitas com o mouse. - + Opacity Opacidade - + How opaque this element is, from fully transparent to fully opaque. O quanto este elemento é opaco, de totalmente transparente a totalmente opaco. @@ -2237,6 +2500,44 @@ Gerador %1, desenhado na GPU + + mmp::Group + + + Solo + Solo + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Visível + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2569,14 @@ mmp::Inspector - Type in project files: %1 - Tipo nos arquivos de projeto: %1 + Tipo nos arquivos de projeto: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2584,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Aprender teclas para movê-lo - + Learn MIDI Controls to Move It Aprender controles MIDI para movê-lo - + Remove the Links That Move It Remover os vínculos que o movem - + Learn a Key Aprender uma tecla - + Remove the Key Remover a tecla - + Learn a MIDI Control Aprender um controle MIDI - + Remove the MIDI Control Remover o controle MIDI @@ -2332,52 +2632,66 @@ mmp::Layer - + Solo Solo - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Se esta camada está em solo: enquanto uma camada está em solo, só as camadas em solo são mostradas. - + Visible Visível - + Whether this layer is shown. Se esta camada é mostrada. - + Depth Profundidade - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - A posição desta camada na pilha de camadas. + A posição desta camada na pilha de camadas. - + Has input shape Tem forma de entrada - + Whether this layer picks the region of its source it shows with an input shape. Se esta camada escolhe, com uma forma de entrada, a região da fonte que ela mostra. - + Source Fonte - + The source shown in this layer. A fonte mostrada nesta camada. @@ -2385,42 +2699,42 @@ mmp::LayerGui - + Surface Superfície - + Output shape Forma de saída - + Input shape Forma de entrada - + Media Mídia - + Mesh Malha - + Triangle Triângulo - + Ellipse Elipse - + Quad Quadrilátero @@ -2433,46 +2747,71 @@ mmp::LayerItemDelegate - - + + Solo layer Camada em solo - - + + Lock layer Bloquear camada - - + + Duplicate layer Duplicar camada - - + + Delete layer Excluir camada - + Turn the effect on or off Ativar ou desativar o efeito - + Remove the effect Remover o efeito - + Available once a layer can have several effects Disponível quando uma camada puder ter vários efeitos - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Mostrar ou ocultar a camada @@ -2549,27 +2888,27 @@ mmp::MShape - + Locked Bloqueada - + Whether the vertices of this shape are protected from changes made with the mouse. Se os vértices desta forma estão protegidos contra alterações feitas com o mouse. - + Points Pontos - + Point Ponto - + The position of a control point of the shape, in pixels. A posição de um ponto de controle da forma, em pixels. @@ -2577,1083 +2916,1210 @@ mmp::MainWindow - - + + Open project Abrir projeto - - - - + + + + MapMap files (*.%1) Arquivos do MapMap (*.%1) - - + + Save project Salvar projeto - - + + Import media source file Importar arquivo de mídia - - + + Media files (%1 %2);;All files (*) Arquivos de mídia (%1 %2);;Todos os arquivos (*) - + Camera device Câmera - + Select camera Selecionar câmera - - + + No camera available Nenhuma câmera disponível - - + + You can not use this feature! No camera available in your system Você não pode usar esta função! Nenhuma câmera disponível no seu sistema - + Syphon source added Fonte Syphon adicionada - - - + + + MapMap MapMap - + Remove this source and all its associated layers? Remover esta fonte e todas as camadas associadas? - + Input Editor Editor de entrada - + Output Editor Editor de saída - + Library Biblioteca - + Layers Camadas - + &New &Novo - + Create a new project Criar um novo projeto - + &Open… &Abrir… - + Open an existing project Abrir um projeto existente - + &Save &Salvar - + Save the project Salvar o projeto - + Save &As… Salvar &como… - + Save the project as… Salvar o projeto como… - + No Recents Videos Nenhum vídeo recente - + &Import Media File… &Importar arquivo de mídia… - + Import a video or image file… Importar um arquivo de vídeo ou de imagem… - + Open &Camera Device… Abrir &câmera… - + Choose your camera device… Escolher a câmera… - + Cue %1 Marcador %1 - + Cue %1 — %2 Marcador %1 — %2 - + %1 set at %2 %1 posicionado em %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Usada por %1 camadas: alterá-la altera todas elas. - + Replace effect Substituir efeito - - + + Replace Effect Substituir efeito - - - + + + Add Effect Adicionar efeito - + Save over a project of a later version? Salvar sobre um projeto de uma versão mais recente? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 foi salvo por uma versão mais recente do MapMap, no formato %2. Esta versão mantém o que não conhece, mas a versão mais recente pode não abrir o projeto como ele era. Salvar sobre ele mesmo assim? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. Aprendendo MIDI para %1: aperte um pad para "%2" ou gire um knob para movê-lo nos dois sentidos. Esc encerra, Delete remove os controles MIDI do ponto. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Aprendendo teclas para %1: pressione uma tecla para "%2". Esc encerra, Delete remove as teclas do ponto. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. Aprendendo MIDI: mova um controle ou aperte um pad para %1. Delete remove o controle MIDI dele. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. Aprendendo MIDI: clique em um controle contornado em azul e depois mova um controle do dispositivo MIDI. Os controles MIDI já aprendidos funcionam. - + Learning keys: press a key for %1. Delete removes its key. Aprendendo teclas: pressione uma tecla para %1. Delete remove a tecla dele. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Aprendendo teclas: clique em um controle contornado em azul e depois pressione uma tecla. As teclas aprendidas só funcionam quando o aprendizado termina (Esc). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Mova um controle MIDI para %1. Delete remove o controle MIDI dele, Esc encerra o aprendizado. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. Aprender MIDI: clique em um controle contornado em azul e depois mova um controle do dispositivo MIDI. Esc encerra o aprendizado. - + Press a key for %1. Delete removes its key, Escape stops learning. Pressione uma tecla para %1. Delete remove a tecla dele, Esc encerra o aprendizado. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Aprender teclas: clique em um controle contornado em azul e depois pressione uma tecla. Esc encerra o aprendizado. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. Aprendendo MIDI: mova um controle do dispositivo MIDI, não uma tecla. Editar > Aprender teclas aprende teclas. - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 controla %2. Pressione Esc para encerrar o aprendizado: %1 passará a funcionar. - + Click a control outlined in blue first, then press %1. Primeiro clique em um controle contornado em azul e depois pressione %1. - + %1 is already the shortcut of %2: choose another key. %1 já é um atalho (%2): escolha outra tecla. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 Controle MIDI removido de %1 - + Key removed from %1 Tecla removida de %1 - + Click a control outlined in blue first, then move %1. Primeiro clique em um controle contornado em azul e depois mova %1. - + Input Editor: %1% Editor de entrada: %1% - + Output Editor: %1% Editor de saída: %1% - + Cues Marcadores - + Stop Learning Parar de aprender - + Stop learning (Escape) Parar de aprender (Esc) - - + + Add &Generator Adicionar &gerador - + Add a generator Adicionar um gerador - + Add &Syphon Source… Adicionar fonte &Syphon… - + Receive live video from another application via Syphon… Receber vídeo ao vivo de outro aplicativo via Syphon… - + E&xit &Sair - + Exit the application Sair do aplicativo - + &Undo &Desfazer - + &Redo &Refazer - + &About MapMap &Sobre o MapMap - + Show the application's About box Mostrar as informações sobre o aplicativo - + Duplicate Layer Duplicar camada - + Duplicate layer item Duplicar camada - + Delete Layer Excluir camada - + Delete layer item Excluir camada - + Remove Effect Remover efeito - + Remove the selected effect Remover o efeito selecionado - + Rename Layer Renomear camada - + Rename layer item Renomear camada - + Lock Layer Bloquear camada - + Lock layer item Bloquear camada - + Hide Layer Ocultar camada - + Hide layer item Ocultar camada - + Solo Layer Camada em solo - + Solo layer item Camada em solo - + Rotate 90° CW Girar 90° no sentido horário - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Girar 90° no sentido horário. Na vista de entrada, gira a imagem dentro da camada. - + Rotate 90° CCW Girar 90° no sentido anti-horário - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Girar 90° no sentido anti-horário. Na vista de entrada, gira a imagem dentro da camada. - + Rotate 180° Girar 180° - + Rotate 180°. In the input view, rotates the image inside the layer. Girar 180°. Na vista de entrada, gira a imagem dentro da camada. - + Flip Horizontally Virar horizontalmente - + Flip horizontally. In the input view, flips the image inside the layer. Virar horizontalmente. Na vista de entrada, vira a imagem dentro da camada. - + Flip Vertically Virar verticalmente - + Flip vertically. In the input view, flips the image inside the layer. Virar verticalmente. Na vista de entrada, vira a imagem dentro da camada. - - + + Raise Subir - - + + Lower Descer - + Raise to Top Trazer para o topo - + Raise to top Trazer para o topo - + Lower to Bottom Enviar para o fundo - + Lower to bottom Enviar para o fundo - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source Excluir fonte - + Delete source item Excluir fonte - + Rename Source Renomear fonte - + Rename source item Renomear fonte - + Import New Media Importar nova mídia - + Import new media file if not exists on the list Importar um novo arquivo de mídia se não estiver na lista - + &Preferences… &Preferências… - + Configure preferences… Configurar as preferências… - + Add &Mesh Layer Adicionar camada de &malha - + Add mesh layer Adicionar camada de malha - + Add &Triangle Layer Adicionar camada de &triângulo - + Add triangle layer Adicionar camada de triângulo - + Add &Ellipse Layer Adicionar camada de &elipse - + Add ellipse layer Adicionar camada de elipse - - + + Play Reproduzir - - + + Pause Pausar - - + + Restart Reiniciar - + &Hide Output &Ocultar saída - + Output in a &Window Saída em &janela - + Output &Fills a Screen Saída em &tela cheia - + Output Saída - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. Saída em tela cheia (%1). A seta escolhe como e onde a saída é mostrada. - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Editor Editor - + Show the editor and hide the bottom section Mostrar o editor e ocultar a seção inferior - + Bottom Section Seção inferior - + Show the bottom section, such as the cues, and hide the editor Mostrar a seção inferior, como os marcadores, e ocultar o editor - + Editor and Bottom Section Editor e seção inferior - + Show the editor, and the bottom section under it Mostrar o editor, e a seção inferior abaixo dele - + Actual Pixels (1:1) Pixels reais (1:1) - + Show one image pixel per screen pixel Mostrar um pixel da imagem por pixel da tela - + Fit To View (100%) Ajustar à vista (100%) - + Show the whole image or output frame Mostrar a imagem inteira ou o quadro de saída - + Output &Resolution... &Resolução da saída... - + Choose the size of the output frame Escolher o tamanho do quadro de saída - + &Output &Saída - + + &Tools + + + + Cannot read %1: %2 Não foi possível ler %1: %2 - + Project of a later version Projeto de uma versão mais recente - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. Este projeto foi salvo por uma versão mais recente do MapMap, no formato %1; esta versão grava %2. O que esta versão não conhece é mantido, mas pode não funcionar como a versão mais recente previa. - + Project opened with missing entries Projeto aberto com entradas ignoradas - + MapMap skipped these project entries: %1 O MapMap ignorou estas entradas do projeto: %1 - + Sources this version cannot open Fontes que esta versão não consegue abrir - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. Este projeto tem fontes de tipos que esta versão do MapMap não consegue abrir: %1. Elas são mantidas com suas camadas, que mostram uma imagem "ausente", e salvas como estão. - + + Group %1 + + + + + + Face %1 + + + + + Auto-Mapping + + + + %1 - disconnected %1 - desconectada - + Output Fills a Screen Saída em tela cheia - + The output will cover this screen. Press Esc to bring MapMap back. A saída vai cobrir esta tela. Pressione Esc para trazer o MapMap de volta. - + Cover the Screen Cobrir a tela - + Don't ask again Não perguntar novamente - + &Display Controls &Mostrar controles - + Display canvas controls Mostrar os controles nas áreas de edição - + &Display Controls of Layers of a Source &Mostrar controles das camadas de uma fonte - + Display all canvas controls related to current source Mostrar todos os controles ligados à fonte atual - + &Sticky Vertices &Vértices magnéticos - + Enable sticky vertices Ativar vértices magnéticos - + &Keyboard Learn Aprender &teclas - + Link keys of the keyboard to settings: click a control, then press a key Vincular teclas do teclado a parâmetros: clique em um controle e depois pressione uma tecla - + &MIDI Learn Aprender &MIDI - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Vincular controles e notas de um dispositivo MIDI a parâmetros: clique em um controle e depois mova um controle MIDI - + Learned K&eys Active Teclas aprendidas &ativas - + Turn the learned keys off while typing for something else, and on again Desativar as teclas aprendidas enquanto digita outra coisa, e reativá-las depois - + Show &Test Signal Mostrar sinal de &teste - + Show Test signal Mostrar sinal de teste - + &Publish Syphon Output &Publicar saída Syphon - + Publish the output composition as a Syphon server other apps can receive Publicar a composição de saída como um servidor Syphon que outros aplicativos podem receber - + Display &Undo History Mostrar &histórico de ações - + Open Conso&le Abrir conso&le - + &Links &Vínculos - + List the keys linked to settings Listar as teclas vinculadas a parâmetros - + Display &Zoom Toolbar Mostrar barra de &zoom - + &Menu Bar Barra de &menus - + Main Layout Layout principal - + Switch to the Main layout. Mudar para o layout principal. - + Input editor Layout Layout do editor de entrada - + Switch to the Input editor Layout. Mudar para o layout do editor de entrada. - + Output Editor Layout Layout do editor de saída - + Switch to the Output Editors Layout. Mudar para o layout do editor de saída. - - + + Zoom In Aumentar zoom - - + + Zoom Out Diminuir zoom - + Report an issue Relatar um problema - + Professional services && custom development… Serviços profissionais && desenvolvimento sob medida… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Contrate a Art Plus Code para instalações de video mapping, funções sob medida, integração e treinamento - + Support the project (donate)… Apoiar o projeto (doar)… - + Help fund MapMap's ongoing development Ajude a financiar o desenvolvimento contínuo do MapMap - + Documentation Documentação - + Submit feedback via email Enviar comentários por e-mail - + &Keyboard shortcuts &Atalhos de teclado - + Welcome to %1… Boas-vindas ao %1… - + &File &Arquivo - + Open Recents Projects Abrir projetos recentes - + Open Recents Videos Abrir vídeos recentes - + &Edit &Editar - + &View E&xibir - + &Window &Janela - + &Help A&juda - + Change Layer Source Mudar a fonte da camada - + &Toolbar Barra de &ferramentas - + The learned keys act again. As teclas aprendidas voltam a funcionar. - + The learned keys are off: they do nothing until turned on again. As teclas aprendidas estão desativadas: não fazem nada até serem reativadas. - + Learned keys: on Teclas aprendidas: ativas - + Learned keys: off Teclas aprendidas: inativas - + Edit > Learned Keys Active (%1) turns them on and off. Editar > Teclas aprendidas ativas (%1) as ativa e desativa. - + The document has been modified. Do you want to save your changes? O documento foi modificado. Deseja salvar as alterações? - - + + Error reading mapping project file Erro ao ler o arquivo do projeto - - + + Cannot read file %1: %2. Não foi possível ler o arquivo %1: %2. - + File loaded Arquivo carregado - - + + File loaded: %n link(s) active Arquivo carregado: %n vínculo ativo @@ -3661,7 +4127,7 @@ Deseja salvar as alterações? - + , %n kept but not usable here , %n mantido, mas não utilizável aqui @@ -3669,157 +4135,157 @@ Deseja salvar as alterações? - - + + Error saving mapping project Erro ao salvar o projeto - + Cannot write file %1: %2. Não foi possível gravar o arquivo %1: %2. - + Cannot rename temporary file to %1. Não foi possível renomear o arquivo temporário para %1. - + File saved Arquivo salvo - + Untitled Sem título - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project Projeto do MapMap - - - + + + &%1 %2 &%1 %2 - + Clear List Limpar lista - + No Recents Projects Nenhum projeto recente - + %1 added Adicionado: %1 - + Output %1 × %2 Saída %1 × %2 - + Output Editor (%1 × %2) Editor de saída (%1 × %2) - + Output Resolution Resolução da saída - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Tamanho do quadro de saída, geralmente a resolução do projetor. A janela de saída o redimensiona para preencher a tela de saída. - + Scale the shapes to keep them in place in the frame Redimensionar as formas para mantê-las no lugar dentro do quadro - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. A tela de saída %1 está desconectada: a saída fica oculta até ela voltar. - + The output screen %1 is back. A tela de saída %1 voltou. - + %1 - %2x%3 %1 - %2x%3 - + - Primary - Principal - + File imported Arquivo importado - + Warning Aviso - + The following file is not supported: %1 O seguinte arquivo não é compatível: %1 - + Cannot load movie Não foi possível carregar o vídeo - + Unable to use file %1. The original file is not found. Please locate. Não foi possível usar o arquivo %1. O arquivo original não foi encontrado. Localize-o, por favor. - - + + Locate file %1 Localizar o arquivo %1 - - + + %1 files (%2) Arquivos %1 (%2) - + Undo history Histórico de ações @@ -3827,22 +4293,22 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::MapperGLCanvasToolbar - + Zoom in Aumentar zoom - + Zoom out Diminuir zoom - + Actual pixels (1:1): one image pixel per screen pixel Pixels reais (1:1): um pixel da imagem por pixel da tela - + Fit to view (100%): show the whole image or output frame Ajustar à vista (100%): mostrar a imagem inteira ou o quadro de saída @@ -3858,22 +4324,22 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::Mesh - + Columns Colunas - + The number of columns of vertices of the mesh, its two edges included. O número de colunas de vértices da malha, incluindo as duas bordas. - + Rows Linhas - + The number of rows of vertices of the mesh, its two edges included. O número de linhas de vértices da malha, incluindo as duas bordas. @@ -3881,7 +4347,7 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::OutputGLWindow - + MapMap - Output MapMap - Saída @@ -3925,312 +4391,312 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::PreferenceDialog - + Preferences Preferências - + Current project: %1 × %2 Projeto atual: %1 × %2 - + Large Grande - + Medium Médio - + Small Pequeno - + Language (requires restart) Idioma (requer reinício) - + Toolbar icon size (requires restart) Tamanho dos ícones da barra de ferramentas (requer reinício) - + Show the welcome dialog at startup Mostrar a janela de boas-vindas ao iniciar - + Enable Sticky vertices Ativar vértices magnéticos - + Sensitivity Sensibilidade - + Vertices Vértices - + Only show output controls on mouse over Mostrar os controles da saída só ao passar o mouse - + Output Layers Camadas de saída - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Tamanho do quadro de saída, geralmente a resolução do projetor. "Tela de saída" segue a tela escolhida para a saída. - + Change... Alterar... - + Default Output Resolution for New Projects Resolução de saída padrão para novos projetos - + Show resolution on output test cards Mostrar a resolução nos cartões de teste da saída - + Classic test card Cartão de teste clássico - + PAL test card Cartão de teste PAL - + NTSC test card Cartão de teste NTSC - + Test Card Cartão de teste - + Listen to OSC messages Receber mensagens OSC - + Allow message with existing media source Permitir mensagem com mídia já em uso - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. Quando esta opção está desativada (padrão), uma mensagem OSC que atribui a uma fonte o arquivo que ela já usa é ignorada, para não recarregar nem reiniciar o mesmo vídeo. Ative-a para recarregar o arquivo mesmo assim, por exemplo para reiniciar um clipe do começo por OSC. - + Accept OSC from the network (less secure) Aceitar OSC da rede (menos seguro) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. Quando esta opção está desativada, o OSC só pode ser acessado deste computador (127.0.0.1). Ative-a apenas em uma rede de espetáculo confiável: o OSC não tem autenticação. - + Allow OSC to quit the application Permitir que o OSC encerre o aplicativo - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. Quando esta opção está desativada, o comando OSC /mapmap/quit é ignorado, para que um remetente remoto não possa fechar o aplicativo durante um espetáculo. - + on port na porta - + Refresh Atualizar - + Local IP IP local - + OSC Setup Configuração OSC - + Disabled Desativado - + MCP port (0 to disable) Porta MCP (0 para desativar) - + MCP Setup Configuração MCP - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. O MapMap escuta todos os dispositivos MIDI conectados a este computador. Desmarque um dispositivo para ignorá-lo. - + Devices: Dispositivos: - + MIDI MIDI - + MIDI is not available on this computer. O MIDI não está disponível neste computador. - + No MIDI device found. Connect one: it appears here. Nenhum dispositivo MIDI encontrado. Conecte um: ele aparecerá aqui. - + %1 (not connected) %1 (não conectado) - + Last message received: none yet. Turn a knob or press a pad to see it here. Última mensagem recebida: nenhuma ainda. Gire um knob ou aperte um pad para vê-la aqui. - + Last message received: %1, from %2 Última mensagem recebida: %1, de %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. O MapMap escuta todos os controles de jogo conectados a este computador, com fio ou sem fio. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: Um controle que não é reconhecido pode ser descrito, no formato do SDL, uma linha por controle, neste arquivo: - + Open Folder Abrir pasta - + Controllers: Controles: - + This version of MapMap was built without game controllers. Esta versão do MapMap foi compilada sem suporte a controles de jogo. - + Game controllers Controles de jogo - + Game controllers are not available on this computer. Os controles de jogo não estão disponíveis neste computador. - + No game controller found. Connect one or turn it on: it appears here. Nenhum controle de jogo encontrado. Conecte um ou ligue-o: ele aparecerá aqui. - + Last button received: none yet. Press a button or push a stick to see it here. Último botão recebido: nenhum ainda. Pressione um botão ou mova um analógico para vê-lo aqui. - + Last button received: %1, from %2 Último botão recebido: %1, de %2 - + Play in loop (requires restart) Reproduzir em loop (requer reinício) - + Custom... Personalizada... - + Frame rate (frames per second) Taxa de quadros (quadros por segundo) - + Playback Reprodução - + Interface Interface - + Layers Camadas - + Output Saída - + Controls Controles - + Advanced Avançado @@ -4238,7 +4704,7 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - Atalhos de teclado @@ -4264,12 +4730,12 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::SourceGui - + Media Mídia - + Missing (%1) Ausente (%1) @@ -4277,12 +4743,12 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::SourceItemDelegate - + Turn the effect on or off Ativar ou desativar o efeito - + Remove the effect Remover o efeito @@ -4290,42 +4756,42 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::Syphon - + Server UUID UUID do servidor - + The system-wide identifier of the Syphon server this source receives. O identificador, válido em todo o sistema, do servidor Syphon que esta fonte recebe. - + Server name Nome do servidor - + The name of the Syphon server this source receives. O nome do servidor Syphon que esta fonte recebe. - + Application name Nome do aplicativo - + The name of the application publishing the Syphon server. O nome do aplicativo que publica o servidor Syphon. - + Respect source alpha Respeitar o alfa da fonte - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Se a transparência enviada pelo servidor é mantida; caso contrário, os quadros ficam opacos. @@ -4333,37 +4799,37 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::SyphonGui - + Server Servidor - + Status Estado - + (none) (nenhum) - + Unknown server Servidor desconhecido - + Connected Conectado - + No server selected Nenhum servidor selecionado - + Waiting for server… Aguardando o servidor… @@ -4422,7 +4888,7 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::TextControl - + Choose a file Escolher um arquivo @@ -4596,12 +5062,12 @@ O arquivo original não foi encontrado. Localize-o, por favor. mmp::WelcomeDialog - + Welcome to %1 Boas-vindas ao %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4610,17 +5076,17 @@ To get started, import a media file to create a source, then add a shape to proj Para começar, importe um arquivo de mídia para criar uma fonte e depois adicione uma forma sobre a qual projetá-la. - + Import a media file… Importar um arquivo de mídia… - + Read the documentation Ler a documentação - + Show this window at startup Mostrar esta janela ao iniciar diff --git a/translations/mapmap_ru.ts b/translations/mapmap_ru.ts index 3eba665b..aabf9a00 100644 --- a/translations/mapmap_ru.ts +++ b/translations/mapmap_ru.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. Не удаётся прочитать файл %1. - + %1 does not start with an ISF header. %1 не начинается с заголовка ISF. - + The ISF header of %1 is not closed. Заголовок ISF в %1 не закрыт. - + The ISF header of %1 is not a JSON object: %2. Заголовок ISF в %1 не является объектом JSON: %2. - + %1: the key %2 is ignored. %1: ключ %2 пропущен. - + %1 has %2 passes: MapMap reads shaders of one pass only. %1: проходов — %2, а MapMap читает только однопроходные шейдеры. - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 рисует проход в изображение: MapMap пока не читает такие проходы. - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 хранит изображения от кадра к кадру: MapMap пока не читает такие шейдеры. - + %1 imports images: MapMap does not read such shaders yet. %1 импортирует изображения: MapMap пока не читает такие шейдеры. - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1: у входа %2 нет допустимого NAME. - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1: входное изображение %2 отклонено: MapMap передаёт эффекту одно изображение с именем %3. - - + + %1: two inputs are named %2. %1: два входа называются %2. - + %1: the name %2 is reserved. %1: имя %2 зарезервировано. - + %1: the key %2 of the input %3 is ignored. %1: ключ %2 входа %3 пропущен. - + %1: inputs of type %2 are not read by MapMap. %1: входы типа %2 MapMap не читает. - + (none) (нет) - + %1: the unit %2 of the input %3 is ignored. %1: единица %2 входа %3 пропущена. - + %1: generator %2 has no valid NAME. %1: у генератора %2 нет допустимого NAME. - + %1: the generator %2 has the name of an input. %1: генератор %2 носит имя одного из входов. - + %1: generators of type %2 are not read: %3 stays at 0. %1: генераторы типа %2 не читаются: %3 остаётся равным 0. - + %1: the generator %2 names an input that does not exist: %3. %1: генератор %2 ссылается на несуществующий вход: %3. - + %1: the generator %2 gives its speed twice: %3 is ignored. %1: генератор %2 задаёт скорость дважды: %3 пропущено. - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1: у аниматора %2 форма, которую MapMap не рисует (%3): он остаётся равным 0. - + %1: the parameter %2 of the generator %3 is ignored. %1: параметр %2 генератора %3 пропущен. - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1: строка #version пропущена: MapMap компилирует шейдеры в GLSL 1.20. - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 — эффект, который читает время: MapMap пока не анимирует эффекты. - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 — эффект с GENERATORS: MapMap пока не анимирует эффекты. - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 — эффект с входом событий %2: MapMap пока не анимирует эффекты. - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1: имя %2 зарезервировано: имена, начинающиеся с %3, принадлежат MapMap. @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... Запуск программы... - + Done. Готово. @@ -375,222 +390,232 @@ Удалить слой - + Raise layer Поднять слой - + Lower layer Опустить слой - + Raise layer to top Поднять слой наверх - + Lower layer to bottom Опустить слой вниз - + + Delete group + + + + Flip Image Horizontally Отразить изображение по горизонтали - + Flip Horizontally Отразить по горизонтали - + Flip Image Vertically Отразить изображение по вертикали - + Flip Vertically Отразить по вертикали - + Rotate Image 90° CW Повернуть изображение на 90° вправо - + Rotate 90° CW Повернуть на 90° вправо - + Rotate Image 90° CCW Повернуть изображение на 90° влево - + Rotate 90° CCW Повернуть на 90° влево - + Rotate Image 180° Повернуть изображение на 180° - + Rotate 180° Повернуть на 180° - + Change output resolution Изменить разрешение выхода - + + Move layer + + + + Add effect %1 Добавить эффект %1 - + Remove effect %1 Удалить эффект %1 - + Problem at creation of shape. Ошибка при создании формы. - + Unable to create shape of type '%1'. Не удаётся создать форму типа «%1». - + CC %1 CC %1 - + %1 ch %2 %1 кан. %2 - + Keyboard Клавиатура - + MIDI MIDI - + Follow the control Следовать за регулятором - + Follow the turns Следовать за поворотами - + Move right Сдвинуть вправо - + Move down Сдвинуть вниз - + Increase Увеличить - + Move left Сдвинуть влево - + Move up Сдвинуть вверх - + Decrease Уменьшить - + Toggle Переключить - + Turn on Включить - + Turn off Выключить - + Next option Следующий вариант - + Last option Последний вариант - + First option Первый вариант - + Minimum or maximum Минимум или максимум - + Set to maximum Установить максимум - + Set to minimum Установить минимум - + %1: %2 %1: %2 - + %1 %2 %1 %2 - + %1, x %1, x - + %1, y %1, y @@ -615,32 +640,32 @@ %1, значение %2 - + unknown неизвестно - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. Этот проект сохранён в старом формате XML программой MapMap %1. Эта версия MapMap (%2) открывает только проекты JSON. - + Parse error at offset %1: %2 Ошибка разбора в позиции %1: %2 - + The contents of this file does not look like a MapMap project. Содержимое этого файла не похоже на проект MapMap. - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. Версия MapMap %1, в которой сохранён этот файл, не читается этой версией MapMap %2. - + The project field '%1' must be an array. Поле проекта «%1» должно быть массивом. @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 Шейдер отклонён: %1 @@ -686,1077 +711,1077 @@ Shaders - + Checker Шахматка - + A checkerboard of two colours; the square at the top left has the front colour. Шахматная доска из двух цветов; левая верхняя клетка — основного цвета. - + Count Количество - + The number of squares on each side. Число клеток на каждой стороне. - + Back Color Цвет фона - + The colour of every other square. Цвет каждой второй клетки. - + Front Color Основной цвет - + The colour of the square at the top left, and of every other square. Цвет левой верхней клетки и каждой второй клетки. - + Color Adjustment Коррекция цвета - + Brightness Яркость - + Added to each colour: below 0 darker, above 0 lighter. Прибавляется к каждому цвету: ниже 0 — темнее, выше 0 — светлее. - + Contrast Контраст - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. Насколько цвета удалены от среднего серого: 0 % — всё серое, 100 % — без изменений. - + Saturation Насыщенность - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. Насколько цвета яркие: 0 % — оттенки серого, 100 % — без изменений. - + Hue Тон - + Turns the colours around the colour wheel, by this angle. Поворачивает цвета по цветовому кругу на этот угол. - + Color Wheel Цветовой круг - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. Цветовые круги, спирали, концентрические кольца и полярные шахматки, прямые или закрученные, из одного набора параметров. - + Geometry Геометрия - + Segments Сегменты - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. Число частей по кругу; 1 оставляет круг целым. С палитрой из двух цветов нечётное число заменяется ближайшим меньшим чётным, чтобы цвета чередовались по всему кругу. - + Rings Кольца - + Number of rings from the centre to the edge of the disk; 0 for none. Число колец от центра до края диска; 0 — без колец. - + Twist Закрутка - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. Закручивает сегменты в спирали: число оборотов от центра до края диска. Отрицательные значения закручивают в другую сторону. - + Smoothness Плавность - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. Переход между соседними цветами: резкий при 0, непрерывный при 100%. - + Color Цвет - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette Палитра - + The colours of the pattern, in the order of their cycle. Цвета узора в порядке их цикла. - + Spectrum Спектр - + Monochromatic Монохромная - + Grayscale Оттенки серого - + Black and White Чёрно-белая - + Complementary Дополнительные - + Analogous Аналоговые - + Triadic Триада - + Hue Shift Сдвиг тона - + Turns the hue of every colour; greys stay as they are. Поворачивает тон каждого цвета; серые остаются как есть. - + Radial Color Радиальный цвет - + Radial Saturation Радиальная насыщенность - + Positive: grey centre; negative: grey circumference. The lightness is kept. Положительное значение: серый центр; отрицательное: серая окружность. Светлота сохраняется. - + Radial Lightness Радиальная светлота - + Positive: white centre; negative: black centre. Положительное значение: белый центр; отрицательное: чёрный центр. - + Radial Falloff Радиальный спад - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. Кривая обоих радиальных градиентов: широкая ниже 1, линейная при 1, сжатая выше 1. - + Reverse Radial Gradient Обратный радиальный градиент - + Swaps the centre and the circumference in both radial gradients. Меняет местами центр и окружность в обоих радиальных градиентах. - + Animation Анимация - + Speed Скорость - + How fast the pattern turns; 0 keeps it still. Как быстро вращается узор; 0 — узор неподвижен. - + Reverse Обратно - + Turns the pattern the other way. Вращает узор в другую сторону. - + Flow Поток - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. Как быстро кольца удаляются от центра, в радиусах в минуту, при любом их числе: при 6 кольцо проходит от центра до края за 10 секунд; 0 — кольца неподвижны. - + Flow Inward Поток внутрь - + Moves the rings towards the centre. Двигает кольца к центру. - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid Решётка - + Lines of a colour on a background, along the borders and between columns and rows. Линии одного цвета на фоне — по краям и между столбцами и строками. - + Columns Столбцы - + The number of columns between the lines. Число столбцов между линиями. - + Rows Строки - + The number of rows between the lines. Число строк между линиями. - + Thickness Толщина - + The thickness of the lines. Толщина линий. - + The colour between the lines. Цвет между линиями. - + Line Color Цвет линий - + The colour of the lines. Цвет линий. - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,312 @@ mmp::AboutDialog - + About %1 О программе %1 - + MapMap is a free/open source video mapping software. MapMap — свободная программа с открытым исходным кодом для видеомаппинга. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. Подробнее об этой программе — на <a href="%1">сайте %2</a>. - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 разрабатывается и спонсируется компанией Art Plus Code. Нужна инсталляция видеомаппинга на заказ, новая функция, интеграция или обучение? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 разрабатывается и спонсируется компанией Art Plus Code. Нужна инсталляция видеомаппинга на заказ, новая функция, интеграция или обучение? + + + + Hire us + Наймите нас + + + + Enjoying %1? + Нравится %1? + + + + Support the project + Поддержите проект + + + + About + О программе + + + + Changelog + Изменения + + + + Libraries + Библиотеки + + + + Contributors + Участники + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap включает RtMidi, которая принимает MIDI-устройства, по этой лицензии: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap использует SDL, которая принимает игровые контроллеры, по этой лицензии: + + + + License + Лицензия + + + + OSC Commands + Команды OSC + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + Start + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - Наймите нас + + Scanning: do not move. + - - Enjoying %1? - Нравится %1? + + Scan cancelled. + - - Support the project - Поддержите проект + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + + + %n outline(s) to place by hand + + + + + - - About - О программе + + + Update Shapes + - - Changelog - Изменения + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + + + %n new face(s) will be added. + + + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + + + - - Libraries - Библиотеки + + Update and Remove Them + - - Contributors - Участники + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap включает RtMidi, которая принимает MIDI-устройства, по этой лицензии: + + Update + + + + + %n layer(s) moved + + + + + + + + + %n shape(s) created + + + + + + + + + %n layer(s) removed + + + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap использует SDL, которая принимает игровые контроллеры, по этой лицензии: + + %1. Edit > Undo takes it all back at once. + - - License - Лицензия + + Cancel + - - OSC Commands - Команды OSC + + Close + @@ -1871,15 +2124,23 @@ Показать редактор сверху + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1 (отсутствует) - + (none) (нет) @@ -1887,7 +2148,7 @@ mmp::ColorControl - + Show the colour picker Показать выбор цвета @@ -1991,27 +2252,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap Журнал сообщений — MapMap - + &Close &Закрыть - + Close the console Закрыть консоль - + &File &Файл - + MMM dd yy HH:mm dd MMM yy HH:mm @@ -2128,21 +2389,31 @@ mmp::Effect - + Enabled Включён - + Whether this effect changes the image; off, the image passes unchanged. Меняет ли этот эффект изображение; если выключен, изображение проходит без изменений. + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect Эффект @@ -2150,42 +2421,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. Номер, по которому этот элемент определяется в проекте. - + Name Имя - + The name shown in the lists and used to find this element by OSC. Имя, показываемое в списках и используемое для поиска этого элемента по OSC. - + Locked Заблокирован - + Whether this element is protected from changes made with the mouse. Защищён ли этот элемент от изменений мышью. - + Opacity Непрозрачность - + How opaque this element is, from fully transparent to fully opaque. Насколько непрозрачен этот элемент — от полностью прозрачного до полностью непрозрачного. @@ -2237,6 +2508,44 @@ Генератор %1, рисуется на GPU + + mmp::Group + + + Solo + Соло + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + Видимый + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2577,14 @@ mmp::Inspector - Type in project files: %1 - Тип в файлах проекта: %1 + Тип в файлах проекта: %1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2592,47 @@ mmp::InspectorRow - + %1: %2 %1: %2 - + %1, %2 %1, %2 - + Learn Keys to Move It Назначить клавиши для перемещения - + Learn MIDI Controls to Move It Назначить MIDI-регуляторы для перемещения - + Remove the Links That Move It Удалить связи перемещения - + Learn a Key Назначить клавишу - + Remove the Key Удалить клавишу - + Learn a MIDI Control Назначить MIDI-регулятор - + Remove the MIDI Control Удалить MIDI-регулятор @@ -2332,52 +2640,66 @@ mmp::Layer - + Solo Соло - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. Находится ли этот слой в соло: пока хотя бы один слой в соло, показываются только слои в соло. - + Visible Видимый - + Whether this layer is shown. Показывается ли этот слой. - + Depth Глубина - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - Положение этого слоя в стопке слоёв. + Положение этого слоя в стопке слоёв. - + Has input shape Есть входная форма - + Whether this layer picks the region of its source it shows with an input shape. Выбирает ли этот слой показываемую область источника входной формой. - + Source Источник - + The source shown in this layer. Источник, показываемый в этом слое. @@ -2385,42 +2707,42 @@ mmp::LayerGui - + Surface Поверхность - + Output shape Выходная форма - + Input shape Входная форма - + Media Медиа - + Mesh Сетка - + Triangle Треугольник - + Ellipse Эллипс - + Quad Четырёхугольник @@ -2433,46 +2755,71 @@ mmp::LayerItemDelegate - - + + Solo layer Соло слоя - - + + Lock layer Заблокировать слой - - + + Duplicate layer Дублировать слой - - + + Delete layer Удалить слой - + Turn the effect on or off Включить или выключить эффект - + Remove the effect Удалить эффект - + Available once a layer can have several effects Будет доступно, когда у слоя может быть несколько эффектов - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer Показать или скрыть слой @@ -2550,27 +2897,27 @@ mmp::MShape - + Locked Заблокирована - + Whether the vertices of this shape are protected from changes made with the mouse. Защищены ли вершины этой формы от изменений мышью. - + Points Точки - + Point Точка - + The position of a control point of the shape, in pixels. Положение контрольной точки формы в пикселях. @@ -2578,1058 +2925,1170 @@ mmp::MainWindow - + Cue %1 Метка %1 - + Cue %1 — %2 Метка %1 — %2 - + %1 set at %2 %1 поставлена на %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. Используется слоями (%1): изменение затронет их все. - + Replace effect Заменить эффект - - + + Replace Effect Заменить эффект - - - + + + Add Effect Добавить эффект - - + + Open project Открыть проект - - - - + + + + MapMap files (*.%1) Файлы MapMap (*.%1) - + Save over a project of a later version? Перезаписать проект более поздней версии? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 сохранён более поздней версией MapMap в формате %2. Эта версия сохраняет то, чего не знает, но более поздняя версия может открыть проект не таким, каким он был. Всё равно перезаписать? - - + + Save project Сохранить проект - - + + Import media source file Импорт медиафайла - - + + Media files (%1 %2);;All files (*) Медиафайлы (%1 %2);;Все файлы (*) - + Camera device Камера - + Select camera Выберите камеру - - + + No camera available Нет доступных камер - - + + You can not use this feature! No camera available in your system Эта функция недоступна. В системе нет доступных камер - + Syphon source added Источник Syphon добавлен - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. Назначение MIDI для %1: нажмите пэд для «%2» или поверните ручку, чтобы двигать в обе стороны. Escape — остановить, Delete — удалить MIDI-регуляторы точки. - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. Назначение клавиш для %1: нажмите клавишу для «%2». Escape — остановить, Delete — удалить клавиши точки. - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. Назначение MIDI: подвигайте регулятор или нажмите пэд для %1. Delete удаляет назначенный MIDI-регулятор. - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. Назначение MIDI: щёлкните элемент управления, обведённый синим, затем подвигайте регулятор MIDI-устройства. Уже назначенные MIDI-регуляторы работают. - + Learning keys: press a key for %1. Delete removes its key. Назначение клавиш: нажмите клавишу для %1. Delete удаляет назначенную клавишу. - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). Назначение клавиш: щёлкните элемент управления, обведённый синим, затем нажмите клавишу. Назначенные клавиши не работают, пока назначение не завершено (Escape). - - + + %1: %2 %1: %2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. Подвигайте MIDI-регулятор для %1. Delete удаляет назначенный MIDI-регулятор, Escape завершает назначение. - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. Назначение MIDI: щёлкните элемент управления, обведённый синим, затем подвигайте регулятор MIDI-устройства. Escape завершает назначение. - + Press a key for %1. Delete removes its key, Escape stops learning. Нажмите клавишу для %1. Delete удаляет назначенную клавишу, Escape завершает назначение. - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. Назначение клавиш: щёлкните элемент управления, обведённый синим, затем нажмите клавишу. Escape завершает назначение. - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. Назначение MIDI: подвигайте регулятор MIDI-устройства, а не клавишу. Клавиши назначаются через «Правка > Назначение клавиш». - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 управляет: %2. Нажмите Escape, чтобы завершить назначение: тогда %1 заработает. - + Click a control outlined in blue first, then press %1. Сначала щёлкните элемент управления, обведённый синим, затем нажмите %1. - + %1 is already the shortcut of %2: choose another key. %1 уже занята: %2. Выберите другую клавишу. - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2: %3 - + MIDI control removed from %1 MIDI-регулятор удалён: %1 - + Key removed from %1 Клавиша удалена: %1 - + Click a control outlined in blue first, then move %1. Сначала щёлкните элемент управления, обведённый синим, затем подвигайте %1. - + Input Editor: %1% Редактор входа: %1% - + Output Editor: %1% Редактор выхода: %1% - - - + + + MapMap MapMap - + Remove this source and all its associated layers? Удалить этот источник и все связанные с ним слои? - + Input Editor Редактор входа - + Output Editor Редактор выхода - + Library Библиотека - + Layers Слои - + Cues Метки - + Stop Learning Завершить назначение - + Stop learning (Escape) Завершить назначение (Escape) - + &New &Создать - + Create a new project Создать новый проект - + &Open… &Открыть… - + Open an existing project Открыть существующий проект - + &Save Со&хранить - + Save the project Сохранить проект - + Save &As… Сохранить &как… - + Save the project as… Сохранить проект как… - + No Recents Videos Нет недавних видео - + &Import Media File… &Импорт медиафайла… - + Import a video or image file… Импортировать видео или изображение… - + Open &Camera Device… Открыть ка&меру… - + Choose your camera device… Выберите камеру… - - + + Add &Generator Добавить &генератор - + Add a generator Добавить генератор - + Add &Syphon Source… Добавить источник &Syphon… - + Receive live video from another application via Syphon… Принимать живое видео из другого приложения через Syphon… - + E&xit Вы&йти - + Exit the application Выйти из приложения - + &Undo &Отменить - + &Redo &Повторить - + &About MapMap &О программе MapMap - + Show the application's About box Показать окно «О программе» - + Duplicate Layer Дублировать слой - + Duplicate layer item Дублировать выбранный слой - + Delete Layer Удалить слой - + Delete layer item Удалить выбранный слой - + Remove Effect Удалить эффект - + Remove the selected effect Удалить выбранный эффект - + Rename Layer Переименовать слой - + Rename layer item Переименовать выбранный слой - + Lock Layer Заблокировать слой - + Lock layer item Заблокировать выбранный слой - + Hide Layer Скрыть слой - + Hide layer item Скрыть выбранный слой - + Solo Layer Соло слоя - + Solo layer item Включить соло для выбранного слоя - + Rotate 90° CW Повернуть на 90° вправо - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. Повернуть на 90° по часовой стрелке. В редакторе входа поворачивает изображение внутри слоя. - + Rotate 90° CCW Повернуть на 90° влево - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. Повернуть на 90° против часовой стрелки. В редакторе входа поворачивает изображение внутри слоя. - + Rotate 180° Повернуть на 180° - + Rotate 180°. In the input view, rotates the image inside the layer. Повернуть на 180°. В редакторе входа поворачивает изображение внутри слоя. - + Flip Horizontally Отразить по горизонтали - + Flip horizontally. In the input view, flips the image inside the layer. Отразить по горизонтали. В редакторе входа отражает изображение внутри слоя. - + Flip Vertically Отразить по вертикали - + Flip vertically. In the input view, flips the image inside the layer. Отразить по вертикали. В редакторе входа отражает изображение внутри слоя. - - + + Raise Поднять - - + + Lower Опустить - + Raise to Top Поднять наверх - + Raise to top Поднять наверх - + Lower to Bottom Опустить вниз - + Lower to bottom Опустить вниз - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source Удалить источник - + Delete source item Удалить выбранный источник - + Rename Source Переименовать источник - + Rename source item Переименовать выбранный источник - + Import New Media Импорт нового медиа - + Import new media file if not exists on the list Импортировать новый медиафайл, если его ещё нет в списке - + &Preferences… &Настройки… - + Configure preferences… Изменить настройки… - + Add &Mesh Layer Добавить слой-&сетку - + Add mesh layer Добавить слой-сетку - + Add &Triangle Layer Добавить слой-&треугольник - + Add triangle layer Добавить слой-треугольник - + Add &Ellipse Layer Добавить слой-&эллипс - + Add ellipse layer Добавить слой-эллипс - - + + Play Воспроизвести - - + + Pause Пауза - - + + Restart Перезапустить - + &Hide Output &Скрыть выход - + Output in a &Window Выход в &окне - + Output &Fills a Screen Выход на весь &экран - + Output Выход - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. Выход на весь экран (%1). Стрелка выбирает, как и где показывать выход. - + &Display Controls &Контрольные точки - + Display canvas controls Показать контрольные точки на холсте - + &Display Controls of Layers of a Source Показать точки слоёв &источника - + Display all canvas controls related to current source Показать все контрольные точки холста, относящиеся к текущему источнику - + &Sticky Vertices При&липание вершин - + Enable sticky vertices Включить прилипание вершин - + &Keyboard Learn Назначение &клавиш - + Link keys of the keyboard to settings: click a control, then press a key Связать клавиши клавиатуры с параметрами: щёлкните элемент управления, затем нажмите клавишу - + &MIDI Learn Назначение &MIDI - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control Связать регуляторы и ноты MIDI-устройства с параметрами: щёлкните элемент управления, затем подвигайте MIDI-регулятор - + Learned K&eys Active Назначенные клавиши &активны - + Turn the learned keys off while typing for something else, and on again Отключить назначенные клавиши на время ввода текста и снова включить - + Show &Test Signal Показать &тестовый сигнал - + Show Test signal Показать тестовый сигнал - + &Publish Syphon Output Публиковать выход в &Syphon - + Publish the output composition as a Syphon server other apps can receive Публиковать выходную композицию как сервер Syphon, который могут принимать другие приложения - + Display &Undo History &История действий - + Open Conso&le Открыть &консоль - + &Links &Связи - + List the keys linked to settings Список клавиш, связанных с параметрами - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Display &Zoom Toolbar &Панель масштаба - + &Menu Bar Строка &меню - + Main Layout Основной вид - + Switch to the Main layout. Перейти к основному виду. - + Input editor Layout Вид редактора входа - + Switch to the Input editor Layout. Перейти к виду редактора входа. - + Output Editor Layout Вид редактора выхода - + Switch to the Output Editors Layout. Перейти к виду редактора выхода. - + Editor Редактор - + Show the editor and hide the bottom section Показать редактор и скрыть нижнюю панель - + Bottom Section Нижняя панель - + Show the bottom section, such as the cues, and hide the editor Показать нижнюю панель, например метки, и скрыть редактор - + Editor and Bottom Section Редактор и нижняя панель - + Show the editor, and the bottom section under it Показать редактор и под ним нижнюю панель - - + + Zoom In Увеличить - - + + Zoom Out Уменьшить - + Actual Pixels (1:1) Реальный размер (1:1) - + Show one image pixel per screen pixel Один пиксель изображения на пиксель экрана - + Fit To View (100%) По размеру окна (100%) - + Show the whole image or output frame Показать всё изображение или кадр выхода - + Output &Resolution... &Разрешение выхода... - + Choose the size of the output frame Выбрать размер кадра выхода - + Report an issue Сообщить о проблеме - + Professional services && custom development… Профессиональные услуги && разработка на заказ… - + Hire Art Plus Code for video mapping installations, custom features, integration and training Наймите Art Plus Code для инсталляций видеомаппинга, функций на заказ, интеграции и обучения - + Support the project (donate)… Поддержать проект (пожертвование)… - + Help fund MapMap's ongoing development Помогите финансировать развитие MapMap - + Documentation Документация - + Submit feedback via email Отправить отзыв по почте - + &Keyboard shortcuts &Сочетания клавиш - + Welcome to %1… Добро пожаловать в %1… - + &File &Файл - + Open Recents Projects Недавние проекты - + Open Recents Videos Недавние видео - + &Edit &Правка - + &View &Вид - + &Output &Выход - + + &Tools + + + + &Window &Окно - + &Help &Справка - + Change Layer Source Изменить источник слоя - + &Toolbar Панель &инструментов - + The learned keys act again. Назначенные клавиши снова работают. - + The learned keys are off: they do nothing until turned on again. Назначенные клавиши отключены: они ничего не делают, пока их снова не включат. - + Learned keys: on Назначенные клавиши: вкл. - + Learned keys: off Назначенные клавиши: выкл. - + Edit > Learned Keys Active (%1) turns them on and off. «Правка > Назначенные клавиши активны» (%1) включает и выключает их. - + The document has been modified. Do you want to save your changes? Документ был изменён. Сохранить изменения? - - + + Error reading mapping project file Ошибка чтения файла проекта - - + + Cannot read file %1: %2. Не удаётся прочитать файл %1: %2. - + Cannot read %1: %2 Не удаётся прочитать %1: %2 - + Project of a later version Проект более поздней версии - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. Этот проект сохранён более поздней версией MapMap в формате %1; эта версия записывает %2. То, чего эта версия не знает, сохраняется, но может работать не так, как задумано в более поздней версии. - + Project opened with missing entries Проект открыт с пропущенными записями - + MapMap skipped these project entries: %1 MapMap пропустила эти записи проекта: %1 - + Sources this version cannot open Источники, которые эта версия не может открыть - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. В этом проекте есть источники типов, которые эта версия MapMap не может открыть: %1. Они сохраняются вместе со своими слоями, которые показывают изображение «отсутствует», и записываются как есть. - + File loaded Файл загружен - - + + File loaded: %n link(s) active Файл загружен: %n связь активна @@ -3638,7 +4097,7 @@ They are kept with their layers, which show a "missing" image, and sav - + , %n kept but not usable here , %n сохранена, но здесь не работает @@ -3647,182 +4106,198 @@ They are kept with their layers, which show a "missing" image, and sav - - + + Error saving mapping project Ошибка сохранения проекта - + Cannot write file %1: %2. Не удаётся записать файл %1: %2. - + Cannot rename temporary file to %1. Не удаётся переименовать временный файл в %1. - + File saved Файл сохранён - + Untitled Без названия - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project Проект MapMap - - - + + + &%1 %2 &%1 %2 - + Clear List Очистить список - + No Recents Projects Нет недавних проектов - + File imported Файл импортирован - + %1 added Добавлено: %1 - + + Group %1 + + + + Output %1 × %2 Выход %1 × %2 - + Output Editor (%1 × %2) Редактор выхода (%1 × %2) - + Output Resolution Разрешение выхода - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. Размер кадра выхода, обычно разрешение проектора. Окно выхода масштабирует его на весь экран выхода. - + Scale the shapes to keep them in place in the frame Масштабировать формы, чтобы они остались на своих местах в кадре - + %1 %2 × %3 %1 %2 × %3 - + + + Face %1 + + + + + Auto-Mapping + + + + The output screen %1 is disconnected: the output is hidden until it comes back. Экран выхода %1 отключён: выход скрыт, пока экран не вернётся. - + The output screen %1 is back. Экран выхода %1 снова подключён. - + %1 - %2x%3 %1 - %2x%3 - + - Primary - основной - + %1 - disconnected %1 - отключён - + Output Fills a Screen Выход на весь экран - + The output will cover this screen. Press Esc to bring MapMap back. Выход займёт весь этот экран. Нажмите Esc, чтобы вернуть MapMap. - + Cover the Screen Занять экран - + Don't ask again Больше не спрашивать - + Warning Предупреждение - + The following file is not supported: %1 Этот файл не поддерживается: %1 - + Cannot load movie Не удаётся загрузить видео - + Unable to use file %1. The original file is not found. Please locate. Не удаётся использовать файл %1. Исходный файл не найден. Укажите, где он находится. - - + + Locate file %1 Найти файл %1 - - + + %1 files (%2) Файлы %1 (%2) - + Undo history История действий @@ -3830,22 +4305,22 @@ The original file is not found. Please locate. mmp::MapperGLCanvasToolbar - + Zoom in Увеличить - + Zoom out Уменьшить - + Actual pixels (1:1): one image pixel per screen pixel Реальный размер (1:1): один пиксель изображения на пиксель экрана - + Fit to view (100%): show the whole image or output frame По размеру окна (100%): показать всё изображение или кадр выхода @@ -3861,22 +4336,22 @@ The original file is not found. Please locate. mmp::Mesh - + Columns Столбцы - + The number of columns of vertices of the mesh, its two edges included. Число столбцов вершин сетки, включая два её края. - + Rows Строки - + The number of rows of vertices of the mesh, its two edges included. Число строк вершин сетки, включая два её края. @@ -3884,7 +4359,7 @@ The original file is not found. Please locate. mmp::OutputGLWindow - + MapMap - Output MapMap - выход @@ -3928,312 +4403,312 @@ The original file is not found. Please locate. mmp::PreferenceDialog - + Preferences Настройки - + Current project: %1 × %2 Текущий проект: %1 × %2 - + Large Крупный - + Medium Средний - + Small Мелкий - + Language (requires restart) Язык (нужен перезапуск) - + Toolbar icon size (requires restart) Размер значков панели инструментов (нужен перезапуск) - + Show the welcome dialog at startup Показывать окно приветствия при запуске - + Enable Sticky vertices Включить прилипание вершин - + Sensitivity Чувствительность - + Vertices Вершины - + Only show output controls on mouse over Показывать элементы управления выхода только при наведении мыши - + Output Layers Слои выхода - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. Размер кадра выхода, обычно разрешение проектора. «Экран выхода» следует за экраном, выбранным для выхода. - + Change... Изменить... - + Default Output Resolution for New Projects Разрешение выхода для новых проектов - + Show resolution on output test cards Показывать разрешение на тестовых таблицах выхода - + Classic test card Классическая таблица - + PAL test card Таблица PAL - + NTSC test card Таблица NTSC - + Test Card Тестовая таблица - + Listen to OSC messages Принимать сообщения OSC - + Allow message with existing media source Разрешить сообщение с текущим медиа источника - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. Если выключено (по умолчанию), сообщение OSC, задающее источнику тот же файл, который он уже использует, пропускается, чтобы повторные сообщения не перезагружали — и не перезапускали — то же видео. Включите, чтобы всё равно перезагружать медиа, например чтобы запустить клип сначала по OSC. - + Accept OSC from the network (less secure) Принимать OSC из сети (менее безопасно) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. Если выключено, OSC доступен только с этого компьютера (127.0.0.1). Включайте только в доверенной сети шоу — у OSC нет аутентификации. - + Allow OSC to quit the application Разрешить OSC закрывать приложение - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. Если выключено, команда OSC /mapmap/quit пропускается, чтобы удалённый отправитель не мог закрыть приложение во время шоу. - + on port на порту - + Refresh Обновить - + Local IP Локальный IP - + OSC Setup Настройка OSC - + Disabled Отключено - + MCP port (0 to disable) Порт MCP (0 — отключить) - + MCP Setup Настройка MCP - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap принимает сообщения от всех MIDI-устройств, подключённых к этому компьютеру. Снимите флажок, чтобы игнорировать устройство. - + Devices: Устройства: - + MIDI MIDI - + MIDI is not available on this computer. MIDI недоступен на этом компьютере. - + No MIDI device found. Connect one: it appears here. MIDI-устройства не найдены. Подключите устройство — оно появится здесь. - + %1 (not connected) %1 (не подключено) - + Last message received: none yet. Turn a knob or press a pad to see it here. Последнее полученное сообщение: пока нет. Поверните ручку или нажмите пэд, чтобы увидеть его здесь. - + Last message received: %1, from %2 Последнее полученное сообщение: %1, от %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap принимает все игровые контроллеры, подключённые к этому компьютеру по кабелю или без проводов. - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: Нераспознанный контроллер можно описать в формате SDL, одной строкой на контроллер, в этом файле: - + Open Folder Открыть папку - + Controllers: Контроллеры: - + This version of MapMap was built without game controllers. Эта версия MapMap собрана без поддержки игровых контроллеров. - + Game controllers Игровые контроллеры - + Game controllers are not available on this computer. Игровые контроллеры недоступны на этом компьютере. - + No game controller found. Connect one or turn it on: it appears here. Игровые контроллеры не найдены. Подключите или включите контроллер — он появится здесь. - + Last button received: none yet. Press a button or push a stick to see it here. Последняя полученная кнопка: пока нет. Нажмите кнопку или наклоните стик, чтобы увидеть её здесь. - + Last button received: %1, from %2 Последняя полученная кнопка: %1, от %2 - + Play in loop (requires restart) Воспроизводить по кругу (нужен перезапуск) - + Custom... Своя... - + Frame rate (frames per second) Частота кадров (кадров в секунду) - + Playback Воспроизведение - + Interface Интерфейс - + Layers Слои - + Output Выход - + Controls Управление - + Advanced Дополнительно @@ -4241,7 +4716,7 @@ The original file is not found. Please locate. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - сочетания клавиш @@ -4267,12 +4742,12 @@ The original file is not found. Please locate. mmp::SourceGui - + Media Медиа - + Missing (%1) Отсутствует (%1) @@ -4280,12 +4755,12 @@ The original file is not found. Please locate. mmp::SourceItemDelegate - + Turn the effect on or off Включить или выключить эффект - + Remove the effect Удалить эффект @@ -4293,42 +4768,42 @@ The original file is not found. Please locate. mmp::Syphon - + Server UUID UUID сервера - + The system-wide identifier of the Syphon server this source receives. Системный идентификатор сервера Syphon, который принимает этот источник. - + Server name Имя сервера - + The name of the Syphon server this source receives. Имя сервера Syphon, который принимает этот источник. - + Application name Имя приложения - + The name of the application publishing the Syphon server. Имя приложения, публикующего сервер Syphon. - + Respect source alpha Учитывать альфу источника - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. Сохраняется ли прозрачность, передаваемая сервером; иначе кадры делаются непрозрачными. @@ -4336,37 +4811,37 @@ The original file is not found. Please locate. mmp::SyphonGui - + Server Сервер - + Status Состояние - + (none) (нет) - + Unknown server Неизвестный сервер - + Connected Подключено - + No server selected Сервер не выбран - + Waiting for server… Ожидание сервера… @@ -4426,7 +4901,7 @@ The original file is not found. Please locate. mmp::TextControl - + Choose a file Выбрать файл @@ -4600,12 +5075,12 @@ The original file is not found. Please locate. mmp::WelcomeDialog - + Welcome to %1 Добро пожаловать в %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4614,17 +5089,17 @@ To get started, import a media file to create a source, then add a shape to proj Чтобы начать, импортируйте медиафайл — так появится источник, — затем добавьте форму, на которую его проецировать. - + Import a media file… Импортировать медиафайл… - + Read the documentation Читать документацию - + Show this window at startup Показывать это окно при запуске diff --git a/translations/mapmap_zh_CN.ts b/translations/mapmap_zh_CN.ts index ce6bf253..1e9c4602 100644 --- a/translations/mapmap_zh_CN.ts +++ b/translations/mapmap_zh_CN.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. 无法读取文件 %1。 - + %1 does not start with an ISF header. %1 不是以 ISF 文件头开始的。 - + The ISF header of %1 is not closed. %1 的 ISF 文件头没有闭合。 - + The ISF header of %1 is not a JSON object: %2. %1 的 ISF 文件头不是 JSON 对象:%2。 - + %1: the key %2 is ignored. %1:已忽略键 %2。 - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 有 %2 个渲染通道:MapMap 只读取单通道的着色器。 - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 将其渲染通道绘制到图像中:MapMap 尚不能读取此类通道。 - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 会在帧与帧之间保留图像:MapMap 尚不能读取此类着色器。 - + %1 imports images: MapMap does not read such shaders yet. %1 会导入图像:MapMap 尚不能读取此类着色器。 - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1:输入 %2 没有有效的 NAME。 - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1:已拒绝图像输入 %2:MapMap 只给效果提供一张图像,名为 %3。 - - + + %1: two inputs are named %2. %1:有两个输入都名为 %2。 - + %1: the name %2 is reserved. %1:名称 %2 是保留名称。 - + %1: the key %2 of the input %3 is ignored. %1:已忽略输入 %3 的键 %2。 - + %1: inputs of type %2 are not read by MapMap. %1:MapMap 不读取 %2 类型的输入。 - + (none) (无) - + %1: the unit %2 of the input %3 is ignored. %1:已忽略输入 %3 的单位 %2。 - + %1: generator %2 has no valid NAME. %1:生成器 %2 没有有效的 NAME。 - + %1: the generator %2 has the name of an input. %1:生成器 %2 与某个输入同名。 - + %1: generators of type %2 are not read: %3 stays at 0. %1:不读取 %2 类型的生成器:%3 保持为 0。 - + %1: the generator %2 names an input that does not exist: %3. %1:生成器 %2 引用了不存在的输入:%3。 - + %1: the generator %2 gives its speed twice: %3 is ignored. %1:生成器 %2 两次给出速度:已忽略 %3。 - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1:动画器 %2 使用了 MapMap 不绘制的波形 %3:它保持为 0。 - + %1: the parameter %2 of the generator %3 is ignored. %1:已忽略生成器 %3 的参数 %2。 - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1:已忽略其 #version 行:MapMap 以 GLSL 1.20 编译着色器。 - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 是读取时间的效果:MapMap 尚不支持效果动画。 - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 是带有 GENERATORS 的效果:MapMap 尚不支持效果动画。 - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 是带有事件输入 %2 的效果:MapMap 尚不支持效果动画。 - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1:名称 %2 是保留名称:以 %3 开头的名称归 MapMap 使用。 @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... - + Done. 完成. @@ -360,87 +375,97 @@ 旋转并缩放形状 - + Raise layer 上移图层 - + Lower layer 下移图层 - + Raise layer to top 图层移到最上层 - + Lower layer to bottom 图层移到最下层 - + + Delete group + + + + Flip Horizontally 水平翻转 - + Flip Image Horizontally 水平翻转图像 - + Flip Vertically 垂直翻转 - + Flip Image Vertically 垂直翻转图像 - + Rotate 90° CW 顺时针旋转 90° - + Rotate Image 90° CW 图像顺时针旋转 90° - + Rotate 90° CCW 逆时针旋转 90° - + Rotate Image 90° CCW 图像逆时针旋转 90° - + Rotate 180° 旋转 180° - + Rotate Image 180° 图像旋转 180° - + Change output resolution 更改输出分辨率 - + + Move layer + + + + Add effect %1 添加效果 %1 - + Remove effect %1 移除效果 %1 @@ -460,167 +485,167 @@ 删除图层 - + Problem at creation of shape. 形状问题. - + Unable to create shape of type '%1'. 无法创建类型为“%1”的形状。 - + unknown 未知 - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. 此项目由 MapMap %1 以旧的 XML 格式保存。此版本的 MapMap(%2)只能打开 JSON 项目。 - + Parse error at offset %1: %2 在偏移量 %1 处解析出错:%2 - + The contents of this file does not look like a MapMap project. 此文件的内容不像是 MapMap 项目。 - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. 此文件由 MapMap %1 保存,此版本的 MapMap(%2)无法读取。 - + The project field '%1' must be an array. 项目字段“%1”必须是数组。 - + CC %1 CC %1 - + %1 ch %2 %1 通道 %2 - + Keyboard 键盘 - + MIDI MIDI - + Follow the control 跟随控件 - + Follow the turns 跟随旋转 - + Move right 右移 - + Move down 下移 - + Increase 增加 - + Move left 左移 - + Move up 上移 - + Decrease 减少 - + Toggle 切换 - + Turn on 开启 - + Turn off 关闭 - + Next option 下一个选项 - + Last option 最后一个选项 - + First option 第一个选项 - + Minimum or maximum 最小值或最大值 - + Set to maximum 设为最大值 - + Set to minimum 设为最小值 - + %1: %2 %1:%2 - + %1 %2 %1 %2 - + %1, x %1,x - + %1, y %1,y @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 已拒绝着色器:%1 @@ -686,1077 +711,1077 @@ Shaders - + Checker 棋盘格 - + A checkerboard of two colours; the square at the top left has the front colour. 双色棋盘格;左上角的方格为前景色。 - + Count 数量 - + The number of squares on each side. 每条边上的方格数。 - + Back Color 背景色 - + The colour of every other square. 相间方格的颜色。 - + Front Color 前景色 - + The colour of the square at the top left, and of every other square. 左上角方格及与其相间的方格的颜色。 - + Color Adjustment 颜色调整 - + Brightness 亮度 - + Added to each colour: below 0 darker, above 0 lighter. 加到每种颜色上:小于 0 变暗,大于 0 变亮。 - + Contrast 对比度 - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. 颜色与中灰的距离:0 % 为全灰,100 % 不变。 - + Saturation 饱和度 - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. 颜色的鲜艳程度:0 % 为灰度,100 % 不变。 - + Hue 色相 - + Turns the colours around the colour wheel, by this angle. 将颜色沿色轮旋转此角度。 - + Color Wheel 色轮 - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. 用同一组设置生成色轮、螺旋、同心圆环和极坐标棋盘格,可直可扭。 - + Geometry 几何 - + Segments 分段 - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. 圆周上的分段数;1 表示不分段。调色板只有两种颜色时,奇数会取下一个较小的偶数,使颜色在整圈交替。 - + Rings 圆环 - + Number of rings from the centre to the edge of the disk; 0 for none. 从圆心到圆盘边缘的圆环数;0 表示没有。 - + Twist 扭曲 - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. 将分段卷成螺旋:即从圆心到圆盘边缘所绕的圈数。负值反向卷绕。 - + Smoothness 平滑度 - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. 相邻颜色之间的插值:0 时边界清晰,100% 时连续过渡。 - + Color 颜色 - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette 调色板 - + The colours of the pattern, in the order of their cycle. 图案的颜色,按循环顺序排列。 - + Spectrum 光谱 - + Monochromatic 单色 - + Grayscale 灰度 - + Black and White 黑白 - + Complementary 互补色 - + Analogous 类似色 - + Triadic 三色组 - + Hue Shift 色相偏移 - + Turns the hue of every colour; greys stay as they are. 旋转每种颜色的色相;灰色保持不变。 - + Radial Color 径向颜色 - + Radial Saturation 径向饱和度 - + Positive: grey centre; negative: grey circumference. The lightness is kept. 正值:中心为灰色;负值:圆周为灰色。明度保持不变。 - + Radial Lightness 径向明度 - + Positive: white centre; negative: black centre. 正值:中心为白色;负值:中心为黑色。 - + Radial Falloff 径向衰减 - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. 两种径向渐变的曲线:小于 1 时较宽,等于 1 时线性,大于 1 时集中。 - + Reverse Radial Gradient 反转径向渐变 - + Swaps the centre and the circumference in both radial gradients. 在两种径向渐变中交换中心与圆周。 - + Animation 动画 - + Speed 速度 - + How fast the pattern turns; 0 keeps it still. 图案旋转的速度;0 表示静止。 - + Reverse 反向 - + Turns the pattern the other way. 使图案反向旋转。 - + Flow 流动 - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. 圆环离开圆心的速度,单位为每分钟半径数,与圆环数量无关:为 6 时,一个圆环用 10 秒从圆心移到边缘;0 表示静止。 - + Flow Inward 向内流动 - + Moves the rings towards the centre. 使圆环向圆心移动。 - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid 网格线 - + Lines of a colour on a background, along the borders and between columns and rows. 背景上的单色线条,沿边框并位于各列与各行之间。 - + Columns 列数 - + The number of columns between the lines. 线条之间的列数。 - + Rows 行数 - + The number of rows between the lines. 线条之间的行数。 - + Thickness 粗细 - + The thickness of the lines. 线条的粗细。 - + The colour between the lines. 线条之间的颜色。 - + Line Color 线条颜色 - + The colour of the lines. 线条的颜色。 - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,296 @@ mmp::AboutDialog - + About %1 关于 MapMap %1 - + MapMap is a free/open source video mapping software. MapMap 是一个免费软体. - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. 有关本软件的更多信息,请访问<a href="%1">%2 网站</a>。 - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 由 Art Plus Code 开发和赞助。需要定制的视频映射装置、新功能、系统集成或培训? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 由 Art Plus Code 开发和赞助。需要定制的视频映射装置、新功能、系统集成或培训? + + + + Hire us + 聘请我们 + + + + Enjoying %1? + 喜欢 %1 吗? + + + + Support the project + 支持本项目 + + + + About + 关于 MapMap + + + + Changelog + 更新日志 + + + + Libraries + 文库 + + + + Contributors + 合作者 + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap 包含用于接收 MIDI 设备的 RtMidi,其许可证如下: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap 使用用于接收游戏控制器的 SDL,其许可证如下: + + + + License + 许可 + + + + OSC Commands + OSC 命令 + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + 开始键 + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - 聘请我们 + + Scanning: do not move. + - - Enjoying %1? - 喜欢 %1 吗? + + Scan cancelled. + - - Support the project - 支持本项目 + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + %n outline(s) to place by hand + + + - - About - 关于 MapMap + + + Update Shapes + - - Changelog - 更新日志 + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + %n new face(s) will be added. + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + - - Libraries - 文库 + + Update and Remove Them + - - Contributors - 合作者 + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap 包含用于接收 MIDI 设备的 RtMidi,其许可证如下: + + Update + + + + + %n layer(s) moved + + + + + + + %n shape(s) created + + + + + + + %n layer(s) removed + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap 使用用于接收游戏控制器的 SDL,其许可证如下: + + %1. Edit > Undo takes it all back at once. + - - License - 许可 + + Cancel + - - OSC Commands - OSC 命令 + + Close + @@ -1871,15 +2108,23 @@ 显示上方的编辑器 + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1(缺失) - + (none) (无) @@ -1887,7 +2132,7 @@ mmp::ColorControl - + Show the colour picker 显示取色器 @@ -1991,27 +2236,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap 消息日志 - MapMap - + &Close &关闭 - + Close the console 关闭控制台 - + &File &档案 - + MMM dd yy HH:mm MMM dd yy HH:mm @@ -2128,21 +2373,31 @@ mmp::Effect - + Enabled 启用 - + Whether this effect changes the image; off, the image passes unchanged. 此效果是否改变图像;关闭时,图像原样通过。 + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect 效果 @@ -2150,42 +2405,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. 在项目中标识此元素的编号。 - + Name 名称 - + The name shown in the lists and used to find this element by OSC. 显示在列表中、并供 OSC 查找此元素的名称。 - + Locked 锁定 - + Whether this element is protected from changes made with the mouse. 此元素是否受保护,不会被鼠标操作更改。 - + Opacity 不透明度 - + How opaque this element is, from fully transparent to fully opaque. 此元素的不透明程度,从完全透明到完全不透明。 @@ -2237,6 +2492,44 @@ %1 生成器,由 GPU 绘制 + + mmp::Group + + + Solo + 独显 + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + 可见 + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2561,14 @@ mmp::Inspector - Type in project files: %1 - 项目文件中的类型:%1 + 项目文件中的类型:%1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2576,47 @@ mmp::InspectorRow - + %1: %2 %1:%2 - + %1, %2 %1,%2 - + Learn Keys to Move It 学习移动它的按键 - + Learn MIDI Controls to Move It 学习移动它的 MIDI 控件 - + Remove the Links That Move It 移除移动它的关联 - + Learn a Key 学习按键 - + Remove the Key 移除按键 - + Learn a MIDI Control 学习 MIDI 控件 - + Remove the MIDI Control 移除 MIDI 控件 @@ -2332,52 +2624,66 @@ mmp::Layer - + Solo 独显 - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. 此图层是否独显:只要有图层处于独显状态,就只显示独显的图层。 - + Visible 可见 - + Whether this layer is shown. 是否显示此图层。 - + Depth 深度 - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - 此图层在图层堆叠中的位置。 + 此图层在图层堆叠中的位置。 - + Has input shape 使用输入形状 - + Whether this layer picks the region of its source it shows with an input shape. 此图层是否用输入形状选取其来源中要显示的区域。 - + Source 来源 - + The source shown in this layer. 此图层显示的来源。 @@ -2385,42 +2691,42 @@ mmp::LayerGui - + Surface 表面 - + Output shape 输出形状 - + Input shape 输入形状 - + Media 媒体 - + Mesh 网格 - + Triangle 三角形 - + Ellipse 椭圆 - + Quad 四边形 @@ -2433,46 +2739,71 @@ mmp::LayerItemDelegate - - + + Solo layer 独显图层 - - + + Lock layer 锁定图层 - - + + Duplicate layer 复制图层 - - + + Delete layer 删除图层 - + Turn the effect on or off 开启或关闭效果 - + Remove the effect 移除效果 - + Available once a layer can have several effects 待图层支持多个效果后可用 - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer 显示或隐藏图层 @@ -2548,27 +2879,27 @@ mmp::MShape - + Locked 锁定 - + Whether the vertices of this shape are protected from changes made with the mouse. 此形状的顶点是否受保护,不会被鼠标操作更改。 - + Points 点 - + Point 点 - + The position of a control point of the shape, in pixels. 形状控制点的位置,以像素为单位。 @@ -2576,1247 +2907,1373 @@ mmp::MainWindow - - + + Open project 开放 - - - - + + + + MapMap files (*.%1) MapMap 档案 (* %1) - - + + Save project 储存档案 - - + + Import media source file 汇入档案 - - + + Media files (%1 %2);;All files (*) 媒体文件 (%1 %2);;All files (*) - + Camera device 相机设备 - + Select camera 选择相机 - - + + No camera available 没有可用的相机 - - + + You can not use this feature! No camera available in your system 无法使用此功能! 系统中没有可用的相机 - + Syphon source added 已添加 Syphon 来源 - - - + + + MapMap MapMap - + &New &新档案 - + Create a new project 开新档案 - + &Open… &开放… - + Open an existing project 开现有的方案 - + &Save &储存档案 - + Save the project 储存档案 - + Save &As… &储存至… - + Save the project as… 储存至… - + No Recents Videos 没有最近的影片 - + &Import Media File… &汇入媒体文件… - + Import a video or image file… 导入影片或图像… - + Open &Camera Device… 打开 &相机设备… - + Choose your camera device… 选择相机设备… - + E&xit 退&出 - + Exit the application 退出应用程序 - + &Undo 复原 - + &Redo 重做 - + &About MapMap &关于 MapMap - + Show the application's About box 显示 '关于' 框 - + &Preferences… &偏好… - + Configure preferences… 配置偏好… - - + + Play 播放 - - + + Pause 暂停 - + &Display Controls &显示控制 - + Display canvas controls 显示画布控制 - + &Sticky Vertices &磁性的顶点 - + Enable sticky vertices 启用磁性的顶点 - + Show &Test Signal 显示&测试信号 - + Show Test signal 显示测试信号 - + Display &Undo History 显示&撤消历史 - + Open Conso&le 打开&控制台 - + Display &Zoom Toolbar 显示&缩放工具栏 - + &Menu Bar &选单列 - + Main Layout 基本设计 - + Switch to the Main layout. 切换到基本设计. - + Remove this source and all its associated layers? 移除此来源及其所有相关图层? - + Input Editor 输入编辑器 - + Output Editor 输出编辑器 - + Library 媒体库 - + Layers 图层 - + Cue %1 提示点 %1 - + Cue %1 — %2 提示点 %1 — %2 - + %1 set at %2 %1 设于 %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. 被 %1 个图层使用:更改它会同时更改所有这些图层。 - + Replace effect 替换效果 - - + + Replace Effect 替换效果 - - - + + + Add Effect 添加效果 - + Save over a project of a later version? 要覆盖更新版本的项目吗? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 由更新版本的 MapMap 以格式 %2 保存。此版本会保留它不认识的内容,但更新的版本可能无法按原样打开该项目。 仍要覆盖保存吗? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. 正在为 %1 学习 MIDI:按一个打击垫用于“%2”,或转动旋钮以双向移动。Escape 键停止,Delete 键移除该点的 MIDI 控件。 - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. 正在为 %1 学习按键:按一个键用于“%2”。Escape 键停止,Delete 键移除该点的按键。 - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. 正在学习 MIDI:为 %1 拨动一个控件或按一个打击垫。Delete 键移除其 MIDI 控件。 - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. 正在学习 MIDI:点击一个蓝框标出的控件,然后拨动 MIDI 设备上的一个控件。已学习的 MIDI 控件仍然有效。 - + Learning keys: press a key for %1. Delete removes its key. 正在学习按键:为 %1 按一个键。Delete 键移除其按键。 - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). 正在学习按键:点击一个蓝框标出的控件,然后按一个键。已学习的按键在停止学习(Escape)之前不起作用。 - - + + %1: %2 %1:%2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. 为 %1 拨动一个 MIDI 控件。Delete 键移除其 MIDI 控件,Escape 键停止学习。 - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. MIDI 学习:点击一个蓝框标出的控件,然后拨动 MIDI 设备上的一个控件。Escape 键停止学习。 - + Press a key for %1. Delete removes its key, Escape stops learning. 为 %1 按一个键。Delete 键移除其按键,Escape 键停止学习。 - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. 键盘学习:点击一个蓝框标出的控件,然后按一个键。Escape 键停止学习。 - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. 正在学习 MIDI:请拨动 MIDI 设备上的控件,而不是按键。学习按键请用“编辑 > 键盘学习”。 - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 控制 %2。按 Escape 键停止学习后,%1 即生效。 - + Click a control outlined in blue first, then press %1. 请先点击一个蓝框标出的控件,再按 %1。 - + %1 is already the shortcut of %2: choose another key. %1 已是“%2”的快捷键:请选择其他按键。 - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2:%3 - + MIDI control removed from %1 已从 %1 移除 MIDI 控件 - + Key removed from %1 已从 %1 移除按键 - + Click a control outlined in blue first, then move %1. 请先点击一个蓝框标出的控件,再拨动 %1。 - + Input Editor: %1% 输入编辑器:%1% - + Output Editor: %1% 输出编辑器:%1% - + Cues 提示点 - + Stop Learning 停止学习 - + Stop learning (Escape) 停止学习(Escape) - - + + Add &Generator 添加生成器(&G) - + Add a generator 添加生成器 - + Add &Syphon Source… 添加 &Syphon 来源… - + Receive live video from another application via Syphon… 通过 Syphon 接收其他应用程序的实时视频… - + Duplicate Layer 复制图层 - + Duplicate layer item 复制图层 - + Delete Layer 删除图层 - + Delete layer item 删除图层 - + Remove Effect 移除效果 - + Remove the selected effect 移除所选效果 - + Rename Layer 重命名图层 - + Rename layer item 重命名图层 - + Lock Layer 锁定图层 - + Lock layer item 锁定图层 - + Hide Layer 隐藏图层 - + Hide layer item 隐藏图层 - + Solo Layer 独显图层 - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. 顺时针旋转 90°。在输入视图中,旋转图层内的图像。 - + Rotate 90° CCW 逆时针旋转 90° - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. 逆时针旋转 90°。在输入视图中,旋转图层内的图像。 - + Rotate 180°. In the input view, rotates the image inside the layer. 旋转 180°。在输入视图中,旋转图层内的图像。 - + Flip Horizontally 水平翻转 - + Flip horizontally. In the input view, flips the image inside the layer. 水平翻转。在输入视图中,翻转图层内的图像。 - + Flip Vertically 垂直翻转 - + Flip vertically. In the input view, flips the image inside the layer. 垂直翻转。在输入视图中,翻转图层内的图像。 - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source 删除来源 - + Delete source item 删除来源 - + Rename Source 重命名来源 - + Rename source item 重命名来源 - + Import New Media 导入新媒体 - + Import new media file if not exists on the list 导入列表中没有的新媒体文件 - + Add &Mesh Layer 添加网格图层(&M) - + Add mesh layer 添加网格图层 - + Add &Triangle Layer 添加三角形图层(&T) - + Add triangle layer 添加三角形图层 - + Add &Ellipse Layer 添加椭圆图层(&E) - + Add ellipse layer 添加椭圆图层 - - + + Restart 重新开始 - + &Hide Output 隐藏输出(&H) - + Output in a &Window 在窗口中输出(&W) - + Output &Fills a Screen 输出占满屏幕(&F) - + Output 输出 - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. 输出占满屏幕(%1)。箭头用于选择输出的显示方式和位置。 - + &Display Controls of Layers of a Source 显示同一来源的图层控件(&D) - + Display all canvas controls related to current source 显示与当前来源相关的所有画布控件 - + &Keyboard Learn 键盘学习(&K) - + Link keys of the keyboard to settings: click a control, then press a key 将键盘按键关联到设置项:点击一个控件,然后按一个键 - + &MIDI Learn MIDI 学习(&M) - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control 将 MIDI 设备的控件和音符关联到设置项:点击一个控件,然后拨动一个 MIDI 控件 - + Learned K&eys Active 已学按键生效(&E) - + Turn the learned keys off while typing for something else, and on again 在为其他用途打字时关闭已学习的按键,之后再重新开启 - + &Links 关联(&L) - + List the keys linked to settings 列出关联到设置项的按键 - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Input editor Layout 输入编辑器布局 - + Switch to the Input editor Layout. 切换到输入编辑器布局。 - + Output Editor Layout 输出编辑器布局 - + Switch to the Output Editors Layout. 切换到输出编辑器布局。 - + Editor 编辑器 - + Show the editor and hide the bottom section 显示编辑器并隐藏底部区域 - + Bottom Section 底部区域 - + Show the bottom section, such as the cues, and hide the editor 显示底部区域(如提示点)并隐藏编辑器 - + Editor and Bottom Section 编辑器和底部区域 - + Show the editor, and the bottom section under it 显示编辑器,并在其下方显示底部区域 - - + + Zoom In 放大 - - + + Zoom Out 缩小 - + &Output 输出(&O) - + + &Tools + + + + Cannot read %1: %2 无法读取 %1: %2 - + Project of a later version 更新版本的项目 - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. 此项目由更新版本的 MapMap 以格式 %1 保存;此版本写入的格式为 %2。此版本不认识的内容会被保留,但可能无法按更新版本的预期工作。 - + Project opened with missing entries 项目已打开,但缺少部分条目 - + MapMap skipped these project entries: %1 MapMap 跳过了以下项目条目: %1 - + Sources this version cannot open 此版本无法打开的来源 - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. 此项目包含此版本的 MapMap 无法打开的来源类型:%1。 它们会连同其图层一起保留(图层显示“缺失”图像),并按原样保存。 - + + Group %1 + + + + + + Face %1 + + + + + Auto-Mapping + + + + %1 - disconnected %1 - 已断开 - + Output Fills a Screen 输出占满屏幕 - + The output will cover this screen. Press Esc to bring MapMap back. 输出将覆盖此屏幕。按 Esc 键返回 MapMap。 - + Cover the Screen 覆盖屏幕 - + Don't ask again 不再询问 - + Report an issue 回报问题 - + Solo layer item 独显图层 - + Rotate 90° CW 顺时针旋转 90° - + Rotate 180° 旋转 180° - - + + Raise 上移 - - + + Lower 下移 - + Raise to Top 移到最上层 - + Raise to top 移到最上层 - + Lower to Bottom 移到最下层 - + Lower to bottom 移到最下层 - + &Publish Syphon Output 发布 Syphon 输出(&P) - + Publish the output composition as a Syphon server other apps can receive 将输出画面发布为 Syphon 服务器,供其他应用程序接收 - + Actual Pixels (1:1) 实际像素(1:1) - + Show one image pixel per screen pixel 每个屏幕像素显示一个图像像素 - + Fit To View (100%) 适合视图(100%) - + Show the whole image or output frame 显示整幅图像或整个输出画面 - + Output &Resolution... 输出分辨率(&R)... - + Choose the size of the output frame 选择输出画面的尺寸 - + Professional services && custom development… 专业服务与定制开发… - + Hire Art Plus Code for video mapping installations, custom features, integration and training 聘请 Art Plus Code 提供视频映射装置、定制功能、系统集成和培训 - + Support the project (donate)… 支持本项目(捐款)… - + Help fund MapMap's ongoing development 帮助资助 MapMap 的持续开发 - + Documentation 文件 - + Submit feedback via email 电子邮件反馈 - + &Keyboard shortcuts 键盘快捷键(&K) - + Welcome to %1… 欢迎使用 %1… - + &File &档案 - + Open Recents Projects 开最近的方案 - + Open Recents Videos 开最近的影片 - + &Edit &编辑 - + &View &视图 - + &Window &视窗 - + &Help &协助 - + Change Layer Source 更改图层来源 - + &Toolbar &工具列 - + The learned keys act again. 已学习的按键重新生效。 - + The learned keys are off: they do nothing until turned on again. 已学习的按键已关闭:重新开启前它们不起作用。 - + Learned keys: on 已学按键:开 - + Learned keys: off 已学按键:关 - + Edit > Learned Keys Active (%1) turns them on and off. 用“编辑 > 已学按键生效”(%1)开启或关闭它们。 - + The document has been modified. Do you want to save your changes? 文档已被修改。 是否保存更改? - - + + Error reading mapping project file 读取文件错误 - - + + Cannot read file %1: %2. 无法读取文件 %1: %2。 - + File loaded 文件加载 - - + + File loaded: %n link(s) active 文件已加载:%n 个关联生效 - + , %n kept but not usable here ,%n 个已保留但在此无法使用 - - + + Error saving mapping project 无法保存 - + Cannot write file %1: %2. 无法写入文件 %1: %2。 - + Cannot rename temporary file to %1. 无法将临时文件重命名为 %1。 - + File saved 文件已保存 - + Untitled 无名 - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap 方案 - - - + + + &%1 %2 &%1 %2 - + Clear List 清除的列表 - + No Recents Projects 没有最近的方案 - + %1 added 已添加 %1 - + Output %1 × %2 输出 %1 × %2 - + Output Editor (%1 × %2) 输出编辑器(%1 × %2) - + Output Resolution 输出分辨率 - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. 输出画面的尺寸,通常为投影机的分辨率。输出窗口会缩放画面以填满输出屏幕。 - + Scale the shapes to keep them in place in the frame 缩放形状,使其在画面中保持原位 - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. 输出屏幕 %1 已断开:在其重新连接之前隐藏输出。 - + The output screen %1 is back. 输出屏幕 %1 已重新连接。 - + %1 - %2x%3 %1 - %2x%3 - + - Primary - Primary - + File imported 文件汇入 - + Warning 警告 - + The following file is not supported: %1 无法打开文件: %1 - + Cannot load movie 无法加载视频 - + Unable to use file %1. The original file is not found. Please locate. 无法使用文件 %1。 找不到原始文件,请指定其位置。 - - + + Locate file %1 定位文件 %1 - - + + %1 files (%2) %1 档案 (%2) - + Undo history 撤消历史 @@ -3824,22 +4281,22 @@ The original file is not found. Please locate. mmp::MapperGLCanvasToolbar - + Zoom in 放大 - + Zoom out 缩小 - + Actual pixels (1:1): one image pixel per screen pixel 实际像素(1:1):每个屏幕像素显示一个图像像素 - + Fit to view (100%): show the whole image or output frame 适合视图(100%):显示整幅图像或整个输出画面 @@ -3855,22 +4312,22 @@ The original file is not found. Please locate. mmp::Mesh - + Columns 列数 - + The number of columns of vertices of the mesh, its two edges included. 网格顶点的列数,包括两侧边缘。 - + Rows 行数 - + The number of rows of vertices of the mesh, its two edges included. 网格顶点的行数,包括上下边缘。 @@ -3878,7 +4335,7 @@ The original file is not found. Please locate. mmp::OutputGLWindow - + MapMap - Output MapMap - 输出 @@ -3922,312 +4379,312 @@ The original file is not found. Please locate. mmp::PreferenceDialog - + Preferences 偏好 - + Current project: %1 × %2 当前项目:%1 × %2 - + Large 大 - + Medium 中 - + Small 小 - + Language (requires restart) 语言 (必须重新启动) - + Toolbar icon size (requires restart) 工具栏尺寸 (必须重新启动) - + Show the welcome dialog at startup 启动时显示欢迎窗口 - + Enable Sticky vertices 启用磁性的顶点 - + Sensitivity 灵敏度 - + Vertices 顶点 - + Only show output controls on mouse over 仅在鼠标悬停时显示输出控件 - + Output Layers 输出图层 - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. 输出画面的尺寸,通常为投影机的分辨率。“输出屏幕”会跟随为输出选择的屏幕。 - + Change... 更改... - + Default Output Resolution for New Projects 新项目的默认输出分辨率 - + Show resolution on output test cards 在输出测试图上显示分辨率 - + Classic test card Classic test card - + PAL test card PAL test card - + NTSC test card NTSC test card - + Test Card 测试图 - + Listen to OSC messages 听OSC的消息 - + Allow message with existing media source 允许使用已有媒体来源的消息 - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. 关闭时(默认),如果 OSC 消息为来源设置的文件正是它已在使用的文件,则忽略该消息,以免重复的消息重新加载并重新播放同一视频。开启后仍会重新加载媒体,例如通过 OSC 从头播放片段。 - + Accept OSC from the network (less secure) 接受来自网络的 OSC(安全性较低) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. 关闭时,只能从本机(127.0.0.1)访问 OSC。请仅在可信的演出网络中开启:OSC 没有身份验证。 - + Allow OSC to quit the application 允许 OSC 退出应用程序 - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. 关闭时,忽略 /mapmap/quit OSC 命令,使远程发送者无法在演出期间关闭应用程序。 - + on port on port - + Refresh 刷新 - + Local IP 本地IP - + OSC Setup OSC 体系 - + Disabled 已禁用 - + MCP port (0 to disable) MCP 端口(0 表示禁用) - + MCP Setup MCP 设置 - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap 会监听连接到此计算机的所有 MIDI 设备。取消勾选某个设备即可忽略它。 - + Devices: 设备: - + MIDI MIDI - + MIDI is not available on this computer. 此计算机上无法使用 MIDI。 - + No MIDI device found. Connect one: it appears here. 未找到 MIDI 设备。连接设备后,它会显示在这里。 - + %1 (not connected) %1(未连接) - + Last message received: none yet. Turn a knob or press a pad to see it here. 最近收到的消息:暂无。转动旋钮或按下打击垫即可在此查看。 - + Last message received: %1, from %2 最近收到的消息:%1,来自 %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap 会监听通过有线或无线连接到此计算机的所有游戏控制器。 - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: 无法识别的控制器可以按 SDL 格式在以下文件中描述,每个控制器一行: - + Open Folder 打开文件夹 - + Controllers: 控制器: - + This version of MapMap was built without game controllers. 此版本的 MapMap 在构建时未包含游戏控制器支持。 - + Game controllers 游戏控制器 - + Game controllers are not available on this computer. 此计算机上无法使用游戏控制器。 - + No game controller found. Connect one or turn it on: it appears here. 未找到游戏控制器。连接或打开控制器后,它会显示在这里。 - + Last button received: none yet. Press a button or push a stick to see it here. 最近收到的按键:暂无。按下按钮或推动摇杆即可在此查看。 - + Last button received: %1, from %2 最近收到的按键:%1,来自 %2 - + Play in loop (requires restart) 循环播放(需要重新启动) - + Custom... 自定义... - + Frame rate (frames per second) 帧率(每秒帧数) - + Playback 播放 - + Interface 介面 - + Layers 图层 - + Output 产出 - + Controls 控制 - + Advanced 高级设置 @@ -4235,7 +4692,7 @@ The original file is not found. Please locate. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - 键盘快捷键 @@ -4261,12 +4718,12 @@ The original file is not found. Please locate. mmp::SourceGui - + Media 媒体 - + Missing (%1) 缺失(%1) @@ -4274,12 +4731,12 @@ The original file is not found. Please locate. mmp::SourceItemDelegate - + Turn the effect on or off 开启或关闭效果 - + Remove the effect 移除效果 @@ -4287,42 +4744,42 @@ The original file is not found. Please locate. mmp::Syphon - + Server UUID 服务器 UUID - + The system-wide identifier of the Syphon server this source receives. 此来源所接收的 Syphon 服务器的系统级标识符。 - + Server name 服务器名称 - + The name of the Syphon server this source receives. 此来源所接收的 Syphon 服务器的名称。 - + Application name 应用程序名称 - + The name of the application publishing the Syphon server. 发布该 Syphon 服务器的应用程序名称。 - + Respect source alpha 保留来源透明度 - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. 是否保留服务器发送的透明度;否则画面将变为不透明。 @@ -4330,37 +4787,37 @@ The original file is not found. Please locate. mmp::SyphonGui - + Server 服务器 - + Status 状态 - + (none) (无) - + Unknown server 未知服务器 - + Connected 已连接 - + No server selected 未选择服务器 - + Waiting for server… 正在等待服务器… @@ -4418,7 +4875,7 @@ The original file is not found. Please locate. mmp::TextControl - + Choose a file 选择文件 @@ -4592,12 +5049,12 @@ The original file is not found. Please locate. mmp::WelcomeDialog - + Welcome to %1 欢迎使用 %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4606,17 +5063,17 @@ To get started, import a media file to create a source, then add a shape to proj 首先导入媒体文件以创建来源,然后添加一个形状,将其投射到该形状上。 - + Import a media file… 导入媒体文件… - + Read the documentation 阅读文档 - + Show this window at startup 启动时显示此窗口 diff --git a/translations/mapmap_zh_TW.ts b/translations/mapmap_zh_TW.ts index f1320779..7ba9a8b0 100644 --- a/translations/mapmap_zh_TW.ts +++ b/translations/mapmap_zh_TW.ts @@ -157,148 +157,163 @@ IsfShader - + The file %1 cannot be read. 無法讀取檔案 %1。 - + %1 does not start with an ISF header. %1 的開頭不是 ISF 標頭。 - + The ISF header of %1 is not closed. %1 的 ISF 標頭沒有結束。 - + The ISF header of %1 is not a JSON object: %2. %1 的 ISF 標頭不是 JSON 物件:%2。 - + %1: the key %2 is ignored. %1:忽略鍵 %2。 - + %1 has %2 passes: MapMap reads shaders of one pass only. %1 有 %2 個階段:MapMap 只讀取單一階段的著色器。 - + %1 draws its pass into an image: MapMap does not read such passes yet. %1 將其階段繪製到影像中:MapMap 尚不支援這種階段。 - + %1 keeps images from one frame to the next: MapMap does not read such shaders yet. %1 會在影格之間保留影像:MapMap 尚不支援這種著色器。 - + %1 imports images: MapMap does not read such shaders yet. %1 會匯入影像:MapMap 尚不支援這種著色器。 - + + %1: GROUPS is not a list: it is ignored. + + + + + %1: the key %2 of group %3 is ignored. + + + + + %1: group %2 of GROUPS names no group of the inputs: it is ignored. + + + + %1: input %2 has no valid NAME. %1:輸入 %2 沒有有效的 NAME。 - + %1: the image input %2 is refused: MapMap gives an effect one image, named %3. %1:拒絕影像輸入 %2:MapMap 只給效果一個影像,名為 %3。 - - + + %1: two inputs are named %2. %1:有兩個輸入都名為 %2。 - + %1: the name %2 is reserved. %1:名稱 %2 為保留名稱。 - + %1: the key %2 of the input %3 is ignored. %1:忽略輸入 %3 的鍵 %2。 - + %1: inputs of type %2 are not read by MapMap. %1:MapMap 不讀取類型為 %2 的輸入。 - + (none) (無) - + %1: the unit %2 of the input %3 is ignored. %1:忽略輸入 %3 的單位 %2。 - + %1: generator %2 has no valid NAME. %1:產生器 %2 沒有有效的 NAME。 - + %1: the generator %2 has the name of an input. %1:產生器 %2 與某個輸入同名。 - + %1: generators of type %2 are not read: %3 stays at 0. %1:不讀取類型為 %2 的產生器:%3 維持為 0。 - + %1: the generator %2 names an input that does not exist: %3. %1:產生器 %2 指向不存在的輸入:%3。 - + %1: the generator %2 gives its speed twice: %3 is ignored. %1:產生器 %2 指定了兩次速度:忽略 %3。 - + %1: the animator %2 has a shape MapMap does not draw, %3: it stays at 0. %1:動畫器 %2 的波形 %3 是 MapMap 無法繪製的:維持為 0。 - + %1: the parameter %2 of the generator %3 is ignored. %1:忽略產生器 %3 的參數 %2。 - + %1: its #version line is ignored: MapMap compiles shaders in GLSL 1.20. %1:忽略其 #version 行:MapMap 以 GLSL 1.20 編譯著色器。 - + %1 is an effect that reads the time: MapMap does not animate effects yet. %1 是會讀取時間的效果:MapMap 尚不支援效果動畫。 - + %1 is an effect with GENERATORS: MapMap does not animate effects yet. %1 是含有 GENERATORS 的效果:MapMap 尚不支援效果動畫。 - + %1 is an effect with the event input %2: MapMap does not animate effects yet. %1 是含有事件輸入 %2 的效果:MapMap 尚不支援效果動畫。 - + %1: the name %2 is reserved: names starting with %3 are MapMap's. %1:名稱 %2 為保留名稱:以 %3 開頭的名稱屬於 MapMap。 @@ -306,7 +321,7 @@ QGuiApplication - + QT_LAYOUT_DIRECTION Translate this string to the string 'LTR' in left-to-right languages or to 'RTL' in right-to-left languages (such as Hebrew and Arabic) to get proper widget layout. LTR @@ -315,12 +330,12 @@ QObject - + Initiating program... 正在啟動程式... - + Done. 完成。 @@ -360,87 +375,97 @@ 旋轉並縮放形狀 - + Raise layer 上移圖層 - + Lower layer 下移圖層 - + Raise layer to top 圖層移到最上層 - + Lower layer to bottom 圖層移到最下層 - + + Delete group + + + + Flip Horizontally 水平翻轉 - + Flip Image Horizontally 水平翻轉影像 - + Flip Vertically 垂直翻轉 - + Flip Image Vertically 垂直翻轉影像 - + Rotate 90° CW 順時針旋轉 90° - + Rotate Image 90° CW 影像順時針旋轉 90° - + Rotate 90° CCW 逆時針旋轉 90° - + Rotate Image 90° CCW 影像逆時針旋轉 90° - + Rotate 180° 旋轉 180° - + Rotate Image 180° 影像旋轉 180° - + Change output resolution 變更輸出解析度 - + + Move layer + + + + Add effect %1 新增效果 %1 - + Remove effect %1 移除效果 %1 @@ -460,167 +485,167 @@ 刪除圖層 - + Problem at creation of shape. 建立形狀時發生問題。 - + Unable to create shape of type '%1'. 無法建立類型為「%1」的形狀。 - + unknown 未知 - + This project was saved in the old XML format by MapMap %1. This version of MapMap (%2) only opens JSON projects. 此專案由 MapMap %1 以舊的 XML 格式儲存。此版本的 MapMap(%2)只能開啟 JSON 專案。 - + Parse error at offset %1: %2 位移 %1 處剖析錯誤:%2 - + The contents of this file does not look like a MapMap project. 此檔案的內容不像是 MapMap 專案。 - + The version of MapMap %1 used to save this file is not readable by this MapMap version %2. 此檔案由 MapMap %1 儲存,此版本的 MapMap(%2)無法讀取。 - + The project field '%1' must be an array. 專案欄位「%1」必須是陣列。 - + CC %1 CC %1 - + %1 ch %2 %1 ch %2 - + Keyboard 鍵盤 - + MIDI MIDI - + Follow the control 跟隨控制器 - + Follow the turns 跟隨轉動 - + Move right 向右移 - + Move down 向下移 - + Increase 增加 - + Move left 向左移 - + Move up 向上移 - + Decrease 減少 - + Toggle 切換 - + Turn on 開啟 - + Turn off 關閉 - + Next option 下一個選項 - + Last option 最後一個選項 - + First option 第一個選項 - + Minimum or maximum 最小值或最大值 - + Set to maximum 設為最大值 - + Set to minimum 設為最小值 - + %1: %2 %1:%2 - + %1 %2 %1 %2 - + %1, x %1,x - + %1, y %1,y @@ -678,7 +703,7 @@ ShaderLibrary - + Shader refused: %1 拒絕著色器:%1 @@ -686,1077 +711,1077 @@ Shaders - + Checker 棋盤格 - + A checkerboard of two colours; the square at the top left has the front colour. 兩種顏色的棋盤格;左上角的方格為前景色。 - + Count 數量 - + The number of squares on each side. 每邊的方格數。 - + Back Color 背景色 - + The colour of every other square. 每隔一格的方格顏色。 - + Front Color 前景色 - + The colour of the square at the top left, and of every other square. 左上角方格以及每隔一格的方格顏色。 - + Color Adjustment 色彩調整 - + Brightness 亮度 - + Added to each colour: below 0 darker, above 0 lighter. 加到每個顏色上:低於 0 較暗,高於 0 較亮。 - + Contrast 對比 - + How far the colours are from middle grey: 0 % is all grey, 100 % unchanged. 顏色與中灰的差距:0 % 為全灰,100 % 不變。 - + Saturation 飽和度 - + How vivid the colours are: 0 % is shades of grey, 100 % unchanged. 顏色的鮮豔程度:0 % 為灰階,100 % 不變。 - + Hue 色相 - + Turns the colours around the colour wheel, by this angle. 依此角度沿色輪轉動顏色。 - + Color Wheel 色輪 - + Colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, from one set of settings. 以同一組設定產生色輪、螺旋、同心圓環和極座標棋盤格,可為直線或扭轉。 - + Geometry 幾何 - + Segments 扇區 - + Number of parts around the circle; 1 keeps it whole. With a palette of two colours, an odd number gives the even number below, so that the colours alternate all around. 圓周上的分區數;1 表示保持完整。調色盤為兩種顏色時,奇數會改用小一號的偶數,讓顏色在整圈交替。 - + Rings 圓環 - + Number of rings from the centre to the edge of the disk; 0 for none. 從圓心到圓盤邊緣的圓環數;0 表示沒有圓環。 - + Twist 扭轉 - + Winds the segments into spirals: the turns they make from the centre to the edge of the disk. Negative values wind the other way. 將扇區捲成螺旋:即從圓心到圓盤邊緣所轉的圈數。負值會往另一個方向捲。 - + Smoothness 平滑度 - + Interpolation between neighbouring colours: sharp at 0, continuous at 100%. 相鄰顏色之間的內插:0 時銳利,100% 時連續。 - + Color 顏色 - + Changes the brightness, the contrast, the saturation and the hue of the image, its levels and the gain of each colour. - + Levels - + Black Point - + Colours this dark or darker become black. - + White Point - + Colours this light or lighter become white. - + Gamma - + Above 1 the middle tones are lighter, below 1 darker; black and white stay. - + Output Black - + What black becomes: above 0 % it is lifted to a grey. - + Output White - + What white becomes: below 100 % it is dimmed to a grey. - + Channels - + Red - + Multiplies the red of each pixel: 0 % removes it, 100 % keeps it. - + Green - + Multiplies the green of each pixel: 0 % removes it, 100 % keeps it. - + Blue - + Multiplies the blue of each pixel: 0 % removes it, 100 % keeps it. - + Palette 調色盤 - + The colours of the pattern, in the order of their cycle. 圖樣的顏色,依其循環順序排列。 - + Spectrum 光譜 - + Monochromatic 單色 - + Grayscale 灰階 - + Black and White 黑白 - + Complementary 互補色 - + Analogous 類似色 - + Triadic 三元色 - + Hue Shift 色相偏移 - + Turns the hue of every colour; greys stay as they are. 轉動每個顏色的色相;灰色維持不變。 - + Radial Color 放射狀顏色 - + Radial Saturation 放射狀飽和度 - + Positive: grey centre; negative: grey circumference. The lightness is kept. 正值:中心為灰;負值:圓周為灰。明度維持不變。 - + Radial Lightness 放射狀明度 - + Positive: white centre; negative: black centre. 正值:中心為白;負值:中心為黑。 - + Radial Falloff 放射狀衰減 - + The curve of both radial gradients: broad below 1, linear at 1, concentrated above 1. 兩個放射狀漸層的曲線:低於 1 較寬,等於 1 為線性,高於 1 較集中。 - + Reverse Radial Gradient 反轉放射狀漸層 - + Swaps the centre and the circumference in both radial gradients. 在兩個放射狀漸層中對調中心與圓周。 - + Animation 動畫 - + Speed 速度 - + How fast the pattern turns; 0 keeps it still. 圖樣轉動的速度;0 表示靜止。 - + Reverse 反向 - + Turns the pattern the other way. 讓圖樣往另一個方向轉動。 - + Flow 流動 - + How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still. 圓環離開中心的速度,以每分鐘半徑數計,與圓環數量無關:設為 6 時,一個圓環在 10 秒內從中心移到邊緣;0 表示靜止。 - + Flow Inward 向內流動 - + Moves the rings towards the centre. 讓圓環向中心移動。 - + Colorize - + Colours the image with two colours: one for the dark, one for the light, and the shades between. - + Dark Color - + The colour that black becomes. - + Light Color - + The colour that white becomes. - + Options - + Tone From - + How light a pixel is: as the eye sees it, by its strongest channel, or by the mean of its channels. - + Luminance - + Maximum - + Average - + Gradient - + A gradient of two or three colours, linear, radial, conic or in a diamond, repeated, mirrored and moving along its shape. - + Shape - + Linear goes across the image; radial goes out from the centre in circles; conic goes around the centre; diamond goes out from the centre in squares on their corners. - + Linear - + Radial - + Conic - + Diamond - + Angle - + The direction of a linear gradient, clockwise from left to right; where a conic gradient starts; how a diamond is turned. A radial gradient does not use it. - + Center - + The centre of a radial, conic or diamond gradient, from the top left corner (0, 0) to the bottom right corner (1, 1). A linear gradient does not use it. - + Repeats - + How many times the gradient repeats across the image, from the centre to the edge, or around the centre, where it is rounded to a whole number. - + Mirror - + Each repeat goes from the first colour to the last and back, with no edge between repeats. - + Hardness - + 0 blends the colours smoothly; 100 % gives bands of plain colour with sharp edges. - + Color A - + The first colour. - + Color B - + The second colour, the last one with two colours. - + Color C - + The third colour, used with Three Colors. - + Three Colors - + Goes from Color A to Color B, then to Color C. - + Swap Colors - + Swaps the first and the last colour. - + Blend - + How one colour turns into the next: RGB in a straight line; Hue through the hues, the shorter way round the colour wheel; Rainbow the longer way round, all the hues when both colours have the same. A grey takes the hue of the other colour. - + RGB - + Rainbow - + How many repeats go by in a minute: at 6, the gradient moves by one repeat every 10 seconds; 0 keeps it still. - + The gradient moves the other way: towards the centre, or anticlockwise. - + Grid 格線 - + Lines of a colour on a background, along the borders and between columns and rows. 在背景上繪製某種顏色的線條,沿著邊框以及欄與列之間。 - + Columns 欄數 - + The number of columns between the lines. 線條之間的欄數。 - + Rows 列數 - + The number of rows between the lines. 線條之間的列數。 - + Thickness 粗細 - + The thickness of the lines. 線條的粗細。 - + The colour between the lines. 線條之間的顏色。 - + Line Color 線條顏色 - + The colour of the lines. 線條的顏色。 - + Invert - + Inverts the colours of the image, as a photographic negative. - + Keep Colors - + Inverts the light and the dark but keeps the colours: red stays red, lighter or darker. - + Threshold - + Only what is at least this light is inverted, as a solarized photograph. - + Inverts the red, unless the colours are kept. - + Inverts the green, unless the colours are kept. - + Inverts the blue, unless the colours are kept. - + Luma Key - + Makes the dark parts of the image transparent, or the light ones, to show what is behind. - + Keying - + Low Threshold - + Darker than this, a pixel is transparent; lighter when inverted, it is opaque. - + High Threshold - + Lighter than this, a pixel is opaque; transparent when inverted. Between the two, it fades. - + Removes the light parts instead of the dark ones. - + Channel - + What is compared with the thresholds: the brightness seen by the eye, one channel, or the strongest of the three. - + Noise - + Noise that moves slowly: smooth clouds, cells or a plasma, between two colours. - + Kind - + Smooth gives soft clouds; Cells, cells around points that wander; Plasma, waves that cross each other. - + Smooth - + Cells - + Plasma - + Scale - + How many clouds, cells or waves cross the image. - + Detail - + How many layers of finer and finer noise, or of waves for the plasma, are added together. Each layer costs time to draw; cells have a single layer. - + Seed - + Changes the pattern: each number gives another one, always the same. - + The colour of the low values. - + The colour of the high values. - + How many times a minute the noise goes through its motion and comes back to where it started: at 6, every 10 seconds; 0 keeps it still. - + The noise goes through its motion the other way. - + Posterize - + Reduces the image to a few levels of each colour, in flat bands, as a poster. - + The number of levels of each colour, black and full included. - + Softness - + Shades between the bands: 0 % gives sharp edges, 100 % no bands. - + Dithering - + Mixes the pixels of two neighbouring levels in a fine pattern, to suggest the shades between. - + Brightness Only - + Keeps the colours and reduces only their brightness to levels. - + Stripes - + Stripes of two colours, at any angle and width, going by. - + How many pairs of stripes, one of each colour, cross the image. - + The direction across the stripes, clockwise from left to right: at 0°, the stripes stand upright. - + Width - + The share of each pair taken by the stripe of Color A. - + How wide the blend between two stripes is, in pixels of the image: 0 gives sharp edges. - + The colour of every other stripe. - + The colour of the stripes between. - + How many pairs of stripes go by in a minute: at 6, the stripes move by one pair every 10 seconds; 0 keeps them still. - + The stripes go by the other way. - + Turns the image into two colours: what is darker than the threshold, and what is lighter. - + Below it a pixel takes the dark colour, above it the light colour. - + The width of the shades between the two colours, around the threshold: 0 % gives a sharp edge. - + What is compared with the threshold: the brightness seen by the eye, one channel, or the strongest of the three. - + Colors - + The colour of what is below the threshold. - + The colour of what is above the threshold. - + Transparent - + Which side lets what is behind show through instead of its colour. - + None - + Dark - + Light - + Waves - + Waves of two colours, in straight lines or in rings around a centre, from soft to sharp, going forward. - + Lines are straight waves across the image; rings go out from the centre. - + Lines - + The direction in which straight waves go, clockwise from left to right. Rings do not use it. - + The centre of the rings, from the top left corner (0, 0) to the bottom right corner (1, 1). Straight waves do not use it. - + How many waves cross the image, or go from the centre to the edge. - + Sharpness - + 0 gives soft waves, a sine; 100 % gives bands of plain colour with sharp edges. - + The colour of the troughs. - + The colour of the crests. - + How many waves go by in a minute: at 6, the waves move by one wave every 10 seconds; 0 keeps them still. - + The waves go the other way: rings come towards the centre. @@ -1764,7 +1789,7 @@ Source - + Syphon Syphon @@ -1772,84 +1797,296 @@ mmp::AboutDialog - + About %1 關於 %1 - + MapMap is a free/open source video mapping software. MapMap 是自由開放原始碼的光雕投影軟體。 - + Copyright &copy; 2013 %1. Copyright &copy; 2013 %1. - + See the <a href="%1">%2 website</a> for more information on this software. 關於本軟體的更多資訊,請造訪<a href="%1">%2 網站</a>。 - - %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? - %1 由 Art Plus Code 開發與贊助。需要客製的光雕投影裝置、新功能、系統整合或培訓? + + %1 is developed and sponsored by Art Plus Code. Need a custom video mapping installation, a new feature, integration or training? + %1 由 Art Plus Code 開發與贊助。需要客製的光雕投影裝置、新功能、系統整合或培訓? + + + + Hire us + 聘請我們 + + + + Enjoying %1? + 喜歡 %1 嗎? + + + + Support the project + 支持本專案 + + + + About + 關於 MapMap + + + + Changelog + 更新日誌 + + + + Libraries + 函式庫 + + + + Contributors + 貢獻者 + + + + MapMap includes RtMidi, which receives the MIDI devices, under this license: + MapMap 內含用於接收 MIDI 裝置的 RtMidi,依下列授權使用: + + + + MapMap uses SDL, which receives the game controllers, under this license: + MapMap 使用 SDL 接收遊戲控制器,依下列授權使用: + + + + License + 授權 + + + + OSC Commands + OSC 指令 + + + + mmp::AutoMapScan + + + Step out of the picture and do not move + + + + + The camera changed the size of its images during the scan. + + + + + The camera does not see the projection. Point it at what the projector lights, and darken the room. + + + + + The camera sends no images. + + + + + The image of the camera did not settle within %1 seconds: something moves in the picture. + + + + + mmp::AutoMappingDialog + + + Auto-Mapping + + + + + Simulated scene (--auto-mapping-simulation) + + + + + %1 - %2 × %3 + + + + + Place the camera next to the projector, so that it sees everything the projector lights. Nobody in the picture, and darken the room. +After the scan, do not touch the zoom, the focus or the framing of the projector: the image would no longer match. + + + + + Skip the finest stripes (faster, for a blurry camera, but less precise) + + + + + Start + 開始鍵 + + + + + Create Shapes + + + + + + Make a layer of each face found, with a colour of its own + + + + + Camera: + + + + + Projector screen: + + + + + No camera is connected. + + + + + %1 images, about %2 seconds. + + + + + The scan needs the output over the whole screen of the projector. + - - Hire us - 聘請我們 + + Scanning: do not move. + - - Enjoying %1? - 喜歡 %1 嗎? + + Scan cancelled. + - - Support the project - 支持本專案 + + Done: %1, %2. The camera saw %3 % of the output: the scene seen from the projector is under the shapes of the output editor; in red, what the camera did not see. Tools > Show Auto-Mapping Image hides it with the outlines. + + + + + %n face(s) found + + + + + + + + %n outline(s) to place by hand + + + - - About - 關於 MapMap + + + Update Shapes + - - Changelog - 更新日誌 + + Move the layers of the previous scan onto their faces, and make a layer of each new face + + + + + %n layer(s) of the previous scan will follow their face: they keep their source and their effects, only their corners move. + + + + + + + %n new face(s) will be added. + + + + + + + %n layer(s) of the previous scan were not found again: %1. + + + - - Libraries - 函式庫 + + Update and Remove Them + - - Contributors - 貢獻者 + + Update and Keep Them + - - MapMap includes RtMidi, which receives the MIDI devices, under this license: - MapMap 內含用於接收 MIDI 裝置的 RtMidi,依下列授權使用: + + Update + + + + + %n layer(s) moved + + + + + + + %n shape(s) created + + + + + + + %n layer(s) removed + + + - - MapMap uses SDL, which receives the game controllers, under this license: - MapMap 使用 SDL 接收遊戲控制器,依下列授權使用: + + %1. Edit > Undo takes it all back at once. + - - License - 授權 + + Cancel + - - OSC Commands - OSC 指令 + + Close + @@ -1871,15 +2108,23 @@ 顯示上方的編輯器 + + mmp::CameraFrameSource + + + No camera is connected. + + + mmp::ChoiceControl - + %1 (missing) %1(遺失) - + (none) (無) @@ -1887,7 +2132,7 @@ mmp::ColorControl - + Show the colour picker 顯示顏色選擇器 @@ -1991,27 +2236,27 @@ mmp::ConsoleWindow - + Message Log Output - Mapmap 訊息記錄 - MapMap - + &Close 關閉(&C) - + Close the console 關閉主控台 - + &File 檔案(&F) - + MMM dd yy HH:mm MMM dd yy HH:mm @@ -2128,21 +2373,31 @@ mmp::Effect - + Enabled 啟用 - + Whether this effect changes the image; off, the image passes unchanged. 此效果是否改變影像;關閉時影像原樣通過。 + + + Mix + + + + + How much of the effect shows: at 0 % the image is unchanged, at 100 % only the effect shows. + + mmp::EffectInspector - - + + Effect 效果 @@ -2150,42 +2405,42 @@ mmp::Element - + ID ID - + The number that identifies this element in the project. 在專案中識別此元素的編號。 - + Name 名稱 - + The name shown in the lists and used to find this element by OSC. 顯示在清單中的名稱,也用於透過 OSC 尋找此元素。 - + Locked 鎖定 - + Whether this element is protected from changes made with the mouse. 此元素是否受保護,不會被滑鼠操作變更。 - + Opacity 不透明度 - + How opaque this element is, from fully transparent to fully opaque. 此元素的不透明程度,從完全透明到完全不透明。 @@ -2237,6 +2492,44 @@ %1 產生器,由 GPU 繪製 + + mmp::Group + + + Solo + 獨顯 + + + + Whether this group is in solo: its layers are then in solo too. + + + + + Visible + 可見 + + + + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. + + + + + Collapsed + + + + + Whether this group is folded in the list of layers, its layers out of sight. + + + + + Group %1 + + + mmp::Image @@ -2268,15 +2561,14 @@ mmp::Inspector - Type in project files: %1 - 專案檔中的類型:%1 + 專案檔中的類型:%1 mmp::InspectorPage - + %1 %2 %1 %2 @@ -2284,47 +2576,47 @@ mmp::InspectorRow - + %1: %2 %1:%2 - + %1, %2 %1,%2 - + Learn Keys to Move It 學習移動它的按鍵 - + Learn MIDI Controls to Move It 學習移動它的 MIDI 控制 - + Remove the Links That Move It 移除移動它的連結 - + Learn a Key 學習按鍵 - + Remove the Key 移除按鍵 - + Learn a MIDI Control 學習 MIDI 控制 - + Remove the MIDI Control 移除 MIDI 控制 @@ -2332,52 +2624,66 @@ mmp::Layer - + Solo 獨顯 - + Whether this layer is in solo: while a layer is in solo, only the layers in solo are shown. 此圖層是否獨顯:有圖層獨顯時,只顯示獨顯的圖層。 - + Visible 可見 - + Whether this layer is shown. 是否顯示此圖層。 - + Depth 深度 - + + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. + + + + + Group + + + + + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. + + + The position of this layer in the stack of layers. - 此圖層在圖層堆疊中的位置。 + 此圖層在圖層堆疊中的位置。 - + Has input shape 有輸入形狀 - + Whether this layer picks the region of its source it shows with an input shape. 此圖層是否以輸入形狀選取要顯示的來源區域。 - + Source 來源 - + The source shown in this layer. 此圖層顯示的來源。 @@ -2385,42 +2691,42 @@ mmp::LayerGui - + Surface 表面 - + Output shape 輸出形狀 - + Input shape 輸入形狀 - + Media 媒體 - + Mesh 網格 - + Triangle 三角形 - + Ellipse 橢圓 - + Quad 四邊形 @@ -2433,46 +2739,71 @@ mmp::LayerItemDelegate - - + + Solo layer 獨顯圖層 - - + + Lock layer 鎖定圖層 - - + + Duplicate layer 複製圖層 - - + + Delete layer 刪除圖層 - + Turn the effect on or off 開啟或關閉效果 - + Remove the effect 移除效果 - + Available once a layer can have several effects 待圖層支援多個效果後可用 - + + Show or hide the layers of the group + + + + + Solo group: show only its layers + + + + + Lock the layers of the group + + + + + Delete the group and its layers + + + + + Not available for a group yet + + + + Show or hide the layer 顯示或隱藏圖層 @@ -2548,27 +2879,27 @@ mmp::MShape - + Locked 鎖定 - + Whether the vertices of this shape are protected from changes made with the mouse. 此形狀的頂點是否受保護,不會被滑鼠操作變更。 - + Points 點 - + Point 點 - + The position of a control point of the shape, in pixels. 形狀控制點的位置,以像素為單位。 @@ -2576,1247 +2907,1373 @@ mmp::MainWindow - - + + Open project 開啟專案 - - - - + + + + MapMap files (*.%1) MapMap 檔案 (*.%1) - - + + Save project 儲存專案 - - + + Import media source file 匯入媒體來源檔案 - - + + Media files (%1 %2);;All files (*) 媒體檔案 (%1 %2);;所有檔案 (*) - + Camera device 相機裝置 - + Select camera 選擇相機 - - + + No camera available 沒有可用的相機 - - + + You can not use this feature! No camera available in your system 無法使用此功能! 系統中沒有可用的相機 - + Syphon source added 已新增 Syphon 來源 - - - + + + MapMap MapMap - + &New 新增(&N) - + Create a new project 建立新專案 - + &Open… 開啟(&O)… - + Open an existing project 開啟現有專案 - + &Save 儲存(&S) - + Save the project 儲存專案 - + Save &As… 另存新檔(&A)… - + Save the project as… 將專案另存為… - + No Recents Videos 沒有最近的影片 - + &Import Media File… 匯入媒體檔案(&I)… - + Import a video or image file… 匯入影片或影像檔案… - + Open &Camera Device… 開啟相機裝置(&C)… - + Choose your camera device… 選擇相機裝置… - + E&xit 結束(&X) - + Exit the application 結束應用程式 - + &Undo 復原(&U) - + &Redo 重做(&R) - + &About MapMap 關於 MapMap(&A) - + Show the application's About box 顯示應用程式的「關於」對話框 - + &Preferences… 偏好設定(&P)… - + Configure preferences… 調整偏好設定… - - + + Play 播放 - - + + Pause 暫停 - + &Display Controls 顯示控制項(&D) - + Display canvas controls 顯示畫布控制項 - + &Sticky Vertices 磁吸頂點(&S) - + Enable sticky vertices 啟用磁吸頂點 - + Show &Test Signal 顯示測試訊號(&T) - + Show Test signal 顯示測試訊號 - + Display &Undo History 顯示復原記錄(&U) - + Open Conso&le 開啟主控台(&L) - + Display &Zoom Toolbar 顯示縮放工具列(&Z) - + &Menu Bar 選單列(&M) - + Main Layout 主要版面 - + Switch to the Main layout. 切換到主要版面。 - + Remove this source and all its associated layers? 移除此來源及其所有相關圖層? - + Input Editor 輸入編輯器 - + Output Editor 輸出編輯器 - + Library 媒體庫 - + Layers 圖層 - + Cue %1 提示點 %1 - + Cue %1 — %2 提示點 %1 — %2 - + %1 set at %2 %1 設於 %2 - + + + + + Group + + + + + Group layers + + + + + Ungroup layers + + + + + New group + + + + + Delete group + + + + + Delete the group "%1" and its %n layer(s)? + + + + + + + Move layer + + + + + Move layers + + + + + Move group + + + + Used by %1 layers: changing it changes them all. %1 個圖層使用此項:變更會影響所有圖層。 - + Replace effect 取代效果 - - + + Replace Effect 取代效果 - - - + + + Add Effect 新增效果 - + Save over a project of a later version? 要覆寫較新版本的專案嗎? - + %1 was saved by a later version of MapMap, in the format %2. This version keeps what it does not know, but the later version may not open the project as it was. Save over it anyway? %1 由較新版本的 MapMap 以 %2 格式儲存。此版本會保留它不認得的內容,但較新的版本可能無法照原樣開啟專案。 仍要覆寫嗎? - + Learning MIDI for %1: press a pad for "%2", or turn a knob to move it both ways. Escape stops, Delete removes the MIDI controls of the point. 正在為 %1 學習 MIDI:為「%2」按一個打擊墊,或轉動旋鈕以雙向移動。Esc 停止,Delete 移除此點的 MIDI 控制。 - + Learning keys for %1: press a key for "%2". Escape stops, Delete removes the keys of the point. 正在為 %1 學習按鍵:為「%2」按一個按鍵。Esc 停止,Delete 移除此點的按鍵。 - + Learning MIDI: move a control or press a pad for %1. Delete removes its MIDI control. 正在學習 MIDI:為 %1 移動控制器或按打擊墊。Delete 移除其 MIDI 控制。 - + Learning MIDI: click a control outlined in blue, then move a control of the MIDI device. The MIDI controls already learned act. 正在學習 MIDI:按一下藍框標示的控制項,然後移動 MIDI 裝置上的控制器。已學習的 MIDI 控制仍會作用。 - + Learning keys: press a key for %1. Delete removes its key. 正在學習按鍵:為 %1 按一個按鍵。Delete 移除其按鍵。 - + Learning keys: click a control outlined in blue, then press a key. Learned keys do not act until learning stops (Escape). 正在學習按鍵:按一下藍框標示的控制項,然後按一個按鍵。已學習的按鍵要等學習停止(Esc)後才會作用。 - - + + %1: %2 %1:%2 - + Move a MIDI control for %1. Delete removes its MIDI control, Escape stops learning. 為 %1 移動 MIDI 控制器。Delete 移除其 MIDI 控制,Esc 停止學習。 - + MIDI learn: click a control outlined in blue, then move a control of the MIDI device. Escape stops learning. MIDI 學習:按一下藍框標示的控制項,然後移動 MIDI 裝置上的控制器。Esc 停止學習。 - + Press a key for %1. Delete removes its key, Escape stops learning. 為 %1 按一個按鍵。Delete 移除其按鍵,Esc 停止學習。 - + Keyboard learn: click a control outlined in blue, then press a key. Escape stops learning. 鍵盤學習:按一下藍框標示的控制項,然後按一個按鍵。Esc 停止學習。 - + Learning MIDI: move a control of the MIDI device, not a key. Edit > Keyboard Learn learns keys. 正在學習 MIDI:請移動 MIDI 裝置上的控制器,而非按鍵。「編輯 > 鍵盤學習」用於學習按鍵。 - + %1 drives %2. Press Escape to stop learning: %1 then acts. %1 控制 %2。按 Esc 停止學習後,%1 才會作用。 - + Click a control outlined in blue first, then press %1. 請先按一下藍框標示的控制項,再按 %1。 - + %1 is already the shortcut of %2: choose another key. %1 已是「%2」的快速鍵:請選擇其他按鍵。 - - + + %1 → %2 %1 → %2 - + %1 → %2: %3 %1 → %2:%3 - + MIDI control removed from %1 已從 %1 移除 MIDI 控制 - + Key removed from %1 已從 %1 移除按鍵 - + Click a control outlined in blue first, then move %1. 請先按一下藍框標示的控制項,再移動 %1。 - + Input Editor: %1% 輸入編輯器:%1% - + Output Editor: %1% 輸出編輯器:%1% - + Cues 提示點 - + Stop Learning 停止學習 - + Stop learning (Escape) 停止學習(Esc) - - + + Add &Generator 新增產生器(&G) - + Add a generator 新增產生器 - + Add &Syphon Source… 新增 Syphon 來源(&S)… - + Receive live video from another application via Syphon… 透過 Syphon 接收其他應用程式的即時視訊… - + Duplicate Layer 複製圖層 - + Duplicate layer item 複製圖層 - + Delete Layer 刪除圖層 - + Delete layer item 刪除圖層 - + Remove Effect 移除效果 - + Remove the selected effect 移除選取的效果 - + Rename Layer 重新命名圖層 - + Rename layer item 重新命名圖層 - + Lock Layer 鎖定圖層 - + Lock layer item 鎖定圖層 - + Hide Layer 隱藏圖層 - + Hide layer item 隱藏圖層 - + Solo Layer 獨顯圖層 - + Rotate 90° clockwise. In the input view, rotates the image inside the layer. 順時針旋轉 90°。在輸入檢視中,旋轉圖層內的影像。 - + Rotate 90° CCW 逆時針旋轉 90° - + Rotate 90° counterclockwise. In the input view, rotates the image inside the layer. 逆時針旋轉 90°。在輸入檢視中,旋轉圖層內的影像。 - + Rotate 180°. In the input view, rotates the image inside the layer. 旋轉 180°。在輸入檢視中,旋轉圖層內的影像。 - + Flip Horizontally 水平翻轉 - + Flip horizontally. In the input view, flips the image inside the layer. 水平翻轉。在輸入檢視中,翻轉圖層內的影像。 - + Flip Vertically 垂直翻轉 - + Flip vertically. In the input view, flips the image inside the layer. 垂直翻轉。在輸入檢視中,翻轉圖層內的影像。 - + + Put the selected layers in a new group + + + + + Ungroup + + + + + Take the layers out of the group, which goes + + + + + New Group + + + + + Add a group without layers, to drag layers into + + + + Delete Source 刪除來源 - + Delete source item 刪除來源 - + Rename Source 重新命名來源 - + Rename source item 重新命名來源 - + Import New Media 匯入新媒體 - + Import new media file if not exists on the list 匯入清單中沒有的新媒體檔案 - + Add &Mesh Layer 新增網格圖層(&M) - + Add mesh layer 新增網格圖層 - + Add &Triangle Layer 新增三角形圖層(&T) - + Add triangle layer 新增三角形圖層 - + Add &Ellipse Layer 新增橢圓圖層(&E) - + Add ellipse layer 新增橢圓圖層 - - + + Restart 重新開始 - + &Hide Output 隱藏輸出(&H) - + Output in a &Window 在視窗中輸出(&W) - + Output &Fills a Screen 輸出填滿螢幕(&F) - + Output 輸出 - + Output Fills a Screen (%1). The arrow chooses how and where the output is shown. 輸出填滿螢幕(%1)。箭頭用於選擇輸出的顯示方式與位置。 - + &Display Controls of Layers of a Source 顯示同一來源的圖層控制項(&D) - + Display all canvas controls related to current source 顯示與目前來源相關的所有畫布控制項 - + &Keyboard Learn 鍵盤學習(&K) - + Link keys of the keyboard to settings: click a control, then press a key 將鍵盤按鍵連結到設定:按一下控制項,然後按一個按鍵 - + &MIDI Learn MIDI 學習(&M) - + Link controls and notes of a MIDI device to settings: click a control, then move a MIDI control 將 MIDI 裝置的控制器和音符連結到設定:按一下控制項,然後移動 MIDI 控制器 - + Learned K&eys Active 啟用已學習的按鍵(&E) - + Turn the learned keys off while typing for something else, and on again 在為其他用途打字時關閉已學習的按鍵,之後再開啟 - + &Links 連結(&L) - + List the keys linked to settings 列出連結到設定的按鍵 - + + &Auto-Mapping… + + + + + Film stripes projected on the scene, to see it from the projector + + + + + &Show Auto-Mapping Image + + + + + Show the scene seen from the projector under the shapes of the output + + + + + &Clear Auto-Mapping Image + + + + + Forget the scene seen from the projector + + + + Input editor Layout 輸入編輯器版面 - + Switch to the Input editor Layout. 切換到輸入編輯器版面。 - + Output Editor Layout 輸出編輯器版面 - + Switch to the Output Editors Layout. 切換到輸出編輯器版面。 - + Editor 編輯器 - + Show the editor and hide the bottom section 顯示編輯器並隱藏底部區域 - + Bottom Section 底部區域 - + Show the bottom section, such as the cues, and hide the editor 顯示底部區域(如提示點)並隱藏編輯器 - + Editor and Bottom Section 編輯器與底部區域 - + Show the editor, and the bottom section under it 顯示編輯器,並在其下方顯示底部區域 - - + + Zoom In 放大 - - + + Zoom Out 縮小 - + &Output 輸出(&O) - + + &Tools + + + + Cannot read %1: %2 無法讀取 %1: %2 - + Project of a later version 較新版本的專案 - + This project was saved by a later version of MapMap, in the format %1; this version writes %2. What this version does not know is kept, but may not work as the later version intended. 此專案由較新版本的 MapMap 以 %1 格式儲存;此版本寫入的是 %2。此版本不認得的內容會保留,但可能無法如較新版本預期般運作。 - + Project opened with missing entries 已開啟專案,但有項目遺失 - + MapMap skipped these project entries: %1 MapMap 略過了下列專案項目: %1 - + Sources this version cannot open 此版本無法開啟的來源 - + This project has sources of types this version of MapMap cannot open: %1. They are kept with their layers, which show a "missing" image, and saved as they are. 此專案含有此版本 MapMap 無法開啟的來源類型:%1。 這些來源會連同其圖層一併保留,圖層會顯示「遺失」影像,並照原樣儲存。 - + + Group %1 + + + + + + Face %1 + + + + + Auto-Mapping + + + + %1 - disconnected %1 - 已中斷連線 - + Output Fills a Screen 輸出填滿螢幕 - + The output will cover this screen. Press Esc to bring MapMap back. 輸出將覆蓋此螢幕。按 Esc 可回到 MapMap。 - + Cover the Screen 覆蓋螢幕 - + Don't ask again 不再詢問 - + Report an issue 回報問題 - + Solo layer item 獨顯圖層 - + Rotate 90° CW 順時針旋轉 90° - + Rotate 180° 旋轉 180° - - + + Raise 上移 - - + + Lower 下移 - + Raise to Top 移到最上層 - + Raise to top 移到最上層 - + Lower to Bottom 移到最下層 - + Lower to bottom 移到最下層 - + &Publish Syphon Output 發布 Syphon 輸出(&P) - + Publish the output composition as a Syphon server other apps can receive 將輸出畫面發布為 Syphon 伺服器,供其他應用程式接收 - + Actual Pixels (1:1) 實際像素(1:1) - + Show one image pixel per screen pixel 一個影像像素對應一個螢幕像素 - + Fit To View (100%) 符合視窗(100%) - + Show the whole image or output frame 顯示整個影像或輸出畫面 - + Output &Resolution... 輸出解析度(&R)... - + Choose the size of the output frame 選擇輸出畫面的尺寸 - + Professional services && custom development… 專業服務與客製開發… - + Hire Art Plus Code for video mapping installations, custom features, integration and training 聘請 Art Plus Code 提供光雕投影裝置、客製功能、系統整合與培訓 - + Support the project (donate)… 支持本專案(捐款)… - + Help fund MapMap's ongoing development 協助資助 MapMap 的持續開發 - + Documentation 文件 - + Submit feedback via email 透過電子郵件提供意見回饋 - + &Keyboard shortcuts 鍵盤快速鍵(&K) - + Welcome to %1… 歡迎使用 %1… - + &File 檔案(&F) - + Open Recents Projects 開啟最近的專案 - + Open Recents Videos 開啟最近的影片 - + &Edit 編輯(&E) - + &View 檢視(&V) - + &Window 視窗(&W) - + &Help 說明(&H) - + Change Layer Source 變更圖層來源 - + &Toolbar 工具列(&T) - + The learned keys act again. 已學習的按鍵再度作用。 - + The learned keys are off: they do nothing until turned on again. 已學習的按鍵已關閉:重新開啟前不會有作用。 - + Learned keys: on 已學習的按鍵:開 - + Learned keys: off 已學習的按鍵:關 - + Edit > Learned Keys Active (%1) turns them on and off. 「編輯 > 啟用已學習的按鍵」(%1)可開啟或關閉這些按鍵。 - + The document has been modified. Do you want to save your changes? 文件已被修改。 是否儲存變更? - - + + Error reading mapping project file 讀取專案檔案時發生錯誤 - - + + Cannot read file %1: %2. 無法讀取檔案 %1: %2。 - + File loaded 已載入檔案 - - + + File loaded: %n link(s) active 已載入檔案:%n 個連結作用中 - + , %n kept but not usable here ,%n 個已保留但在此無法使用 - - + + Error saving mapping project 儲存專案時發生錯誤 - + Cannot write file %1: %2. 無法寫入檔案 %1: %2。 - + Cannot rename temporary file to %1. 無法將暫存檔重新命名為 %1。 - + File saved 已儲存檔案 - + Untitled 未命名 - + %1[*] - %2 %1[*] - %2 - - + + MapMap Project MapMap 專案 - - - + + + &%1 %2 &%1 %2 - + Clear List 清除清單 - + No Recents Projects 沒有最近的專案 - + %1 added 已新增 %1 - + Output %1 × %2 輸出 %1 × %2 - + Output Editor (%1 × %2) 輸出編輯器(%1 × %2) - + Output Resolution 輸出解析度 - + Size of the output frame, usually the resolution of the projector. The output window scales it to fill the output screen. 輸出畫面的尺寸,通常是投影機的解析度。輸出視窗會縮放畫面以填滿輸出螢幕。 - + Scale the shapes to keep them in place in the frame 縮放形狀,使其在畫面中維持原位 - + %1 %2 × %3 %1 %2 × %3 - + The output screen %1 is disconnected: the output is hidden until it comes back. 輸出螢幕 %1 已中斷連線:在重新連接前會隱藏輸出。 - + The output screen %1 is back. 輸出螢幕 %1 已重新連接。 - + %1 - %2x%3 %1 - %2x%3 - + - Primary - 主要 - + File imported 已匯入檔案 - + Warning 警告 - + The following file is not supported: %1 不支援下列檔案:%1 - + Cannot load movie 無法載入影片 - + Unable to use file %1. The original file is not found. Please locate. 無法使用檔案 %1。 找不到原始檔案,請指定其位置。 - - + + Locate file %1 尋找檔案 %1 - - + + %1 files (%2) %1 檔案 (%2) - + Undo history 復原記錄 @@ -3824,22 +4281,22 @@ The original file is not found. Please locate. mmp::MapperGLCanvasToolbar - + Zoom in 放大 - + Zoom out 縮小 - + Actual pixels (1:1): one image pixel per screen pixel 實際像素(1:1):一個影像像素對應一個螢幕像素 - + Fit to view (100%): show the whole image or output frame 符合視窗(100%):顯示整個影像或輸出畫面 @@ -3855,22 +4312,22 @@ The original file is not found. Please locate. mmp::Mesh - + Columns 欄數 - + The number of columns of vertices of the mesh, its two edges included. 網格的頂點欄數,包含兩側邊緣。 - + Rows 列數 - + The number of rows of vertices of the mesh, its two edges included. 網格的頂點列數,包含兩側邊緣。 @@ -3878,7 +4335,7 @@ The original file is not found. Please locate. mmp::OutputGLWindow - + MapMap - Output MapMap - 輸出 @@ -3922,312 +4379,312 @@ The original file is not found. Please locate. mmp::PreferenceDialog - + Preferences 偏好設定 - + Current project: %1 × %2 目前專案:%1 × %2 - + Large 大 - + Medium 中 - + Small 小 - + Language (requires restart) 語言(需要重新啟動) - + Toolbar icon size (requires restart) 工具列圖示大小(需要重新啟動) - + Show the welcome dialog at startup 啟動時顯示歡迎視窗 - + Enable Sticky vertices 啟用磁吸頂點 - + Sensitivity 靈敏度 - + Vertices 頂點 - + Only show output controls on mouse over 僅在滑鼠停留時顯示輸出控制項 - + Output Layers 輸出圖層 - + Size of the output frame, usually the resolution of the projector. "Output screen" follows the screen chosen for the output. 輸出畫面的尺寸,通常是投影機的解析度。「輸出螢幕」會依照選為輸出的螢幕。 - + Change... 變更... - + Default Output Resolution for New Projects 新專案的預設輸出解析度 - + Show resolution on output test cards 在輸出測試圖上顯示解析度 - + Classic test card 經典測試圖 - + PAL test card PAL 測試圖 - + NTSC test card NTSC 測試圖 - + Test Card 測試圖 - + Listen to OSC messages 接收 OSC 訊息 - + Allow message with existing media source 允許使用既有媒體來源的訊息 - + When off (the default), an OSC message that sets a source's media to the file it already uses is ignored, so repeated messages don't reload — and restart — the same video. Turn it on to reload the media anyway, for example to restart a clip from the beginning over OSC. 關閉時(預設),如果 OSC 訊息為來源設定的檔案正是它已在使用的檔案,則忽略該訊息,以免重複的訊息重新載入並重新播放同一視訊。開啟後仍會重新載入媒體,例如透過 OSC 從頭播放片段。 - + Accept OSC from the network (less secure) 接受來自網路的 OSC(安全性較低) - + When off, OSC is only reachable from this computer (127.0.0.1). Enable only on a trusted show network — OSC has no authentication. 關閉時,只能從本機(127.0.0.1)存取 OSC。請僅在可信任的演出網路中開啟:OSC 沒有身分驗證。 - + Allow OSC to quit the application 允許 OSC 結束應用程式 - + When off, the /mapmap/quit OSC command is ignored so a remote sender cannot close the application during a show. 關閉時,忽略 /mapmap/quit OSC 指令,使遠端傳送者無法在演出期間關閉應用程式。 - + on port 連接埠 - + Refresh 重新整理 - + Local IP 本機 IP - + OSC Setup OSC 設定 - + Disabled 已停用 - + MCP port (0 to disable) MCP 連接埠(0 表示停用) - + MCP Setup MCP 設定 - + MapMap listens to every MIDI device connected to this computer. Untick a device to ignore it. MapMap 會接收連接到此電腦的所有 MIDI 裝置。取消勾選裝置即可忽略它。 - + Devices: 裝置: - + MIDI MIDI - + MIDI is not available on this computer. 此電腦無法使用 MIDI。 - + No MIDI device found. Connect one: it appears here. 找不到 MIDI 裝置。連接裝置後,它會出現在這裡。 - + %1 (not connected) %1(未連接) - + Last message received: none yet. Turn a knob or press a pad to see it here. 最後收到的訊息:尚無。轉動旋鈕或按下打擊墊,即可在此看到訊息。 - + Last message received: %1, from %2 最後收到的訊息:%1,來自 %2 - + MapMap listens to every game controller connected to this computer, by cable or wireless. MapMap 會接收以有線或無線方式連接到此電腦的所有遊戲控制器。 - + A controller that is not recognized can be described, in the format of SDL, one line per controller, in this file: 無法辨識的控制器可以用 SDL 格式描述在下列檔案中,每個控制器一行: - + Open Folder 開啟資料夾 - + Controllers: 控制器: - + This version of MapMap was built without game controllers. 此版本的 MapMap 建置時未包含遊戲控制器支援。 - + Game controllers 遊戲控制器 - + Game controllers are not available on this computer. 此電腦無法使用遊戲控制器。 - + No game controller found. Connect one or turn it on: it appears here. 找不到遊戲控制器。連接或開啟控制器後,它會出現在這裡。 - + Last button received: none yet. Press a button or push a stick to see it here. 最後收到的按鈕:尚無。按下按鈕或推動搖桿,即可在此看到。 - + Last button received: %1, from %2 最後收到的按鈕:%1,來自 %2 - + Play in loop (requires restart) 循環播放(需要重新啟動) - + Custom... 自訂... - + Frame rate (frames per second) 影格率(每秒影格數) - + Playback 播放 - + Interface 介面 - + Layers 圖層 - + Output 輸出 - + Controls 控制 - + Advanced 進階 @@ -4235,7 +4692,7 @@ The original file is not found. Please locate. mmp::ShortcutWindow - + %1 - Keyboard Shortcuts %1 - 鍵盤快速鍵 @@ -4261,12 +4718,12 @@ The original file is not found. Please locate. mmp::SourceGui - + Media 媒體 - + Missing (%1) 遺失(%1) @@ -4274,12 +4731,12 @@ The original file is not found. Please locate. mmp::SourceItemDelegate - + Turn the effect on or off 開啟或關閉效果 - + Remove the effect 移除效果 @@ -4287,42 +4744,42 @@ The original file is not found. Please locate. mmp::Syphon - + Server UUID 伺服器 UUID - + The system-wide identifier of the Syphon server this source receives. 此來源接收的 Syphon 伺服器在系統中的識別碼。 - + Server name 伺服器名稱 - + The name of the Syphon server this source receives. 此來源接收的 Syphon 伺服器名稱。 - + Application name 應用程式名稱 - + The name of the application publishing the Syphon server. 發布此 Syphon 伺服器的應用程式名稱。 - + Respect source alpha 使用來源的透明度 - + Whether the transparency sent by the server is kept; otherwise the frames are made opaque. 是否保留伺服器傳送的透明度;否則畫面會變為不透明。 @@ -4330,37 +4787,37 @@ The original file is not found. Please locate. mmp::SyphonGui - + Server 伺服器 - + Status 狀態 - + (none) (無) - + Unknown server 未知伺服器 - + Connected 已連線 - + No server selected 未選擇伺服器 - + Waiting for server… 正在等待伺服器… @@ -4418,7 +4875,7 @@ The original file is not found. Please locate. mmp::TextControl - + Choose a file 選擇檔案 @@ -4592,12 +5049,12 @@ The original file is not found. Please locate. mmp::WelcomeDialog - + Welcome to %1 歡迎使用 %1 - + MapMap projects video and images onto real surfaces. To get started, import a media file to create a source, then add a shape to project it onto. @@ -4606,17 +5063,17 @@ To get started, import a media file to create a source, then add a shape to proj 首先匯入媒體檔案以建立來源,然後新增一個形狀,將其投射到該形狀上。 - + Import a media file… 匯入媒體檔案… - + Read the documentation 閱讀說明文件 - + Show this window at startup 啟動時顯示此視窗 From 070899e4ee01a27bbe20faf011adecabbe3a7771 Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 16:56:00 -0500 Subject: [PATCH 08/12] Tell the command Group from the noun, for the translators In English the command and the page of a group are both "Group"; in other languages a verb and a noun. The tooltip of Ungroup says what happens to the group. --- src/gui/MainWindow.cpp | 4 ++-- translations/mapmap_ar.ts | 9 +++++++-- translations/mapmap_de.ts | 17 +++++++++++------ translations/mapmap_en.ts | 17 +++++++++++------ translations/mapmap_es.ts | 17 +++++++++++------ translations/mapmap_fr.ts | 17 +++++++++++------ translations/mapmap_hi.ts | 9 +++++++-- translations/mapmap_pt.ts | 17 +++++++++++------ translations/mapmap_ru.ts | 9 +++++++-- translations/mapmap_zh_CN.ts | 17 +++++++++++------ translations/mapmap_zh_TW.ts | 17 +++++++++++------ 11 files changed, 100 insertions(+), 50 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index d8f9bfc9..06e2daf5 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -3203,7 +3203,7 @@ void MainWindow::createActions() connect(layerLowerToBottomAction, &QAction::triggered, this, &MainWindow::reorderLayerItem); // Groups. - groupLayersAction = new QAction(tr("Group"), this); + groupLayersAction = new QAction(tr("Group", "The command: put the selected layers in a group"), this); groupLayersAction->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_G)); groupLayersAction->setToolTip(tr("Put the selected layers in a new group")); groupLayersAction->setEnabled(false); @@ -3212,7 +3212,7 @@ void MainWindow::createActions() ungroupLayersAction = new QAction(tr("Ungroup"), this); ungroupLayersAction->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_G)); - ungroupLayersAction->setToolTip(tr("Take the layers out of the group, which goes")); + ungroupLayersAction->setToolTip(tr("Take the layers out of the group, and remove the group")); ungroupLayersAction->setEnabled(false); addAction(ungroupLayersAction); connect(ungroupLayersAction, &QAction::triggered, this, &MainWindow::ungroupLayers); diff --git a/translations/mapmap_ar.ts b/translations/mapmap_ar.ts index 9e5cb7b6..818e5089 100644 --- a/translations/mapmap_ar.ts +++ b/translations/mapmap_ar.ts @@ -2970,7 +2970,6 @@ After the scan, do not touch the zoom, the focus or the framing of the projector - Group @@ -3544,6 +3543,12 @@ No camera available in your system Lower to bottom خفض إلى الأسفل + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3556,7 +3561,7 @@ No camera available in your system - Take the layers out of the group, which goes + Take the layers out of the group, and remove the group diff --git a/translations/mapmap_de.ts b/translations/mapmap_de.ts index dad09518..51345207 100644 --- a/translations/mapmap_de.ts +++ b/translations/mapmap_de.ts @@ -3092,7 +3092,6 @@ In Ihrem System ist keine Kamera verfügbar - Group @@ -3504,6 +3503,12 @@ Trotzdem überschreiben? Lower to bottom Ganz nach unten + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3514,11 +3519,6 @@ Trotzdem überschreiben? Ungroup - - - Take the layers out of the group, which goes - - New Group @@ -3829,6 +3829,11 @@ Sie bleiben mit ihren Ebenen erhalten, die ein „fehlt“-Bild zeigen, und werd &Display Controls &Bedienelemente anzeigen + + + Take the layers out of the group, and remove the group + + Display canvas controls diff --git a/translations/mapmap_en.ts b/translations/mapmap_en.ts index f551c4c7..08574eb7 100644 --- a/translations/mapmap_en.ts +++ b/translations/mapmap_en.ts @@ -3079,6 +3079,11 @@ No camera available in your system Show the application's About box Show the application's About box + + + Take the layers out of the group, and remove the group + + &Preferences… @@ -3285,7 +3290,6 @@ The original file is not found. Please locate. - Group @@ -3667,6 +3671,12 @@ Save over it anyway? Lower to bottom Lower to bottom + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3677,11 +3687,6 @@ Save over it anyway? Ungroup - - - Take the layers out of the group, which goes - - New Group diff --git a/translations/mapmap_es.ts b/translations/mapmap_es.ts index 9423790d..500f9856 100644 --- a/translations/mapmap_es.ts +++ b/translations/mapmap_es.ts @@ -3256,6 +3256,17 @@ No hay ninguna cámara disponible en el sistema. Rotate 180°. In the input view, rotates the image inside the layer. Rotar 180°. En la vista de entrada, rota la imagen dentro de la capa. + + + Group + The command: put the selected layers in a group + + + + + Take the layers out of the group, and remove the group + + &Preferences… @@ -3362,7 +3373,6 @@ No hay ninguna cámara disponible en el sistema. - Group @@ -3596,11 +3606,6 @@ Save over it anyway? Ungroup - - - Take the layers out of the group, which goes - - New Group diff --git a/translations/mapmap_fr.ts b/translations/mapmap_fr.ts index 9c351bb6..e5c0b6c6 100644 --- a/translations/mapmap_fr.ts +++ b/translations/mapmap_fr.ts @@ -3088,11 +3088,6 @@ Aucune caméra n'est disponible sur ce système. Ungroup - - - Take the layers out of the group, which goes - - New Group @@ -3466,7 +3461,6 @@ Le fichier original est introuvable. Prière de le localiser. - Group @@ -3768,6 +3762,17 @@ L'écraser quand même? Lower to bottom Descendre tout en bas + + + Group + The command: put the selected layers in a group + + + + + Take the layers out of the group, and remove the group + + &Keyboard Learn diff --git a/translations/mapmap_hi.ts b/translations/mapmap_hi.ts index a74772cd..4139da4f 100644 --- a/translations/mapmap_hi.ts +++ b/translations/mapmap_hi.ts @@ -2934,7 +2934,6 @@ After the scan, do not touch the zoom, the focus or the framing of the projector - Group @@ -3504,6 +3503,12 @@ No camera available in your system Lower to bottom सबसे नीचे ले जाएँ + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3516,7 +3521,7 @@ No camera available in your system - Take the layers out of the group, which goes + Take the layers out of the group, and remove the group diff --git a/translations/mapmap_pt.ts b/translations/mapmap_pt.ts index 4d16e0ff..29937e43 100644 --- a/translations/mapmap_pt.ts +++ b/translations/mapmap_pt.ts @@ -3092,7 +3092,6 @@ Nenhuma câmera disponível no seu sistema - Group @@ -3504,6 +3503,12 @@ Salvar sobre ele mesmo assim? Lower to bottom Enviar para o fundo + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3514,11 +3519,6 @@ Salvar sobre ele mesmo assim? Ungroup - - - Take the layers out of the group, which goes - - New Group @@ -3829,6 +3829,11 @@ Elas são mantidas com suas camadas, que mostram uma imagem "ausente", &Display Controls &Mostrar controles + + + Take the layers out of the group, and remove the group + + Display canvas controls diff --git a/translations/mapmap_ru.ts b/translations/mapmap_ru.ts index aabf9a00..64115e48 100644 --- a/translations/mapmap_ru.ts +++ b/translations/mapmap_ru.ts @@ -2943,7 +2943,6 @@ After the scan, do not touch the zoom, the focus or the framing of the projector - Group @@ -3514,6 +3513,12 @@ No camera available in your system Lower to bottom Опустить вниз + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3526,7 +3531,7 @@ No camera available in your system - Take the layers out of the group, which goes + Take the layers out of the group, and remove the group diff --git a/translations/mapmap_zh_CN.ts b/translations/mapmap_zh_CN.ts index 1e9c4602..d2898bc4 100644 --- a/translations/mapmap_zh_CN.ts +++ b/translations/mapmap_zh_CN.ts @@ -3195,7 +3195,6 @@ No camera available in your system - Group @@ -3529,6 +3528,12 @@ Save over it anyway? Flip vertically. In the input view, flips the image inside the layer. 垂直翻转。在输入视图中,翻转图层内的图像。 + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3539,11 +3544,6 @@ Save over it anyway? Ungroup - - - Take the layers out of the group, which goes - - New Group @@ -3931,6 +3931,11 @@ They are kept with their layers, which show a "missing" image, and sav Lower to bottom 移到最下层 + + + Take the layers out of the group, and remove the group + + &Publish Syphon Output diff --git a/translations/mapmap_zh_TW.ts b/translations/mapmap_zh_TW.ts index 7ba9a8b0..ff64ba51 100644 --- a/translations/mapmap_zh_TW.ts +++ b/translations/mapmap_zh_TW.ts @@ -3195,7 +3195,6 @@ No camera available in your system - Group @@ -3529,6 +3528,12 @@ Save over it anyway? Flip vertically. In the input view, flips the image inside the layer. 垂直翻轉。在輸入檢視中,翻轉圖層內的影像。 + + + Group + The command: put the selected layers in a group + + Put the selected layers in a new group @@ -3539,11 +3544,6 @@ Save over it anyway? Ungroup - - - Take the layers out of the group, which goes - - New Group @@ -3931,6 +3931,11 @@ They are kept with their layers, which show a "missing" image, and sav Lower to bottom 移到最下層 + + + Take the layers out of the group, and remove the group + + &Publish Syphon Output From e99619a977705a1a6b5e712f200fb29a0a68756f Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 17:26:11 -0500 Subject: [PATCH 09/12] Translate the groups of layers into French and English The other languages keep these texts untranslated: no speaker has read them yet. --- translations/mapmap_en.ts | 62 +++++++++++++++++++-------------------- translations/mapmap_fr.ts | 62 +++++++++++++++++++-------------------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/translations/mapmap_en.ts b/translations/mapmap_en.ts index 08574eb7..b17edb69 100644 --- a/translations/mapmap_en.ts +++ b/translations/mapmap_en.ts @@ -402,7 +402,7 @@ Delete group - + Delete group @@ -2511,7 +2511,7 @@ After the scan, do not touch the zoom, the focus or the framing of the projector Whether this group is in solo: its layers are then in solo too. - + Whether this group is in solo: its layers are then in solo too. @@ -2521,22 +2521,22 @@ After the scan, do not touch the zoom, the focus or the framing of the projector Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. - + Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. Collapsed - + Collapsed Whether this group is folded in the list of layers, its layers out of sight. - + Whether this group is folded in the list of layers, its layers out of sight. Group %1 - + Group %1 @@ -2660,17 +2660,17 @@ After the scan, do not touch the zoom, the focus or the framing of the projector The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. - + The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. Group - + Group The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. - + The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. The position of this layer in the stack of layers. @@ -2789,27 +2789,27 @@ After the scan, do not touch the zoom, the focus or the framing of the projector Show or hide the layers of the group - + Show or hide the layers of the group Solo group: show only its layers - + Solo group: show only its layers Lock the layers of the group - + Lock the layers of the group Delete the group and its layers - + Delete the group and its layers Not available for a group yet - + Not available for a group yet @@ -3082,7 +3082,7 @@ No camera available in your system Take the layers out of the group, and remove the group - + Take the layers out of the group, and remove the group @@ -3291,34 +3291,34 @@ The original file is not found. Please locate. Group - + Group Group layers - + Group layers Ungroup layers - + Ungroup layers New group - + New group Delete group - + Delete group Delete the group "%1" and its %n layer(s)? - - - + + Delete the group "%1" and its layer? + Delete the group "%1" and its %n layers? @@ -3329,12 +3329,12 @@ The original file is not found. Please locate. Move layers - + Move layers Move group - + Move group @@ -3675,27 +3675,27 @@ Save over it anyway? Group The command: put the selected layers in a group - + Group Put the selected layers in a new group - + Put the selected layers in a new group Ungroup - + Ungroup New Group - + New Group Add a group without layers, to drag layers into - + Add a group without layers, to drag layers into @@ -4098,7 +4098,7 @@ They are kept with their layers, which show a "missing" image, and sav Group %1 - + Group %1 diff --git a/translations/mapmap_fr.ts b/translations/mapmap_fr.ts index e5c0b6c6..faafdb12 100644 --- a/translations/mapmap_fr.ts +++ b/translations/mapmap_fr.ts @@ -407,7 +407,7 @@ Delete group - + Supprimer le groupe @@ -2515,7 +2515,7 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du Whether this group is in solo: its layers are then in solo too. - + Si ce groupe est en solo : ses calques sont alors en solo aussi. @@ -2525,22 +2525,22 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du Whether the layers of this group are shown: a layer is shown when its eye and that of its group are open. - + Si les calques de ce groupe sont affichés : un calque l'est quand son œil et celui de son groupe sont ouverts. Collapsed - + Replié Whether this group is folded in the list of layers, its layers out of sight. - + Si ce groupe est replié dans la liste des calques, ses calques hors de vue. Group %1 - + Groupe %1 @@ -2664,17 +2664,17 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du The position of this layer in the stack of layers, from 0 at the top. A layer of a group stays in its group. - + La position de ce calque dans la pile des calques, à partir de 0 en haut. Un calque d'un groupe reste dans son groupe. Group - + Groupe The group of this layer, or 0 when it is in none. Putting a layer in a group moves it next to the other layers of the group. - + Le groupe de ce calque, ou 0 s'il n'en a aucun. Mettre un calque dans un groupe le place à côté des autres calques du groupe. The position of this layer in the stack of layers. @@ -2793,27 +2793,27 @@ Après le relevé, ne touchez plus au zoom, à la mise au point ni au cadrage du Show or hide the layers of the group - + Afficher ou cacher les calques du groupe Solo group: show only its layers - + Groupe en solo : n'afficher que ses calques Lock the layers of the group - + Verrouiller les calques du groupe Delete the group and its layers - + Supprimer le groupe et ses calques Not available for a group yet - + Pas encore disponible pour un groupe @@ -3081,22 +3081,22 @@ Aucune caméra n'est disponible sur ce système. Put the selected layers in a new group - + Mettre les calques sélectionnés dans un nouveau groupe Ungroup - + Dégrouper New Group - + Nouveau groupe Add a group without layers, to drag layers into - + Ajouter un groupe vide, où glisser des calques @@ -3370,7 +3370,7 @@ Voulez-vous sauvegarder vos changements? Group %1 - + Groupe %1 @@ -3462,34 +3462,34 @@ Le fichier original est introuvable. Prière de le localiser. Group - + Groupe Group layers - + Grouper les calques Ungroup layers - + Dégrouper les calques New group - + Nouveau groupe Delete group - + Supprimer le groupe Delete the group "%1" and its %n layer(s)? - - - + + Supprimer le groupe « %1 » et son calque? + Supprimer le groupe « %1 » et ses %n calques? @@ -3500,12 +3500,12 @@ Le fichier original est introuvable. Prière de le localiser. Move layers - + Déplacer les calques Move group - + Déplacer le groupe @@ -3766,12 +3766,12 @@ L'écraser quand même? Group The command: put the selected layers in a group - + Grouper Take the layers out of the group, and remove the group - + Sortir les calques du groupe, et retirer le groupe From 1daba285e02b6185d3e3318a04e17e81daf24bce Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 17:38:12 -0500 Subject: [PATCH 10/12] Undo a layer dragged to another row in the list --- src/gui/MainWindow.cpp | 10 ++++++++-- src/gui/MainWindow.h | 1 + tests/TestMappingManager.cpp | 11 +++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 06e2daf5..7688d1b5 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -761,6 +761,12 @@ void MainWindow::placeDroppedLayers(const QVector& layerIds, uid groupId, i }); } +void MainWindow::moveDroppedLayer(uid layerId, int row) +{ + // As Raise and Lower, a layer dragged to another row is one step to undo. + changeStack(tr("Move layer"), [this, layerId, row]() { return mappingManager->moveLayer(layerId, row); }); +} + void MainWindow::moveDroppedGroup(uid groupId, int index) { changeStack(tr("Move group"), [this, groupId, index]() { return mappingManager->moveGroup(groupId, index); }); @@ -5861,7 +5867,7 @@ void MainWindow::connectProjectWidgets() connect(layerListModel, &LayerTreeModel::dataChanged, this, &MainWindow::handleLayerItemChanged); - connect(layerListModel, &LayerTreeModel::layerMoveRequested, mappingManager, &MappingManager::moveLayer); + connect(layerListModel, &LayerTreeModel::layerMoveRequested, this, &MainWindow::moveDroppedLayer); connect(layerListModel, &LayerTreeModel::modelReset, this, &MainWindow::updateLayerTreeDecoration); connect(layerListModel, &LayerTreeModel::rowsInserted, this, &MainWindow::updateLayerTreeDecoration); @@ -5890,7 +5896,7 @@ void MainWindow::disconnectProjectWidgets() disconnect(layerListModel, &LayerTreeModel::dataChanged, this, &MainWindow::handleLayerItemChanged); - disconnect(layerListModel, &LayerTreeModel::layerMoveRequested, mappingManager, &MappingManager::moveLayer); + disconnect(layerListModel, &LayerTreeModel::layerMoveRequested, this, &MainWindow::moveDroppedLayer); disconnect(layerListModel, &LayerTreeModel::modelReset, this, &MainWindow::updateLayerTreeDecoration); disconnect(layerListModel, &LayerTreeModel::rowsInserted, this, &MainWindow::updateLayerTreeDecoration); diff --git a/src/gui/MainWindow.h b/src/gui/MainWindow.h index 2012b08f..9bf245d2 100644 --- a/src/gui/MainWindow.h +++ b/src/gui/MainWindow.h @@ -949,6 +949,7 @@ public slots: /// Does what a drop in the list asks, as one step to undo. void placeDroppedLayers(const QVector& layerIds, uid groupId, int index); void moveDroppedGroup(uid groupId, int index); + void moveDroppedLayer(uid layerId, int row); /// Changes the stack as one step to undo, named text. Returns false when nothing changed. bool changeStack(const QString& text, const std::function& change); /// Returns the layers selected in the list, from the top, or else the current layer. diff --git a/tests/TestMappingManager.cpp b/tests/TestMappingManager.cpp index 65ef97d7..ccdeb7bd 100644 --- a/tests/TestMappingManager.cpp +++ b/tests/TestMappingManager.cpp @@ -624,6 +624,17 @@ void TestMappingManager::undoesStackChanges() undo.redo(); QCOMPARE(p.manager.getGroupLayers(group->getId()), QVector({ p.b, p.c })); QCOMPARE(p.c->getGroup(), group); + + // A layer in no group, dragged to another row, as the main window keeps it. + const QVector beforeMove = p.manager.stack(); + QVERIFY(p.manager.moveLayer(p.d->getId(), 0)); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "a", "b", "c" })); + undo.push(new StackChangeCommand(p.manager, beforeMove, p.manager.stack(), "Move layer")); + undo.undo(); + QCOMPARE(layerNames(p.manager), QStringList({ "a", "b", "c", "d" })); + QCOMPARE(p.d->getDepth(), 3); + undo.redo(); + QCOMPARE(layerNames(p.manager), QStringList({ "d", "a", "b", "c" })); } void TestMappingManager::namesGroupsAfterTheirLayers() From 5559e7e57e5629e2e3e80bd33da7561155c85a6a Mon Sep 17 00:00:00 2001 From: Alexandre Quessy Date: Fri, 4 Dec 2026 18:02:29 -0500 Subject: [PATCH 11/12] Update the changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3309b34..1683a6f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ New: - Control the output window by OSC: `/mapmap/output/mode` (`hidden`, `window` or `screen`), `/mapmap/output/screen` (a name, or a number from 1) and `/mapmap/output/window` (`x y width height`). - Translate MapMap into Arabic, laid out from right to left with numbers written with the digits 0 to 9, into Hindi and into Russian: choose them in Preferences > Interface > Language, or with `--lang ar`, `hi` or `ru`. No speaker of these languages has read them yet. - See the scene from the projector, with a camera placed next to it: Tools > Auto-Mapping covers the screen of the projector with the output, projects a countdown, then black and white stripes that the camera films, about 15 seconds in all. The scene seen from the projector then shows under the shapes of the output editor, with in red what the camera did not see, to place the shapes on it by hand. Tools > Show Auto-Mapping Image hides it, Tools > Clear Auto-Mapping Image forgets it; it is never saved, and goes with the project. No image of the camera is written to the disk, unless asked with `--auto-mapping-save-images `. `--auto-mapping-simulation` films a computed scene instead, to try it without a camera or a projector. Placing shapes on the flat faces found comes in a later version. +- Put layers in groups, which fold in the list of layers and show, hide, lock, put in solo or fade their layers together. Edit > Group (Ctrl+G, Cmd+G on macOS) puts the selected layers in a new group named after them, Ungroup (Ctrl+Shift+G) takes them out, and New Group adds an empty one. Drag a layer onto a group to put it in, or between two rows to place it there; drag a group to move it with its layers. The eye, solo, lock and opacity of a group add to those of its layers, and can be linked to a key or a MIDI control. Deleting a group asks first, then deletes its layers. Each of these is one step to undo. The project keeps the groups and their fold; a project without groups is written as before. OSC reaches groups at `/mapmap/group/...` and puts a layer in one with `/mapmap/layer/group`; the MCP tools `list_groups`, `create_group` and `delete_group` manage them. Improvements: @@ -99,6 +100,9 @@ Fix: - Fix a video racing through its frames at a speed of zero or below: it now stops. A negative speed is kept in the project, for when videos can play backwards again. - Fix a vertex staying selected in one editor after selecting a vertex in the other. - Fix the desktop showing through the editors under Wayland, where a translucent image is drawn, when a dialog opens. +- Fix MapMap asking to save on quit when the project had not changed (#605). +- Fix `/mapmap/layer/depth` and the MCP tool `set_property` on `depth`, which changed the number of a layer without moving it in the stack. +- Fix a layer dragged to another row of the list of layers, which could not be undone. ## 1.0.0-beta.1 - 2026-11-23 From a21485883ba72f135d367040261fc4386bbd956f Mon Sep 17 00:00:00 2001 From: Sofian Audry Date: Sat, 5 Dec 2026 01:33:25 -0500 Subject: [PATCH 12/12] Fix the crash of a right-click on a group in the list of layers --- src/gui/MainWindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 7688d1b5..bf1ae51b 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -5753,10 +5753,15 @@ void MainWindow::showLayerContextMenu(const QPoint &point) _transformInInputView = (sender() == sourceCanvas); Layer::ptr layer = mappingManager->getLayerById(layerId); + // The row of a group has no layer: the menu opens with the actions of a layer greyed, as + // setCurrentGroup() left them, and keeps those that act on a group. + const bool hasLayer = !layer.isNull(); + // Switch to right action check state - layerLockedAction->setChecked(layer->isLocked()); - layerHideAction->setChecked(!layer->isVisible()); - layerSoloAction->setChecked(layer->isSolo()); + layerLockedAction->setChecked(hasLayer && layer->isLocked()); + layerHideAction->setChecked(hasLayer && !layer->isVisible()); + layerSoloAction->setChecked(hasLayer && layer->isSolo()); + _changeLayerMediaMenu->setEnabled(hasLayer); // The row of an effect has its own menu; that of a layer adds or replaces its effect. if (sender() == layerItemDelegate) {