Versión 1.0: Corregir fallo en compilación del Browser; mensaje de aceptación para ejecutar acción más elegante; añadir enlace simbólico para nuevo Browser. Modificado #243.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1738 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
79a002dfa0
commit
553385ea76
|
@ -1,6 +1,7 @@
|
||||||
#include <QtGui/QApplication>
|
#include <QtGui/QApplication>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
#include <Qt/qtextcodec.h>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
|
@ -164,8 +164,10 @@ void MainWindow::slotLinkHandle(const QUrl &url)
|
||||||
else if(urlString.startsWith(COMMAND_WITH_CONFIRMATION))
|
else if(urlString.startsWith(COMMAND_WITH_CONFIRMATION))
|
||||||
{
|
{
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText(tr("¡ATENCIÓN! La siguiente acción puede modificar datos o tardar varios minutos. El equipo no podrá ser utilizado durante su ejecución."));
|
msgBox.setIcon(QMessageBox::Question);
|
||||||
msgBox.setInformativeText(tr("¿Continuar?"));
|
msgBox.setWindowTitle(tr("AVISO"));
|
||||||
|
msgBox.setTextFormat(Qt::RichText);
|
||||||
|
msgBox.setText(tr("La siguiente acción puede modificar datos o tardar varios minutos. El equipo no podrá ser utilizado durante su ejecución."));
|
||||||
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
||||||
msgBox.setDefaultButton(QMessageBox::Ok);
|
msgBox.setDefaultButton(QMessageBox::Ok);
|
||||||
if (msgBox.exec() == QMessageBox::Ok)
|
if (msgBox.exec() == QMessageBox::Ok)
|
||||||
|
@ -238,7 +240,7 @@ void MainWindow::slotProcessOutput()
|
||||||
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
||||||
{
|
{
|
||||||
QString s(buf);
|
QString s(buf);
|
||||||
print(tr("Proc. Output: ")+s);
|
print(tr("Proc. stdout: ")+s);
|
||||||
captureOutputForStatusBar(s);
|
captureOutputForStatusBar(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -250,7 +252,7 @@ void MainWindow::slotProcessErrorOutput()
|
||||||
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
while((m_process->readLine(buf,BUFFERSIZE) > 0))
|
||||||
{
|
{
|
||||||
QString s(buf);
|
QString s(buf);
|
||||||
print(tr("Proc. Error: ")+s);
|
print(tr("Proc. stderr: ")+s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue