mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
d58b4ead47
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33627 a592a061-630c-0410-9148-cb99ea01b6c8
90 lines
1.9 KiB
C++
90 lines
1.9 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiProgress.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Peter Kümmel
|
|
* \author Pavel Sanda
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUIPROGRESS_H
|
|
#define GUIPROGRESS_H
|
|
|
|
#include "support/ProgressInterface.h"
|
|
|
|
#include "DockView.h"
|
|
|
|
#include <QTextEdit>
|
|
#include <QSplashScreen>
|
|
#include <QTimer>
|
|
|
|
#include <sstream>
|
|
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
|
|
class GuiProgress :
|
|
public QObject,
|
|
public lyx::support::ProgressInterface
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiProgress();
|
|
~GuiProgress();
|
|
|
|
void lyxerrConnect();
|
|
void lyxerrDisconnect();
|
|
void lyxerrFlush();
|
|
|
|
Q_SIGNALS:
|
|
|
|
// ProgressInterface
|
|
void processStarted(QString const &);
|
|
void processFinished(QString const &);
|
|
void appendMessage(QString const &);
|
|
void appendError(QString const &);
|
|
void clearMessages();
|
|
void appendLyXErrMessage(QString const & text);
|
|
|
|
|
|
void clearMessageText();
|
|
void updateStatusBarMessage(QString const &);
|
|
|
|
// Alert interface
|
|
void warning(QString const & title, QString const & message);
|
|
void toggleWarning(QString const & title, QString const & msg, QString const & formatted);
|
|
void error(QString const & title, QString const & message);
|
|
void information(QString const & title, QString const & message);
|
|
|
|
private Q_SLOTS:
|
|
void doProcessStarted(QString const &);
|
|
void doProcessFinished(QString const &);
|
|
void doAppendMessage(QString const &);
|
|
void doAppendError(QString const &);
|
|
void doClearMessages();
|
|
|
|
void doWarning(QString const &, QString const &);
|
|
void doToggleWarning(QString const & title, QString const & msg, QString const & formatted);
|
|
void doError(QString const &, QString const &);
|
|
void doInformation(QString const &, QString const &);
|
|
|
|
|
|
private:
|
|
void appendText(QString const &);
|
|
std::ostringstream lyxerr_stream_;
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif
|
|
|