2017-01-16 03:15:07 +01:00
|
|
|
#include "channels.h"
|
2016-12-30 19:20:04 +01:00
|
|
|
#include "colorscheme.h"
|
2017-01-06 23:28:48 +01:00
|
|
|
#include "emojis.h"
|
2017-01-26 17:26:20 +01:00
|
|
|
#include "emotes.h"
|
2017-01-13 18:59:11 +01:00
|
|
|
#include "ircmanager.h"
|
2017-03-11 11:32:19 +01:00
|
|
|
#include "logging/loggingmanager.h"
|
2017-01-13 18:59:11 +01:00
|
|
|
#include "resources.h"
|
2017-01-23 16:38:06 +01:00
|
|
|
#include "settings.h"
|
2017-01-18 21:30:23 +01:00
|
|
|
#include "widgets/mainwindow.h"
|
2017-01-15 16:38:30 +01:00
|
|
|
#include "windows.h"
|
2017-01-11 01:08:20 +01:00
|
|
|
|
|
|
|
#include <QApplication>
|
2017-01-07 20:43:55 +01:00
|
|
|
#include <QClipboard>
|
2017-02-02 01:23:26 +01:00
|
|
|
#include <boost/signals2.hpp>
|
2016-12-29 17:31:07 +01:00
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
using namespace chatterino;
|
|
|
|
using namespace chatterino::widgets;
|
|
|
|
|
2017-01-13 18:59:11 +01:00
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
2016-12-29 17:31:07 +01:00
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
2016-12-30 19:20:04 +01:00
|
|
|
|
2017-03-11 11:32:19 +01:00
|
|
|
chatterino::logging::init();
|
|
|
|
chatterino::initChannels();
|
2017-01-23 16:38:06 +01:00
|
|
|
Settings::getInstance().load();
|
2017-01-13 18:59:11 +01:00
|
|
|
Resources::load();
|
|
|
|
Emojis::loadEmojis();
|
2017-01-26 17:26:20 +01:00
|
|
|
Emotes::loadGlobalEmotes();
|
2017-01-06 23:28:48 +01:00
|
|
|
|
2017-02-02 01:23:26 +01:00
|
|
|
ColorScheme::getInstance().init();
|
2016-12-30 19:20:04 +01:00
|
|
|
|
2017-01-28 22:35:23 +01:00
|
|
|
Windows::load();
|
|
|
|
|
2017-01-18 04:33:30 +01:00
|
|
|
MainWindow &w = Windows::getMainWindow();
|
2016-12-29 17:31:07 +01:00
|
|
|
w.show();
|
|
|
|
|
2017-01-03 21:19:33 +01:00
|
|
|
IrcManager::connect();
|
|
|
|
|
2017-01-23 09:49:30 +01:00
|
|
|
int ret = a.exec();
|
|
|
|
|
2017-01-23 16:38:06 +01:00
|
|
|
Settings::getInstance().save();
|
2017-01-23 09:49:30 +01:00
|
|
|
|
2017-01-28 22:35:23 +01:00
|
|
|
Windows::save();
|
|
|
|
|
2017-01-23 09:49:30 +01:00
|
|
|
return ret;
|
2016-12-29 17:31:07 +01:00
|
|
|
}
|