]> git.lyx.org Git - features.git/blob - src/frontends/qt4/GuiProgressView.h
re-add view for progress, cleanup follows
[features.git] / src / frontends / qt4 / GuiProgressView.h
1 // -*- C++ -*-
2 /**
3  * \file GuiProgressView.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 GUIPROGRESSVIEW_H
13 #define GUIPROGRESSVIEW_H
14
15
16 #include "DockView.h"
17
18 #include "GuiProgress.h"
19
20 #include <QTextEdit>
21
22 #include <string>
23
24
25 namespace lyx {
26 namespace frontend {
27
28
29 class GuiProgressView : public DockView
30 {
31         Q_OBJECT
32
33 public:
34         GuiProgressView(
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         /// Controller inherited method.
40         ///@{
41         bool initialiseParams(std::string const &) { return true; }
42         void clearParams() {}
43         void dispatchParams() {}
44         bool isBufferDependent() const { return false; }
45         bool canApply() const { return true; }
46         bool canApplyToReadOnly() const { return true; }
47         void updateView() {}
48         ///@}
49
50 private Q_SLOTS:
51         void appendText(QString const & text);
52         void clearText();
53
54 private:
55         QTextEdit text_edit;
56 };
57
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif
63