Skip to content

Commit

Permalink
Prepare 1.6.1 based on novxlib v1.0.0
Browse files Browse the repository at this point in the history
- Add the short names to the section arcs view.
  • Loading branch information
peter88213 committed Jan 24, 2024
1 parent dde2d3f commit 2f06bed
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 11 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.6.0
download_link = https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.6.0.zip
version = 1.6.1
download_link = https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.6.1.zip
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

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

### v1.6.1

- Add the short names to the section arcs view.

Based on novxlib v1.0.0

### v1.6.0

- Add "File > Copy style sheet" menu entry.
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,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.6.0)](https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.6.0.zip)
[Download the latest release (version 1.6.1)](https://github.com/peter88213/noveltree/raw/main/dist/noveltree_v1.6.1.zip)

- Extract the "noveltree_v1.6.0" folder from the downloaded zipfile "noveltree_v1.6.0.zip".
- Extract the "noveltree_v1.6.1" folder from the downloaded zipfile "noveltree_v1.6.1.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.6.0\n"
"POT-Creation-Date: 2024-01-24 17:39:51\n"
"PO-Revision-Date: 2024-01-24 17:39:51\n"
"Project-Id-Version: 1.6.1\n"
"POT-Creation-Date: 2024-01-24 22:17:35\n"
"PO-Revision-Date: 2024-01-24 22:17:35\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.6.0\n"
"POT-Creation-Date: 2024-01-24 17:39:51\n"
"Project-Id-Version: 1.6.1\n"
"POT-Creation-Date: 2024-01-24 22:17:35\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: LANGUAGE\n"
Expand Down
18 changes: 17 additions & 1 deletion src/noveltreelib/view/properties_window/full_section_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def set_data(self, elementId):
self._viewpoint.set(value=vp)

#--- 'Arcs' listbox.
self._arcTitles = self._get_element_titles(self._element.scArcs, self._mdl.novel.arcs)
self._arcTitles = self._get_arc_titles(self._element.scArcs, self._mdl.novel.arcs)
self._arcCollection.cList.set(self._arcTitles)
listboxSize = len(self._arcTitles)
if listboxSize > self._HEIGHT_LIMIT:
Expand Down Expand Up @@ -379,6 +379,22 @@ def _add_arc(self, event=None):
arcSections.append(self._elementId)
self._mdl.novel.arcs[acId].sections = arcSections

def _get_arc_titles(self, elemIds, elements):
"""Return a list of arc titles, preceded by the short names.
Positional arguments:
elemIds -- list of element IDs.
elements -- list of element objects.
"""
elemTitles = []
if elemIds:
for elemId in elemIds:
try:
elemTitles.append(f'({elements[elemId].shortName}) {elements[elemId].title}')
except:
pass
return elemTitles

def _get_relation_id_list(self, newTitleStr, oldTitleStr, elements):
"""Return a list of valid IDs from a string containing semicolon-separated titles."""
if newTitleStr or oldTitleStr:
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.6.0" />
<property name="version" value="1.6.1" />
<property name="test-app" value="noveltree" />

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

0 comments on commit 2f06bed

Please sign in to comment.