OSDN Git Service

Added forgotten action to save spell settings.
authorRandy Baumgarte <randy@fbn.cx>
Thu, 7 Oct 2010 11:50:53 +0000 (07:50 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sun, 10 Oct 2010 14:04:05 +0000 (10:04 -0400)
src/cx/fbn/nevernote/dialog/ConfigDialog.java
src/cx/fbn/nevernote/dialog/ConfigSpellPage.java

index 77ae85e..879be62 100644 (file)
@@ -23,6 +23,7 @@ import java.io.FileInputStream;
 import java.io.FileNotFoundException;\r
 import java.io.FileOutputStream;\r
 \r
+import com.swabunga.spell.engine.Configuration;\r
 import com.trolltech.qt.core.QSize;\r
 import com.trolltech.qt.core.Qt.AlignmentFlag;\r
 import com.trolltech.qt.core.Qt.ItemFlag;\r
@@ -156,6 +157,12 @@ public class ConfigDialog extends QDialog {
                Global.saveCarriageReturnFix(debugPage.getCarriageReturnFix());\r
                Global.enableCarriageReturnFix = debugPage.getCarriageReturnFix();\r
                \r
+               Global.setSpellSetting(Configuration.SPELL_IGNOREDIGITWORDS, spellPage.getIgnoreDigitWords());\r
+               Global.setSpellSetting(Configuration.SPELL_IGNOREINTERNETADDRESSES, spellPage.getIgnoreInternetAddresses());\r
+               Global.setSpellSetting(Configuration.SPELL_IGNOREMIXEDCASE, spellPage.getIgnoreMixedCase());\r
+               Global.setSpellSetting(Configuration.SPELL_IGNOREUPPERCASE, spellPage.getIgnoreUpperCase());\r
+               Global.setSpellSetting(Configuration.SPELL_IGNORESENTENCECAPITALIZATION, spellPage.getIgnoreSentenceCapitalization());\r
+               \r
                String guiFormat = appearancePage.getStyle();\r
                QApplication.setStyle(guiFormat);\r
                QApplication.style().standardPalette();\r
index f1f9120..f01d33d 100644 (file)
@@ -92,7 +92,7 @@ public class ConfigSpellPage extends QWidget {
        //*********************************************\r
        //* Getter/Setter for ignore Mixed Case words *\r
        //*********************************************\r
-       public boolean getUpperMixedCase() {\r
+       public boolean getIgnoreUpperCase() {\r
                return ignoreUpperCase.isChecked();\r
        }\r
        public void setIgnoreUpperCase(boolean value) {\r
@@ -102,7 +102,7 @@ public class ConfigSpellPage extends QWidget {
        //****************************************************************\r
        //* Getter/Setter for ignore that sentences begin with a capital *\r
        //****************************************************************\r
-       public boolean getSentenceCapitalization() {\r
+       public boolean getIgnoreSentenceCapitalization() {\r
                return ignoreSentenceCapitalization.isChecked();\r
        }\r
        public void setIgnoreSentenceCapitalization(boolean value) {\r