forked from qt-creator/qt-creator
IOutputPane: constify some member functions
Change-Id: I023b7f5976b30fc950d2dd5a76f749ef4720ac2f Reviewed-on: http://codereview.qt-project.org/5618 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -48,12 +48,12 @@ namespace Core {
|
||||
class CORE_EXPORT IOutputPane : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
IOutputPane(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~IOutputPane() {}
|
||||
|
||||
virtual QWidget *outputWidget(QWidget *parent) = 0;
|
||||
virtual QList<QWidget*> toolBarWidgets() const = 0;
|
||||
virtual QList<QWidget *> toolBarWidgets() const = 0;
|
||||
virtual QString displayName() const = 0;
|
||||
|
||||
// -1 don't show in statusBar
|
||||
@@ -66,45 +66,24 @@ public:
|
||||
// This function is called to give the outputwindow focus
|
||||
virtual void setFocus() = 0;
|
||||
// Whether the outputpane has focus
|
||||
virtual bool hasFocus() = 0;
|
||||
virtual bool hasFocus() const = 0;
|
||||
// Whether the outputpane can be focused at the moment.
|
||||
// (E.g. the search result window does not want to be focused if the are no results.)
|
||||
virtual bool canFocus() = 0;
|
||||
virtual bool canFocus() const = 0;
|
||||
|
||||
virtual bool canNavigate() = 0;
|
||||
virtual bool canNext() = 0;
|
||||
virtual bool canPrevious() = 0;
|
||||
virtual bool canNavigate() const = 0;
|
||||
virtual bool canNext() const = 0;
|
||||
virtual bool canPrevious() const = 0;
|
||||
virtual void goToNext() = 0;
|
||||
virtual void goToPrev() = 0;
|
||||
|
||||
public slots:
|
||||
void popup()
|
||||
{
|
||||
popup(true);
|
||||
}
|
||||
void popup(bool withFocus)
|
||||
{
|
||||
emit showPage(withFocus);
|
||||
}
|
||||
|
||||
void hide()
|
||||
{
|
||||
emit hidePage();
|
||||
}
|
||||
|
||||
void toggle()
|
||||
{
|
||||
toggle(true);
|
||||
}
|
||||
|
||||
void toggle(bool withFocusIfShown)
|
||||
{
|
||||
emit togglePage(withFocusIfShown);
|
||||
}
|
||||
|
||||
void navigateStateChanged()
|
||||
{
|
||||
emit navigateStateUpdate();
|
||||
}
|
||||
void popup() { popup(true); }
|
||||
void popup(bool withFocus) { emit showPage(withFocus); }
|
||||
void hide() { emit hidePage(); }
|
||||
void toggle() { toggle(true); }
|
||||
void toggle(bool withFocusIfShown) { emit togglePage(withFocusIfShown); }
|
||||
void navigateStateChanged() { emit navigateStateUpdate(); }
|
||||
|
||||
signals:
|
||||
void showPage(bool withFocus);
|
||||
|
||||
Reference in New Issue
Block a user