Skip to content

Commit b50fb0b

Browse files
committed
Commented out the non-functioning menu items, and commited the latest changes to the sample project
1 parent 23f3e4b commit b50fb0b

File tree

3 files changed

+48
-29
lines changed

3 files changed

+48
-29
lines changed

nw/gui/mainmenu.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -238,18 +238,18 @@ def _buildDocumentMenu(self):
238238
menuItem.triggered.connect(self.theParent._previewDocument)
239239
self.docuMenu.addAction(menuItem)
240240

241-
# Document > Separator
242-
self.docuMenu.addSeparator()
241+
# # Document > Separator
242+
# self.docuMenu.addSeparator()
243243

244-
# Document > Split
245-
menuItem = QAction(QIcon.fromTheme("list-add"), "Split Document", self)
246-
menuItem.setStatusTip("Split Selected Document")
247-
self.docuMenu.addAction(menuItem)
244+
# # Document > Split
245+
# menuItem = QAction(QIcon.fromTheme("list-add"), "Split Document", self)
246+
# menuItem.setStatusTip("Split Selected Document")
247+
# self.docuMenu.addAction(menuItem)
248248

249-
# Document > Merge
250-
menuItem = QAction(QIcon.fromTheme("list-remove"), "Merge Document", self)
251-
menuItem.setStatusTip("Merge Selected Documents")
252-
self.docuMenu.addAction(menuItem)
249+
# # Document > Merge
250+
# menuItem = QAction(QIcon.fromTheme("list-remove"), "Merge Document", self)
251+
# menuItem.setStatusTip("Merge Selected Documents")
252+
# self.docuMenu.addAction(menuItem)
253253

254254
return
255255

@@ -272,12 +272,12 @@ def _buildViewMenu(self):
272272
menuItem.triggered.connect(lambda : self.theParent.setFocus(2))
273273
self.viewMenu.addAction(menuItem)
274274

275-
# View > Document Pane 2
276-
menuItem = QAction(QIcon.fromTheme("go-last"), "Right Document Pane", self)
277-
menuItem.setStatusTip("Move to Right Document Pane")
278-
menuItem.setShortcut("Ctrl+3")
279-
menuItem.triggered.connect(lambda : self.theParent.setFocus(3))
280-
self.viewMenu.addAction(menuItem)
275+
# # View > Document Pane 2
276+
# menuItem = QAction(QIcon.fromTheme("go-last"), "Right Document Pane", self)
277+
# menuItem.setStatusTip("Move to Right Document Pane")
278+
# menuItem.setShortcut("Ctrl+3")
279+
# menuItem.triggered.connect(lambda : self.theParent.setFocus(3))
280+
# self.viewMenu.addAction(menuItem)
281281

282282
return
283283

@@ -407,13 +407,13 @@ def _buildToolsMenu(self):
407407
self.toolsMoveDown.triggered.connect(lambda : self._moveTreeItem(1))
408408
self.toolsMenu.addAction(self.toolsMoveDown)
409409

410-
# Tools > Separator
411-
self.toolsMenu.addSeparator()
410+
# # Tools > Separator
411+
# self.toolsMenu.addSeparator()
412412

413-
# Tools > Settings
414-
menuItem = QAction(QIcon.fromTheme("preferences-system"), "Preferences", self)
415-
menuItem.setStatusTip("Preferences")
416-
self.toolsMenu.addAction(menuItem)
413+
# # Tools > Settings
414+
# menuItem = QAction(QIcon.fromTheme("preferences-system"), "Preferences", self)
415+
# menuItem.setStatusTip("Preferences")
416+
# self.toolsMenu.addAction(menuItem)
417417

418418
return
419419

sample/sampleNovel/data_6/36b6aa9b697b_main.nwd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ Some text here would look good as well, and maybe some "dialogue"?
1111

1212
**Some Section**
1313

14-
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.
14+
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.
15+
16+
This paragraph is also meaningless. At least a bit.
17+
18+
#
19+
##
20+
###
21+
####
22+
#####
23+
1524

16-
This paragraph is also meaningless. At least a bit.
1725

1826

sample/sampleNovel/nwProject.nwx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version='1.0' encoding='utf-8'?>
2-
<novelWriterXML appVersion="0.0.1" fileVersion="1.0" timeStamp="2019-05-04 23:57:20">
2+
<novelWriterXML appVersion="0.0.1" fileVersion="1.0" timeStamp="2019-05-10 18:35:23">
33
<project>
44
<name>Sample Project</name>
55
<title>Sample Project</title>
66
<author>Jane Smith</author>
77
<author>Jay Doh</author>
88
</project>
9-
<content count="14">
9+
<content count="15">
1010
<item handle="7031beac91f75" order="0" parent="None">
1111
<name>Novel</name>
1212
<type>ROOT</type>
@@ -50,9 +50,9 @@
5050
<status>1</status>
5151
<expanded>False</expanded>
5252
<layout>SCENE</layout>
53-
<charCount>392</charCount>
54-
<wordCount>70</wordCount>
55-
<paraCount>4</paraCount>
53+
<charCount>404</charCount>
54+
<wordCount>71</wordCount>
55+
<paraCount>5</paraCount>
5656
</item>
5757
<item handle="bc0cbd2a407f3" order="2" parent="e7ded148d6e4a">
5858
<name>New File</name>
@@ -137,5 +137,16 @@
137137
<wordCount>0</wordCount>
138138
<paraCount>0</paraCount>
139139
</item>
140+
<item handle="879437bde105e" order="1" parent="f75dac270c2a7">
141+
<name>New File</name>
142+
<type>FILE</type>
143+
<class>CHARACTER</class>
144+
<status>0</status>
145+
<expanded>False</expanded>
146+
<layout>NOTE</layout>
147+
<charCount>0</charCount>
148+
<wordCount>0</wordCount>
149+
<paraCount>0</paraCount>
150+
</item>
140151
</content>
141152
</novelWriterXML>

0 commit comments

Comments
 (0)