This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
modern-linbo-gui/sources/legacy/linboCounterImpl.cc
Dorian Zedler d2a165a1ec
- Sorted some stuff
- Began to implement new GUI
2020-11-16 00:31:28 +01:00

79 lines
1.5 KiB
C++

#include "linboCounterImpl.hh"
#include <qapplication.h>
#include <unistd.h>
#include <QtGui>
linboCounterImpl::linboCounterImpl( QWidget* parent ) : linboDialog()
{
Ui_linboCounter::setupUi((QDialog*)this);
Qt::WindowFlags flags;
flags = Qt::Dialog | Qt::WindowStaysOnTopHint | Qt::WindowTitleHint;
setWindowFlags( flags );
if( parent )
myParent = parent;
QRect qRect(QApplication::desktop()->screenGeometry());
// open in the upper left of our screen
int xpos= 10;
int ypos= 10;
this->move(xpos,ypos);
this->setFixedSize( this->width(), this->height() );
connect( logoutButton, SIGNAL(released()), this, SLOT(hide()) );
}
linboCounterImpl::~linboCounterImpl()
{
// nothing to do
}
void linboCounterImpl::precmd() {
// nothing to do
}
void linboCounterImpl::postcmd() {
// nothing to do
}
void linboCounterImpl::readFromStdout()
{
// nothing to do
}
void linboCounterImpl::setMainApp( QWidget* newMainApp ) {
if ( newMainApp ) {
myMainApp = newMainApp;
}
}
void linboCounterImpl::readFromStderr()
{
// nothing to do
}
QStringList linboCounterImpl::getCommand() {
return myCommand;
}
void linboCounterImpl::setCommand(const QStringList& arglist)
{
// nothing to do
myCommand = arglist;
}
void linboCounterImpl::processFinished( int retval,
QProcess::ExitStatus status) {
// nothing to do
}
void linboCounterImpl::closeEvent(QCloseEvent *event) {
event->accept();
logoutButton->click();
}