OSDN Git Service

ツールバーの「新規」ボタンを押した時にノートを新しいタブで開けるように変更した
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / ConfigAppearancePage.java
index 90b99a9..6437567 100644 (file)
@@ -57,6 +57,7 @@ public class ConfigAppearancePage extends QWidget {
        private final QCheckBox minimizeOnClose;\r
        private final QCheckBox includeTagChildren;\r
        private final QCheckBox displayRightToLeft;\r
+       private final QCheckBox toolBarNewAction;\r
        private final QComboBox startupNotebook;\r
        private final QSpinBox autoSaveInterval;\r
        \r
@@ -155,6 +156,7 @@ public class ConfigAppearancePage extends QWidget {
                anyTagSelection = new QCheckBox(tr("Display Notes Matching Any Selected Tags"));\r
                includeTagChildren = new QCheckBox(tr("Include Children In Tag Selection"));\r
                displayRightToLeft = new QCheckBox(tr("Display Notes Right-To-Left"));\r
+               toolBarNewAction = new QCheckBox(tr("Add Note in New Tab When Click Tool Bar New Button"));\r
                \r
                QHBoxLayout startupNotebookLayout = new QHBoxLayout();\r
                startupNotebook = new QComboBox();\r
@@ -193,6 +195,7 @@ public class ConfigAppearancePage extends QWidget {
                checkboxLayout.addWidget(includeTagChildren);\r
                checkboxLayout.addWidget(displayRightToLeft);\r
                checkboxLayout.addWidget(checkForUpdates);\r
+               checkboxLayout.addWidget(toolBarNewAction);\r
                checkboxLayout.addStretch(1);\r
 \r
                \r
@@ -350,6 +353,16 @@ public class ConfigAppearancePage extends QWidget {
        public boolean getCheckForUpdates() {\r
                return checkForUpdates.isChecked();\r
        }\r
+       \r
+       //*******************************************\r
+       //* tool bar new button action get/set\r
+       //*******************************************\r
+       public void setNewAction(boolean val) {\r
+               toolBarNewAction.setChecked(val);\r
+       }\r
+       public boolean getNewAction() {\r
+               return toolBarNewAction.isChecked();\r
+       }\r
 \r
        \r
        //********************************************\r