From 8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 8 Dec 2011 20:36:30 -0600 Subject: added help/about docs --- src/dialogs.py | 1 + src/ui.py | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/dialogs.py b/src/dialogs.py index 54f5de8..66c84e9 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -167,3 +167,4 @@ def getTextDialog(): return None + diff --git a/src/ui.py b/src/ui.py index 74dc87e..9656137 100644 --- a/src/ui.py +++ b/src/ui.py @@ -499,9 +499,9 @@ class KPMainWindow(QtGui.QMainWindow): w.addAction(doodadAction) h = mb.addMenu('Help') - self.ha = h.addAction('About Koopatlas') - self.hb = h.addAction('Koopatlas Documentation') - self.hc = h.addAction('Keyboard Shortcuts') + self.ha = h.addAction('About Koopatlas', self.aboutDialog) + self.hb = h.addAction('Koopatlas Documentation', self.goToHelp) + # self.hc = h.addAction('Keyboard Shortcuts') def setupDocks(self): @@ -896,7 +896,19 @@ class KPMainWindow(QtGui.QMainWindow): # Help ######################## + @QtCore.pyqtSlot(bool) + def aboutDialog(self): + caption = "About Koopatlas" + + text = "Koopatlas

The Koopatlas Editor is an editor for custom two dimensional world maps, for use with the Newer SMBWii world map engine. It should be included with its companion program, Koopuzzle, which will create tilesets compatible with Koopatlas.

Koopatlas was programmed by Treeki and Tempus of the Newer Team.

Find the website at html://www.newerteam.com for more information." + + msg = QtGui.QMessageBox.about(KP.mainWindow, caption, text) + + + @QtCore.pyqtSlot(bool) + def goToHelp(self): + QtGui.QDesktopServices().openUrl(QtCore.QUrl('http://www.newerteam.com/koopatlas-help')) -- cgit v1.2.3