]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiProgressView.h
Remove unused UI file.
[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 #if QT_VERSION < 0x040400
17 #define settingsLayout gridLayout1
18 #endif
19
20 #include "ui_ProgressViewUi.h"
21
22 #include "DockView.h"
23
24 #include "GuiProgress.h"
25
26 #include <string>
27 #include <QList>
28
29
30 class QHideEvent;
31 class QShowEvent;
32
33
34 namespace lyx {
35 namespace frontend {
36
37 struct LevelButton;
38
39
40 class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi
41 {
42         Q_OBJECT
43
44 public:
45         ProgressViewWidget();
46 private:
47         
48 };
49
50 class GuiProgressView : public DockView
51 {
52         Q_OBJECT
53
54 public:
55         GuiProgressView(
56                 GuiView & parent, ///< the main window where to dock.
57                 Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
58                 Qt::WindowFlags flags = 0);
59
60         ~GuiProgressView();
61         /// Controller inherited method.
62         ///@{
63         bool initialiseParams(std::string const &) { return true; }
64         void clearParams() {}
65         void dispatchParams() {}
66         bool isBufferDependent() const { return false; }
67         bool canApply() const { return true; }
68         bool canApplyToReadOnly() const { return true; }
69         void updateView() {}
70         bool wantInitialFocus() const { return false; }
71         void restoreSession();
72         void saveSession() const;
73         ///@}
74
75 private Q_SLOTS:
76         void appendText(QString const & text);
77         void appendLyXErrText(QString const & text);
78         void clearText();
79
80         void levelChanged();
81   void tristateChanged(int state);
82
83 private:
84         ProgressViewWidget * widget_;
85
86         void showEvent(QShowEvent*);
87         void hideEvent(QHideEvent*);
88
89         QList<LevelButton*> level_buttons;
90         QList<LevelButton*> checked_buttons;
91         LevelButton* toggle_button;
92 };
93
94
95 } // namespace frontend
96 } // namespace lyx
97
98 #endif
99