Exemplo n.º 1
0
CarCompositor::CarCompositor(int argc, char* argv[])
        : ILXCompositor(argc, argv)
{
    appMan()->parseFolder(ILIXI_DATADIR"car/apps");
    setSwitcher(new HorizontalSwitcher(this));

    Size size = PlatformManager::instance().getLayerSize();
    setAppGeometry(Rectangle(0, 0, size.width(), size.height() - 50));
    setBarGeometry(Rectangle(0, size.height() - 55, size.width(), 55));
    setOSKGeometry(Rectangle(0, size.height(), size.width(), 400));
    setSwitcherGeometry(Rectangle(0, size.height() - 50, size.width(), 196));
}
Exemplo n.º 2
0
PhoneCompositor::PhoneCompositor(int argc, char* argv[])
        : ILXCompositor(argc, argv)
{
    appMan()->parseFolder(ILIXI_DATADIR"phone/apps");
    setSwitcher(new CarouselSwitcher(this));

    Size size = PlatformManager::instance().getLayerSize();
    setAppGeometry(Rectangle(150, 0, size.width() - 150, size.height()));
    setBarGeometry(Rectangle(0, 0, 150, size.height()));
    setOSKGeometry(Rectangle(150, size.height(), size.width() - 150, 250));
    setSwitcherGeometry(Rectangle(150, 0, size.width() - 150, size.height()));
}
Exemplo n.º 3
0
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Dialog *dialog = new Dialog(a.applicationDirPath(), &a);
    QObject::connect(dialog, SIGNAL(quit()), &a, SLOT(quit()));
    QTimer::singleShot(0, dialog, SLOT(setSwitcher()));
    QTimer *timer = new QTimer(&a);
    QObject::connect(timer, SIGNAL(timeout()), dialog, SLOT(startDialog()));
    timer->start(2000);

    return a.exec();
}