Camera Raw panel docked beside the canvas: scope, Light, Color, Effects, canvas tools (12.8b1)

This commit is contained in:
雷电芽衣 committed 2026-09-28 00:22:02 -04:00
1 parent 9d012d325a
commit 56af936a7b
26 files changed
+1794 -34

No files matched your search

+7 -2
View File
@@ -13,13 +13,15 @@ public:
~FloatingPanel();
FloatingPanel(const FloatingPanel &) = delete;
FloatingPanel &operator=(const FloatingPanel &) = delete;
// New content and title; a shown panel keeps its place.
void show(const QString &title, QWidget *content);
// New content and title; a dock slot takes it docked.
void show(const QString &title, QWidget *content, QWidget *dock = nullptr);
// Hides the panel without reporting a close.
void close();
bool isVisible() const;
// Its close button and Escape report here, as Cancel.
std::function<void()> onClose;
// Swift's docked width: Camera Raw's grading wheels fit it.
static constexpr int dockedWidth = 440;
// Hands the keys back to a shown panel, after clicks.
static void refocus(const QString &name);
@@ -27,9 +29,12 @@ private:
friend class PanelWindow;
void remember();
void closed();
void place(QWidget *content);
void showDocked(const QString &title, QWidget *content, QWidget &dock);
const QString m_name;
QWidget &m_owner;
QPointer<QDialog> m_panel;
QPointer<QWidget> m_docked;
QPointer<QWidget> m_content;
};