main.cpp 999 Bytes
#include "mainwindow.h"
#include "oven.h"
#include "ovencontroller.h"
#include "udphandler.h"
#include "ovenstatics.h"
#include "config.h"
#include "inputoverwatcher.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //a.setFont(QFont("Noto Sans CJK SC"));
    Oven *oven = Oven::getInstance();

    OvenController *interface = new OvenController(oven, oven);
    oven->setInterface(interface);

    UdpHandler *udp = UdpHandler::getInstance();
    interface->setUdpHandler(udp);

    oven->setDefault(Define::CombiMode);

    Config::getInstance(oven);

    OvenStatistics::getInstance(oven);

    // Removing etching effect
    QPalette pal = QApplication::palette();
    pal.setColor(QPalette::Disabled, QPalette::Text, QColor(80, 80, 80));
    pal.setColor(QPalette::Disabled, QPalette::Light, QColor(0, 0, 0, 0));
    QApplication::setPalette(pal);

    MainWindow w;
    w.showFullScreen();

    udp->turnOn(TG_SYSTEM);

    return a.exec();
}