Skip to content

Commit bc4aaf8

Browse files
authored
Merge pull request #282 from Ordisoftware/dev
Dev
2 parents 6018d72 + 7a5547a commit bc4aaf8

File tree

10 files changed

+26
-18
lines changed

10 files changed

+26
-18
lines changed

Project/App.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,11 @@
583583
</dependentAssembly>
584584
<dependentAssembly>
585585
<assemblyIdentity name="SQLitePCLRaw.core" publicKeyToken="1488e028ca7ab535" culture="neutral" />
586-
<bindingRedirect oldVersion="0.0.0.0-2.1.1.1705" newVersion="2.1.1.1705" />
586+
<bindingRedirect oldVersion="0.0.0.0-2.1.2.1721" newVersion="2.1.2.1721" />
587587
</dependentAssembly>
588588
<dependentAssembly>
589589
<assemblyIdentity name="SQLitePCLRaw.batteries_v2" publicKeyToken="8226ea5df37bcae9" culture="neutral" />
590-
<bindingRedirect oldVersion="0.0.0.0-2.1.1.1705" newVersion="2.1.1.1705" />
590+
<bindingRedirect oldVersion="0.0.0.0-2.1.2.1721" newVersion="2.1.2.1721" />
591591
</dependentAssembly>
592592
<dependentAssembly>
593593
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />

Project/Source/Common/Core/Globalization/SysTranslations.Application.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2016-04 </created>
14-
/// <edited> 2022-06 </edited>
14+
/// <edited> 2022-09 </edited>
1515
namespace Ordisoftware.Core;
1616

1717
/// <summary>
@@ -129,10 +129,10 @@ static public TranslationsDictionary ApplicationMustExit
129129
[Language.FR] = "Quitter l'application ?"
130130
};
131131

132-
static public readonly TranslationsDictionary CantExitWhileGenerating = new()
132+
static public readonly TranslationsDictionary CantExitWhileProcessing = new()
133133
{
134-
[Language.EN] = "Can't exit application while generating data.",
135-
[Language.FR] = "Impossible de quitter l'application durant la génération des données."
134+
[Language.EN] = "Can't exit application while processing data.",
135+
[Language.FR] = "Impossible de quitter l'application durant le traitement des données."
136136
};
137137

138138
static public readonly TranslationsDictionary AskToShutdownComputer = new()

Project/Source/Common/Core/Globals/Globals.State.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2016-04 </created>
14-
/// <edited> 2021-09 </edited>
14+
/// <edited> 2022-09 </edited>
1515
namespace Ordisoftware.Core;
1616

1717
/// <summary>
@@ -45,6 +45,11 @@ static partial class Globals
4545
/// </summary>
4646
static public bool IsLoadingData { get; set; }
4747

48+
/// <summary>
49+
/// Indicates if the application is in loading or rendering or generating data stage.
50+
/// </summary>
51+
static public bool IsProcessingData => IsLoadingData || IsRendering || IsGenerating;
52+
4853
/// <summary>
4954
/// Indicates if the application is ready to interact with the user or do its purpose.
5055
/// </summary>

Project/Source/Common/Hebrew/WinControls/LettersControl.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2012-10 </created>
14-
/// <edited> 2022-07 </edited>
14+
/// <edited> 2022-09 </edited>
1515
namespace Ordisoftware.Hebrew;
1616

1717
public enum LettersControlFocusSelect
@@ -563,7 +563,6 @@ private void ActionPaste_Click(object sender, EventArgs e)
563563
{
564564
Focus(LettersControlFocusSelect.All);
565565
TextBox.Text = Clipboard.GetText();
566-
//TextBoxEx.ActionPaste.PerformClick();
567566
}
568567

