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
public QAction emptyTrashAction; // Action when a user wants to clear the trash file\r
public QAction exitAction; // Action when user selects "exit"\r
public QAction aboutAction; // Action when a user selects "About"\r
+ public QAction checkForUpdates; // Check for newer versions\r
public QAction loggerAction; // Action when a user selects "Log"\r
public QAction releaseAction; // Release notes\r
\r
public QAction editPasteWithoutFormat; // Paste selected text\r
public QAction editCopy; // Copy selected text;\r
\r
+ public QAction wideListView; // View with list on the top\r
+ public QAction narrowListView; // View with list on the side\r
public QAction thumbnailView; // view thumbnails\r
public QAction hideSavedSearches; // show/hide saved searches\r
+ public QAction hideZoom; // show/hide the zoom spinner\r
+ public QAction hideSearch; // Show/hide the search window\r
+ public QAction hideQuota; // show/hide the quota window\r
public QAction hideNotebooks; // show/hide notebooks\r
public QAction hideTags; // show/hide tags\r
public QAction hideAttributes; // show/hide note information\r
public QAction databaseStatusAction; // Current database status\r
public QAction folderImportAction; // Automatically import files \r
public QAction spellCheckAction; // Spell checker\r
+ public QAction encryptDatabaseAction; // Encrypt the local database\r
\r
public QAction notebookEditAction; // Edit the selected notebook\r
public QAction notebookAddAction; // Add a new notebook\r
public QAction notebookDeleteAction; // Delete a notebook\r
+ public QAction notebookPublishAction; // Publish a notebook\r
+ public QAction notebookShareAction; // Share a notebook with others\r
public QAction notebookCloseAction; // Close notebooks\r
+ public QAction notebookIconAction; // Change the icon\r
+ public QAction notebookStackAction; // Stack/Unstack the icon.\r
\r
public QAction savedSearchAddAction; // Add a saved search\r
public QAction savedSearchEditAction; // Edit a saved search\r
public QAction savedSearchDeleteAction; // Delete a saved search\r
+ public QAction savedSearchIconAction; // Change a saved search icon\r
\r
public QAction tagEditAction; // Edit a tag\r
public QAction tagAddAction; // Add a tag\r
public QAction tagDeleteAction; // Delete a tag\r
+ public QAction tagIconAction; // Change the icon\r
+ public QAction tagMergeAction; // Merge tags\r
\r
//**************************************************************************\r
//* Menu Bar Titles\r
\r
exitAction = new QAction(tr("Exit"), this);\r
exitAction.setToolTip("Close the program");\r
- exitAction.triggered.connect(parent, "close()");\r
+ exitAction.triggered.connect(parent, "closeNeverNote()");\r
exitAction.setShortcut("Ctrl+Q");\r
setupShortcut(exitAction, "File_Exit");\r
\r
hideNotebooks.setCheckable(true);\r
hideNotebooks.setChecked(true);\r
setupShortcut(hideNotebooks, "View_Show_Notebooks");\r
+ \r
+ hideZoom = new QAction(tr("Show Zoom"), this);\r
+ hideZoom.setToolTip("Show/Hide Zoom");\r
+ hideZoom.triggered.connect(parent, "toggleZoomWindow()");\r
+ hideZoom.setCheckable(true);\r
+ hideZoom.setChecked(true);\r
+ setupShortcut(hideZoom, "View_Show_Zoom");\r
+ \r
+ hideQuota = new QAction(tr("Show Quota Bar"), this);\r
+ hideQuota.setToolTip("Show/Hide Quota");\r
+ hideQuota.triggered.connect(parent, "toggleQuotaWindow()");\r
+ hideQuota.setCheckable(true);\r
+ hideQuota.setChecked(true);\r
+ setupShortcut(hideQuota, "View_Show_Quota");\r
+ \r
+ hideSearch = new QAction(tr("Show Search Box"), this);\r
+ hideSearch.setToolTip("Show/Hide Search Box");\r
+ hideSearch.triggered.connect(parent, "toggleSearchWindow()");\r
+ hideSearch.setCheckable(true);\r
+ hideSearch.setChecked(true);\r
+ setupShortcut(hideSearch, "View_Show_Search");\r
\r
+ wideListView = new QAction(tr("Wide List View"), this);\r
+ wideListView.setToolTip("Wide List Viwe");\r
+ wideListView.setCheckable(true);\r
+ wideListView.changed.connect(parent, "wideListView()");\r
+ setupShortcut(wideListView, "View_Wide_List");\r
+ \r
+ narrowListView = new QAction(tr("Narrow List View"), this);\r
+ narrowListView.setToolTip("Narrow List View");\r
+ narrowListView.setCheckable(true);\r
+ narrowListView.changed.connect(parent, "narrowListView()");\r
+ setupShortcut(narrowListView, "View_Narrow_List");\r
+ \r
thumbnailView = new QAction(tr("Preview"), this);\r
thumbnailView.setToolTip("Preview Notes");\r
thumbnailView.triggered.connect(parent, "thumbnailView()");\r
notebookDeleteAction.triggered.connect(parent, "deleteNotebook()");\r
setupShortcut(notebookDeleteAction, "File_Notebook_Delete");\r
\r
+ notebookPublishAction = new QAction(tr("Share With The World"), this);\r
+ notebookPublishAction.setEnabled(false);\r
+ notebookPublishAction.setVisible(false);\r
+ notebookPublishAction.triggered.connect(parent, "publishNotebook()");\r
+ setupShortcut(notebookPublishAction, "File_Notebook_Publish");\r
+\r
+ notebookShareAction = new QAction(tr("Share With Individuals"), this);\r
+ notebookShareAction.setEnabled(false);\r
+ notebookShareAction.setVisible(false);\r
+ notebookShareAction.triggered.connect(parent, "shareNotebook()");\r
+ setupShortcut(notebookShareAction, "File_Notebook_Share");\r
+ \r
+ \r
notebookCloseAction = new QAction(tr("Open/Close Notebooks"), this);\r
-// if (!Global.mimicEvernoteInterface) {\r
- notebookCloseAction.setEnabled(true);\r
- notebookCloseAction.triggered.connect(parent, "closeNotebooks()");\r
- setupShortcut(notebookCloseAction, "File_Notebook_Close");\r
-// } else {\r
-// notebookCloseAction.setEnabled(false); \r
-// }\r
+ notebookCloseAction.setEnabled(true);\r
+ notebookCloseAction.triggered.connect(parent, "closeNotebooks()");\r
+ setupShortcut(notebookCloseAction, "File_Notebook_Close");\r
+\r
+ notebookIconAction = new QAction(tr("Change Icon"), this);\r
+ notebookIconAction.setEnabled(false);\r
+ notebookIconAction.triggered.connect(parent, "setNotebookIcon()");\r
+ setupShortcut(notebookIconAction, "File_Notebook_Icon");\r
+ \r
+ notebookStackAction = new QAction(tr("Set Stack"), this);\r
+ notebookStackAction.setEnabled(false);\r
+ notebookStackAction.triggered.connect(parent, "stackNotebook()");\r
+ setupShortcut(notebookStackAction, "File_Notebook_Stack");\r
\r
tagAddAction = new QAction(tr("Add"),this);\r
tagAddAction.triggered.connect(parent, "addTag()");\r
tagDeleteAction.setEnabled(false); \r
setupShortcut(tagDeleteAction, "File_Tag_Delete");\r
\r
+ tagIconAction = new QAction(tr("Change Icon"), this);\r
+ tagIconAction.triggered.connect(parent, "setTagIcon()");\r
+ tagIconAction.setEnabled(false); \r
+ setupShortcut(tagIconAction, "File_Tag_Icon");\r
+ \r
+ tagMergeAction = new QAction(tr("Merge Tags"), this);\r
+ tagMergeAction.triggered.connect(parent, "mergeTags()");\r
+ tagMergeAction.setEnabled(false); \r
+ setupShortcut(tagMergeAction, "File_Tag_Merge");\r
+ \r
savedSearchAddAction = new QAction(tr("Add"),this);\r
savedSearchAddAction.triggered.connect(parent, "addSavedSearch()");\r
setupShortcut(savedSearchAddAction, "File_SavedSearch_Add");\r
savedSearchDeleteAction.triggered.connect(parent, "deleteSavedSearch()");\r
savedSearchDeleteAction.setEnabled(false); \r
setupShortcut(savedSearchDeleteAction, "File_SavedSearch_Delete");\r
+\r
+ savedSearchIconAction = new QAction(tr("Change Icon"), this);\r
+ savedSearchIconAction.triggered.connect(parent, "setSavedSearchIcon()");\r
+ savedSearchIconAction.setEnabled(false); \r
+ setupShortcut(savedSearchIconAction, "File_SavedSearch_Icon"); \r
\r
- \r
connectAction = new QAction(tr("Connect"), this);\r
connectAction.setToolTip("Connect to Evernote");\r
connectAction.triggered.connect(parent, "remoteConnect()");\r
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
\r
spellCheckAction = new QAction(tr("Spell Check"), this);\r
spellCheckAction.setToolTip("Check for spelling errors");\r
- spellCheckAction.triggered.connect(parent.browserWindow, "doSpellCheck()");\r
+ spellCheckAction.triggered.connect(parent.browserWindow, "spellCheckClicked()");\r
setupShortcut(spellCheckAction, "Tools_Spell_Check");\r
\r
- loggerAction = new QAction(tr("Log"), this);\r
+ encryptDatabaseAction = new QAction(tr("Encrypt Database"), this);\r
+ encryptDatabaseAction.setToolTip("Encrypt the database upon shutdown");\r
+ encryptDatabaseAction.triggered.connect(parent, "doDatabaseEncrypt()");\r
+ setupShortcut(encryptDatabaseAction, "Tools_Database_Encrypt");\r
+ if (Global.cipherPassword != null && Global.cipherPassword != "") {\r
+ encryptDatabaseAction.setText("Decrypt Database");\r
+ encryptDatabaseAction.setToolTip("Decrypt the database upon shutdown");\r
+ }\r
+ \r
+ loggerAction = new QAction(tr("Logs"), this);\r
loggerAction.setToolTip("Show the detailed application log");\r
loggerAction.triggered.connect(parent, "logger()");\r
setupShortcut(loggerAction, "About_Log");\r
releaseAction.triggered.connect(parent, "releaseNotes()"); \r
setupShortcut(releaseAction, "About_Release_Notes");\r
\r
+ checkForUpdates = new QAction(tr("Check For Updates"), this);\r
+ checkForUpdates.setToolTip("Check for newer versions");\r
+ checkForUpdates.triggered.connect(parent, "checkForUpdates()"); \r
+ setupShortcut(checkForUpdates, "Help_Check_For_Updates");\r
+ \r
aboutAction = new QAction(tr("About"), this);\r
aboutAction.setToolTip("About NeverNote");\r
aboutAction.triggered.connect(parent, "about()"); \r
viewMenu = addMenu(tr("&View"));\r
viewMenu.addAction(noteAttributes);\r
viewMenu.addSeparator();\r
+ viewMenu.addAction(wideListView);\r
+ viewMenu.addAction(narrowListView);\r
viewMenu.addAction(thumbnailView);\r
viewMenu.addSeparator();\r
viewMenu.addAction(hideNoteList);\r
+ viewMenu.addAction(hideSearch);\r
+ viewMenu.addAction(hideQuota);\r
+ viewMenu.addAction(hideZoom);\r
viewMenu.addAction(hideNotebooks);\r
viewMenu.addAction(hideTags);\r
viewMenu.addAction(hideAttributes);\r
notebookMenu.addAction(notebookAddAction);\r
notebookMenu.addAction(notebookEditAction);\r
notebookMenu.addAction(notebookDeleteAction);\r
-// if (!Global.mimicEvernoteInterface) {\r
- notebookMenu.addSeparator();\r
- notebookMenu.addAction(notebookCloseAction);\r
-// }\r
+ notebookMenu.addSeparator();\r
+ notebookMenu.addAction(notebookPublishAction);\r
+ notebookMenu.addAction(notebookShareAction);\r
+ notebookMenu.addSeparator();\r
+ notebookMenu.addAction(notebookStackAction);\r
+ notebookMenu.addAction(notebookCloseAction);\r
+ notebookMenu.addSeparator();\r
+ notebookMenu.addAction(notebookIconAction);\r
\r
tagMenu.addAction(tagAddAction);\r
tagMenu.addAction(tagEditAction);\r
tagMenu.addAction(tagDeleteAction);\r
+ tagMenu.addAction(tagMergeAction);\r
+ tagMenu.addSeparator();\r
+ tagMenu.addAction(tagIconAction);\r
\r
savedSearchMenu.addAction(savedSearchAddAction);\r
savedSearchMenu.addAction(savedSearchEditAction);\r
savedSearchMenu.addAction(savedSearchDeleteAction);\r
+ savedSearchMenu.addSeparator();\r
+ savedSearchMenu.addAction(savedSearchIconAction);\r
\r
onlineMenu = addMenu(tr("&Online"));\r
onlineMenu.addAction(synchronizeAction);\r
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
toolsMenu.addAction(fullReindexAction);\r
toolsMenu.addAction(disableIndexing);\r
// toolsMenu.addAction(compactAction);\r
+ toolsMenu.addSeparator();\r
+ toolsMenu.addAction(encryptDatabaseAction);\r
toolsMenu.addAction(databaseStatusAction);\r
toolsMenu.addSeparator();\r
toolsMenu.addAction(folderImportAction);\r
\r
helpMenu = addMenu(tr("&Help"));\r
helpMenu.addAction(releaseAction);\r
+ helpMenu.addAction(checkForUpdates);\r
helpMenu.addAction(loggerAction);\r
helpMenu.addSeparator();\r
helpMenu.addAction(aboutAction);\r