From b50fb0b102b7f8a94d86ea01a592532630ca0b54 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Fri, 10 May 2019 18:51:05 +0200 Subject: [PATCH] Commented out the non-functioning menu items, and commited the latest changes to the sample project --- nw/gui/mainmenu.py | 44 +++++++++---------- .../sampleNovel/data_6/36b6aa9b697b_main.nwd | 12 ++++- sample/sampleNovel/nwProject.nwx | 21 ++++++--- 3 files changed, 48 insertions(+), 29 deletions(-) diff --git a/nw/gui/mainmenu.py b/nw/gui/mainmenu.py index a148e06e..fdd0c3a1 100644 --- a/nw/gui/mainmenu.py +++ b/nw/gui/mainmenu.py @@ -238,18 +238,18 @@ class GuiMainMenu(QMenuBar): menuItem.triggered.connect(self.theParent._previewDocument) self.docuMenu.addAction(menuItem) - # Document > Separator - self.docuMenu.addSeparator() + # # Document > Separator + # self.docuMenu.addSeparator() - # Document > Split - menuItem = QAction(QIcon.fromTheme("list-add"), "Split Document", self) - menuItem.setStatusTip("Split Selected Document") - self.docuMenu.addAction(menuItem) + # # Document > Split + # menuItem = QAction(QIcon.fromTheme("list-add"), "Split Document", self) + # menuItem.setStatusTip("Split Selected Document") + # self.docuMenu.addAction(menuItem) - # Document > Merge - menuItem = QAction(QIcon.fromTheme("list-remove"), "Merge Document", self) - menuItem.setStatusTip("Merge Selected Documents") - self.docuMenu.addAction(menuItem) + # # Document > Merge + # menuItem = QAction(QIcon.fromTheme("list-remove"), "Merge Document", self) + # menuItem.setStatusTip("Merge Selected Documents") + # self.docuMenu.addAction(menuItem) return @@ -272,12 +272,12 @@ class GuiMainMenu(QMenuBar): menuItem.triggered.connect(lambda : self.theParent.setFocus(2)) self.viewMenu.addAction(menuItem) - # View > Document Pane 2 - menuItem = QAction(QIcon.fromTheme("go-last"), "Right Document Pane", self) - menuItem.setStatusTip("Move to Right Document Pane") - menuItem.setShortcut("Ctrl+3") - menuItem.triggered.connect(lambda : self.theParent.setFocus(3)) - self.viewMenu.addAction(menuItem) + # # View > Document Pane 2 + # menuItem = QAction(QIcon.fromTheme("go-last"), "Right Document Pane", self) + # menuItem.setStatusTip("Move to Right Document Pane") + # menuItem.setShortcut("Ctrl+3") + # menuItem.triggered.connect(lambda : self.theParent.setFocus(3)) + # self.viewMenu.addAction(menuItem) return @@ -407,13 +407,13 @@ class GuiMainMenu(QMenuBar): self.toolsMoveDown.triggered.connect(lambda : self._moveTreeItem(1)) self.toolsMenu.addAction(self.toolsMoveDown) - # Tools > Separator - self.toolsMenu.addSeparator() + # # Tools > Separator + # self.toolsMenu.addSeparator() - # Tools > Settings - menuItem = QAction(QIcon.fromTheme("preferences-system"), "Preferences", self) - menuItem.setStatusTip("Preferences") - self.toolsMenu.addAction(menuItem) + # # Tools > Settings + # menuItem = QAction(QIcon.fromTheme("preferences-system"), "Preferences", self) + # menuItem.setStatusTip("Preferences") + # self.toolsMenu.addAction(menuItem) return diff --git a/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd b/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd index 0f9c32d2..8408e624 100644 --- a/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd +++ b/sample/sampleNovel/data_6/36b6aa9b697b_main.nwd @@ -11,8 +11,16 @@ Some text here would look good as well, and maybe some "dialogue"? **Some Section** -So, this is some text that we’ve been adding to this document. It is utterly meaningless text, but since this is just dummy text, that doesn’t really matter. The text is perfectly happy to live in this document regardless. +So, this is some __text__ that we’ve been adding to this document. It is utterly meaningless text, _but_ since this is just dummy text, that doesn’t really matter. The text is perfectly happy to live in this document regardless. + +This paragraph is also meaningless. At least a bit. + +# +## +### +#### +##### + -This paragraph is also meaningless. At least a bit. diff --git a/sample/sampleNovel/nwProject.nwx b/sample/sampleNovel/nwProject.nwx index f82147c2..4021a961 100644 --- a/sample/sampleNovel/nwProject.nwx +++ b/sample/sampleNovel/nwProject.nwx @@ -1,12 +1,12 @@ - + Sample Project Sample Project Jane Smith Jay Doh - + Novel ROOT @@ -50,9 +50,9 @@ 1 False SCENE - 392 - 70 - 4 + 404 + 71 + 5 New File @@ -137,5 +137,16 @@ 0 0 + + New File + FILE + CHARACTER + 0 + False + NOTE + 0 + 0 + 0 +