Added send sms button to detail window and better error handling. Converted gui's...
[jenirok] / src / gui / main.cpp
index 649f4a7..fdb1245 100644 (file)
@@ -1,50 +1,50 @@
-/*\r
- * This file is part of Jenirok.\r
- *\r
- * Jenirok is free software: you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation, either version 3 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * Jenirok is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License\r
- * along with Jenirok.  If not, see <http://www.gnu.org/licenses/>.\r
- *\r
- */\r
-\r
-#include <QtCore/QTranslator>\r
-#include <QtCore/QLocale>\r
-#include <QtGui/QApplication>\r
-#include <QtCore/QObject>\r
-#include "mainwindow.h"\r
-#include "searchdialog.h"\r
-#include "resultwindow.h"\r
-#include "detailwindow.h"\r
-#include "eniro.h"\r
-\r
-int main(int argc, char *argv[])\r
-{\r
-    QApplication app(argc, argv);\r
-\r
-    QTranslator translator;\r
-    translator.load(":/translations/" + QLocale::system().name());\r
-    app.installTranslator(&translator);\r
-\r
-    MainWindow window;\r
-    ResultWindow results(&window);\r
-    DetailWindow details(&results);\r
-\r
-    window.show();\r
-\r
-    QObject::connect(&window, SIGNAL(search(SearchDialog::SearchDetails&)),\r
-                     &results, SLOT(search(SearchDialog::SearchDetails&)));\r
-\r
-    QObject::connect(&results, SIGNAL(itemSelected(Eniro::Result const&)),\r
-                     &details, SLOT(loadData(Eniro::Result const&)));\r
-\r
-    return app.exec();\r
-}\r
+/*
+ * This file is part of Jenirok.
+ *
+ * Jenirok 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Jenirok 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 Jenirok.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <QtCore/QTranslator>
+#include <QtCore/QLocale>
+#include <QtGui/QApplication>
+#include <QtCore/QObject>
+#include "mainwindow.h"
+#include "searchdialog.h"
+#include "resultwindow.h"
+#include "detailwindow.h"
+#include "eniro.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication app(argc, argv);
+
+    QTranslator translator;
+    translator.load(":/translations/" + QLocale::system().name());
+    app.installTranslator(&translator);
+
+    MainWindow window;
+    ResultWindow results(&window);
+    DetailWindow details(&results);
+
+    window.show();
+
+    QObject::connect(&window, SIGNAL(search(SearchDialog::SearchDetails&)),
+                     &results, SLOT(search(SearchDialog::SearchDetails&)));
+
+    QObject::connect(&results, SIGNAL(itemSelected(Eniro::Result const&)),
+                     &details, SLOT(loadData(Eniro::Result const&)));
+
+    return app.exec();
+}