2020-11-16 18:01:03 +01:00
|
|
|
/****************************************************************************
|
|
|
|
** Modern Linbo GUI
|
|
|
|
** Copyright (C) 2020 Dorian Zedler <dorian@itsblue.de>
|
|
|
|
**
|
|
|
|
** This program is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU Affero General Public License as published
|
|
|
|
** by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU Affero General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU Affero General Public License
|
|
|
|
** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
****************************************************************************/
|
|
|
|
|
2020-11-16 00:31:28 +01:00
|
|
|
#include "../headers/linbogui.h"
|
|
|
|
|
2020-11-16 18:01:03 +01:00
|
|
|
LinboGui::LinboGui()
|
2020-11-16 00:31:28 +01:00
|
|
|
{
|
|
|
|
// fill whole screen
|
|
|
|
Qt::WindowFlags flags;
|
|
|
|
flags = Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint;
|
|
|
|
setWindowFlags( flags );
|
|
|
|
setAttribute( Qt::WA_AlwaysShowToolTips );
|
|
|
|
this->setGeometry(QApplication::desktop()->screenGeometry());
|
|
|
|
this->setFixedHeight(QApplication::desktop()->screenGeometry().height());
|
|
|
|
this->setFixedWidth(QApplication::desktop()->screenGeometry().width());
|
|
|
|
|
2020-11-19 14:39:32 +01:00
|
|
|
qDebug() << this->geometry();
|
|
|
|
|
|
|
|
// white bakground
|
2020-11-16 18:01:03 +01:00
|
|
|
// linuxmuster background color: #394f5e
|
2020-11-16 00:31:28 +01:00
|
|
|
this->setStyleSheet( "QDialog { background: white }");
|
|
|
|
|
2020-11-16 18:01:03 +01:00
|
|
|
// create the backend
|
|
|
|
this->backend = new LinboBackend(this);
|
|
|
|
|
2020-11-19 14:39:32 +01:00
|
|
|
// create start page
|
|
|
|
this->startPage = new LinboStartPage(this->backend, this);
|
2020-11-16 00:31:28 +01:00
|
|
|
|
2020-11-16 18:01:03 +01:00
|
|
|
}
|
|
|
|
|
2020-11-16 00:31:28 +01:00
|
|
|
// prevent closing (eg. by pressing escape key)
|
2020-11-16 18:01:03 +01:00
|
|
|
void LinboGui::done(int r) {
|
2020-11-16 00:31:28 +01:00
|
|
|
Q_UNUSED(r)
|
|
|
|
}
|