Skip to content

Commit

Permalink
Prepare 1.2.2 based on novxlib v1.0.0
Browse files Browse the repository at this point in the history
- Fix "View" menu control.
- Add "Import" menu control.
- Add "Project notes" menu control.
  • Loading branch information
peter88213 committed Jan 13, 2024
1 parent e311879 commit 2593d3d
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 15 deletions.
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[LATEST]
version = 1.2.1
download_link = https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.2.1.zip
version = 1.2.2
download_link = https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.2.2.zip
Binary file not shown.
8 changes: 8 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

See the [GitHub "Features" project](https://github.com/users/peter88213/projects/14).

### v1.2.2

- Fix "View" menu control.
- Add "Import" menu control.
- Add "Project notes" menu control.

Based on novxlib v1.0.0

### v1.2.1

- Make it easier to exit the Pick Mode.
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ I use the program myself and fix errors immediately if I notice any. As far as I

## Download and install

[Download the latest release (version 1.2.1)](https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.2.1.zip)
[Download the latest release (version 1.2.2)](https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.2.2.zip)

- Extract the "noveltree_v1.2.1" folder from the downloaded zipfile "noveltree_v1.2.1.zip".
- Extract the "noveltree_v1.2.2" folder from the downloaded zipfile "noveltree_v1.2.2.zip".
- Move into this new folder and open "README.md" for further instructions.
- You may wish to install plugins; the [section editor](https://peter88213.github.io/noveltree_editor/) is highly recommended.

Expand Down
6 changes: 3 additions & 3 deletions i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
"POT-Creation-Date: 2024-01-13 13:27:07\n"
"PO-Revision-Date: 2024-01-13 13:27:08\n"
"Project-Id-Version: 1.2.2\n"
"POT-Creation-Date: 2024-01-13 18:50:45\n"
"PO-Revision-Date: 2024-01-13 18:50:46\n"
"Last-Translator: Peter Triesberger\n"
"Language: de\n"
"MIME-Version: 1.0\n"
Expand Down
Binary file modified i18n/locale/de/LC_MESSAGES/noveltree.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 1.2.1\n"
"POT-Creation-Date: 2024-01-13 13:27:07\n"
"Project-Id-Version: 1.2.2\n"
"POT-Creation-Date: 2024-01-13 18:50:45\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: LANGUAGE\n"
Expand Down
32 changes: 28 additions & 4 deletions src/noveltreelib/view/nv_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,16 @@ def detach_properties_frame(self, event=None):
def disable_menu(self):
"""Disable menu entries when no project is open."""
self.fileMenu.entryconfig(_('Close'), state='disabled')
self.mainMenu.entryconfig(_('View'), state='disabled')
self.mainMenu.entryconfig(_('Part'), state='disabled')
self.mainMenu.entryconfig(_('Chapter'), state='disabled')
self.mainMenu.entryconfig(_('Section'), state='disabled')
self.mainMenu.entryconfig(_('Characters'), state='disabled')
self.mainMenu.entryconfig(_('Locations'), state='disabled')
self.mainMenu.entryconfig(_('Items'), state='disabled')
self.mainMenu.entryconfig(_('Export'), state='disabled')
self.mainMenu.entryconfig(_('Plot'), state='disabled')
self.mainMenu.entryconfig(_('Project notes'), state='disabled')
self.mainMenu.entryconfig(_('Export'), state='disabled')
self.mainMenu.entryconfig(_('Import'), state='disabled')
self.fileMenu.entryconfig(_('Reload'), state='disabled')
self.fileMenu.entryconfig(_('Restore backup'), state='disabled')
self.fileMenu.entryconfig(_('Refresh Tree'), state='disabled')
Expand All @@ -239,6 +240,17 @@ def disable_menu(self):
self.fileMenu.entryconfig(_('Save'), state='disabled')
self.fileMenu.entryconfig(_('Save as...'), state='disabled')
self.fileMenu.entryconfig(_('Discard manuscript'), state='disabled')
self.viewMenu.entryconfig(_('Chapter level'), state='disabled')
self.viewMenu.entryconfig(_('Expand selected'), state='disabled')
self.viewMenu.entryconfig(_('Collapse selected'), state='disabled')
self.viewMenu.entryconfig(_('Expand all'), state='disabled')
self.viewMenu.entryconfig(_('Collapse all'), state='disabled')
self.viewMenu.entryconfig(_('Show Book'), state='disabled')
self.viewMenu.entryconfig(_('Show Characters'), state='disabled')
self.viewMenu.entryconfig(_('Show Locations'), state='disabled')
self.viewMenu.entryconfig(_('Show Items'), state='disabled')
self.viewMenu.entryconfig(_('Show Arcs'), state='disabled')
self.viewMenu.entryconfig(_('Show Project notes'), state='disabled')
for view in self.views:
try:
view.disable_menu()
Expand Down Expand Up @@ -278,15 +290,16 @@ def _view_options(self, event=None):
def enable_menu(self):
"""Enable menu entries when a project is open."""
self.fileMenu.entryconfig(_('Close'), state='normal')
self.mainMenu.entryconfig(_('View'), state='normal')
self.mainMenu.entryconfig(_('Part'), state='normal')
self.mainMenu.entryconfig(_('Chapter'), state='normal')
self.mainMenu.entryconfig(_('Section'), state='normal')
self.mainMenu.entryconfig(_('Characters'), state='normal')
self.mainMenu.entryconfig(_('Locations'), state='normal')
self.mainMenu.entryconfig(_('Items'), state='normal')
self.mainMenu.entryconfig(_('Export'), state='normal')
self.mainMenu.entryconfig(_('Plot'), state='normal')
self.mainMenu.entryconfig(_('Project notes'), state='normal')
self.mainMenu.entryconfig(_('Export'), state='normal')
self.mainMenu.entryconfig(_('Import'), state='normal')
self.fileMenu.entryconfig(_('Reload'), state='normal')
self.fileMenu.entryconfig(_('Restore backup'), state='normal')
self.fileMenu.entryconfig(_('Refresh Tree'), state='normal')
Expand All @@ -295,6 +308,17 @@ def enable_menu(self):
self.fileMenu.entryconfig(_('Save'), state='normal')
self.fileMenu.entryconfig(_('Save as...'), state='normal')
self.fileMenu.entryconfig(_('Discard manuscript'), state='normal')
self.viewMenu.entryconfig(_('Chapter level'), state='normal')
self.viewMenu.entryconfig(_('Expand selected'), state='normal')
self.viewMenu.entryconfig(_('Collapse selected'), state='normal')
self.viewMenu.entryconfig(_('Expand all'), state='normal')
self.viewMenu.entryconfig(_('Collapse all'), state='normal')
self.viewMenu.entryconfig(_('Show Book'), state='normal')
self.viewMenu.entryconfig(_('Show Characters'), state='normal')
self.viewMenu.entryconfig(_('Show Locations'), state='normal')
self.viewMenu.entryconfig(_('Show Items'), state='normal')
self.viewMenu.entryconfig(_('Show Arcs'), state='normal')
self.viewMenu.entryconfig(_('Show Project notes'), state='normal')
for view in self.views:
try:
view.enable_menu()
Expand Down
2 changes: 1 addition & 1 deletion src/noveltreelib/view/tree_window/tree_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def update_branch(node, scnPos=0):

if self.skipUpdate:
self.skipUpdate = False
else:
elif self._mdl.prjFile is not None:
self._wordsTotal = self._mdl.get_counts()[0]
update_branch('')
self.tree.configure(selectmode='extended')
Expand Down
2 changes: 1 addition & 1 deletion tools/build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="noveltree" basedir=".">
<property name="version" value="1.2.1" />
<property name="version" value="1.2.2" />
<property name="test-app" value="noveltree" />

<property name="source-path" location="../src" />
Expand Down

0 comments on commit 2593d3d

Please sign in to comment.