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