forked from qt-creator/qt-creator
ScriptConsole: Move from Debugger to QmlJSTools
The console is now a part of qmljstools plugin. The console appears as an output pane. A dummy QScriptEngine evaluates expressions when a declarative debug session is not in progress. During a debug session, the expressions are evaluated by the debug services. Task-Number: QTCREATORBUG-7402 Change-Id: Ic2eeac44fb335c706be03b89f8672b0356efe984 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
71
src/plugins/qmljstools/qmlconsolepane.h
Normal file
71
src/plugins/qmljstools/qmlconsolepane.h
Normal file
@@ -0,0 +1,71 @@
|
||||
#ifndef QMLCONSOLEPANE_H
|
||||
#define QMLCONSOLEPANE_H
|
||||
|
||||
#include <coreplugin/ioutputpane.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QToolButton;
|
||||
class QLabel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class SavedAction;
|
||||
}
|
||||
|
||||
namespace QmlJSTools {
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class QmlConsoleView;
|
||||
class QmlConsoleItemDelegate;
|
||||
class QmlConsoleProxyModel;
|
||||
class QmlConsoleItemModel;
|
||||
|
||||
class QmlConsolePane : public Core::IOutputPane
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QmlConsolePane(QObject *parent);
|
||||
~QmlConsolePane();
|
||||
|
||||
QWidget *outputWidget(QWidget *);
|
||||
QList<QWidget *> toolBarWidgets() const;
|
||||
QString displayName() const { return tr("Console"); }
|
||||
int priorityInStatusBar() const;
|
||||
void clearContents();
|
||||
void visibilityChanged(bool visible);
|
||||
bool canFocus() const;
|
||||
bool hasFocus() const;
|
||||
void setFocus();
|
||||
|
||||
bool canNext() const;
|
||||
bool canPrevious() const;
|
||||
void goToNext();
|
||||
void goToPrev();
|
||||
bool canNavigate() const;
|
||||
|
||||
void readSettings();
|
||||
void setContext(const QString &context);
|
||||
|
||||
public slots:
|
||||
void writeSettings() const;
|
||||
|
||||
private:
|
||||
QToolButton *m_showDebugButton;
|
||||
QToolButton *m_showWarningButton;
|
||||
QToolButton *m_showErrorButton;
|
||||
Utils::SavedAction *m_showDebugButtonAction;
|
||||
Utils::SavedAction *m_showWarningButtonAction;
|
||||
Utils::SavedAction *m_showErrorButtonAction;
|
||||
QWidget *m_spacer;
|
||||
QLabel *m_statusLabel;
|
||||
QmlConsoleView *m_consoleView;
|
||||
QmlConsoleItemDelegate *m_itemDelegate;
|
||||
QmlConsoleProxyModel *m_proxyModel;
|
||||
QWidget *m_consoleWidget;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSTools
|
||||
|
||||
#endif // QMLCONSOLEPANE_H
|
||||
Reference in New Issue
Block a user