3 * \file GuiProgressView.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
13 #ifndef GUIPROGRESSVIEW_H
14 #define GUIPROGRESSVIEW_H
16 #if QT_VERSION < 0x040400
17 #define settingsLayout gridLayout1
20 #include "ui_ProgressViewUi.h"
24 #include "GuiProgress.h"
40 class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi
50 class GuiProgressView : public DockView
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);
61 /// Controller inherited method.
63 bool initialiseParams(std::string const &) { return true; }
65 void dispatchParams() {}
66 bool isBufferDependent() const { return false; }
67 bool canApply() const { return true; }
68 bool canApplyToReadOnly() const { return true; }
70 bool wantInitialFocus() const { return false; }
71 void restoreSession();
72 void saveSession() const;
76 void appendText(QString const & text);
77 void appendLyXErrText(QString const & text);
81 void tristateChanged(int state);
84 ProgressViewWidget * widget_;
86 void showEvent(QShowEvent*);
87 void hideEvent(QHideEvent*);
89 QList<LevelButton*> level_buttons;
90 QList<LevelButton*> checked_buttons;
91 LevelButton* toggle_button;
95 } // namespace frontend