OSDN Git Service

ローカル添付ファイルもApache Luceneを使った全文検索の対象に追加。
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigIndexPage.java
index 3d1ec9b..2420a9f 100644 (file)
@@ -45,9 +45,9 @@ public class ConfigIndexPage extends QWidget {
        private final QCheckBox indexImageRecognition;\r
        private final QCheckBox indexTitle;\r
 //     private final QCheckBox automaticWildcard;\r
-       private final QLineEdit specialStrip;\r
+//     private final QLineEdit specialStrip;\r
        private final QCheckBox indexBody;\r
-       private final QLineEdit regexEdit;\r
+//     private final QLineEdit regexEdit;\r
        \r
        public ConfigIndexPage(QWidget parent) {\r
 //             super(parent);\r
@@ -79,8 +79,8 @@ public class ConfigIndexPage extends QWidget {
 //             automaticWildcard = new QCheckBox(tr("Automatically Wildcard All Searches"));\r
 //             automaticWildcard.setChecked(Global.automaticWildcardSearches());\r
                \r
-               specialStrip = new QLineEdit();\r
-               specialStrip.setText(Global.getSpecialIndexCharacters());\r
+//             specialStrip = new QLineEdit();\r
+//             specialStrip.setText(Global.getSpecialIndexCharacters());\r
                \r
                QVBoxLayout attachmentLayout = new QVBoxLayout();\r
                attachmentLayout.addWidget(indexBody);\r
@@ -89,10 +89,10 @@ public class ConfigIndexPage extends QWidget {
                attachmentLayout.addWidget(indexImageRecognition);\r
 //             attachmentLayout.addWidget(automaticWildcard);\r
                \r
-               QHBoxLayout specialCharLayout = new QHBoxLayout();\r
-               specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));\r
-               specialCharLayout.addWidget(specialStrip);\r
-               attachmentLayout.addLayout(specialCharLayout);\r
+//             QHBoxLayout specialCharLayout = new QHBoxLayout();\r
+//             specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));\r
+//             specialCharLayout.addWidget(specialStrip);\r
+//             attachmentLayout.addLayout(specialCharLayout);\r
                attachmentGroup.setLayout(attachmentLayout);\r
 \r
                // Index sleep interval\r
@@ -109,22 +109,22 @@ public class ConfigIndexPage extends QWidget {
                sleepGroup.setLayout(sleepLayout);\r
                \r
                // Regular Expressions for word parsing\r
-               QGroupBox regexGroup = new QGroupBox(tr("Word Parse"));\r
-               QLabel regexLabel = new QLabel(tr("Regular Expression"));\r
-               regexEdit = new QLineEdit();\r
-               regexEdit.setText(Global.getWordRegex());\r
-\r
-               QHBoxLayout regexLayout = new QHBoxLayout();\r
-               regexLayout.addWidget(regexLabel);\r
-               regexLayout.addWidget(regexEdit);               \r
-               regexGroup.setLayout(regexLayout);\r
+//             QGroupBox regexGroup = new QGroupBox(tr("Word Parse"));\r
+//             QLabel regexLabel = new QLabel(tr("Regular Expression"));\r
+//             regexEdit = new QLineEdit();\r
+//             regexEdit.setText(Global.getWordRegex());\r
+//\r
+//             QHBoxLayout regexLayout = new QHBoxLayout();\r
+//             regexLayout.addWidget(regexLabel);\r
+//             regexLayout.addWidget(regexEdit);               \r
+//             regexGroup.setLayout(regexLayout);\r
                \r
                \r
                QVBoxLayout mainLayout = new QVBoxLayout();\r
                mainLayout.addWidget(sleepGroup);\r
                mainLayout.addWidget(weightGroup);\r
                mainLayout.addWidget(attachmentGroup);\r
-               mainLayout.addWidget(regexGroup);\r
+//             mainLayout.addWidget(regexGroup);\r
                mainLayout.addStretch(1);\r
                setLayout(mainLayout);\r
 \r
@@ -144,9 +144,9 @@ public class ConfigIndexPage extends QWidget {
        public boolean getIndexNoteTitle() {\r
                return indexTitle.isChecked();\r
        }\r
-       public String getSpecialCharacters() {\r
-               return specialStrip.text();\r
-       }\r
+//     public String getSpecialCharacters() {\r
+//             return specialStrip.text();\r
+//     }\r
        public boolean getIndexImageRecognition() {\r
                return indexImageRecognition.isChecked();\r
        }\r
@@ -181,11 +181,11 @@ public class ConfigIndexPage extends QWidget {
        //*****************************************\r
        //* Regex get/set methods \r
        //*****************************************\r
-       public void setRegex(String s) {\r
-               regexEdit.setText(s);\r
-       }\r
-       public String getRegex() {\r
-               return regexEdit.text();\r
-       }\r
+//     public void setRegex(String s) {\r
+//             regexEdit.setText(s);\r
+//     }\r
+//     public String getRegex() {\r
+//             return regexEdit.text();\r
+//     }\r
 \r
 }\r