summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2011-12-08 20:36:30 -0600
committerColin Noga <Tempus@chronometry.ca>2011-12-08 20:36:30 -0600
commit8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b (patch)
tree9f124489608757c548dc43d9ed5733c0e1002ce2
parent6921d01422727c19c0b1bef2ff1834a73b9092d6 (diff)
downloadkoopatlas-8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b.tar.gz
koopatlas-8dd9e24d1dffac3404a7c900268cbe6d2ce1e63b.zip
added help/about docs
-rw-r--r--src/dialogs.py1
-rw-r--r--src/ui.py18
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
+
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 = "<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'))