Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirosha201 committed Jul 17, 2017
1 parent e962c43 commit eef1f87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions AviaNZ.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ def createMenu(self):
specMenu.addSeparator()
specMenu.addAction("Change spectrogram parameters",self.showSpectrogramDialog)

self.showAllTick = specMenu.addAction("Show all pages", self.showAllCheck)
self.showAllTick.setCheckable(True)
self.showAllTick.setChecked(self.config['showAllPages'])

specMenu.addSeparator()
specMenu.addAction("Save as image",self.saveImage,"Ctrl+I")

Expand Down Expand Up @@ -1110,6 +1114,10 @@ def useFilesCheck(self):
self.d_files.hide()
self.config['showListofFiles'] = self.useFilesTick.isChecked()

def showAllCheck(self):
""" Listener to process if the user swaps the check menu item to see the file list. """
self.config['showAllPages'] = self.showAllTick.isChecked()

def showOverviewSegsCheck(self):
""" Listener to process if the user swaps the check menu item to see the overview segment boxes. """
if self.showOverviewSegsTick.isChecked():
Expand Down Expand Up @@ -2187,6 +2195,7 @@ def humanClassifyDialog1(self):
# self.statusLeft.setText("Ready")

def humanClassifyClose1(self):
# Listener for the human verification dialog.
# Listener for the human verification dialog.
self.humanClassifyDialog1.done(1)
# Want to show a page at the end, so make it the first one
Expand Down

0 comments on commit eef1f87

Please sign in to comment.