OmaPhoto 1.0.0: the Linux port of Compositor
A layered image editor for Linux and Omarchy, ported from Compositor (github.com/robbietilton/Compositor), whose Swift source is its specification. It reads and writes Compositor's .comp projects. Packages for Ubuntu, Fedora and Arch come from the release workflow; scripts/install/ holds one install script per distribution family, and flake.nix serves NixOS. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
c864304695
564 files changed
+100804
No files matched your search
@@ -0,0 +1,27 @@
|
||||
// Swift's LayerEffects extension: effects kept with their layer.
|
||||
public:
|
||||
bool canEditEffects() const;
|
||||
LayerEffects activeEffects() const;
|
||||
// The effects of the layer whose panel is open.
|
||||
LayerEffects editingEffects() const;
|
||||
// The chosen effect, if active and still on its layer.
|
||||
std::optional<LayerEffectSelection> selectedEffect() const;
|
||||
// Adds the effect with its defaults, then opens its panel.
|
||||
void addEffect(LayerEffectKind kind);
|
||||
void selectEffect(LayerEffectKind kind, QUuid id, bool editing = false);
|
||||
// Cancel puts back this panel's effect alone.
|
||||
void finishEffectsEditing(bool commit);
|
||||
// One step, on the active layer unless another is named.
|
||||
void setEffects(const LayerEffects &effects, std::optional<QUuid> id = std::nullopt, const QString &name = QStringLiteral("Layer Effects"));
|
||||
// Panel edits stay with the layer that opened the panel.
|
||||
void changeEffects(const std::function<void(LayerEffects &)> &change);
|
||||
bool canCopyEffect(LayerEffectKind kind, QUuid source, QUuid target) const;
|
||||
void copyEffect(LayerEffectKind kind, QUuid source, QUuid target);
|
||||
void toggleEffect(LayerEffectKind kind, QUuid id);
|
||||
void removeSelectedEffect();
|
||||
// Swift's `effectSelection = nil`, before any guard; announced.
|
||||
void dropEffectSelection();
|
||||
|
||||
private:
|
||||
// An open effect colour picker goes with its panel.
|
||||
void closeEffectColorPicker(bool commit);
|
||||
Reference in new issue
Block a user