From 5b230e40fc56a136502c72e10a20f5818523f8b3 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sat, 18 Apr 2026 22:31:21 +0800 Subject: [PATCH] feat: add some commands in main window --- .../Frontend/ViewModels/MainWindow.cs | 86 +++++++++++++++++++ .../Frontend/Views/MainWindow.xaml | 24 +++--- 2 files changed, 98 insertions(+), 12 deletions(-) diff --git a/BallanceTasEditor/BallanceTasEditor/Frontend/ViewModels/MainWindow.cs b/BallanceTasEditor/BallanceTasEditor/Frontend/ViewModels/MainWindow.cs index d672f0d..c186110 100644 --- a/BallanceTasEditor/BallanceTasEditor/Frontend/ViewModels/MainWindow.cs +++ b/BallanceTasEditor/BallanceTasEditor/Frontend/ViewModels/MainWindow.cs @@ -179,6 +179,89 @@ namespace BallanceTasEditor.Frontend.ViewModels { #region Edit Menu + #region Undo and Redo + + [RelayCommand] + private void Undo() { + + } + + [RelayCommand] + private void Redo() { + + } + + #endregion + + #region Viewer Operation + + [RelayCommand] + private void PreviousPage() { + } + + + [RelayCommand] + private void PreviousItem() { + + } + + + [RelayCommand] + private void NextPage() { + + } + + + [RelayCommand] + private void NextItem() { + + } + + + [RelayCommand] + private void Goto() { + + } + + #endregion + + #region Tool Mode + + + [RelayCommand] + private void SelectMode() { + + } + + + [RelayCommand] + private void FillMode() { + + } + + + [RelayCommand] + private void DrawMode() { + + } + + #endregion + + #region Misc Edit Operations + + + [RelayCommand] + private void ClearKeys() { + + } + + + [RelayCommand] + private void UniformFps() { + + } + + #endregion #region Preference @@ -216,6 +299,9 @@ namespace BallanceTasEditor.Frontend.ViewModels { [ObservableProperty] private string statusMessage; + /// + /// The UI thread timer for dimming status message after specific duration. + /// private DispatcherTimer m_StatusMessageDimmer; private void UpdateStatusMessage(string msg) { diff --git a/BallanceTasEditor/BallanceTasEditor/Frontend/Views/MainWindow.xaml b/BallanceTasEditor/BallanceTasEditor/Frontend/Views/MainWindow.xaml index d18972d..bd244c0 100644 --- a/BallanceTasEditor/BallanceTasEditor/Frontend/Views/MainWindow.xaml +++ b/BallanceTasEditor/BallanceTasEditor/Frontend/Views/MainWindow.xaml @@ -58,21 +58,21 @@ - - + + - - - - - + + + + + - - - + + + - - + +