Allow showing comments in document view pane, with a toggle swithc in document menu

This commit is contained in:
Veronica K. B. Olsen
2019-11-02 20:08:02 +01:00
parent a8c0608457
commit e94bdd9340
6 changed files with 46 additions and 14 deletions
+10 -2
View File
@@ -103,6 +103,7 @@ class Config:
## State
self.showRefPanel = True
self.viewComments = True
## Path
self.recentList = [""]*10
@@ -251,7 +252,8 @@ class Config:
## State
cnfSec = "State"
self.showRefPanel = self._parseLine(cnfParse, cnfSec, "showrefdetails", self.CNF_BOOL, self.showRefPanel)
self.showRefPanel = self._parseLine(cnfParse, cnfSec, "showrefpanel", self.CNF_BOOL, self.showRefPanel)
self.viewComments = self._parseLine(cnfParse, cnfSec, "viewcomments", self.CNF_BOOL, self.viewComments)
## Path
cnfSec = "Path"
@@ -324,7 +326,8 @@ class Config:
## State
cnfSec = "State"
cnfParse.add_section(cnfSec)
cnfParse.set(cnfSec,"showrefdetails",str(self.showRefPanel))
cnfParse.set(cnfSec,"showrefpanel",str(self.showRefPanel))
cnfParse.set(cnfSec,"viewcomments",str(self.viewComments))
## Path
cnfSec = "Path"
@@ -404,6 +407,11 @@ class Config:
self.confChanged = True
return
def setViewComments(self, checkState):
self.viewComments = checkState
self.confChanged = True
return
##
# Internal Functions
##