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,34 @@
|
||||
#pragma once
|
||||
#include "Document/ProjectWorkspace.h"
|
||||
#include "Rendering/EditorCanvas.h"
|
||||
#include <QAction>
|
||||
#include <QLineEdit>
|
||||
#include <QMenuBar>
|
||||
#include <QPointer>
|
||||
|
||||
// The menu bar: Swift's commands whose session functions exist.
|
||||
class CompositorMenus : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
CompositorMenus(ProjectWorkspace &workspace, QMenuBar &bar, QWidget &window);
|
||||
|
||||
QAction *action(const QString &name) const;
|
||||
|
||||
private:
|
||||
void synchronize();
|
||||
void focusMoved(QWidget *from, QWidget *to);
|
||||
// The open text in the focused canvas, Swift's text view.
|
||||
InlineTextEditor *typedText() const { return m_canvas ? m_canvas->inlineTextEditor() : nullptr; }
|
||||
void watchFront();
|
||||
EditorSession &session() const { return m_workspace.current().session; }
|
||||
ProjectController &projects() const { return m_workspace.current().controller; }
|
||||
QAction *add(QMenu *menu, const QString &name, const QString &text, const QKeySequence &shortcut, const std::function<void()> &run);
|
||||
|
||||
ProjectWorkspace &m_workspace;
|
||||
QWidget &m_window;
|
||||
QMetaObject::Connection m_sessionWatch;
|
||||
std::optional<QUuid> m_watchedTab;
|
||||
// The field whose undo the Edit entries drive.
|
||||
QPointer<QLineEdit> m_field;
|
||||
QPointer<CanvasView> m_canvas;
|
||||
};
|
||||
Reference in new issue
Block a user