src/forecastwidget.cpp \
src/medarddownloader.cpp \
src/mainwindow.cpp \
- src/main.cpp
+ src/main.cpp \
+ src/aboutdialog.cpp
HEADERS += \
src/forecastwidget.h \
src/medarddownloader.h \
- src/mainwindow.h
+ src/mainwindow.h \
+ src/aboutdialog.h
FORMS +=
TRANSLATIONS += \
--- /dev/null
+/*
+ * Medard for Maemo.
+ * Copyright (C) 2011 Roman Moravcik
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <QtGui>
+
+#include "aboutdialog.h"
+
+AboutDialog::AboutDialog(QMainWindow *parent) : QMainWindow(parent)
+{
+}
--- /dev/null
+/*
+ * Medard for Maemo.
+ * Copyright (C) 2011 Roman Moravcik
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef ABOUTDIALOG_H
+#define ABOUTDIALOG_H
+
+#include <QMainWindow>
+
+class AboutDialog : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ AboutDialog(QMainWindow *parent = 0);
+};
+
+#endif // ABOUTDIALOG_H
#include <QtGui>
#include <QSettings>
+#include "aboutdialog.h"
#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
QAction *temperatureAction = new QAction(tr("Temperature"), this);
menu->addAction(temperatureAction);
connect(temperatureAction, SIGNAL(triggered()), this, SLOT(temperatureMenuClicked()));
+
+ QAction *aboutAction = new QAction(tr("About"), this);
+ menu->addAction(aboutAction);
+ connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutMenuClicked()));
}
void MainWindow::loadSettings()
forecastTypeChanged(tr("Temperature"), MedardDownloader::Temperature);
}
+void MainWindow::aboutMenuClicked()
+{
+ AboutDialog *dialog = new AboutDialog();
+ dialog->show();
+}
+
void MainWindow::downloadAgainClicked()
{
m_forecast->clearImage(false);
void windVelocityMenuClicked();
void cloudinessMenuClicked();
void temperatureMenuClicked();
+ void aboutMenuClicked();
void downloadAgainClicked();