summaryrefslogtreecommitdiffstats
path: root/ctl-lib
ModeNameSize
-rw-r--r--CMakeLists.txt1649logstatsplain
-rw-r--r--afb-definitions.h10253logstatsplain
-rw-r--r--ctl-action.c13581logstatsplain
-rw-r--r--ctl-config.c12563logstatsplain
-rw-r--r--ctl-config.h4648logstatsplain
-rw-r--r--ctl-control.c1157logstatsplain
-rw-r--r--ctl-event.c3322logstatsplain
-rw-r--r--ctl-lua-utils.c4988logstatsplain
-rw-r--r--ctl-lua.c44670logstatsplain
-rw-r--r--ctl-lua.h1762logstatsplain
-rw-r--r--ctl-onload.c1946logstatsplain
-rw-r--r--ctl-plugin.c16927logstatsplain
-rw-r--r--ctl-plugin.h3944logstatsplain
-rw-r--r--ctl-timer.c3049logstatsplain
-rw-r--r--ctl-timer.h1462logstatsplain
/* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (C) 2016 The Qt Company Ltd.
 * Copyright (C) 2019 Konsulko Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlContext>
#include <QtGui/QGuiApplication>
#include <signalcomposer.h>
#include "translator.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    app.setDesktopFileName("dashboard");

    QQmlApplicationEngine engine;
    QQmlContext *context = engine.rootContext();
    QVariant v = context->contextProperty(QStringLiteral("bindingAddress"));
    if(v.canConvert(QMetaType::QUrl)) {
        QUrl bindingAddress = v.toUrl();
        context->setContextProperty("SignalComposer", new SignalComposer(bindingAddress, context));
    } else {
        qCritical("Cannot find bindingAddress property in context, SignalComposer unavailable");
    }
    qmlRegisterType<Translator>("Translator", 1, 0, "Translator");
    engine.load(QUrl(QStringLiteral("qrc:/Dashboard.qml")));
    return app.exec();
}