Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy V8.0 #405

Merged
merged 42 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
7e86b6c
Prepare V8.0
NeoCoderMatrix86 Nov 8, 2024
9f53907
Merge pull request #391 from NeoCoderMatrix86/390-prepare-v80
NeoCoderMatrix86 Nov 8, 2024
2fb4807
Renamed tracklist component
NeoCoderMatrix86 Nov 8, 2024
fe3cff3
Update ViewModeRecord.razor
NeoCoderMatrix86 Nov 11, 2024
c28c788
Merge pull request #396 from NeoCoderMatrix86/392-can-not-open-record…
NeoCoderMatrix86 Nov 11, 2024
584dfa1
Update Cuesheet.cs
NeoCoderMatrix86 Nov 11, 2024
add2c80
More components for tracklist
NeoCoderMatrix86 Nov 11, 2024
c1e0f0f
Update TrackList.razor
NeoCoderMatrix86 Nov 11, 2024
b810485
Add tracklink component
NeoCoderMatrix86 Nov 11, 2024
f82d25f
Update TrackListItem.razor
NeoCoderMatrix86 Nov 11, 2024
4b8bd98
New component for tracklist control column
NeoCoderMatrix86 Nov 11, 2024
c3c5635
add update after tracemanager changes
NeoCoderMatrix86 Nov 12, 2024
3f25e68
added localization for TrackSelection
NeoCoderMatrix86 Nov 12, 2024
9f11a2d
Moved localization
NeoCoderMatrix86 Nov 12, 2024
73d993d
Moved localization for track control column
NeoCoderMatrix86 Nov 12, 2024
ae75c48
Moved localization for track list item
NeoCoderMatrix86 Nov 12, 2024
f70a639
Fixed display of sections for track
NeoCoderMatrix86 Nov 12, 2024
640ef81
Update CuesheetTests.cs
NeoCoderMatrix86 Nov 12, 2024
e1a60e8
Moved test project namespace
NeoCoderMatrix86 Nov 12, 2024
6526742
Changed events to use list of tracks
NeoCoderMatrix86 Nov 12, 2024
8528d92
Update TrackListItem.razor
NeoCoderMatrix86 Nov 26, 2024
97bf70a
Update TrackListItem.razor
NeoCoderMatrix86 Nov 26, 2024
7ba89d5
updated libraries
NeoCoderMatrix86 Dec 2, 2024
da740a6
Update AudioCuesheetEditor.csproj
NeoCoderMatrix86 Dec 2, 2024
2c11d8b
Update AudioCuesheetEditor.csproj
NeoCoderMatrix86 Dec 2, 2024
91918cb
Fix for drag n drop
NeoCoderMatrix86 Dec 4, 2024
1216e65
Merge branch 'development' into 203-make-tracks-dragable
NeoCoderMatrix86 Dec 4, 2024
aa6fb1e
Update AudioCuesheetEditor.csproj
NeoCoderMatrix86 Dec 4, 2024
3c929ac
fixing build problem
NeoCoderMatrix86 Dec 4, 2024
660c423
Update AudioCuesheetEditor.csproj
NeoCoderMatrix86 Dec 4, 2024
5893825
updated libraries
NeoCoderMatrix86 Dec 4, 2024
e3cf96d
Update TrackListItem.razor
NeoCoderMatrix86 Dec 5, 2024
4c4d6f8
Update library.js
NeoCoderMatrix86 Dec 12, 2024
199c42e
Removed dead code
NeoCoderMatrix86 Dec 12, 2024
191a51e
removed all drag n drop stuff
NeoCoderMatrix86 Dec 13, 2024
a0f7cbe
Merge pull request #399 from NeoCoderMatrix86/203-make-tracks-dragable
NeoCoderMatrix86 Dec 13, 2024
53af612
Bugfix #397
NeoCoderMatrix86 Dec 13, 2024
f5333c6
Merge pull request #403 from NeoCoderMatrix86/397-link-track-with-pre…
NeoCoderMatrix86 Dec 13, 2024
ea5d893
Making pin tableheader possible
NeoCoderMatrix86 Dec 13, 2024
9e5f8c8
save UI settings
NeoCoderMatrix86 Dec 16, 2024
75cae88
Merge pull request #404 from NeoCoderMatrix86/289-fixed-table-header
NeoCoderMatrix86 Dec 16, 2024
3411415
Merge branch 'master' into development
NeoCoderMatrix86 Dec 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
save UI settings
  • Loading branch information
NeoCoderMatrix86 committed Dec 16, 2024
commit 9e5f8c8a95799bfa253627e4bccc0cc08a580e41
2 changes: 2 additions & 0 deletions AudioCuesheetEditor/Model/Options/ApplicationOptions.cs
Original file line number Diff line number Diff line change
@@ -92,6 +92,8 @@ public String? ViewModename
public Boolean LinkTracksWithPreviousOne { get; set; } = true;
public String? ProjectFilename { get; set; } = Projectfile.DefaultFilename;
public TimeSpanFormat? TimeSpanFormat { get; set; }
public Boolean TracksTableSelectionVisible { get; set; } = false;
public Boolean TracksTableHeaderPinned { get; set; } = false;

