OSDN Git Service

Add automatic wildcard option.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigIndexPage.java
index 4669a23..7b3db98 100644 (file)
@@ -44,6 +44,7 @@ public class ConfigIndexPage extends QWidget {
        private final QCheckBox indexAttachmentsLocally;\r
        private final QCheckBox indexImageRecognition;\r
        private final QCheckBox indexTitle;\r
+       private final QCheckBox automaticWildcard;\r
        private final QLineEdit specialStrip;\r
        private final QCheckBox indexBody;\r
        private final QLineEdit regexEdit;\r
@@ -75,6 +76,9 @@ public class ConfigIndexPage extends QWidget {
                indexImageRecognition = new QCheckBox(tr("Index Image Recognition"));\r
                indexImageRecognition.setChecked(Global.indexImageRecognition());\r
                \r
+               automaticWildcard = new QCheckBox(tr("Automatically Wildcard All Searches"));\r
+               automaticWildcard.setChecked(Global.automaticWildcardSearches());\r
+               \r
                specialStrip = new QLineEdit();\r
                specialStrip.setText(Global.getSpecialIndexCharacters());\r
                \r
@@ -83,6 +87,7 @@ public class ConfigIndexPage extends QWidget {
                attachmentLayout.addWidget(indexTitle);\r
                attachmentLayout.addWidget(indexAttachmentsLocally);\r
                attachmentLayout.addWidget(indexImageRecognition);\r
+               attachmentLayout.addWidget(automaticWildcard);\r
                \r
                QHBoxLayout specialCharLayout = new QHBoxLayout();\r
                specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));\r
@@ -145,6 +150,9 @@ public class ConfigIndexPage extends QWidget {
        public boolean getIndexImageRecognition() {\r
                return indexImageRecognition.isChecked();\r
        }\r
+       public boolean getAutomaticWildcardSearches() {\r
+               return automaticWildcard.isChecked();\r
+       }\r
        \r
        //*****************************************\r
        //* Word length get/set methods \r