mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-16 21:10:26 +00:00
c293be56bd
In particular, the directory frontends/qt4 is renamed to frontends/qt. Many configurations file have to be updated. All mentions of qt4 in the source have been audited, and changed to qt if necessary. The only part that has not been updated is the CMake build system.
90 lines
1.7 KiB
C++
90 lines
1.7 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiProgressView.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Peter Kümmel
|
|
* \author Pavel Sanda
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUIPROGRESSVIEW_H
|
|
#define GUIPROGRESSVIEW_H
|
|
|
|
#include "ui_ProgressViewUi.h"
|
|
|
|
#include "DockView.h"
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
class QHideEvent;
|
|
class QShowEvent;
|
|
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
|
|
class ProgressViewWidget : public QWidget, public Ui::ProgressViewUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ProgressViewWidget();
|
|
private:
|
|
|
|
};
|
|
|
|
class GuiProgressView : public DockView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiProgressView(
|
|
GuiView & parent, ///< the main window where to dock.
|
|
Qt::DockWidgetArea area, ///< Position of the dock (and also drawer)
|
|
Qt::WindowFlags flags = 0);
|
|
|
|
~GuiProgressView();
|
|
/// Controller inherited method.
|
|
///@{
|
|
bool initialiseParams(std::string const &) { return true; }
|
|
void clearParams() {}
|
|
void dispatchParams() {}
|
|
bool isBufferDependent() const { return false; }
|
|
bool canApply() const { return true; }
|
|
bool canApplyToReadOnly() const { return true; }
|
|
void updateView() {}
|
|
bool wantInitialFocus() const { return false; }
|
|
void restoreSession();
|
|
void saveSession(QSettings & settings) const;
|
|
///@}
|
|
|
|
private Q_SLOTS:
|
|
void appendText(QString const & text);
|
|
void appendLyXErrText(QString const & text);
|
|
void clearText();
|
|
void debugMessageActivated(QTreeWidgetItem *, int);
|
|
void debugSelectionChanged();
|
|
|
|
private:
|
|
ProgressViewWidget * widget_;
|
|
/// did the last message contained eoln? (lyxerr X statusbar conflicts)
|
|
bool eol_last_;
|
|
|
|
void levelChanged();
|
|
void showEvent(QShowEvent*);
|
|
void hideEvent(QHideEvent*);
|
|
};
|
|
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif
|
|
|