diff --git a/docs/help/desktop.md b/docs/help/desktop.md index ded7664..85324fc 100644 --- a/docs/help/desktop.md +++ b/docs/help/desktop.md @@ -58,7 +58,7 @@ Select item and hit the **Del** key. - The _Trash_ chapter is created automatically, if needed. - When deleting the _Trash_ chapter, all sections are deleted. -- The type of chapters and sections, as well as the editing status of the sections are color coded and can be changed via context menu. +- The type of chapters and sections, as well as the completion status of the sections are color coded and can be changed via context menu. - Within chapters, sections of the same type and with the same viewpoint can be joined. - "Notes" and "To do" type chapters can be exported to a separate ODT document. diff --git a/src/noveltreelib/controller/nv_controller.py b/src/noveltreelib/controller/nv_controller.py index d9d729f..597dfb7 100644 --- a/src/noveltreelib/controller/nv_controller.py +++ b/src/noveltreelib/controller/nv_controller.py @@ -891,11 +891,13 @@ def set_level(self, newLevel, elemIds=None): self._mdl.set_level(newLevel, elemIds) def set_section_edit_status(self, newStatus, elemIds=None): - """Set section editing status (Outline/Draft..). + """Set section completion status (Outline/Draft..). Positional arguments: newStatus: int -- New section status to be set. elemIds: list of IDs to process. + + TODO: Rename this method to set_completion_status() """ if not self.check_lock(): if elemIds is None: diff --git a/src/noveltreelib/model/nv_model.py b/src/noveltreelib/model/nv_model.py index 8165bf2..bf00eab 100644 --- a/src/noveltreelib/model/nv_model.py +++ b/src/noveltreelib/model/nv_model.py @@ -900,11 +900,13 @@ def set_character_status(self, isMajor, elemIds): self.set_character_status(isMajor, self.tree.get_children(crId)) def set_section_edit_status(self, newStatus, elemIds): - """Recursively set section editing status (Outline/Draft..). + """Recursively set section completion status (Outline/Draft..). Positional arguments: newStatus: int -- New section status to be set. elemIds: list of IDs to process. + + TODO: Rename this method to set_completion_status() """ for elemId in elemIds: if elemId.startswith(SECTION_PREFIX):