]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiProgressView.h
* fix spelling in comments to please John.
[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  * \author Pavel Sanda
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIPROGRESSVIEW_H
14 #define GUIPROGRESSVIEW_H
15
16 #include "ui_ProgressViewUi.h"
17
18 #include "DockView.h"
19
20 #include "GuiProgress.h"
21
22 #include <string>
23 #include <QList>
24
25
26 class QHideEvent;
27 class QShowEvent;
28
29
30 namespace lyx {
31 namespace frontend {
32
33
34 class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi
35 {
36         Q_OBJECT
37
38 public:
39         ProgressViewWidget();
40 private:
41         
42 };
43
44 class GuiProgressView : public DockView
45 {
46         Q_OBJECT
47
48 public:
49         GuiProgressView(
50                 GuiView & parent, ///< the main window where to dock.
51                 Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
52                 Qt::WindowFlags flags = 0);
53
54         ~GuiProgressView();
55         /// Controller inherited method.
56         ///@{
57         bool initialiseParams(std::string const &) { return true; }
58         void clearParams() {}
59         void dispatchParams() {}
60         bool isBufferDependent() const { return false; }
61         bool canApply() const { return true; }
62         bool canApplyToReadOnly() const { return true; }
63         void updateView() {}
64         bool wantInitialFocus() const { return false; }
65         void restoreSession();
66         void saveSession() const;
67         ///@}
68
69 private Q_SLOTS:
70         void appendText(QString const & text);
71         void appendLyXErrText(QString const & text);
72         void clearText();
73         void debugMessageActivated(QTreeWidgetItem *, int);
74         void debugSelectionChanged();
75
76 private:
77         ProgressViewWidget * widget_;
78
79         void levelChanged();
80         void showEvent(QShowEvent*);
81         void hideEvent(QHideEvent*);
82 };
83
84
85 } // namespace frontend
86 } // namespace lyx
87
88 #endif
89