Skip to content

Commit

Permalink
Add the project editor in the drop down menu
Browse files Browse the repository at this point in the history
  • Loading branch information
swittlich committed Oct 31, 2024
1 parent 1af7834 commit 7bdd0ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void ToggleProjectLoader(IFpgaLoader loader)

public async Task CompileAsync()
{
// _project.RunToolchainAsync();
if (ProjectExplorerService.ActiveProject is UniversalFpgaProjectRoot project)
{
var name = project.Properties["Fpga"]?.ToString();
Expand All @@ -109,8 +108,6 @@ public async Task CompileAsync()

await project.RunToolchainAsync(new FpgaModel(firstOrDefault.LoadFpga()));
}


}

public async Task OpenPcfCreatorAsync()
Expand All @@ -124,6 +121,17 @@ await _windowService.ShowDialogAsync(new UniversalFpgaProjectCompileView
});
}

public async Task OpenProjectSettingsAsync()
{
if (ProjectExplorerService.ActiveProject is UniversalFpgaProjectRoot project)
await _windowService.ShowDialogAsync(new UniversalFpgaProjectSettingsEditorView()
{
DataContext =
ContainerLocator.Container.Resolve<UniversalFpgaProjectSettingsEditorViewModel>((
typeof(UniversalFpgaProjectRoot), project))
});
}

public async Task DownloadAsync()
{
if (ProjectExplorerService.ActiveProject is UniversalFpgaProjectRoot { Loader: not null } project)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<Button HorizontalContentAlignment="Left" Content="Open PCF Creator"
Command="{Binding OpenPcfCreatorAsync}"
/>
<Button HorizontalContentAlignment="Left" Content="Open Project Settings"
Command="{Binding OpenProjectSettingsAsync}"
/>
<Border Background="Gray" Height="1" Margin="0,10"/>
<Button HorizontalContentAlignment="Left" Content="Execute Synthesis"/>
<Button HorizontalContentAlignment="Left" Content="Execute Place and Route"/>
Expand Down

0 comments on commit 7bdd0ef

Please sign in to comment.