]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiProgress.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiProgress.h
index a47eb749867eb561c96b66b83e2d99002b96292a..1d80259f71eda3cede75cb4a9ef086827ab61c53 100644 (file)
@@ -5,6 +5,7 @@
  * 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.
  */
 
 #include "DockView.h"
 
-#include <QTextEdit>
+
 #include <QSplashScreen>
 #include <QTimer>
 
-#include <string>
+#include <sstream>
 
 
 namespace lyx {
@@ -34,15 +35,29 @@ class GuiProgress :
        Q_OBJECT
 
 public:
-       GuiProgress(GuiView * view);
+       GuiProgress();
+       ~GuiProgress();
+
+       void lyxerrConnect();
+       void lyxerrDisconnect();
+       void lyxerrFlush();
 
+       static QString currentTime();
 
 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 &);
+       void triggerFlush();
 
        // Alert interface
        void warning(QString const & title, QString const & message);
@@ -57,17 +72,19 @@ private Q_SLOTS:
        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 &);
 
+       void updateWithLyXErr();
+       void startFlushing();
+
 
 private:
-       GuiView* view_;
        void appendText(QString const &);
-
+       std::ostringstream lyxerr_stream_;
+       QTimer flushDelay_;
 };