Skip to content

Commit

Permalink
Remove avalonia edit hackjobs as they are no longer needed
Browse files Browse the repository at this point in the history
Add find and replace to rich text editors (conflict solver)
  • Loading branch information
bcssov committed Jul 22, 2022
1 parent 6065970 commit 554ef04
Show file tree
Hide file tree
Showing 13 changed files with 299 additions and 334 deletions.
2 changes: 2 additions & 0 deletions src/IronyModManager.Shared/LocalizationResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ public static class EditorContextMenu
public const string Undo = Prefix + "Undo";
public const string Redo = Prefix + "Redo";
public const string SelectAll = Prefix + "SelectAll";
public const string Find = Prefix + "Find";
public const string Replace = Prefix + "Replace";
}
public static class Modes
{
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "Einfügen",
"Undo": "Rückgängig Machen",
"Redo": "Wiederholen",
"SelectAll": "Alle Auswählen"
"SelectAll": "Alle Auswählen",
"Find": "Finden",
"Replace": "Ersetzen"
},
"Modes": {
"Title": "Auswahlmodus",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@
"Paste": "Paste",
"Undo": "Undo",
"Redo": "Redo",
"SelectAll": "Select All"
"SelectAll": "Select All",
"Find": "Find",
"Replace": "Replace"
},
"Modes": {
"Title": "Select Mode",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "Pegar",
"Undo": "Deshacer",
"Redo": "Rehacer",
"SelectAll": "Seleccionar Todo"
"SelectAll": "Seleccionar Todo",
"Find": "Encuentre",
"Replace": "Sustituir"
},
"Modes": {
"Title": "Seleccionar Modo",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "Coller",
"Undo": "annuler",
"Redo": "Refaire",
"SelectAll": "Tout sélectionner"
"SelectAll": "Tout sélectionner",
"Find": "Trouvez",
"Replace": "Remplacer"
},
"Modes": {
"Title": "Sélectionnez le mode",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "Zalijepi",
"Undo": "Poništi",
"Redo": "Ponovi",
"SelectAll": "Odaberi sve"
"SelectAll": "Odaberi sve",
"Find": "Pronađi",
"Replace": "Zamijeni"
},
"Modes": {
"Title": "Odaberi način rada",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "Вставить",
"Undo": "Отменить",
"Redo": "Вернуть",
"SelectAll": "Выбрать все"
"SelectAll": "Выбрать все",
"Find": "Найти",
"Replace": "Заменить"
},
"Modes": {
"Title": "Режим",
Expand Down
4 changes: 3 additions & 1 deletion src/IronyModManager/Localization/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@
"Paste": "粘贴",
"Undo": "撤销",
"Redo": "重做",
"SelectAll": "全选"
"SelectAll": "全选",
"Find": "查找",
"Replace": "替换"
},
"Modes": {
"Title": "选择模式",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 07-28-2020
//
// Last Modified By : Mario
// Last Modified On : 07-20-2022
// Last Modified On : 07-22-2022
// ***********************************************************************
// <copyright file="ConflictSolverCustomConflictsControlViewModel.cs" company="Mario">
// Mario
Expand Down Expand Up @@ -173,6 +173,13 @@ public ConflictSolverCustomConflictsControlViewModel(INotificationAction notific
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Delete)]
public virtual string EditorDelete { get; protected set; }

/// <summary>
/// Gets or sets the editor find.
/// </summary>
/// <value>The editor find.</value>
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Find)]
public virtual string EditorFind { get; protected set; }

/// <summary>
/// Gets or sets the editor paste.
/// </summary>
Expand All @@ -187,6 +194,13 @@ public ConflictSolverCustomConflictsControlViewModel(INotificationAction notific
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Redo)]
public virtual string EditorRedo { get; protected set; }

/// <summary>
/// Gets or sets the editor replace.
/// </summary>
/// <value>The editor replace.</value>
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Replace)]
public virtual string EditorReplace { get; protected set; }

/// <summary>
/// Gets or sets the editor select all.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Created : 03-20-2020
//
// Last Modified By : Mario
// Last Modified On : 01-28-2022
// Last Modified On : 07-22-2022
// ***********************************************************************
// <copyright file="MergeViewerControlViewModel.cs" company="Mario">
// Mario
Expand Down Expand Up @@ -355,6 +355,13 @@ public MergeViewerControlViewModel(IScrollState scrollState,
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Delete)]
public virtual string EditorDelete { get; protected set; }

/// <summary>
/// Gets or sets the editor find.
/// </summary>
/// <value>The editor find.</value>
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Find)]
public virtual string EditorFind { get; protected set; }

/// <summary>
/// Gets or sets the editor paste.
/// </summary>
Expand All @@ -369,6 +376,13 @@ public MergeViewerControlViewModel(IScrollState scrollState,
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Redo)]
public virtual string EditorRedo { get; protected set; }

/// <summary>
/// Gets or sets the editor replace.
/// </summary>
/// <value>The editor replace.</value>
[StaticLocalization(LocalizationResources.Conflict_Solver.EditorContextMenu.Replace)]
public virtual string EditorReplace { get; protected set; }

/// <summary>
/// Gets or sets the editor select all.
/// </summary>
Expand Down
Loading

0 comments on commit 554ef04

Please sign in to comment.