]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiProgressView.h
9a22b71307e59be2ffca9315b08b31c1ddebfdc4
[lyx.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 #include "ui_ProgressViewUi.h"
16
17 #include "DockView.h"
18
19 #include "GuiProgress.h"
20
21 #include <string>
22
23 namespace lyx {
24 namespace frontend {
25
26 class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi
27 {
28         Q_OBJECT
29
30 public:
31         ProgressViewWidget();
32 private:
33         
34 };
35
36 class GuiProgressView : public DockView
37 {
38         Q_OBJECT
39
40 public:
41         GuiProgressView(
42                 GuiView & parent, ///< the main window where to dock.
43                 Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
44                 Qt::WindowFlags flags = 0);
45
46         ~GuiProgressView();
47         /// Controller inherited method.
48         ///@{
49         bool initialiseParams(std::string const &) { return true; }
50         void clearParams() {}
51         void dispatchParams() {}
52         bool isBufferDependent() const { return false; }
53         bool canApply() const { return true; }
54         bool canApplyToReadOnly() const { return true; }
55         void updateView() {}
56         bool wantInitialFocus() const { return false; }
57         void restoreSession();
58         void saveSession() const;
59         ///@}
60
61 private Q_SLOTS:
62         void appendText(QString const & text);
63         void clearText();
64
65 private:
66         ProgressViewWidget * widget_;
67 };
68
69
70 } // namespace frontend
71 } // namespace lyx
72
73 #endif
74