Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Feb 10, 2024
1 parent cdfbb56 commit 07ee49a
Show file tree
Hide file tree
Showing 23 changed files with 21 additions and 118 deletions.
2 changes: 2 additions & 0 deletions OneMore/Commands/Settings/SettingsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ private async void Navigate(object sender, TreeViewEventArgs e)

headerLabel.Text = sheet.Title;

contentPanel.SuspendLayout();
contentPanel.Controls.Clear();
contentPanel.Controls.Add(sheet);
contentPanel.ResumeLayout();
}


Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Snippets/InsertTocDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private void ChangedRadio(object sender, EventArgs e)
if (sender == pageRadio)
{
topBox.Enabled = true;
rightAlignBox.Enabled = true;
rightAlignBox.Enabled = topBox.Checked;
locationBox.Enabled = true;
styleBox.Enabled = true;
previewBox.Enabled = false;
Expand Down
8 changes: 4 additions & 4 deletions OneMore/Commands/Tables/AddFormulaCommand.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//************************************************************************************************
// Copyright © 2020 Steven M Cohn. All rights reserved.
// Copyright © 2020 Steven M Cohn. All rights reserved.
//************************************************************************************************

namespace River.OneMoreAddIn.Commands
Expand Down Expand Up @@ -48,7 +48,7 @@ public override async Task Execute(params object[] args)

if (!page.ConfirmBodyContext())
{
UIHelper.ShowInfo(one.Window, Resx.FormulaCommand_SelectOne);
UI.MoreMessageBox.Show(owner, Resx.FormulaCommand_SelectOne);
return;
}

Expand All @@ -67,7 +67,7 @@ public override async Task Execute(params object[] args)

if (anchor == null)
{
UIHelper.ShowInfo(one.Window, Resx.FormulaCommand_SelectOne);
UI.MoreMessageBox.Show(owner, Resx.FormulaCommand_SelectOne);
return;
}

Expand All @@ -76,7 +76,7 @@ public override async Task Execute(params object[] args)

if (range == TableSelectionRange.Rectangular)
{
UIHelper.ShowInfo(one.Window, Resx.FormulaCommand_Linear);
UI.MoreMessageBox.Show(owner, Resx.FormulaCommand_Linear);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/DeleteFormulaCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public override async Task Execute(params object[] args)
}
else
{
UIHelper.ShowInfo(Resx.DeleteFormulaCommand_NoFormulas);
UI.MoreMessageBox.Show(owner, Resx.DeleteFormulaCommand_NoFormulas);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/FillCellsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public override async Task Execute(params object[] args)

if (anchor == null)
{
UIHelper.ShowInfo(one.Window, Resx.InsertCellsCommand_NoSelection);
UI.MoreMessageBox.Show(owner, Resx.InsertCellsCommand_NoSelection);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/HighlightFormulaCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public override async Task Execute(params object[] args)
}
else
{
UIHelper.ShowInfo(Resx.HighlightFormulaCommand_NoFormulas);
UI.MoreMessageBox.Show(owner, Resx.HighlightFormulaCommand_NoFormulas);
}

logger.WriteTime("highlight");
Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/InsertCellsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override async Task Execute(params object[] args)

if (anchor == null)
{
UIHelper.ShowInfo(one.Window, Resx.InsertCellsCommand_NoSelection);
UI.MoreMessageBox.Show(owner, Resx.InsertCellsCommand_NoSelection);
return;
}

Expand Down
10 changes: 5 additions & 5 deletions OneMore/Commands/Tables/PasteCellsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override async Task Execute(params object[] args)
if (anchor == null)
{
logger.WriteLine("could not find anchor cell");
UIHelper.ShowInfo(one.Window, "could not find anchor cell; this shouldn't happen!");
UI.MoreMessageBox.Show(owner, "could not find anchor cell; this shouldn't happen!");
IsCancelled = true;
return;
}
Expand All @@ -65,15 +65,15 @@ public override async Task Execute(params object[] args)
var spage = await GetSourcePage();
if (spage == null)
{
UIHelper.ShowInfo(one.Window, Resx.PasteCellsCommand_NoContent);
UI.MoreMessageBox.Show(owner, Resx.PasteCellsCommand_NoContent);
IsCancelled = true;
return;
}

var source = GetSourceTable(spage);
if (source == null)
{
UIHelper.ShowInfo(one.Window, Resx.PasteCellsCommand_NoContent);
UI.MoreMessageBox.Show(owner, Resx.PasteCellsCommand_NoContent);
IsCancelled = true;
return;
}
Expand Down Expand Up @@ -120,15 +120,15 @@ private XElement GetTargetTableRoot(Page page, XNamespace ns)

if (cell == null)
{
UIHelper.ShowInfo(one.Window, Resx.PasteCellsCommand_SelectCell);
UI.MoreMessageBox.Show(owner, Resx.PasteCellsCommand_SelectCell);
return null;
}

var root = cell.Ancestors(ns + "Table").FirstOrDefault();
if (root == null)
{
logger.WriteLine("error finding <one:Table>");
UIHelper.ShowInfo(one.Window, "error finding <one:Table>; this shouldn't happen!");
UI.MoreMessageBox.Show(owner, "error finding <one:Table>; this shouldn't happen!");
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/RecalculateFormulaCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ where c.Root.Elements(ns + "OEChildren").Elements(ns + "OE").Elements(ns + "Meta

if (!updated)
{
UIHelper.ShowInfo(Resx.RecalculateFormulaCommand_NoFormula);
UI.MoreMessageBox.Show(owner, Resx.RecalculateFormulaCommand_NoFormula);
}

logger.WriteTime("recalcution");
Expand Down
4 changes: 2 additions & 2 deletions OneMore/Commands/Tables/SplitTableCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public override async Task Execute(params object[] args)

if (anchor == null)
{
UIHelper.ShowInfo(one.Window, Resx.SplitTableCommand_NoSelection);
UI.MoreMessageBox.Show(owner, Resx.SplitTableCommand_NoSelection);
return;
}

var row = anchor.FirstAncestor(ns + "Row");
if (!row.ElementsBeforeSelf(ns + "Row").Any())
{
UIHelper.ShowInfo(one.Window, Resx.SplitTableCommand_FirstRow);
UI.MoreMessageBox.Show(owner, Resx.SplitTableCommand_FirstRow);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion OneMore/Commands/Tables/TextToTableCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public override async Task Execute(params object[] args)

if (selections.Count == 0 || (selections.Count == 1 && selections[0].Value == string.Empty))
{
UIHelper.ShowInfo(one.Window, Resx.TextToTable_NoText);
UI.MoreMessageBox.Show(owner, Resx.TextToTable_NoText);
return;
}

Expand Down
3 changes: 1 addition & 2 deletions OneMore/Commands/Tagging/HashtagDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions OneMore/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.ar-SA.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2085,10 +2085,6 @@
<value>اختيار فارغ. حدد كتلة صالحة من نص PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>بناء جملة غير صالح أو تحديد غير كامل لـ PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>تم اكتشاف ملف XML غير صالح. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2332,10 +2328,6 @@ ISO-code then comma then language name</comment>
<value>لا يوجد تذكير في هذه الفقرة</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>انقر فوق "نعم" لتحديث هذا التقرير الموجود أو "لا" لإنشاء تقرير جديد أو "إلغاء الأمر"</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>تاريخ الاستحقاق</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2083,10 +2083,6 @@ Bewerben Sie sich auf dieses Notizbuch</value>
<value>Leere Auswahl. Wählen Sie einen gültigen Block von PlantUML-Text aus.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Ungültige Syntax oder unvollständige Auswahl von PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>Ungültiges XML erkannt. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2329,10 +2325,6 @@ Jahr (2023)
<value>Es gibt keine Erinnerung zu diesem Absatz</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Klicke auf Ja, um diesen vorhandenen Bericht zu aktualisieren, auf Nein, um einen neuen Bericht zu erstellen, oder auf Abbrechen</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Geburtstermin</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.es-ES.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2085,10 +2085,6 @@ Aplicar a este cuaderno</value>
<value>Selección vacía. Seleccione un bloque válido de texto PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Sintaxis no válida o selección incompleta de PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>XML no válido detectado. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2332,10 +2328,6 @@ Año (2023)
<value>No hay recordatorio en este párrafo</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Haga clic en Sí para actualizar este informe existente, No para crear un nuevo informe o Cancelar</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Fecha de vencimiento</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2085,10 +2085,6 @@ Postuler à ce carnet</value>
<value>Sélection vide. Sélectionnez un bloc valide de texte PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Syntaxe invalide ou sélection incomplète de PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>XML non valide détecté. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2331,10 +2327,6 @@ Année (2023)
<value>Il n'y a pas de rappel sur ce paragraphe</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Cliquez sur Oui pour mettre à jour ce rapport existant, Non pour créer un nouveau rapport ou Annuler</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Date d'échéance</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.he-IL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2094,10 +2094,6 @@ Total Row Font
<value>בחירה ריקה. בחר בלוק חוקי של טקסט PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>תחביר לא חוקי או בחירה לא מלאה של PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>זוהה XML לא חוקי. בדוק את קובץ היומן לפרטים</value>
<comment>error message</comment>
Expand Down Expand Up @@ -2345,10 +2341,6 @@ ISO-code then comma then language name</comment>
<value>אין תזכורת בפסקה זו</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>לחץ על כן כדי לעדכן דוח קיים זה, לא כדי ליצור דוח חדש, או בטל</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>תאריך להגשה</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.nl-NL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2086,10 +2086,6 @@ Toepassen op dit notitieboekje</value>
<value>Lege selectie. Selecteer een geldig blok PlantUML-tekst.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Ongeldige syntaxis of onvolledige selectie van PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>Ongeldige XML gedetecteerd. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2333,10 +2329,6 @@ Jaar (2023)
<value>Er is geen herinnering in deze paragraaf</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Klik op Ja om dit bestaande rapport bij te werken, op Nee om een ​​nieuw rapport te maken of op Annuleren</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Opleveringsdatum</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.pl-PL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2094,10 +2094,6 @@ Zastosuj do tego notatnika</value>
<value>Pusty wybór. Wybierz prawidłowy blok tekstu PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Niepoprawna składnia lub niepełny wybór PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>Nieprawidłowy wykryty XML. Szczegółowe informacje można znaleźć w pliku dziennika</value>
<comment>error message</comment>
Expand Down Expand Up @@ -2345,10 +2341,6 @@ Rok (2023)
<value>Nie ma przypomnienia na tym akapicie</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Kliknij Tak, aby zaktualizować ten istniejący raport, nie do utworzenia nowego raportu lub anuluj</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Termin</value>
<comment>label</comment>
Expand Down
8 changes: 0 additions & 8 deletions OneMore/Properties/Resources.pt-BR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2086,10 +2086,6 @@ Aplicar a este caderno</value>
<value>Seleção vazia. Selecione um bloco válido de texto PlantUML.</value>
<comment>error message</comment>
</data>
<data name="PlantUml_Error" xml:space="preserve">
<value>Sintaxe inválida ou seleção incompleta de PlantUML</value>
<comment>error message</comment>
</data>
<data name="Plugin_InvalidSchema" xml:space="preserve">
<value>XML inválido detectado. </value>
<comment>error message</comment>
Expand Down Expand Up @@ -2333,10 +2329,6 @@ Ano (2023)
<value>Não há lembrete neste parágrafo</value>
<comment>message box</comment>
</data>
<data name="RemindCommand_Reuse" xml:space="preserve">
<value>Clique em Sim para atualizar este relatório existente, Não para criar um novo relatório ou Cancelar</value>
<comment>message box</comment>
</data>
<data name="RemindDialog_dueDateLabel.Text" xml:space="preserve">
<value>Data de Vencimento</value>
<comment>label</comment>
Expand Down
Loading

0 comments on commit 07ee49a

Please sign in to comment.