Skip to content

Commit

Permalink
Add a window for status history display.
Browse files Browse the repository at this point in the history
Launch from Help menu for now
  • Loading branch information
zas committed Jul 24, 2013
1 parent d381e81 commit 9f2abe1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions picard/ui/logview.py
Expand Up @@ -88,3 +88,11 @@ def __init__(self, parent=None):
title = _("Log")
logger = log.main_logger
LogViewCommon.__init__(self, title, logger, parent=parent)


class HistoryView(LogViewCommon):

def __init__(self, parent=None):
title = _("Status History")
logger = log.history_logger
LogViewCommon.__init__(self, title, logger, parent=parent)
9 changes: 9 additions & 0 deletions picard/ui/mainwindow.py
Expand Up @@ -252,6 +252,7 @@ def set_statusbar_message(self, message, *args, **kwargs):
message = _(message) % args
else:
message = _(message)
log.history_info(message)
thread.to_main(self.statusBar().showMessage, message,
kwargs.get("timeout", 0))

Expand Down Expand Up @@ -411,6 +412,9 @@ def create_actions(self):
self.view_log_action = QtGui.QAction(_(u"View &Log..."), self)
self.view_log_action.triggered.connect(self.show_log)

self.view_history_action = QtGui.QAction(_(u"View Status &History..."), self)
self.view_history_action.triggered.connect(self.show_history)

xmlws_manager = self.tagger.xmlws.manager
xmlws_manager.authenticationRequired.connect(self.show_password_dialog)
xmlws_manager.proxyAuthenticationRequired.connect(self.show_proxy_dialog)
Expand Down Expand Up @@ -484,6 +488,7 @@ def create_menus(self):
menu.addAction(self.support_forum_action)
menu.addAction(self.report_bug_action)
menu.addAction(self.view_log_action)
menu.addAction(self.view_history_action)
menu.addSeparator()
menu.addAction(self.donate_action)
menu.addAction(self.about_action)
Expand Down Expand Up @@ -657,6 +662,10 @@ def show_log(self):
from picard.ui.logview import LogView
LogView(self).show()

def show_history(self):
from picard.ui.logview import HistoryView
HistoryView(self).show()

def confirm_va_removal(self):
return QtGui.QMessageBox.question(self,
_("Various Artists file naming scheme removal"),
Expand Down

0 comments on commit 9f2abe1

Please sign in to comment.