OSDN Git Service

Add selective sync, cleanup debug messages, & correct network sync not disconnecting...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / gui / MainMenuBar.java
index 39ede05..72e7311 100644 (file)
@@ -31,7 +31,8 @@ public class MainMenuBar extends QMenuBar {
        public QAction                  printAction;                            // Action when a user selects Print from the file menu\r
        public QAction                  connectAction;                          // Connect/Disconnect to Evernote\r
        public QAction                  fullReindexAction;                      // Action when a user wants to reindex the entire database\r
-       public QAction                  synchronizeAction;                      // Synchronize data with Evernote                                       \r
+       public QAction                  synchronizeAction;                      // Synchronize data with Evernote       \r
+       public QAction                  selectiveSyncAction;            // Specify which notebooks or tags to ignore\r
        public QAction                  settingsAction;                         // Show user config settings\r
        public QAction                  emailAction;                            // Action when a user selects "email"\r
        public QAction                  backupAction;                           // Backup the database\r
@@ -536,7 +537,11 @@ public class MainMenuBar extends QMenuBar {
                noteOnlineHistoryAction.setEnabled(false);\r
                setupShortcut(noteOnlineHistoryAction, "Online_Note_History");\r
                \r
-               \r
+               selectiveSyncAction = new QAction(tr("Selective Synchronize"), this);\r
+               selectiveSyncAction.setToolTip("Selectively ignore some notes");\r
+               selectiveSyncAction.triggered.connect(parent, "setupSelectiveSync()");\r
+               selectiveSyncAction.setEnabled(false);\r
+               setupShortcut(synchronizeAction, "Online_Selective_Sync");\r
                \r
                \r
                \r
@@ -714,6 +719,7 @@ public class MainMenuBar extends QMenuBar {
                onlineMenu.addAction(connectAction);\r
                onlineMenu.addSeparator();\r
                onlineMenu.addAction(noteOnlineHistoryAction);\r
+               onlineMenu.addAction(selectiveSyncAction);\r
                \r
                toolsMenu = addMenu(tr("&Tools"));\r
                toolsMenu.addAction(spellCheckAction);\r