diff options
author | Colin Noga <Tempus@chronometry.ca> | 2011-12-08 20:36:30 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2011-12-08 20:36:30 -0600 |
commit | 8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b (patch) | |
tree | 9f124489608757c548dc43d9ed5733c0e1002ce2 /src | |
parent | 6921d01422727c19c0b1bef2ff1834a73b9092d6 (diff) | |
download | koopatlas-8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b.tar.gz koopatlas-8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b.zip |
added help/about docs
Diffstat (limited to 'src')
-rw-r--r-- | src/dialogs.py | 1 | ||||
-rw-r--r-- | src/ui.py | 18 |
2 files changed, 16 insertions, 3 deletions
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 + @@ -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 = "<big><b>Koopatlas</b></big><br><br> 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.<br><br> Koopatlas was programmed by Treeki and Tempus of the Newer Team.<br><br> 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')) |