Skip to content

Commit

Permalink
Fixed little issues and updated version, for final release
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenAssassine committed May 20, 2022
1 parent 3073adc commit 0b4b6af
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 16 deletions.
6 changes: 6 additions & 0 deletions Fastedit/Assets/news.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Fastedit Changelog:

-------------------------------------------------------
Version 1.6.2 [05/20/2022]
• Added a searchbox to the secondary instance
• Fixed very small bugs
• Improved search experience

-------------------------------------------------------
Version 1.5.2 [05/06/2022]
• Added number of lines to fileinfo
Expand Down
21 changes: 16 additions & 5 deletions Fastedit/Controls/Textbox/Searchdialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ public Searchdialog(TextControlBox textbox)
public bool SearchIsOpen
{
get => this.Visibility == Visibility.Visible;
set { this.Visibility = Convert.BoolToVisibility(value); }
set
{
this.Visibility = Convert.BoolToVisibility(value);
if (value)
{
TextToFindTextbox.Focus(FocusState.Keyboard);
TextToFindTextbox.SelectAll();
}
}
}
private bool _ReplaceIsOpen = false;
public bool ReplaceIsOpen
Expand All @@ -55,20 +63,23 @@ public bool ReplaceIsOpen
ExpandSearch.Begin();
SearchWindow.Height = 125;
ExpandSearchBoxForReplaceButton.Content = "\uF0AD";
if(SaveToSettings)
if (SaveToSettings)
appsettings.SaveSettings("SearchExpanded", 0);

}
else
{
if (SearchWindow.Height > 45)
CollapseSearch.Begin();
ExpandSearchBoxForReplaceButton.Content = "\uF0AE";
if(SaveToSettings)
if (SaveToSettings)
appsettings.SaveSettings("SearchExpanded", 1);
}
_ReplaceIsOpen = value;
TextToReplaceTextBox.Visibility = ReplaceAllButton.Visibility =
StartReplaceButton.Visibility = Convert.BoolToVisibility(value);
TextToReplaceTextBox.Focus(FocusState.Keyboard);
TextToReplaceTextBox.SelectAll();
}
}
public void Find(bool Up = false)
Expand Down Expand Up @@ -111,16 +122,16 @@ public void Toggle(bool Replace)
this.Replace(Replace);
}
else
{
Close();
}
}
public void Replace(bool IsOn)
{
ReplaceIsOpen = IsOn;
}
public bool SaveToSettings { get; set; } = true;



private void ColorWindowBorder(bool state)
{
if (SaveToSettings)
Expand Down
4 changes: 2 additions & 2 deletions Fastedit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [Assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.2.0")]
[assembly: AssemblyFileVersion("1.5.2.0")]
[assembly: AssemblyVersion("1.6.2.0")]
[assembly: AssemblyFileVersion("1.6.2.0")]
[assembly: ComVisible(false)]
[assembly: NeutralResourcesLanguage("en-US")]
5 changes: 1 addition & 4 deletions Fastedit/Strings/de-DE/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1164,10 +1164,7 @@
<data name="FileInfo_Lines.Text" xml:space="preserve">
<value>Zeilen:</value>
</data>
<data name="MainPage_SearchWindow_FindMatchCase.Text" xml:space="preserve">
<data name="MainPage_SearchWindow_FindMatchCase.Content" xml:space="preserve">
<value>Groß/Kleinschreibung</value>
</data>
<data name="MainPage_SearchWindow_FindWholeWordButton.Text" xml:space="preserve">
<value>Ganzes Wort</value>
</data>
</root>
5 changes: 1 addition & 4 deletions Fastedit/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,7 @@
<data name="FileInfo_Lines.Text" xml:space="preserve">
<value>Lines:</value>
</data>
<data name="MainPage_SearchWindow_FindMatchCase.Text" xml:space="preserve">
<data name="MainPage_SearchWindow_FindMatchCase.Content" xml:space="preserve">
<value>Match case</value>
</data>
<data name="MainPage_SearchWindow_FindWholeWordButton.Text" xml:space="preserve">
<value>Whole word</value>
</data>
</root>
3 changes: 2 additions & 1 deletion Fastedit/Views/TextboxViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ private async void TextboxViewPage_KeyDown(object sender, Windows.UI.Xaml.Input.
}
if(e.Key == VirtualKey.F)
{
searchDialog.Show();
searchDialog.SearchIsOpen = !searchDialog.SearchIsOpen;
}
if(e.Key == VirtualKey.R)
{
searchDialog.Replace(!searchDialog.ReplaceIsOpen);
searchDialog.Focus(FocusState.Programmatic);
}

//if (e.Key == VirtualKey.S)
Expand Down

0 comments on commit 0b4b6af

Please sign in to comment.