feat: restore legacy drag events and Tornado launch integration

This commit is contained in:
2026-07-15 15:35:25 +09:00
parent 6e0c275fdd
commit 06a16e5741
32 changed files with 3096 additions and 101 deletions

View File

@@ -378,6 +378,7 @@ public sealed partial class MainWindow : Window
LegacySearchOperatorCatalogStocksIntent or
LegacyActivateOperatorCatalogStockIntent or
LegacySetOperatorCatalogDraftBuyAmountIntent or
LegacyCheckOperatorCatalogThemeNameIntent or
LegacySaveOperatorCatalogIntent or
LegacyDeleteOperatorCatalogIntent or
LegacyAddComparisonPairIntent or
@@ -481,6 +482,11 @@ public sealed partial class MainWindow : Window
selection.Shift),
LegacyMoveSelectedPlaylistRowsIntent move =>
_controller.MoveSelectedPlaylistRows(move.Direction),
LegacyReorderPlaylistRowsIntent reorder =>
_controller.ReorderPlaylistRows(
reorder.SourceRowId,
reorder.TargetRowId,
reorder.Position),
LegacyDeleteSelectedPlaylistRowsIntent =>
_controller.DeleteSelectedPlaylistRows(),
LegacyDeleteAllPlaylistRowsIntent =>
@@ -496,6 +502,13 @@ public sealed partial class MainWindow : Window
tabs.Source,
tabs.Target,
cancellationToken),
LegacyHoverSwapTabsIntent tabs =>
await _controller.SwapTabsAtExpectedPositionsAsync(
tabs.Source,
tabs.Target,
tabs.ExpectedSourceIndex,
tabs.ExpectedTargetIndex,
cancellationToken),
LegacySetMovingAveragesIntent movingAverages =>
_controller.SetMovingAverages(movingAverages.Ma5, movingAverages.Ma20),
LegacyActivateFixedActionIntent action =>
@@ -656,12 +669,21 @@ public sealed partial class MainWindow : Window
activation.BuyAmount),
LegacyMoveOperatorCatalogDraftRowIntent move =>
_controller.MoveOperatorCatalogDraftRow(move.RowId, move.Direction),
LegacyReorderOperatorCatalogDraftRowIntent reorder =>
_controller.ReorderOperatorCatalogDraftRow(
reorder.SourceRowId,
reorder.TargetRowId,
reorder.Position),
LegacyRemoveOperatorCatalogDraftRowIntent remove =>
_controller.RemoveOperatorCatalogDraftRow(remove.RowId),
LegacySetOperatorCatalogDraftBuyAmountIntent amount =>
_controller.SetOperatorCatalogDraftBuyAmount(
amount.RowId,
amount.BuyAmount),
LegacyCheckOperatorCatalogThemeNameIntent check =>
await _controller.CheckOperatorCatalogThemeNameAsync(
check.Name,
cancellationToken),
LegacySaveOperatorCatalogIntent save =>
await _controller.SaveOperatorCatalogAsync(
save.Name,
@@ -869,6 +891,12 @@ public sealed partial class MainWindow : Window
public bool CanMutate => false;
public Task<bool> ThemeNameExistsAsync(
ThemeMarket market,
string themeTitle,
CancellationToken cancellationToken = default) =>
Task.FromException<bool>(new InvalidOperationException(_message));
public Task<string> SuggestNextCodeAsync(
ThemeMarket market,
CancellationToken cancellationToken = default) =>