[Foo2zjs-commits] r85 - trunk/hannah

white at alioth.debian.org white at alioth.debian.org
Fri Sep 28 13:17:36 UTC 2007


Author: white
Date: 2007-09-28 13:17:36 +0000 (Fri, 28 Sep 2007)
New Revision: 85

Modified:
   trunk/hannah/README
   trunk/hannah/gui.cpp
   trunk/hannah/gui.h
Log:
Add new method for the about action and came up with a naming scheme for Hannah

Modified: trunk/hannah/README
===================================================================
--- trunk/hannah/README	2007-09-28 12:52:12 UTC (rev 84)
+++ trunk/hannah/README	2007-09-28 13:17:36 UTC (rev 85)
@@ -2,10 +2,14 @@
 To compile, call qmake-qt4 and make.
 Then you can use it by ./hannah
 
+
 Naming:	hannah
-	h         (hAlf)
-	a         (aUtmated)
-	n      (priNter)
-	n      (dowNloader)
+	h     (grapHical)
+	a   (interfAce)
+	[for]
+	n      (dowNloading)
+	[your]
+	n      (priNter's)
 	a    (firmwAre)
-	h     (grapHical-user-interace)
+	[at]
+	h         (Home)

Modified: trunk/hannah/gui.cpp
===================================================================
--- trunk/hannah/gui.cpp	2007-09-28 12:52:12 UTC (rev 84)
+++ trunk/hannah/gui.cpp	2007-09-28 13:17:36 UTC (rev 85)
@@ -138,10 +138,23 @@
         buttonGroup->addButton(xerox6115Button, 16);
         buttonGroup->addButton(xerox6110Button, 17);
 
+	connect(about, SIGNAL(triggered()), this, SLOT(showInfo()));
 	connect(allButton, SIGNAL(stateChanged(int)), this, SLOT(setCheckBoxes(int)));
 	connect(exitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
 };
 
+void MainWindow::showInfo()
+{
+	QMessageBox::information(this, tr("Hannah-Foo2zjs Firmware Downloader"),
+			tr("This program is developed by the Debian Foo2ZJS maintainers.\n"
+			   "It is offered as a convenient method to download the needed\n"
+			   "firmware for one of the printers supported by Foo2ZJS. Please feel\n"
+			   "free to report any bugs to the Debian BTS (http://bugs.debian.org).\n"
+			   "The program's name is Hannah:\n" 
+			   "(grapHical interfAce for dowNloading your priNter's firmwAre at Home).\n"),
+			   QMessageBox::Ok);
+};
+
 void MainWindow::setCheckBoxes(int state)
 {
 	switch (state) {

Modified: trunk/hannah/gui.h
===================================================================
--- trunk/hannah/gui.h	2007-09-28 12:52:12 UTC (rev 84)
+++ trunk/hannah/gui.h	2007-09-28 13:17:36 UTC (rev 85)
@@ -74,6 +74,7 @@
 private slots:
 	void callGetweb();
 	void setCheckBoxes(int);
+	void showInfo();
 };
 
 #endif // GUI_H




More information about the Foo2zjs-commits mailing list