569568
private void ActionSearchOnline_Click(object sender, EventArgs e)
@@ -599,7 +598,7 @@ public bool UpdateControls()
599598
internal void CheckClipboardContentType()
600599
{
601600
string strContent = Clipboard.GetText();
602-
ActionPaste.Enabled = !strContent.IsNullOrEmpty() /* TODO && strContent.Length <= Settings.HebrewTextBoxMaxLength*/;
601+
ActionPaste.Enabled = !strContent.IsNullOrEmpty();
603602
if ( ActionPaste.Enabled )
604603
{
605604
var strLabel = HebrewAlphabet.IsValidUnicode(strContent)

Project/Source/Database/VerseRow.ToString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Ordisoftware.Hebrew.Words;
1717
public partial class VerseRow
1818
{
1919

20-
// TODO debug error null after changing language and go to filtered verse (need to reload combox or update bindinge ?)
20+
// TODO debug error null after changing lang and go to filtered verse (need to reload combox or update bindings ?)
2121
public string NumberFormatted
2222
=> FormatNumber(ApplicationDatabase.Instance.Chapters.Find(c => c.ID == ChapterID)?.Verses?.Count ?? 0);
2323

Project/Source/Forms/Boxes/ParashotForm.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ private void EditFontSize_ValueChanged(object sender, EventArgs e)
331331
{
332332
DataGridView.Font = new Font("Microsoft Sans Serif", (float)EditFontSize.Value);
333333
ColumnHebrew.DefaultCellStyle.Font = new Font("Hebrew", (float)EditFontSize.Value + 5);
334-
// TODO remove if ( DataGridView.Rows.Count > 0 ) DataGridView.ColumnHeadersHeight = DataGridView.Rows[0].Height + 5;
335334
}
336335

337336
private void BindingSource_DataSourceChanged(object sender, EventArgs e)
@@ -346,7 +345,7 @@ private void DataGridView_DataError(object sender, DataGridViewDataErrorEventArg
346345
e.ThrowException = false;
347346
}
348347

349-
private KeysConverter KeysConverter = new();
348+
private readonly KeysConverter KeysConverter = new();
350349

351350
private void DataGridView_KeyDown(object sender, KeyEventArgs e)
352351
{

Project/Source/Forms/Config/PreferencesForm.Initialize.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ private void LoadEditIntervals()
122122
setInterval(EditPageHeight, LabelPageHeightIntervalInfo, DocumentPageHeightInterval);
123123
setInterval(EditDocumentWordColumnsCount, LabelDocumentWordColumnsCountIntervalInfo, DocumentWordColumnsCountInterval);
124124
setInterval(EditWordTranslateLinesCount, LabelWordtranslateLinesCountInfo, WordTranslationLinesCountInterval);
125-
// TODO setInterval(EditPrintingMargin, LabelPrintingMarginIntervalInfo, PrintingMarginInterval);
126125
//
127126
static void setInterval(NumericUpDown control, Label label, (int, int, int, int) interval)
128127
{

Project/Source/Forms/MainForm/MainForm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ internal void ActionPreferences_Click(object sender, EventArgs e)
275275
CreateFilterDataSource();
276276
SelectSearchInBook.DataSource = new BindingList<BookRow>(ApplicationDatabase.Instance.Books);
277277
UpdateCurrentReference();
278-
// TODO reconstruct search query
279278
RenderAll(true);
280279
VerseControl.ResetMetricsRequired = true;
281280
WordControl.ResetMetricsRequired = true;

Project/Source/Program/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ private static void CheckSettingsReset(bool force = false)
107107
Settings.SetFirstAndUpgradeFlagsOff();
108108
Settings.VacuumAtStartup = true;
109109
Settings.CurrentView = ViewMode.ChapterVerses;
110-
Settings.VerseCommentaryLinesCount = 5; // TODO update from default setting
111-
Settings.VerseWordTranslationLinesCount = 2; // TODO update from default setting
112-
Settings.WordControlWidth = 210; // TODO update from default setting
110+
Settings.VerseCommentaryLinesCount = (int)Settings.Properties["VerseCommentaryLinesCount"].DefaultValue;
111+
Settings.VerseWordTranslationLinesCount = (int)Settings.Properties["VerseWordTranslationLinesCount"].DefaultValue;
112+
Settings.WordControlWidth = (int)Settings.Properties["WordControlWidth"].DefaultValue;
113113
if ( Settings.SearchOnlineURL == "https://www.google.com/search?q=strong+hebrew+" )
114114
Settings.SearchOnlineURL = "https://www.pealim.com/search/?q=%WORD%";
115115
}

Project/Source/Program/Translations/AppTranslations.News.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ static partial class AppTranslations
2929
static public readonly NullSafeDictionary<string, TranslationsDictionary> NoticeNewFeatures = new()
3030
{
3131

32+
["3.14"] = new TranslationsDictionary
33+
{
34+
[Language.EN] = "• Add search parashah text box in parashot board.",
35+
36+
[Language.FR] = "• Ajout d'une zone de texte de recherche de parashah dans le tableau des parashot."
37+
},
38+
3239
["3.12"] = new TranslationsDictionary
3340
{
3441
[Language.EN] = "• Add translated word filter to the window of verses by updated date.",

0 commit comments

Comments
 (0)