From a39be56b8c22b0c33dd14cd5ecfb24da287aefda Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:30 +0900 Subject: [PATCH 1/6] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=81=B8=E8=AA=BF?= =?UTF-8?q?=E6=9F=BB=E7=94=A8=E3=81=AE=E8=A1=8C=E3=82=92=E6=AE=8B=E3=81=9B?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Log.cpp | 43 ++++++++++++++++++++++++++++++------------- src/Log.h | 1 + 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/Log.cpp b/src/Log.cpp index 6a4dc1f..c9fd506 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -10,6 +10,23 @@ void SetLogHandle(LOG_HANDLE* handle) { g_log = handle; } +#ifdef DL_DEBUG_LOG +static void WriteTrace(const wchar_t* text) { + static wchar_t logPath[MAX_PATH] = {}; + if (!logPath[0]) { + wchar_t dir[MAX_PATH] = {}; + if (GetTempPathW(MAX_PATH, dir)) + _snwprintf_s(logPath, _TRUNCATE, L"%sDockLayout.log", dir); + } + if (!logPath[0]) return; + FILE* f = nullptr; + if (_wfopen_s(&f, logPath, L"a+, ccs=UTF-8") == 0 && f) { + fwprintf(f, L"%s\n", text); + fclose(f); + } +} +#endif + void LogF(const wchar_t* fmt, ...) { wchar_t buf[1024]; va_list ap; va_start(ap, fmt); @@ -17,19 +34,19 @@ void LogF(const wchar_t* fmt, ...) { va_end(ap); if (g_log) g_log->log(g_log, buf); #ifdef DL_DEBUG_LOG - static wchar_t logPath[MAX_PATH] = {}; - if (!logPath[0]) { - wchar_t dir[MAX_PATH] = {}; - if (GetTempPathW(MAX_PATH, dir)) - _snwprintf_s(logPath, _TRUNCATE, L"%sDockLayout.log", dir); - } - if (logPath[0]) { - FILE* f = nullptr; - if (_wfopen_s(&f, logPath, L"a+, ccs=UTF-8") == 0 && f) { - fwprintf(f, L"%s\n", buf); - fclose(f); - } - } + WriteTrace(buf); +#endif +} + +void LogTraceF(const wchar_t* fmt, ...) { +#ifdef DL_DEBUG_LOG + wchar_t buf[1024]; + va_list ap; va_start(ap, fmt); + _vsnwprintf_s(buf, _TRUNCATE, fmt, ap); + va_end(ap); + WriteTrace(buf); +#else + (void)fmt; #endif } diff --git a/src/Log.h b/src/Log.h index 0e855cb..d8d9f80 100644 --- a/src/Log.h +++ b/src/Log.h @@ -8,6 +8,7 @@ namespace dl { void SetLogHandle(LOG_HANDLE* handle); void LogF(const wchar_t* fmt, ...); +void LogTraceF(const wchar_t* fmt, ...); void LogWarn(const wchar_t* text); } From e417c6ff3b78d89c035f29ec4a8405f4eda1b581 Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:31 +0900 Subject: [PATCH 2/6] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E3=81=AE=E5=86=8D?= =?UTF-8?q?=E8=A8=88=E7=AE=97=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DockLayout.vcxproj | 2 + DockLayout.vcxproj.filters | 6 + src/DockPlan.cpp | 249 +++++++++++++++++++++++++++++++++++++ src/DockPlan.h | 40 ++++++ 4 files changed, 297 insertions(+) create mode 100644 src/DockPlan.cpp create mode 100644 src/DockPlan.h diff --git a/DockLayout.vcxproj b/DockLayout.vcxproj index 360c9fa..90b6755 100644 --- a/DockLayout.vcxproj +++ b/DockLayout.vcxproj @@ -94,6 +94,7 @@ + @@ -110,6 +111,7 @@ + diff --git a/DockLayout.vcxproj.filters b/DockLayout.vcxproj.filters index 29fa386..2f130e5 100644 --- a/DockLayout.vcxproj.filters +++ b/DockLayout.vcxproj.filters @@ -25,6 +25,9 @@ ソース ファイル + + ソース ファイル + ソース ファイル @@ -66,6 +69,9 @@ ヘッダー ファイル + + ヘッダー ファイル + ヘッダー ファイル diff --git a/src/DockPlan.cpp b/src/DockPlan.cpp new file mode 100644 index 0000000..9e2305a --- /dev/null +++ b/src/DockPlan.cpp @@ -0,0 +1,249 @@ +#include "DockPlan.h" + +#include + +#include "StyleMetrics.h" +#include "WindowMenu.h" + +namespace dl { + +namespace { + +const int kBandAreas[3] = { 2, 4, 3 }; + +const double kRound = 1e-6; + +struct Span { + double low; + double high; +}; + +struct Slot { + int low; + int high; +}; + +void Nest(const std::vector& spans, double start, double total, int separator, + std::vector* out) { + if (spans.empty()) return; + if (spans.size() == 1) { + out->push_back(Slot{ static_cast(start + kRound), + static_cast(start + total - separator + kRound) }); + return; + } + const double first = spans[0].high - spans[0].low; + double low = spans[1].low; + double high = spans[1].high; + for (size_t i = 2; i < spans.size(); i++) { + low = min(low, spans[i].low); + high = max(high, spans[i].high); + } + const double rest = high - low; + const double slot = first + rest > 0 ? total * first / (first + rest) + : total / static_cast(spans.size()); + out->push_back(Slot{ static_cast(start + kRound), + static_cast(start + slot - separator + kRound) }); + Nest(std::vector(spans.begin() + 1, spans.end()), start + slot, total - slot, + separator, out); +} + +std::vector Spread(const std::vector& weights, int start, int length, int separator) { + std::vector slots; + double total = 0; + for (double weight : weights) total += weight; + if (total <= 0 || length <= 0) return slots; + + double at = start; + const double extended = static_cast(length) + separator; + for (double weight : weights) { + const double size = weight / total * extended; + slots.push_back(Slot{ static_cast(at + kRound), + static_cast(at + size - separator + kRound) }); + at += size; + } + return slots; +} + +Span Bounds(const std::vector& members, bool vertical) { + Span span = vertical ? Span{ members[0]->top, members[0]->bottom } + : Span{ members[0]->left, members[0]->right }; + for (const PlanItem* item : members) { + span.low = min(span.low, vertical ? item->top : item->left); + span.high = max(span.high, vertical ? item->bottom : item->right); + } + return span; +} + +void SortMembers(std::vector& members, bool vertical) { + std::stable_sort(members.begin(), members.end(), + [vertical](const PlanItem* a, const PlanItem* b) { + const double al = vertical ? a->top : a->left; + const double bl = vertical ? b->top : b->left; + if (al != bl) return al < bl; + return (vertical ? a->bottom : a->right) < (vertical ? b->bottom : b->right); + }); +} + +void StackVertical(std::vector& members, int left, int right, + int top, int bottom, int separator) { + SortMembers(members, true); + std::vector weights; + for (const PlanItem* item : members) weights.push_back(item->bottom - item->top); + const std::vector slots = Spread(weights, top, bottom - top, separator); + for (size_t i = 0; i < slots.size() && i < members.size(); i++) + members[i]->rect = RECT{ left, slots[i].low, right, slots[i].high }; +} + +void StackHorizontal(std::vector& members, int left, int right, + int top, int bottom, int separator) { + SortMembers(members, false); + std::vector weights; + for (const PlanItem* item : members) weights.push_back(item->right - item->left); + const std::vector slots = Spread(weights, left, right - left, separator); + for (size_t i = 0; i < slots.size() && i < members.size(); i++) + members[i]->rect = RECT{ slots[i].low, top, slots[i].high, bottom }; +} + +void LayoutMiddle(const std::vector& members, int left, int right, + int top, int bottom, int separator) { + std::vector bands[3]; + for (PlanItem* item : members) { + for (int i = 0; i < 3; i++) + if (item->area == kBandAreas[i]) bands[i].push_back(item); + } + + std::vector spans; + std::vector present; + for (int i = 0; i < 3; i++) { + if (bands[i].empty()) continue; + spans.push_back(Bounds(bands[i], true)); + present.push_back(i); + } + std::vector rows; + Nest(spans, top, static_cast(bottom - top) + separator, separator, &rows); + for (size_t i = 0; i < rows.size() && i < present.size(); i++) + StackHorizontal(bands[present[i]], left, right, rows[i].low, rows[i].high, separator); +} + +} + +int SeparatorWidth() { + const int size = Style().windowSeparatorSize - 2; + return size > 0 ? size : 1; +} + +bool DockPlan::Load(const DockModel& model) { + items_.clear(); + region_ = model.Region(); + separator_ = SeparatorWidth(); + + const double width = static_cast(region_.right - region_.left) + separator_; + const double height = static_cast(region_.bottom - region_.top) + separator_; + if (width <= separator_ || height <= separator_) return false; + + for (size_t i = 0; i < model.Panels().size(); i++) { + const DockPanel& panel = model.Panels()[i]; + if (panel.area == kAreaUnknown) return false; + PlanItem item = {}; + item.panel = static_cast(i); + item.left = (panel.rect.left - region_.left) / width; + item.top = (panel.rect.top - region_.top) / height; + item.right = (panel.rect.right - region_.left + separator_) / width; + item.bottom = (panel.rect.bottom - region_.top + separator_) / height; + item.area = panel.area; + items_.push_back(item); + } + return !items_.empty(); +} + +bool DockPlan::SetArea(int panel, int area) { + for (size_t i = 0; i < items_.size(); i++) { + if (items_[i].panel != panel) continue; + const PlanItem moved = items_[i]; + items_.erase(items_.begin() + i); + items_.push_back(moved); + items_.back().area = area; + return true; + } + return false; +} + +bool DockPlan::Add(double left, double top, double right, double bottom, int area) { + if (items_.empty()) return false; + PlanItem item = {}; + item.panel = kIncomingPanel; + item.left = left; + item.top = top; + item.right = right; + item.bottom = bottom; + item.area = area; + items_.push_back(item); + return true; +} + +bool DockPlan::Detach(int panel) { + for (size_t i = 0; i < items_.size(); i++) { + if (items_[i].panel != panel) continue; + items_.erase(items_.begin() + i); + return true; + } + return false; +} + +void DockPlan::Compute() { + for (PlanItem& item : items_) item.rect = RECT{}; + if (items_.empty()) return; + + std::vector groups[3]; + for (PlanItem& item : items_) { + if (item.area == 0) groups[0].push_back(&item); + else if (item.area == 1) groups[2].push_back(&item); + else groups[1].push_back(&item); + } + + std::vector spans; + std::vector present; + for (int i = 0; i < 3; i++) { + if (groups[i].empty()) continue; + spans.push_back(Bounds(groups[i], false)); + present.push_back(i); + } + std::vector columns; + Nest(spans, region_.left, static_cast(region_.right - region_.left) + separator_, + separator_, &columns); + + for (size_t i = 0; i < columns.size() && i < present.size(); i++) { + std::vector& members = groups[present[i]]; + if (present[i] == 1) + LayoutMiddle(members, columns[i].low, columns[i].high, + region_.top, region_.bottom, separator_); + else + StackVertical(members, columns[i].low, columns[i].high, + region_.top, region_.bottom, separator_); + } +} + +bool DockPlan::NormalizedOf(int panel, double* left, double* top, + double* right, double* bottom) const { + for (const PlanItem& item : items_) { + if (item.panel != panel) continue; + *left = item.left; + *top = item.top; + *right = item.right; + *bottom = item.bottom; + return true; + } + return false; +} + +bool DockPlan::RectOf(int panel, RECT* out) const { + for (const PlanItem& item : items_) { + if (item.panel != panel) continue; + if (item.rect.right <= item.rect.left || item.rect.bottom <= item.rect.top) return false; + *out = item.rect; + return true; + } + return false; +} + +} diff --git a/src/DockPlan.h b/src/DockPlan.h new file mode 100644 index 0000000..48cd621 --- /dev/null +++ b/src/DockPlan.h @@ -0,0 +1,40 @@ +#pragma once + +#include +#include + +#include "DockModel.h" + +namespace dl { + +inline constexpr int kIncomingPanel = -2; + +struct PlanItem { + int panel; + double left; + double top; + double right; + double bottom; + int area; + RECT rect; +}; + +class DockPlan { +public: + bool Load(const DockModel& model); + bool SetArea(int panel, int area); + bool Add(double left, double top, double right, double bottom, int area); + bool Detach(int panel); + void Compute(); + bool RectOf(int panel, RECT* out) const; + bool NormalizedOf(int panel, double* left, double* top, double* right, double* bottom) const; + +private: + std::vector items_; + RECT region_ = {}; + int separator_ = 0; +}; + +int SeparatorWidth(); + +} From 64d809ab736ca44aef2168f3f830717f34a36dbc Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:31 +0900 Subject: [PATCH 3/6] =?UTF-8?q?=E5=88=86=E9=9B=A2=E3=81=97=E3=81=9F?= =?UTF-8?q?=E7=AA=93=E3=81=AE=E9=85=8D=E7=BD=AE=E3=82=92=E8=A6=9A=E3=81=88?= =?UTF-8?q?=E3=82=8B=E4=BB=95=E7=B5=84=E3=81=BF=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DockLayout.vcxproj | 2 ++ DockLayout.vcxproj.filters | 6 ++++ src/FloatOrigin.cpp | 61 ++++++++++++++++++++++++++++++++++++++ src/FloatOrigin.h | 23 ++++++++++++++ 4 files changed, 92 insertions(+) create mode 100644 src/FloatOrigin.cpp create mode 100644 src/FloatOrigin.h diff --git a/DockLayout.vcxproj b/DockLayout.vcxproj index 90b6755..24bc243 100644 --- a/DockLayout.vcxproj +++ b/DockLayout.vcxproj @@ -96,6 +96,7 @@ + @@ -113,6 +114,7 @@ + diff --git a/DockLayout.vcxproj.filters b/DockLayout.vcxproj.filters index 2f130e5..90b1b1c 100644 --- a/DockLayout.vcxproj.filters +++ b/DockLayout.vcxproj.filters @@ -31,6 +31,9 @@ ソース ファイル + + ソース ファイル + ソース ファイル @@ -75,6 +78,9 @@ ヘッダー ファイル + + ヘッダー ファイル + ヘッダー ファイル diff --git a/src/FloatOrigin.cpp b/src/FloatOrigin.cpp new file mode 100644 index 0000000..6e701de --- /dev/null +++ b/src/FloatOrigin.cpp @@ -0,0 +1,61 @@ +#include "FloatOrigin.h" + +#include + +namespace dl { + +struct Entry { + HWND window; + FloatOrigin origin; +}; + +static std::vector g_entries; + +static bool g_pending = false; +static FloatOrigin g_pendingOrigin; + +void SetPendingFloat(const FloatOrigin& origin) { + g_pending = true; + g_pendingOrigin = origin; +} + +bool TakePendingFloat(FloatOrigin* out) { + if (!g_pending) return false; + g_pending = false; + if (out) *out = g_pendingOrigin; + return true; +} + +void RememberFloat(HWND window, const FloatOrigin& origin) { + if (!window) return; + for (Entry& entry : g_entries) { + if (entry.window != window) continue; + entry.origin = origin; + return; + } + g_entries.push_back(Entry{ window, origin }); +} + +void ForgetFloat(HWND window) { + for (size_t i = 0; i < g_entries.size(); i++) { + if (g_entries[i].window != window) continue; + g_entries.erase(g_entries.begin() + i); + return; + } +} + +bool FloatOriginOf(HWND window, FloatOrigin* out) { + for (const Entry& entry : g_entries) { + if (entry.window != window) continue; + if (out) *out = entry.origin; + return true; + } + return false; +} + +void ClearFloatOrigins() { + g_entries.clear(); + g_pending = false; +} + +} diff --git a/src/FloatOrigin.h b/src/FloatOrigin.h new file mode 100644 index 0000000..5813f95 --- /dev/null +++ b/src/FloatOrigin.h @@ -0,0 +1,23 @@ +#pragma once + +#include + +namespace dl { + +struct FloatOrigin { + double left = 0; + double top = 0; + double right = 0; + double bottom = 0; + int area = -1; +}; + +void SetPendingFloat(const FloatOrigin& origin); +bool TakePendingFloat(FloatOrigin* out); + +void RememberFloat(HWND window, const FloatOrigin& origin); +void ForgetFloat(HWND window); +bool FloatOriginOf(HWND window, FloatOrigin* out); +void ClearFloatOrigins(); + +} From 26b559cb4d96eb3e7496603081989f763e310d1a Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:31 +0900 Subject: [PATCH 4/6] =?UTF-8?q?=E7=9D=80=E5=9C=B0=E4=BA=88=E5=91=8A?= =?UTF-8?q?=E3=82=92=E5=86=8D=E9=85=8D=E7=BD=AE=E3=81=AE=E8=A8=88=E7=AE=97?= =?UTF-8?q?=E3=81=8B=E3=82=89=E6=B1=82=E3=82=81=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DockGuides.cpp | 125 ++++++++++++++++++++++++++++------------ src/DockGuides.h | 14 ++++- src/DragSession.cpp | 83 ++++++++++++++++---------- src/DragSession.h | 5 ++ src/FloatWindowHook.cpp | 5 ++ src/GuideWindow.cpp | 2 +- src/Plugin.cpp | 2 + 7 files changed, 167 insertions(+), 69 deletions(-) diff --git a/src/DockGuides.cpp b/src/DockGuides.cpp index 066fbcb..87f39d0 100644 --- a/src/DockGuides.cpp +++ b/src/DockGuides.cpp @@ -1,11 +1,12 @@ #include "DockGuides.h" +#include + +#include "DockPlan.h" #include "HostContext.h" namespace dl { -static const int kAreaBandDivisor = 4; - static int ButtonSize() { const int base = LayoutSize("TitleHeaderHeight"); return base > 0 ? base * 2 : 40; @@ -32,31 +33,6 @@ static bool Empty(const RECT& r) { return r.right <= r.left || r.bottom <= r.top; } -static RECT EdgeBand(const RECT& region, int area) { - const int width = (region.right - region.left) / kAreaBandDivisor; - const int height = (region.bottom - region.top) / kAreaBandDivisor; - switch (area) { - case 0: return RECT{ region.left, region.top, region.left + width, region.bottom }; - case 1: return RECT{ region.right - width, region.top, region.right, region.bottom }; - case 2: return RECT{ region.left, region.top, region.right, region.top + height }; - case 3: return RECT{ region.left, region.bottom - height, region.right, region.bottom }; - default: break; - } - return RECT{ region.left, region.top + height, region.right, region.bottom - height }; -} - -static RECT SideHalf(const RECT& r, StackAxis axis, bool after) { - RECT half = r; - if (axis == StackAxis::Vertical) { - const int middle = (r.top + r.bottom) / 2; - (after ? half.top : half.bottom) = middle; - } else { - const int middle = (r.left + r.right) / 2; - (after ? half.left : half.right) = middle; - } - return half; -} - bool CanGroupOnto(const DockModel& model, int source, int target) { const DockPanel* from = model.Get(source); const DockPanel* onto = model.Get(target); @@ -80,13 +56,70 @@ bool CanInsertInto(const DockModel& model, int source, int target) { from->area != kAreaUnknown && from->area == onto->area; } +bool BuildInsertPlan(const DockModel& model, int source, int target, bool after, InsertPlan* plan) { + const DockPanel* from = model.Get(source); + const DockPanel* onto = model.Get(target); + if (!from || !onto || !plan) return false; + + plan->slots.clear(); + for (size_t i = 0; i < model.Panels().size(); i++) + if (model.Panels()[i].stack == from->stack) plan->slots.push_back(static_cast(i)); + for (size_t i = 1; i < plan->slots.size(); i++) + for (size_t j = i; j > 0 && model.Panels()[plan->slots[j - 1]].order > + model.Panels()[plan->slots[j]].order; j--) + std::swap(plan->slots[j - 1], plan->slots[j]); + + int at = -1, to = -1; + for (size_t i = 0; i < plan->slots.size(); i++) { + if (plan->slots[i] == source) at = static_cast(i); + if (plan->slots[i] == target) to = static_cast(i); + } + if (at < 0 || to < 0) return false; + + plan->from = at; + plan->to = after ? (at < to ? to : to + 1) : (at < to ? to - 1 : to); + return plan->to != at; +} + +static bool PlanAreaMove(const DockModel& model, int source, int area, RECT* out) { + const DockPanel* from = model.Get(source); + if (!from || from->grouped) return false; + if (from->area == area) { *out = from->rect; return true; } + + DockPlan plan; + if (!plan.Load(model)) return false; + if (!plan.SetArea(source, area)) return false; + plan.Compute(); + return plan.RectOf(source, out); +} + +static bool PlanGroup(const DockModel& model, int source, int target, RECT* out) { + const DockPanel* from = model.Get(source); + if (!from || from->grouped) return false; + + DockPlan plan; + if (!plan.Load(model)) return false; + if (!plan.Detach(source)) return false; + plan.Compute(); + return plan.RectOf(target, out); +} + +static bool PlanMerge(const DockModel& model, const FloatOrigin& incoming, RECT* out) { + DockPlan plan; + if (!plan.Load(model)) return false; + if (!plan.Add(incoming.left, incoming.top, incoming.right, incoming.bottom, incoming.area)) + return false; + plan.Compute(); + return plan.RectOf(kIncomingPanel, out); +} + void DockGuides::Clear() { buttons_.clear(); hot_ = -1; target_ = DropTarget(); } -void DockGuides::AddAreaCross(const DockModel& model) { +void DockGuides::AddAreaCross(const DockModel& model, int source) { const RECT& region = model.Region(); const POINT center = CenterOf(region); const int size = ButtonSize(); @@ -106,8 +139,8 @@ void DockGuides::AddAreaCross(const DockModel& model) { button.icon = icons[area]; button.target.kind = DropKind::Area; button.target.area = area; - RECT preview = model.AreaRect(area); - button.target.preview = Empty(preview) ? EdgeBand(region, area) : preview; + button.target.known = PlanAreaMove(model, source, area, &button.target.preview); + if (!button.target.known) button.target.preview = RECT{}; buttons_.push_back(button); } } @@ -165,14 +198,32 @@ void DockGuides::AddPanelCluster(const DockModel& model, int source, int hovered button.target.kind = entry.kind; button.target.panel = hovered; button.target.after = entry.after; - button.target.preview = entry.kind == DropKind::Group - ? onto->rect - : SideHalf(onto->rect, axis, entry.after); + if (entry.kind == DropKind::Group) { + button.target.known = PlanGroup(model, source, hovered, &button.target.preview); + if (!button.target.known) button.target.preview = RECT{}; + } + if (entry.kind == DropKind::Insert) { + InsertPlan plan; + if (BuildInsertPlan(model, source, hovered, entry.after, &plan)) { + const DockPanel* slot = model.Get(plan.slots[plan.to]); + if (slot) { + button.target.preview = slot->rect; + button.target.known = true; + } + } else { + const DockPanel* from = model.Get(source); + if (from) { + button.target.preview = from->rect; + button.target.known = true; + } + } + } buttons_.push_back(button); } } -void DockGuides::Update(const DockModel& model, int source, POINT cursor, bool inside) { +void DockGuides::Update(const DockModel& model, int source, POINT cursor, bool inside, + const FloatOrigin* incoming) { buttons_.clear(); hot_ = -1; target_ = DropTarget(); @@ -184,10 +235,12 @@ void DockGuides::Update(const DockModel& model, int source, POINT cursor, bool i button.rect = CenteredRect(CenterOf(model.Region()), ButtonSize()); button.icon = GuideIcon::Merge; button.target.kind = DropKind::Merge; - button.target.preview = model.Region(); + if (incoming && incoming->area != kAreaUnknown) + button.target.known = PlanMerge(model, *incoming, &button.target.preview); + if (!button.target.known) button.target.preview = RECT{}; buttons_.push_back(button); } else { - AddAreaCross(model); + AddAreaCross(model, source); const int hovered = model.IndexAt(cursor); if (hovered >= 0 && hovered != source) AddPanelCluster(model, source, hovered); } diff --git a/src/DockGuides.h b/src/DockGuides.h index 3be6d81..a440573 100644 --- a/src/DockGuides.h +++ b/src/DockGuides.h @@ -4,6 +4,7 @@ #include #include "DockModel.h" +#include "FloatOrigin.h" #include "WindowMenu.h" namespace dl { @@ -20,6 +21,7 @@ struct DropTarget { int area = kAreaUnknown; int panel = -1; bool after = false; + bool known = false; RECT preview = {}; }; @@ -29,9 +31,16 @@ struct GuideButton { DropTarget target; }; +struct InsertPlan { + std::vector slots; + int from = -1; + int to = -1; +}; + class DockGuides { public: - void Update(const DockModel& model, int source, POINT cursor, bool inside); + void Update(const DockModel& model, int source, POINT cursor, bool inside, + const FloatOrigin* incoming); void Clear(); const std::vector& Buttons() const { return buttons_; } @@ -39,7 +48,7 @@ public: const DropTarget& Target() const { return target_; } private: - void AddAreaCross(const DockModel& model); + void AddAreaCross(const DockModel& model, int source); void AddPanelCluster(const DockModel& model, int source, int hovered); std::vector buttons_; @@ -49,5 +58,6 @@ private: bool CanGroupOnto(const DockModel& model, int source, int target); bool CanInsertInto(const DockModel& model, int source, int target); +bool BuildInsertPlan(const DockModel& model, int source, int target, bool after, InsertPlan* plan); } diff --git a/src/DragSession.cpp b/src/DragSession.cpp index e4e33e4..9f3e3b8 100644 --- a/src/DragSession.cpp +++ b/src/DragSession.cpp @@ -1,11 +1,12 @@ #include "DragSession.h" #include -#include #include #include "DockGuides.h" #include "DockModel.h" +#include "DockPlan.h" +#include "FloatOrigin.h" #include "GuideWindow.h" #include "HostContext.h" #include "Log.h" @@ -82,6 +83,20 @@ static POINT ToScreen(HWND window, POINT clientPt) { return pt; } +static void TraceGuides() { + const std::vector& buttons = g_guides.Buttons(); + for (size_t i = 0; i < buttons.size(); i++) { + const GuideButton& button = buttons[i]; + LogTraceF(L"guide %d kind %d button %d %d %d %d known %d preview %d %d %d %d", + static_cast(i), static_cast(button.target.kind), + button.rect.left, button.rect.top, button.rect.right, button.rect.bottom, + button.target.known ? 1 : 0, + button.target.preview.left, button.target.preview.top, + button.target.preview.right, button.target.preview.bottom); + } + LogTraceF(L"guide end hot %d", g_guides.Hot()); +} + bool DragSession::Holding() const { return phase_ == Phase::Armed; } bool DragSession::Dragging() const { return phase_ == Phase::Dragging; } @@ -113,12 +128,15 @@ bool DragSession::BeginFloat(HWND window) { bool DragSession::Start() { panel_ = -1; + hasOrigin_ = false; if (window_ == HostWindow()) { if (!g_model.Build()) return false; panel_ = g_model.IndexAt(origin_); if (panel_ < 0) return false; - } else if (!g_model.BuildRegion()) { - return false; + } else { + const bool built = g_model.Build(); + if (built) hasOrigin_ = FloatOriginOf(window_, &floatOrigin_); + if (!built && !g_model.BuildRegion()) return false; } g_guides.Clear(); @@ -139,7 +157,8 @@ void DragSession::Track(POINT screenPt) { const POINT hostPt = ToHostClient(screenPt); const bool inside = PtInRect(&g_model.Region(), hostPt) != 0; - g_guides.Update(g_model, panel_, hostPt, inside); + g_guides.Update(g_model, panel_, hostPt, inside, hasOrigin_ ? &floatOrigin_ : nullptr); + TraceGuides(); Overlay().Update(g_guides); } @@ -157,40 +176,44 @@ void DragSession::ExecuteGroup(int target) { void DragSession::ExecuteInsert(int target, bool after) { const DockPanel* from = g_model.Get(panel_); - const DockPanel* onto = g_model.Get(target); - if (!from || !onto) return; + InsertPlan plan; + if (!from || !BuildInsertPlan(g_model, panel_, target, after, &plan)) return; - std::vector slots; - for (const DockPanel& panel : g_model.Panels()) - if (panel.stack == from->stack) slots.push_back(&panel); - for (size_t i = 1; i < slots.size(); i++) - for (size_t j = i; j > 0 && slots[j - 1]->order > slots[j]->order; j--) - std::swap(slots[j - 1], slots[j]); - - int at = -1, to = -1; - for (size_t i = 0; i < slots.size(); i++) { - if (slots[i] == from) at = static_cast(i); - if (slots[i] == onto) to = static_cast(i); - } - if (at < 0 || to < 0) return; - - const int destination = after ? (at < to ? to : to + 1) : (at < to ? to - 1 : to); - if (destination == at) return; - - const int step = destination < at ? -1 : 1; + const int step = plan.to < plan.from ? -1 : 1; const WindowCommand command = step < 0 ? WindowCommand::MoveUp : WindowCommand::MoveDown; const POINT grab = { origin_.x - from->rect.left, origin_.y - from->rect.top }; - for (int index = at; index != destination; index += step) { - const RECT& slot = slots[index]->rect; - const POINT point = { min(slot.left + grab.x, slot.right - 1), - min(slot.top + grab.y, slot.bottom - 1) }; + for (int index = plan.from; index != plan.to; index += step) { + const DockPanel* slot = g_model.Get(plan.slots[index]); + if (!slot) return; + const POINT point = { min(slot->rect.left + grab.x, slot->rect.right - 1), + min(slot->rect.top + grab.y, slot->rect.bottom - 1) }; InvokeWindowCommand(HostWindow(), point, command); } LogF(L"ドッキング配置: パネルの並び順を変えました"); } +void DragSession::ExecuteDetach() { + const DockPanel* from = g_model.Get(panel_); + if (!from) return; + + DockPlan plan; + FloatOrigin origin; + const bool known = plan.Load(g_model) && + plan.NormalizedOf(panel_, &origin.left, &origin.top, + &origin.right, &origin.bottom); + origin.area = from->area; + + if (!InvokeWindowCommand(HostWindow(), origin_, WindowCommand::Detach)) return; + LogF(L"ドッキング配置: パネルを分離しました"); + if (known) SetPendingFloat(origin); +} + void DragSession::Execute() { const DropTarget target = g_guides.Target(); + LogTraceF(L"drop kind %d known %d preview %d %d %d %d", + static_cast(target.kind), target.known ? 1 : 0, + target.preview.left, target.preview.top, + target.preview.right, target.preview.bottom); switch (target.kind) { case DropKind::Area: { const DockPanel* from = g_model.Get(panel_); @@ -206,8 +229,7 @@ void DragSession::Execute() { ExecuteInsert(target.panel, target.after); return; case DropKind::Detach: - if (InvokeWindowCommand(HostWindow(), origin_, WindowCommand::Detach)) - LogF(L"ドッキング配置: パネルを分離しました"); + ExecuteDetach(); return; case DropKind::Merge: { RECT client = {}; @@ -219,6 +241,7 @@ void DragSession::Execute() { }; for (const POINT& point : candidates) { if (!InvokeWindowCommand(window_, point, WindowCommand::Merge)) continue; + ForgetFloat(window_); LogF(L"ドッキング配置: ウィンドウを本体へ戻しました"); return; } diff --git a/src/DragSession.h b/src/DragSession.h index c6913d3..e4dc3fd 100644 --- a/src/DragSession.h +++ b/src/DragSession.h @@ -2,6 +2,8 @@ #include +#include "FloatOrigin.h" + namespace dl { class DragSession { @@ -25,6 +27,7 @@ private: void Execute(); void ExecuteGroup(int target); void ExecuteInsert(int target, bool after); + void ExecuteDetach(); void Replay(POINT screenPt); void Reset(); @@ -33,6 +36,8 @@ private: POINT origin_ = {}; int panel_ = -1; bool pending_ = false; + bool hasOrigin_ = false; + FloatOrigin floatOrigin_; }; DragSession& Drag(); diff --git a/src/FloatWindowHook.cpp b/src/FloatWindowHook.cpp index 466a88b..9efe1ec 100644 --- a/src/FloatWindowHook.cpp +++ b/src/FloatWindowHook.cpp @@ -4,6 +4,7 @@ #include #include "DragSession.h" +#include "FloatOrigin.h" #include "HostContext.h" namespace dl { @@ -60,6 +61,7 @@ static LRESULT CALLBACK FloatProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) { case WM_NCDESTROY: { if (Drag().Window() == hwnd) Drag().Cancel(); const LRESULT result = CallOriginalProc(hwnd, msg, wp, lp); + ForgetFloat(hwnd); Unhook(hwnd); return result; } @@ -86,6 +88,9 @@ static BOOL CALLBACK Collect(HWND window, LPARAM) { SetWindowProc(window, (WNDPROC)SetWindowLongPtrW(window, GWLP_WNDPROC, (LONG_PTR)FloatProc)); g_hooked.push_back(window); + + FloatOrigin origin; + if (TakePendingFloat(&origin)) RememberFloat(window, origin); return TRUE; } diff --git a/src/GuideWindow.cpp b/src/GuideWindow.cpp index a54f3f7..6c954a2 100644 --- a/src/GuideWindow.cpp +++ b/src/GuideWindow.cpp @@ -148,7 +148,7 @@ void Paint(Canvas& canvas, const DockGuides& guides) { const DropTarget& target = guides.Target(); const RECT& preview = target.preview; - if (target.kind != DropKind::None && target.kind != DropKind::Detach && + if (target.kind != DropKind::None && target.known && preview.right > preview.left && preview.bottom > preview.top) { canvas.Fill(preview, accent, kPreviewFillAlpha); canvas.Frame(preview, kPreviewEdgeWidth, accent, kPreviewEdgeAlpha); diff --git a/src/Plugin.cpp b/src/Plugin.cpp index 36399be..dcaf188 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -1,6 +1,7 @@ #include #include "DragSession.h" +#include "FloatOrigin.h" #include "FloatWindowHook.h" #include "GuideWindow.h" #include "HostContext.h" @@ -42,6 +43,7 @@ EXTERN_C __declspec(dllexport) void UninitializePlugin() { UninstallFloatWindowHook(); UninstallHostWindowHook(); UninstallWindowMenuHook(); + ClearFloatOrigins(); } BOOL APIENTRY DllMain(HMODULE, DWORD, LPVOID) { return TRUE; } From ca2231ca664def0ad18b422e95f83ca40241d3e6 Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:32 +0900 Subject: [PATCH 5/6] =?UTF-8?q?=E7=9D=80=E5=9C=B0=E4=BA=88=E5=91=8A?= =?UTF-8?q?=E3=81=AE=E4=BB=95=E7=B5=84=E3=81=BF=E3=82=92=E6=96=87=E6=9B=B8?= =?UTF-8?q?=E3=81=B8=E6=9B=B8=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/Plugin_Readme.txt | 34 ++++++++++++++++++++++++++++++---- README.md | 26 +++++++++++++++++++++----- 2 files changed, 51 insertions(+), 9 deletions(-) diff --git a/.github/Plugin_Readme.txt b/.github/Plugin_Readme.txt index ec255f6..18d6a2c 100644 --- a/.github/Plugin_Readme.txt +++ b/.github/Plugin_Readme.txt @@ -32,18 +32,23 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 パネルは、Alt キーを押しながらパネルの中をドラッグしてください。 - ドラッグを始めると、画面の中央に5つのガイドが出ます。左右上下と中央の - エリアに対応していて、落としたガイドのエリアへパネルが移ります。落ちる先は - 半透明の枠で示します。 + エリアに対応していて、落としたガイドのエリアへパネルが移ります。落とした + 後にパネルが置かれる範囲を半透明の枠で示します。この枠は AviUtl ExEdit2 の + 再配置を計算したもので、移動元のエリアが空になって他のパネルが広がる場合も + その結果を含めた位置を示します。 - 他のパネルの上へカーソルを重ねると、そのパネルの上にもガイドが出ます。 中央のガイドへ落とすとタブにまとまり、左右または上下のガイドへ落とすと その位置へ並び順が変わります。並び順のガイドは、同じエリアに並んでいる - パネル同士でだけ出ます。 + パネル同士でだけ出ます。まとめる場合の枠はまとまった後の枠全体を、 + 並べ替えの場合の枠は移動先の枠の位置と大きさを示します。 - 本体のウィンドウの外へ落とすと、パネルが別のウィンドウへ分離します。 + パネルは本体の外へ出るため、この操作では枠を出しません。 - 分離したウィンドウのタイトルバーを掴んで本体のウィンドウの上へ運ぶと、 - 中央にガイドが出ます。そこへ落とすと本体へ戻ります。 + 中央にガイドが出ます。そこへ落とすと本体へ戻ります。本プラグインで分離した + ウィンドウであれば、戻った後の位置を枠で示します。 - ドラッグの途中で Esc キーを押すと操作を取り消します。 -------------------------------------------------------------------------------- @@ -61,6 +66,15 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 - ドラッグを始めた時点で、各パネルがどのエリアに属しているかを調べます。 この時にメニューを画面に出さずに開きますが、編集の状態は変わりません。 +- ガイドへ重ねたときに出す枠は、AviUtl ExEdit2 が落とした後に組み直す配置を + 計算したものです。区切りの幅は WindowSeparatorSize から2を引いた値で、 + 長さ L の領域は区切り1本分を足した長さとして扱われます。各枠はその長さの + 中で割合に応じた区画を取り、区画の末尾から区切り1本分を除いた範囲に + 描かれます。列と帯の大きさは先頭とそれ以外の二分割を繰り返して決まり、 + 比はそのエリアに属するウィンドウの矩形を囲む範囲の比になります。エリアの + 中では各ウィンドウが自分の矩形の大きさの比で区画を取ります。計算した矩形と + 実際に描かれた矩形の差は、実測で最大1画素でした。 + - 落とした後の操作は、マウスの処理を終えてから発行します。AviUtl ExEdit2 が 配置を組み替える最中に、その処理へ入り込まないようにするためです。 -------------------------------------------------------------------------------- @@ -83,6 +97,18 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 - パネルの位置を画面から求めるため、AviUtl ExEdit2 のウィンドウが最小化されて いる間は配置の操作を行えません。 + +- タブにまとまっているパネルを掴んだ場合は枠を出しません。AviUtl ExEdit2 は + タブの組から掴んだウィンドウ1枚だけを動かし、残りはその場に留まります。 + 分かれた後の大きさは画面に出ている情報だけでは決まらないためです。ガイドは + 出るので操作はできます。 + +- 本プラグインを読み込む前から分離していたウィンドウを本体へ戻す場合は枠を + 出しません。戻る先は AviUtl ExEdit2 が分離前の配置として保存している値から + 決まり、その値は実行中のプラグインから読めないためです。 + +- パネルがどのエリアに属しているかを読み取れなかった場合も枠を出しません。 + 確かめられない位置を枠で示さないためです。 -------------------------------------------------------------------------------- ■ 注意事項 -------------------------------------------------------------------------------- diff --git a/README.md b/README.md index 532957f..559f610 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 - [4. ウィンドウの分離と結合](#4-ウィンドウの分離と結合) 5. [ガイドの一覧](#ガイドの一覧) 6. [仕組み](#仕組み) + - [着地予告の計算](#着地予告の計算) 7. [制限事項](#制限事項) 8. [注意事項](#注意事項) 9. [ログ表示での確認](#ログ表示での確認) @@ -73,21 +74,21 @@ C:\ProgramData\aviutl2\Plugin\ パネルの見出しをドラッグすると配置の操作が始まります。見出しを持たないパネルは、Alt キーを押しながらパネルの中をドラッグしてください。 -ドラッグを始めると、画面の中央に5つのガイドが出ます。左右上下と中央のエリアに対応していて、落としたガイドのエリアへパネルが移ります。カーソルをガイドへ重ねると、落ちる先を半透明の枠で示します。 +ドラッグを始めると、画面の中央に5つのガイドが出ます。左右上下と中央のエリアに対応していて、落としたガイドのエリアへパネルが移ります。カーソルをガイドへ重ねると、落とした後にパネルが置かれる範囲を半透明の枠で示します。この枠は AviUtl ExEdit2 の再配置を計算したものです。移動元のエリアが空になって他のパネルが広がる場合も、その結果を含めた位置を示します。 ### 2. タブへのまとめ -他のパネルの上へカーソルを重ねると、そのパネルの上にもガイドが出ます。中央のガイドへ落とすと、2つのパネルが同じエリアでタブにまとまります。別のエリアのパネルへ落とした場合も、まず対象のエリアへ移してからまとめます。 +他のパネルの上へカーソルを重ねると、そのパネルの上にもガイドが出ます。中央のガイドへ落とすと、2つのパネルが同じエリアでタブにまとまります。別のエリアのパネルへ落とした場合も、まず対象のエリアへ移してからまとめます。枠はまとまった後の枠全体を示します。 ### 3. 並び順の入れ替え -パネルの上のガイドのうち、左右または上下に伸びる矢印へ落とすと、そのパネルの手前または後ろへ移ります。並び順のガイドは、同じエリアに並んでいるパネル同士でだけ出ます。矢印の向きは、そのエリアがパネルを縦に並べているか横に並べているかで変わります。 +パネルの上のガイドのうち、左右または上下に伸びる矢印へ落とすと、そのパネルの手前または後ろへ移ります。並び順のガイドは、同じエリアに並んでいるパネル同士でだけ出ます。矢印の向きは、そのエリアがパネルを縦に並べているか横に並べているかで変わります。AviUtl ExEdit2 の並べ替えは枠の大きさを保ったまま中身を入れ替えるため、枠は移動先の枠の位置と大きさをそのまま示します。 ### 4. ウィンドウの分離と結合 -本体のウィンドウの外へ落とすと、パネルが別のウィンドウへ分離します。 +本体のウィンドウの外へ落とすと、パネルが別のウィンドウへ分離します。パネルは本体の外へ出るため、この操作では枠を出しません。 -分離したウィンドウは、タイトルバーを掴んで本体のウィンドウの上へ運ぶと、中央にガイドが出ます。そこへ落とすと本体へ戻ります。 +分離したウィンドウは、タイトルバーを掴んで本体のウィンドウの上へ運ぶと、中央にガイドが出ます。そこへ落とすと本体へ戻ります。本プラグインで分離したウィンドウであれば、戻った後の位置を枠で示します。 ドラッグの途中で Esc キーを押すと操作を取り消します。 @@ -118,6 +119,18 @@ C:\ProgramData\aviutl2\Plugin\ 落とした後の操作は、マウスの処理を終えてから発行します。AviUtl ExEdit2 が配置を組み替える最中に、その処理へ入り込まないようにするためです。 +### 着地予告の計算 + +ガイドへ重ねたときに出す枠は、AviUtl ExEdit2 が落とした後に組み直す配置を計算したものです。組み直しの規則は AviUtl ExEdit2 2.1.6a を操作して測り、次のとおりであることを確かめました。 + +区切りの幅は `WindowSeparatorSize` から2を引いた値です。長さ L の領域は、区切り1本分の幅を足した長さとして扱われます。各枠はその長さの中で割合に応じた区画を取り、区画の末尾から区切り1本分を除いた範囲に描かれます。この対応は逆にもたどれるため、画面から読み取った矩形から AviUtl ExEdit2 が持っている割合をそのまま求められます。 + +列は左側エリア、中央部分、右側エリアの順に、帯は上側エリア、中央エリア、下側エリアの順に並びます。大きさは先頭とそれ以外の二分割を繰り返して決まり、それぞれの比はそのエリアに属するウィンドウの矩形を囲む範囲の比になります。 + +エリアの中では、各ウィンドウが自分の矩形の大きさの比で区画を取ります。並ぶ順は矩形の左端、左右のエリアでは上端の小さい順で、同じ値のときは右端または下端の小さい順です。 + +エリアを変えてもウィンドウが持っている割合は変わらず、組み直しのたびに描かれた結果が新しい割合として保存されます。したがって画面から読み取った矩形だけで次の配置を計算できます。計算した矩形と実際に描かれた矩形の差は、実測で最大1画素でした。領域の先頭に接する枠は上または左の枠線を描かないため、その分だけ全体がずれます。 + --- ## 制限事項 @@ -127,6 +140,9 @@ C:\ProgramData\aviutl2\Plugin\ - AviUtl ExEdit2 は、ひとつのエリアの中でタブにまとまるウィンドウをひとつの組としてしか扱えません。同じエリアに既にタブの組がある状態で、その組に入っていないパネル同士をまとめることはできないため、その場合はまとめるガイドが出ません。 - 見出しを持たないパネルは、Alt キーを押しながらでないと掴めません。プレビュー編集、レイヤー編集、オブジェクト設定が該当します。 - パネルの位置を画面から求めるため、AviUtl ExEdit2 のウィンドウが最小化されている間は配置の操作を行えません。 +- タブにまとまっているパネルを掴んだ場合は枠を出しません。AviUtl ExEdit2 はタブの組から掴んだウィンドウ1枚だけを動かし、残りはその場に留まります。分かれた後の大きさは画面に出ている情報だけでは決まらないためです。ガイドは出るので操作はできます。 +- 本プラグインを読み込む前から分離していたウィンドウを本体へ戻す場合は枠を出しません。戻る先は AviUtl ExEdit2 が分離前の配置として保存している値から決まり、その値は実行中のプラグインから読めないためです。 +- パネルがどのエリアに属しているかを読み取れなかった場合も枠を出しません。確かめられない位置を枠で示さないためです。 --- From 123e269d2acd40eb45cd120a7169e98c0a4339ad Mon Sep 17 00:00:00 2001 From: routersys Date: Tue, 25 Aug 2026 00:05:59 +0900 Subject: [PATCH 6/6] =?UTF-8?q?=E7=89=88=E8=A1=A8=E8=A8=98=E3=82=921.1.0?= =?UTF-8?q?=E3=81=B8=E4=B8=8A=E3=81=92=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/Plugin_Readme.txt | 6 +++--- .github/package.ini | 2 +- README.md | 6 +++--- src/Plugin.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/Plugin_Readme.txt b/.github/Plugin_Readme.txt index 18d6a2c..42cddb8 100644 --- a/.github/Plugin_Readme.txt +++ b/.github/Plugin_Readme.txt @@ -1,5 +1,5 @@ ======================================== - ドッキング配置 for AviUtl ExEdit2 v1.0.1 + ドッキング配置 for AviUtl ExEdit2 v1.1.0 ======================================== AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配置できるようにする プラグインです。 @@ -21,7 +21,7 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 C:\ProgramData\aviutl2\Plugin\ - DockLayout_v1.0.1.au2pkg.zip をプレビュー画面へドロップしても + DockLayout_v1.1.0.au2pkg.zip をプレビュー画面へドロップしても インストールできます。 いずれの場合も、確認の画面で「このプラグイン・スクリプトを信頼して 使用する」を選んでください。 @@ -161,7 +161,7 @@ AviUtl ExEdit2 のウィンドウを、ドラッグとドロップだけで配 ■ サードパーティライセンス -------------------------------------------------------------------------------- 本プラグインは AviUtl ExEdit2 Plugin SDK のヘッダーを使用しています。 - ライセンスの全文は DockLayout_v1.0.1.zip の LICENSE フォルダーと、 + ライセンスの全文は DockLayout_v1.1.0.zip の LICENSE フォルダーと、 リポジトリの .github/LICENSE に収録しています。 AviUtl ExEdit2 Plugin SDK : Copyright (c) 2025 Kenkun MIT License -------------------------------------------------------------------------------- diff --git a/.github/package.ini b/.github/package.ini index b97c3cc..c1be3fc 100644 --- a/.github/package.ini +++ b/.github/package.ini @@ -1,5 +1,5 @@ [package] id=DockLayout name=ドッキング配置 -information=ドッキング配置 version 1.0.1 +information=ドッキング配置 version 1.1.0 uninstallSubFolderFile=0 diff --git a/README.md b/README.md index 559f610..7c118f6 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,11 @@ AviUtl ExEdit2 のウィンドウ配置は、右クリックメニューの「 ## インストール方法 -1. [Releases](https://github.com/routersys/AUE2-DockLayout/releases/latest) ページから `DockLayout_v1.0.1.au2pkg.zip` をダウンロードしてください。 +1. [Releases](https://github.com/routersys/AUE2-DockLayout/releases/latest) ページから `DockLayout_v1.1.0.au2pkg.zip` をダウンロードしてください。 2. AviUtl ExEdit2 を起動し、ダウンロードしたファイルをプレビュー画面へドロップします。 3. 確認の画面で「このプラグイン・スクリプトを信頼して使用する」を選んでください。インストールの後に AviUtl ExEdit2 が再起動します。 -手動で配置する場合は、`DockLayout_v1.0.1.zip` を展開し、`DockLayout.aux2` を下記のフォルダーへ置いてください。次に AviUtl ExEdit2 を起動すると確認の画面が出るので、信頼して使用することを選びます。 +手動で配置する場合は、`DockLayout_v1.1.0.zip` を展開し、`DockLayout.aux2` を下記のフォルダーへ置いてください。次に AviUtl ExEdit2 を起動すると確認の画面が出るので、信頼して使用することを選びます。 ``` C:\ProgramData\aviutl2\Plugin\ @@ -182,7 +182,7 @@ C:\ProgramData\aviutl2\Plugin\ ## サードパーティライセンス -本プラグインは以下のサードパーティソフトウェアを使用しています。ライセンスの全文は、リポジトリの [`.github/LICENSE/AviUtl2-PluginSDK.txt`](.github/LICENSE/AviUtl2-PluginSDK.txt) と、配布する `DockLayout_v1.0.1.zip` の `LICENSE` フォルダーに収録しています。 +本プラグインは以下のサードパーティソフトウェアを使用しています。ライセンスの全文は、リポジトリの [`.github/LICENSE/AviUtl2-PluginSDK.txt`](.github/LICENSE/AviUtl2-PluginSDK.txt) と、配布する `DockLayout_v1.1.0.zip` の `LICENSE` フォルダーに収録しています。 | ソフトウェア | 用途 | ライセンス | 著作権表示 | |---|---|---|---| diff --git a/src/Plugin.cpp b/src/Plugin.cpp index dcaf188..1523e99 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -15,7 +15,7 @@ using namespace dl; COMMON_PLUGIN_TABLE common_plugin_table = { L"ドッキング配置", - L"ドッキング配置 version 1.0.1", + L"ドッキング配置 version 1.1.0", }; EXTERN_C __declspec(dllexport) COMMON_PLUGIN_TABLE* GetCommonPluginTable(void) {