]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiProgress.h
6a41646d5fb4279380f894376da87095d923a9f0
[lyx.git] / src / frontends / qt4 / GuiProgress.h
1 // -*- C++ -*-
2 /**
3  * \file GuiProgress.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Peter Kümmel
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIPROGRESS_H
13 #define GUIPROGRESS_H
14
15 #include "support/ProgressInterface.h"
16
17 #include "DockView.h"
18
19 #include <QTextEdit>
20
21 #include <string>
22
23
24 namespace lyx {
25 namespace frontend {
26
27
28 class GuiProgress : 
29         public DockView, 
30         public lyx::support::ProgressInterface
31 {
32
33 public:
34         GuiProgress(
35                 GuiView & parent, ///< the main window where to dock.
36                 Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
37                 Qt::WindowFlags flags = 0);
38
39         void appendMessage(QString const &);
40         void clearMessages();
41
42         /// Controller inherited method.
43         ///@{
44         bool initialiseParams(std::string const & source) { return true; }
45         void clearParams() {}
46         void dispatchParams() {}
47         bool isBufferDependent() const { return false; }
48         bool canApply() const { return true; }
49         bool canApplyToReadOnly() const { return true; }
50         void updateView() {}
51         ///@}
52
53 private:
54         QTextEdit text_edit;
55 };
56
57
58 } // namespace frontend
59 } // namespace lyx
60
61 #endif
62