Files
raDIYo/main.cpp
2025-08-05 22:36:00 +02:00

63 lines
1.6 KiB
C++

/***************************************************************************
source::worx raDIYo
Copyright © 2020-2022 c.holzheuer
chris@sourceworx.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
***************************************************************************/
#include <QApplication>
#include <QCheckBox>
#include <QHBoxLayout>
#include <QDebug>
#include <QDesktopWidget>
#include <QGuiApplication>
#include <QScreen>
#include <SWPiGPIO.h>
#include <raDIYo.h>
#include <swtoggleswitch.h>
/**
BUGS:
- play pause nicht Rotary synchron
- Icon-hint auch für linken rotary? '<-->' wäre konsequent
- dazu setup opfern
- ein-hand bedienung: Volume per Left-Rotary ?
*/
int main(int argc, char *argv[] )
{
QCoreApplication::setOrganizationName ( raDIYo::OrgName );
QCoreApplication::setOrganizationDomain( raDIYo::DomainName );
QCoreApplication::setApplicationName ( raDIYo::AppName );
QApplication application( argc, argv );
// get the dimension available on this screen
QSize availableSize = QGuiApplication::primaryScreen()->availableGeometry().size();
int width = availableSize.width();
int height = availableSize.height();
int xpos = ( width - RaDIYo::SWScreenLargeX ) / 2;
int ypos = ( height - RaDIYo::SWScreenLargeY ) / 2;
RaDIYo raDIYo;
raDIYo.move( xpos, ypos + 40 );
raDIYo.show();
return application.exec();
}