2013-12-11 15:37:48 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 Falko Arps
|
|
|
|
|
** Copyright (C) 2016 Sven Klein
|
|
|
|
|
** Copyright (C) 2016 Giuliano Schneider
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-12-11 15:37:48 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-12-11 15:37:48 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2013-12-11 15:37:48 +01:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "ioutputpane.h"
|
|
|
|
|
|
2020-03-25 11:29:32 +01:00
|
|
|
namespace Core {
|
|
|
|
|
|
2013-12-11 15:37:48 +01:00
|
|
|
/*!
|
|
|
|
|
\class Core::IOutputPane
|
2020-03-18 13:32:02 +01:00
|
|
|
\brief The IOutputPane class is an interface for providing \uicontrol Output panes.
|
2013-12-11 15:37:48 +01:00
|
|
|
|
2020-03-18 13:32:02 +01:00
|
|
|
\ingroup mainclasses
|
|
|
|
|
\inmodule QtCreator
|
2013-12-11 15:37:48 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\enum IOutputPane::Flag
|
|
|
|
|
|
|
|
|
|
This enum type controls the behavior of the output pane when it is requested to show itself.
|
|
|
|
|
|
|
|
|
|
\value NoModeSwitch
|
|
|
|
|
Does not switch between the modes.
|
|
|
|
|
\value ModeSwitch
|
|
|
|
|
Does switch between the modes.
|
|
|
|
|
\value WithFocus
|
|
|
|
|
Sets focus if canFocus returns true.
|
|
|
|
|
\value EnsureSizeHint
|
|
|
|
|
Ensures the use of the minimum size.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn IOutputPane::IOutputPane(QObject *parent)
|
|
|
|
|
|
|
|
|
|
Constructs an output pane as the child of \a parent.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn QWidget *IOutputPane::outputWidget(QWidget *parent)
|
|
|
|
|
|
|
|
|
|
Returns the output widget (as the child of \a parent) for the output pane.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn QList<QWidget *> IOutputPane::toolBarWidgets() const
|
|
|
|
|
|
|
|
|
|
Returns the toolbar widgets for the output pane.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn QString IOutputPane::displayName() const
|
|
|
|
|
|
|
|
|
|
Returns the translated display name of the output pane.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn int IOutputPane::priorityInStatusBar() const
|
|
|
|
|
|
|
|
|
|
Determines the position of the output pane on the status bar.
|
|
|
|
|
\list
|
|
|
|
|
\li 100 to 0 from front to end
|
|
|
|
|
\li -1 do not show in status bar
|
|
|
|
|
\endlist
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::clearContents()
|
|
|
|
|
|
|
|
|
|
Is called on selecting the clear button.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::visibilityChanged(bool visible)
|
|
|
|
|
|
|
|
|
|
Gets called when the visibility is changed. \a visible is \c true when the output pane is now
|
|
|
|
|
visible or \c false otherwise.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::setFocus()
|
|
|
|
|
|
|
|
|
|
Gives focus to the output pane window.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn bool IOutputPane::hasFocus() const
|
|
|
|
|
|
|
|
|
|
Returns \c true when the output pane has focus.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::canFocus()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn bool IOutputPane::canFocus() const
|
|
|
|
|
|
|
|
|
|
Returns \c true when the output pane can be focused right now (for example, the search
|
|
|
|
|
result window does not want to be focused if there are no results).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn bool IOutputPane::canNavigate() const
|
|
|
|
|
|
|
|
|
|
Determines whether the output pane's navigation buttons can be enabled.
|
|
|
|
|
When this returns \c false, the buttons are disabled and cannot be enabled.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::canNext()
|
|
|
|
|
\sa IOutputPane::canPrevious()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn bool IOutputPane::canNext() const
|
|
|
|
|
|
2020-03-18 13:32:02 +01:00
|
|
|
Determines whether the \uicontrol Next button in the output pane is enabled.
|
2013-12-11 15:37:48 +01:00
|
|
|
Is overwritten when \c canNavigate() returns \c false.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::canNavigate()
|
|
|
|
|
\sa IOutputPane::canPrevious()
|
|
|
|
|
\sa IOutputPane::goToNext()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn bool IOutputPane::canPrevious() const
|
|
|
|
|
|
2020-03-18 13:32:02 +01:00
|
|
|
Determines whether the \uicontrol Previous button in the output pane is enabled.
|
2013-12-11 15:37:48 +01:00
|
|
|
Is overwritten when \c canNavigate() returns \c false.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::canNavigate()
|
|
|
|
|
\sa IOutputPane::canNext()
|
|
|
|
|
\sa IOutputPane::goToPrev()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::goToNext()
|
|
|
|
|
|
2020-03-18 13:32:02 +01:00
|
|
|
Is called on selecting the \uicontrol Next button.
|
2013-12-11 15:37:48 +01:00
|
|
|
|
|
|
|
|
\sa IOutputPane::canNext()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::goToPrev()
|
|
|
|
|
|
2020-03-18 13:32:02 +01:00
|
|
|
Is called on selecting the \uicontrol Previous button.
|
2013-12-11 15:37:48 +01:00
|
|
|
|
|
|
|
|
\sa IOutputPane::canPrevious()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::popup(int flags)
|
|
|
|
|
|
|
|
|
|
Emits the signal \c{showPage(int flags)} with the given parameter \a flags.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::showPage()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::hide()
|
|
|
|
|
|
|
|
|
|
Emits the signal \c hidePage().
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::hidePage()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::toggle(int flags)
|
|
|
|
|
|
|
|
|
|
Emits the signal \c{togglePage(int flags)} with the given parameter \a flags.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::togglePage()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::navigateStateChanged()
|
|
|
|
|
|
|
|
|
|
Emits the signal \c navigateStateUpdate().
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::navigateStateUpdate()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::flash()
|
|
|
|
|
|
|
|
|
|
Emits the signal \c flashButton().
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::flashButton()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::setIconBadgeNumber(int number)
|
|
|
|
|
|
|
|
|
|
Emits the signal \c{setBadgeNumber(int number)} with the given parameter \a number.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::setBadgeNumber()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::showPage(int flags)
|
|
|
|
|
|
|
|
|
|
Shows the output pane. The parameter \a flags controls the behavior.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::Flags
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::hidePage()
|
|
|
|
|
|
|
|
|
|
Hides the output pane.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::togglePage(int flags)
|
|
|
|
|
|
|
|
|
|
Toggles the hide and show states of the output pane. The parameter \a flags controls the
|
|
|
|
|
behavior.
|
|
|
|
|
|
|
|
|
|
\sa IOutputPane::hidePage()
|
|
|
|
|
\sa IOutputPane::showPage()
|
|
|
|
|
\sa IOutputPane::Flags
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::navigateStateUpdate()
|
|
|
|
|
|
|
|
|
|
Notifies the output pane manager that the state of canNext, canPrevious, or canNavigate has
|
|
|
|
|
changed and the buttons need to be updated.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::flashButton()
|
|
|
|
|
|
|
|
|
|
Makes the status bar button belonging to the output pane flash.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\fn void IOutputPane::setBadgeNumber(int number)
|
|
|
|
|
|
|
|
|
|
Displays \a number in the status bar button belonging to the output pane
|
|
|
|
|
(for example, number of issues on building).
|
|
|
|
|
*/
|
2020-03-25 11:29:32 +01:00
|
|
|
|
|
|
|
|
} // namespace Core
|