mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added a simple startup splash screen.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3684 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6a55d75a86
commit
3a50bcb8f7
@ -152,13 +152,6 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags)
|
||||
m_bStatusLoadDone = false;
|
||||
isIdle = false;
|
||||
|
||||
if (Settings->value(QString::fromUtf8("FirstRun"), true).toBool())
|
||||
{
|
||||
Settings->setValue(QString::fromUtf8("FirstRun"), false);
|
||||
QuickStartWizard *qstartWizard = new QuickStartWizard(this);
|
||||
qstartWizard->exec();
|
||||
}
|
||||
|
||||
setWindowTitle(tr("RetroShare %1 a secure decentralised communication platform").arg(retroshareVersion()));
|
||||
|
||||
// Setting icons
|
||||
|
@ -1,5 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>images/splash.png</file>
|
||||
<file>images/attach.png</file>
|
||||
<file>images/audio-x-monkey.png</file>
|
||||
<file>images/video-x-generic.png</file>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 303 KiB |
Binary file not shown.
@ -856,28 +856,28 @@ p, li { white-space: pre-wrap; }
|
||||
<context>
|
||||
<name>ChanMsgItem</name>
|
||||
<message>
|
||||
<location filename="../gui/feeds/ChanMsgItem.ui" line="+235"/>
|
||||
<location filename="../gui/feeds/ChanMsgItem.ui" line="+357"/>
|
||||
<source>Remove Item</source>
|
||||
<translation>Eintrag entfernen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+26"/>
|
||||
<location filename="../gui/feeds/ChanMsgItem.cpp" line="+290"/>
|
||||
<location filename="../gui/feeds/ChanMsgItem.cpp" line="+292"/>
|
||||
<source>Expand</source>
|
||||
<translation>Erweitern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+24"/>
|
||||
<location line="-107"/>
|
||||
<source>Download</source>
|
||||
<translation>Herunterladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+11"/>
|
||||
<location line="+16"/>
|
||||
<source>Play</source>
|
||||
<translation>Abspielen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+33"/>
|
||||
<location line="-69"/>
|
||||
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
@ -886,12 +886,12 @@ p, li { white-space: pre-wrap; }
|
||||
<translation type="unfinished">Gelesen Status umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+36"/>
|
||||
<location line="+41"/>
|
||||
<source>New</source>
|
||||
<translation>Neu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-156"/>
|
||||
<location line="+67"/>
|
||||
<source>Unsubscribe From Channel</source>
|
||||
<translation>Kanal abbestellen</translation>
|
||||
</message>
|
||||
@ -1009,12 +1009,32 @@ p, li { white-space: pre-wrap; }
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:10pt; font-weight:600;">Kanäle</span></p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+16"/>
|
||||
<location line="+29"/>
|
||||
<source>Add</source>
|
||||
<translation>Hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+355"/>
|
||||
<location line="+133"/>
|
||||
<source>Reset</source>
|
||||
<translation type="unfinished">Zurücksetzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+43"/>
|
||||
<source>Enter a Keyword here</source>
|
||||
<translation type="unfinished">Geben sie einen Suchbegriff ein</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+15"/>
|
||||
<source>Start Search</source>
|
||||
<translation type="unfinished">Starte Suche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+23"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">Suchen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+269"/>
|
||||
<source>Set all to read</source>
|
||||
<translation>Alle als gelesen markieren</translation>
|
||||
</message>
|
||||
@ -1044,7 +1064,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Kanal abbestellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+78"/>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+84"/>
|
||||
<source>Name</source>
|
||||
<translation>Name</translation>
|
||||
</message>
|
||||
@ -1074,8 +1094,8 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Andere Kanäle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ChannelFeed.ui" line="-162"/>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+37"/>
|
||||
<location filename="../gui/ChannelFeed.ui" line="-303"/>
|
||||
<location filename="../gui/ChannelFeed.cpp" line="+38"/>
|
||||
<source>Post to Channel</source>
|
||||
<translation>Kanalbeitrag erstellen</translation>
|
||||
</message>
|
||||
@ -1100,7 +1120,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Verteile Kanal</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+236"/>
|
||||
<location line="+281"/>
|
||||
<source>Popularity: %1
|
||||
Fetches: %2
|
||||
Available: %3</source>
|
||||
@ -1109,12 +1129,12 @@ Abgeholt: %2
|
||||
Verfügbar: %3</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+125"/>
|
||||
<location line="+126"/>
|
||||
<source>No Channel Selected</source>
|
||||
<translation>Keinen Kanal gewählt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-367"/>
|
||||
<location line="-413"/>
|
||||
<source>Restore Publish Rights for Channel</source>
|
||||
<translation>Stelle Veröffentlichungsrechte für Kanal wieder her</translation>
|
||||
</message>
|
||||
@ -3448,7 +3468,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Beliebtheit:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+336"/>
|
||||
<location line="+327"/>
|
||||
<location line="+107"/>
|
||||
<source>Anonymous</source>
|
||||
<translation>Anonym</translation>
|
||||
@ -3487,7 +3507,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Du kannst einem anonymen Autor nicht antworten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-1498"/>
|
||||
<location line="-1489"/>
|
||||
<source>Your Forums</source>
|
||||
<translation>Deine Foren</translation>
|
||||
</message>
|
||||
@ -3630,7 +3650,7 @@ p, li { white-space: pre-wrap; }
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ForumsDialog.cpp" line="+127"/>
|
||||
<location line="+1261"/>
|
||||
<location line="+1252"/>
|
||||
<source>Start New Thread</source>
|
||||
<translation>Erstelle neues Thema</translation>
|
||||
</message>
|
||||
@ -3658,7 +3678,7 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Inhalt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/ForumsDialog.cpp" line="-1248"/>
|
||||
<location filename="../gui/ForumsDialog.cpp" line="-1239"/>
|
||||
<location line="+3"/>
|
||||
<source>Mark as read</source>
|
||||
<translation>Als gelesen markieren</translation>
|
||||
@ -4931,7 +4951,7 @@ p, li { white-space: pre-wrap; }
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../gui/MainWindow.cpp" line="+200"/>
|
||||
<location filename="../gui/MainWindow.cpp" line="+193"/>
|
||||
<source>Network</source>
|
||||
<translation>Netzwerk</translation>
|
||||
</message>
|
||||
@ -8423,7 +8443,7 @@ p, li { white-space: pre-wrap; }
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="+143"/>
|
||||
<location filename="../main.cpp" line="+151"/>
|
||||
<location line="+6"/>
|
||||
<source>Multiple instances</source>
|
||||
<translation>Mehrere Instanzen</translation>
|
||||
@ -9962,6 +9982,24 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Neue Nachricht</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SplashScreen</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="-29"/>
|
||||
<source>Load profile</source>
|
||||
<translation>Lade Profil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+35"/>
|
||||
<source>Load configuration</source>
|
||||
<translation>Lade Konfiguration</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+4"/>
|
||||
<source>Create interface</source>
|
||||
<translation>Erstelle Oberfläche</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>StartDialog</name>
|
||||
<message>
|
||||
@ -10390,33 +10428,28 @@ p, li { white-space: pre-wrap; }
|
||||
<context>
|
||||
<name>SubFileItem</name>
|
||||
<message>
|
||||
<location filename="../gui/feeds/SubFileItem.ui" line="+193"/>
|
||||
<location filename="../gui/feeds/SubFileItem.ui" line="+142"/>
|
||||
<source>%p Kb</source>
|
||||
<translation>%p Kb</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+65"/>
|
||||
<source>Expand</source>
|
||||
<translation>Erweitern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+26"/>
|
||||
<location line="+117"/>
|
||||
<source>Save File</source>
|
||||
<translation>Datei speichern</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-72"/>
|
||||
<location line="-98"/>
|
||||
<source>Cancel Download</source>
|
||||
<translation>Download abbrechen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="-107"/>
|
||||
<location line="+26"/>
|
||||
<source>Download File</source>
|
||||
<translation>Datei herunterladen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+26"/>
|
||||
<location filename="../gui/feeds/SubFileItem.cpp" line="+580"/>
|
||||
<location filename="../gui/feeds/SubFileItem.cpp" line="+573"/>
|
||||
<location line="+6"/>
|
||||
<source>Play File</source>
|
||||
<translation>Datei abspielen</translation>
|
||||
@ -10437,38 +10470,38 @@ p, li { white-space: pre-wrap; }
|
||||
<translation>Abspielen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../gui/feeds/SubFileItem.cpp" line="-429"/>
|
||||
<location line="+8"/>
|
||||
<location filename="../gui/feeds/SubFileItem.cpp" line="-422"/>
|
||||
<location line="+7"/>
|
||||
<source>ERROR</source>
|
||||
<translation>FEHLER</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+16"/>
|
||||
<location line="+15"/>
|
||||
<source>EXTRA</source>
|
||||
<translation>EXTRA</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+11"/>
|
||||
<location line="+10"/>
|
||||
<source>REMOTE</source>
|
||||
<translation>ENTFERNT</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+9"/>
|
||||
<location line="+8"/>
|
||||
<source>DOWNLOAD</source>
|
||||
<translation>DOWNLOAD</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+11"/>
|
||||
<location line="+10"/>
|
||||
<source>LOCAL</source>
|
||||
<translation>LOKAL</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+9"/>
|
||||
<location line="+8"/>
|
||||
<source>UPLOAD</source>
|
||||
<translation>UPLOAD</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+306"/>
|
||||
<location line="+305"/>
|
||||
<source>File %1 does not exist at location.</source>
|
||||
<translation>Datei %1 existiert nicht.</translation>
|
||||
</message>
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QMessageBox>
|
||||
#include <QSplashScreen>
|
||||
#include <rshare.h>
|
||||
#ifndef MINIMAL_RSGUI
|
||||
#include "gui/MainWindow.h"
|
||||
@ -40,6 +41,7 @@
|
||||
#include "gui/connect/ConfCertDialog.h"
|
||||
#include "idle/idle.h"
|
||||
#include "gui/common/Emoticons.h"
|
||||
#include "gui/QuickStartWizard.h"
|
||||
|
||||
/*** WINDOWS DON'T LIKE THIS - REDEFINES VER numbers.
|
||||
#include <gui/qskinobject/qskinobject.h>
|
||||
@ -83,6 +85,8 @@ int main(int argc, char *argv[])
|
||||
Rshare rshare(args, argc, argv,
|
||||
QString::fromStdString(RsInit::RsConfigDirectory()));
|
||||
|
||||
QSplashScreen splashScreen(QPixmap(":/images/splash.png")/* , Qt::WindowStaysOnTopHint*/);
|
||||
|
||||
/* Login Dialog */
|
||||
if (!okStart)
|
||||
{
|
||||
@ -121,9 +125,13 @@ int main(int argc, char *argv[])
|
||||
GenCertDialog gd;
|
||||
gd.exec ();
|
||||
}
|
||||
|
||||
splashScreen.show();
|
||||
}
|
||||
else
|
||||
{
|
||||
splashScreen.show();
|
||||
splashScreen.showMessage(rshare.translate("SplashScreen", "Load profile"), Qt::AlignHCenter | Qt::AlignBottom);
|
||||
|
||||
std::string preferredId, gpgId, gpgName, gpgEmail, sslName;
|
||||
RsInit::getPreferedAccountId(preferredId);
|
||||
@ -158,8 +166,12 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
splashScreen.showMessage(rshare.translate("SplashScreen", "Load configuration"), Qt::AlignHCenter | Qt::AlignBottom);
|
||||
|
||||
rsicontrol->StartupRetroShare();
|
||||
|
||||
splashScreen.showMessage(rshare.translate("SplashScreen", "Create interface"), Qt::AlignHCenter | Qt::AlignBottom);
|
||||
|
||||
/* recreate global settings object, now with correct path */
|
||||
RshareSettings::Create ();
|
||||
RsharePeerSettings::Create();
|
||||
@ -171,7 +183,16 @@ int main(int argc, char *argv[])
|
||||
#else
|
||||
Emoticons::load();
|
||||
|
||||
if (Settings->value(QString::fromUtf8("FirstRun"), true).toBool()) {
|
||||
splashScreen.hide();
|
||||
|
||||
Settings->setValue(QString::fromUtf8("FirstRun"), false);
|
||||
QuickStartWizard qstartWizard;
|
||||
qstartWizard.exec();
|
||||
}
|
||||
|
||||
MainWindow *w = MainWindow::Create ();
|
||||
splashScreen.finish(w);
|
||||
|
||||
// I'm using a signal to transfer the hashing info to the mainwindow, because Qt schedules signals properly to
|
||||
// avoid clashes between infos from threads.
|
||||
@ -214,6 +235,8 @@ int main(int argc, char *argv[])
|
||||
if(!Settings->value(QString::fromUtf8("StartMinimized"), false).toBool())
|
||||
{
|
||||
w->show();
|
||||
} else {
|
||||
splashScreen.close();
|
||||
}
|
||||
|
||||
/* Startup a Timer to keep the gui's updated */
|
||||
|
Loading…
Reference in New Issue
Block a user