openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #01475
[Merge] lp:~meths/openlp/testing into lp:openlp
Jon Tibble has proposed merging lp:~meths/openlp/testing into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Implement Help->Website and disable unimplemented items until they are implemented
--
https://code.launchpad.net/~meths/openlp/testing/+merge/24432
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2010-04-28 14:17:42 +0000
+++ openlp/core/ui/mainwindow.py 2010-04-29 14:58:19 +0000
@@ -242,12 +242,14 @@
ContentsIcon = build_icon(u':/system/system_help_contents.png')
self.HelpDocumentationItem.setIcon(ContentsIcon)
self.HelpDocumentationItem.setObjectName(u'HelpDocumentationItem')
+ self.HelpDocumentationItem.setEnabled(False)
self.HelpAboutItem = QtGui.QAction(MainWindow)
AboutIcon = build_icon(u':/system/system_about.png')
self.HelpAboutItem.setIcon(AboutIcon)
self.HelpAboutItem.setObjectName(u'HelpAboutItem')
self.HelpOnlineHelpItem = QtGui.QAction(MainWindow)
self.HelpOnlineHelpItem.setObjectName(u'HelpOnlineHelpItem')
+ self.HelpOnlineHelpItem.setEnabled(False)
self.HelpWebSiteItem = QtGui.QAction(MainWindow)
self.HelpWebSiteItem.setObjectName(u'HelpWebSiteItem')
self.LanguageTranslateItem = QtGui.QAction(MainWindow)
@@ -472,6 +474,8 @@
QtCore.QObject.connect(self.PreviewController.Panel,
QtCore.SIGNAL(u'visibilityChanged(bool)'),
self.action_Preview_Panel.setChecked)
+ QtCore.QObject.connect(self.HelpWebSiteItem,
+ QtCore.SIGNAL(u'triggered()'), self.onHelpWebSiteClicked)
QtCore.QObject.connect(self.HelpAboutItem,
QtCore.SIGNAL(u'triggered()'), self.onHelpAboutItemClicked)
QtCore.QObject.connect(self.PluginItem,
@@ -594,6 +598,13 @@
vT = VersionThread(self, self.applicationVersion)
vT.start()
+ def onHelpWebSiteClicked(self):
+ """
+ Load the OpenLP website
+ """
+ import webbrowser
+ webbrowser.open_new(u'http://openlp.org/')
+
def onHelpAboutItemClicked(self):
"""
Show the About form
Follow ups