From dadc7edbd9e65e44692dc79ed92c3ec8364a6686 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sun, 6 Jul 2025 18:14:33 +0200 Subject: [PATCH] Move the open ended dialogue setting in Preferences (#2454) --- novelwriter/dialogs/preferences.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/novelwriter/dialogs/preferences.py b/novelwriter/dialogs/preferences.py index 281487b3..c01275ba 100644 --- a/novelwriter/dialogs/preferences.py +++ b/novelwriter/dialogs/preferences.py @@ -600,6 +600,7 @@ class GuiPreferences(NDialog): self.sidebar.addButton(title, section) self.mainForm.addGroupLabel(title, section) + # Dialogue Quotes self.dialogStyle = NComboBox(self) self.dialogStyle.addItem(self.tr("None"), 0) self.dialogStyle.addItem(self.tr("Single Quotes"), 1) @@ -611,6 +612,15 @@ class GuiPreferences(NDialog): self.tr("Applies to the selected quote styles.") ) + # Open-Ended Dialogue + self.allowOpenDial = NSwitch(self) + self.allowOpenDial.setChecked(CONFIG.allowOpenDial) + self.mainForm.addRow( + self.tr("Allow open-ended dialogue"), self.allowOpenDial, + self.tr("Highlight dialogue line with no closing quote.") + ) + + # Alternative Dialogue self.altDialogOpen = QLineEdit(self) self.altDialogOpen.setMaxLength(4) self.altDialogOpen.setFixedWidth(boxFixed) @@ -628,13 +638,7 @@ class GuiPreferences(NDialog): self.tr("Custom highlighting of dialogue text.") ) - self.allowOpenDial = NSwitch(self) - self.allowOpenDial.setChecked(CONFIG.allowOpenDial) - self.mainForm.addRow( - self.tr("Allow open-ended dialogue"), self.allowOpenDial, - self.tr("Highlight dialogue line with no closing quote.") - ) - + # Dialogue Line self.dialogLine = QLineEdit(self) self.dialogLine.setMaxLength(4) self.dialogLine.setFixedWidth(boxFixed) @@ -645,6 +649,7 @@ class GuiPreferences(NDialog): self.tr("Lines starting with any of these symbols are dialogue.") ) + # Narrator Break self.narratorBreak = NComboBox(self) self.narratorDialog = NComboBox(self) for key, value in nwQuotes.DASHES.items(): @@ -664,6 +669,7 @@ class GuiPreferences(NDialog): self.tr("Alternates dialogue highlighting within any paragraph.") ) + # Emphasis self.highlightEmph = NSwitch(self) self.highlightEmph.setChecked(CONFIG.highlightEmph) self.mainForm.addRow( @@ -671,6 +677,7 @@ class GuiPreferences(NDialog): self.tr("Applies to the document editor only.") ) + # Additional Spaces self.showMultiSpaces = NSwitch(self) self.showMultiSpaces.setChecked(CONFIG.showMultiSpaces) self.mainForm.addRow(