protected override ValidationResult Validate(string property)
{
59 changes: 46 additions & 13 deletions AudioCuesheetEditor/Shared/TrackList/TrackList.razor
Original file line number Diff line number Diff line change
@@ -47,14 +47,14 @@ along with Foobar. If not, see
AddButtonClicked="OnAddTrackClicked"
EditSelectedTracksClicked="EditSelectedTracksClicked"
DeleteSelectedTracksClicked="DeleteSelectedTracksClicked"
DeleteAllTracksClicked="OnDeleteAllTracksClicked"
FixedTableHeader="fixedTableHeader"
FixedTableHeaderChanged="(newValue) => fixedTableHeader = newValue"
DeleteAllTracksClicked="OnDeleteAllTracksClicked"
FixedTableHeader="PinnedTableHeader"
FixedTableHeaderChanged="(newValue) => PinnedTableHeader = newValue"
TrackSelectionVisible="TrackSelectionVisible"
TrackSelectionVisibleChanged="(newValue) => TrackSelectionVisible = newValue" />
}

<Table Bordered Resizable ResizeMode="TableResizeMode.Columns" Narrow FixedHeader="fixedTableHeader" FixedHeaderTableHeight="" FixedHeaderTableMaxHeight="70vh">
<Table Bordered Resizable ResizeMode="TableResizeMode.Columns" Narrow FixedHeader="PinnedTableHeader" FixedHeaderTableHeight="" FixedHeaderTableMaxHeight="70vh">
<TableHeader ThemeContrast="ThemeContrast.Light">
<TableRow>
@if ((_sessionStateContainer.CurrentViewMode == ViewMode.ViewModeFull) && (TrackSelectionVisible))
@@ -99,15 +99,13 @@ along with Foobar. If not, see
<EditTrackModal @ref="modalTrackEdit" SaveClicked="() => StateHasChanged()" />

@code {
//TODO: Save trackselectionvisible and fixedheader to applicationOptions
ModalDialog? modalDialog;
EditTrackModal? modalTrackEdit;
List<Track> selectedTracks = new();
Boolean trackSelectionVisible = false;
Validations? validations;
Boolean revalidate = false;
List<Track> TracksAttachedToValidateablePropertyChanged = new();
Boolean fixedTableHeader = false;
ApplicationOptions? applicationOptions;

[Parameter]
public AudioPlayer? AudioPlayer { get; set; }
@@ -132,28 +130,52 @@ along with Foobar. If not, see

public Boolean TrackSelectionVisible
{
get => trackSelectionVisible;
get
{
if (applicationOptions != null)
{
return applicationOptions.TracksTableSelectionVisible;
}
return false;
}
set
{
trackSelectionVisible = value;
_localStorageOptionsProvider.SaveOptionsValue<ApplicationOptions>(x => x.TracksTableSelectionVisible, value);
selectedTracks = new();
}
}

public Boolean PinnedTableHeader
{
get
{
if (applicationOptions != null)
{
return applicationOptions.TracksTableHeaderPinned;
}
return false;
}
set
{
_localStorageOptionsProvider.SaveOptionsValue<ApplicationOptions>(x => x.TracksTableHeaderPinned, value);
}
}

public void Dispose()
{
_localizationService.LocalizationChanged -= LocalizationService_LocalizationChanged;
_sessionStateContainer.CuesheetChanged -= SessionStateContainer_CuesheetChanged;
_sessionStateContainer.ImportCuesheetChanged -= SessionStateContainer_ImportCuesheetChanged;
_sessionStateContainer.Cuesheet.TracksRemoved -= Cuesheet_TracksRemoved;
_sessionStateContainer.Cuesheet.TracksAdded -= Cuesheet_TracksAdded;
_localStorageOptionsProvider.OptionSaved -= LocalStorageOptionsProvider_OptionsSaved;
DetachTrackFromValidateablePropertyChanged();
DetachCuesheetFromSplitPointsAddedRemoved();
}

protected override void OnInitialized()
protected override async Task OnInitializedAsync()
{
base.OnInitialized();
await base.OnInitializedAsync();

_localizationService.LocalizationChanged += LocalizationService_LocalizationChanged;

@@ -165,6 +187,9 @@ along with Foobar. If not, see

AttachTracksToValidateablePropertyChanged();
AttachCuesheetToSplitPointsAddedRemoved();

applicationOptions = await _localStorageOptionsProvider.GetOptions<ApplicationOptions>();
_localStorageOptionsProvider.OptionSaved += LocalStorageOptionsProvider_OptionsSaved;
}

protected override async Task OnAfterRenderAsync(bool firstRender)
@@ -178,9 +203,8 @@ along with Foobar. If not, see
}
}

async Task OnAddTrackClicked()
void OnAddTrackClicked()
{
var applicationOptions = await _localStorageOptionsProvider.GetOptions<ApplicationOptions>();
var newTrack = new Track();
Cuesheet?.AddTrack(newTrack, applicationOptions);
_traceChangeManager.TraceChanges(newTrack);
@@ -404,4 +428,13 @@ along with Foobar. If not, see
break;
}
}

void LocalStorageOptionsProvider_OptionsSaved(object? sender, IOptions options)
{
if (options is ApplicationOptions applicationOption)
{
applicationOptions = applicationOption;
StateHasChanged();
}
}
}