Diff of /main.cpp [000000] .. [d3b1aa] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/main.cpp
@@ -0,0 +1,58 @@
+#include <QtGui/QApplication>
+#include <QSettings>
+
+
+// for translator
+#include <QTranslator>
+#include <QLocale>
+#include <QLibraryInfo>
+#include <QTextCodec>
+#include <QPixmap>
+#include <QSplashScreen>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication app(argc, argv);
+
+
+// splashscreen :
+
+   QPixmap pixmap(":/splash/Plume_pen_w.png");
+    QSplashScreen splash(pixmap);
+    splash.show();
+    app.processEvents();
+
+
+    // UTF-8 codec
+
+    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
+        QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
+        QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
+
+
+
+
+
+    //Names for the QSettings
+
+    QCoreApplication::setOrganizationName( "PlumeSoft" );
+    QCoreApplication::setOrganizationDomain( "PlumeSoft.com" );
+    QCoreApplication::setApplicationName( "Plume-Creator" );
+
+
+    // Translator (temporary)
+
+    QString translatorFileName = QLatin1String("qt_");
+    translatorFileName += QLocale::system().name();
+    QTranslator *translator = new QTranslator(&app);
+    if (translator->load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
+        app.installTranslator(translator);
+
+
+    MainWindow w;
+    w.show();
+    splash.finish(&w);
+//    delete splash;
+    return app.exec();
+}