Added First version of MeeGo Harmattan port from pure QT to MTF.
[medard] / src / aboutdialog.cpp
index 042ae30..2231bd0 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#ifdef Q_WS_MAEMO_6
+#include <MLabel>
+#endif
+
 #include <QtGui>
 
 #include "aboutdialog.h"
 
+#ifdef Q_WS_MAEMO_6
+AboutDialog::AboutDialog(QGraphicsItem *parent) : MApplicationPage(parent)
+{
+    setAttribute(Qt::WA_LockPortraitOrientation, true);
+    setWindowTitle(tr("About"));
+    setPannable(false);
+
+    QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(Qt::Vertical);
+    centralWidget()->setLayout(layout);
+
+    MLabel *application = new MLabel();
+    application->setText("Medard 0.1");
+//    application->setAlignment(Qt::AlignCenter);
+    layout->addItem(application);
+
+    MLabel *applicationCopyright = new MLabel();
+    applicationCopyright->setText(tr("Copyright(c) 2011 Roman Moravcik"));
+//    applicationCopyright->setAlignment(Qt::AlignCenter);
+    layout->addItem(applicationCopyright);
+
+    MLabel *weatherDataCopyright = new MLabel();
+    weatherDataCopyright->setText(tr("\n"
+                                  "Weather data:\n"
+                                  "Project MEDARD, Institute of Computer Science,\n"
+                                  "Academy of Sciences of the Czech Republic, Prague\n"
+                                  "\n"
+                                  "Copyright(c) Institute of Computer Science AS CR 2003-2009.\n"
+                                  "MM5: PSU/NCAR, USA (c) CAMx: EVNIRON Corp., USA"));
+    layout->addItem(weatherDataCopyright);
+}
+#else
 AboutDialog::AboutDialog(QDialog *parent) : QDialog(parent)
 {
     setWindowTitle(tr("About"));
@@ -51,7 +86,8 @@ AboutDialog::AboutDialog(QDialog *parent) : QDialog(parent)
                                   "Academy of Sciences of the Czech Republic, Prague\n"
                                   "\n"
                                   "Copyright(c) Institute of Computer Science AS CR 2003-2009.\n"
-                                  "MM5: PSU/NCAR, USA © CAMx: EVNIRON Corp., USA"));
+                                  "MM5: PSU/NCAR, USA (c) CAMx: EVNIRON Corp., USA"));
     layout->addWidget(weatherDataCopyright);
 
 }
+#endif