| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 | /*= StarPU-Top for StarPU =Copyright (C) 2011 William BraikYann CourtoisJean-Marie CouteyenAnthony RoyThis library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA*/#include "debugconsole.h"#include "ui_debugconsole.h"DebugConsole::DebugConsole(QWidget *parent) :        QWidget(parent),        ui(new Ui::DebugConsole){    ui->setupUi(this);    ui->stepButton->setEnabled(false);    QObject::connect(ui->stepButton, SIGNAL(clicked()),                     this, SLOT(step()));}DebugConsole::~DebugConsole(){    delete ui;}void DebugConsole::appendDebugLogMessage(QString debugMessage){    ui->console->append("INFO : " + debugMessage);}void DebugConsole::appendDebugLockMessage(QString lockMessage){    ui->stepButton->setEnabled(true);    ui->console->append("LOCK : " + lockMessage);}void DebugConsole::clearConsole(){    ui->console->clear();}void DebugConsole::step(){    ui->stepButton->setEnabled(false);    emit stepped();}
 |