Core::IOutputPane Class
class Core::IOutputPaneA classe IOutputPane é uma interface destinada a fornecer painéis d Output. Mais...
| Header: | #include <coreplugin/ioutputpane.h> |
| Inherits: | QObject |
| Inherited By: |
Tipos públicos
Funções públicas
| IOutputPane(QObject *parent = nullptr) | |
| virtual bool | canFocus() const = 0 |
| virtual bool | canNavigate() const = 0 |
| virtual bool | canNext() const = 0 |
| virtual bool | canPrevious() const = 0 |
| virtual void | clearContents() = 0 |
| QString | displayName() const |
| virtual void | goToNext() = 0 |
| virtual void | goToPrev() = 0 |
| virtual bool | hasFocus() const = 0 |
| Utils::Id | id() const |
| virtual QWidget * | outputWidget(QWidget *parent) = 0 |
| int | priorityInStatusBar() const |
| virtual void | setFocus() = 0 |
| virtual QList<QWidget *> | toolBarWidgets() const |
| virtual void | visibilityChanged(bool visible) |
Slots públicos
| void | flash() |
| void | hide() |
| void | navigateStateChanged() |
| void | popup(int flags) |
| void | setIconBadgeNumber(int number) |
| void | toggle(int flags) |
Sinais
| void | flashButton() |
| void | hidePage() |
| void | navigateStateUpdate() |
| void | setBadgeNumber(int number) |
| void | showPage(int flags) |
| void | togglePage(int flags) |
Funções protegidas
| void | setDisplayName(const QString &name) |
| void | setId(const Utils::Id &id) |
| void | setPriorityInStatusBar(int priority) |
Documentação dos tipos de membros
enum IOutputPane::Flag
flags IOutputPane::Flags
Este tipo de enumeração controla o comportamento do painel de saída quando é solicitado que ele seja exibido.
| Constante | Valor | Descrição |
|---|---|---|
Core::IOutputPane::NoModeSwitch | 0 | Não alterna entre os modos. |
Core::IOutputPane::ModeSwitch | 1 | Alterna entre os modos. |
Core::IOutputPane::WithFocus | 2 | Define o foco se ` canFocus ` retornar `true`. |
Core::IOutputPane::EnsureSizeHint | 4 | Garante o uso do tamanho mínimo. |
O tipo Flags é um typedef para QFlags<Flag>. Ele armazena uma combinação OR de valores de Flag.
Documentação das funções de membro
IOutputPane::IOutputPane(QObject *parent = nullptr)
Cria um painel de saída como elemento filho de ` parent`.
[pure virtual] bool IOutputPane::canFocus() const
Retorna ` true ` quando o painel de saída pode receber o foco no momento (por exemplo, a janela de resultados da pesquisa não deve receber o foco se não houver resultados).
[pure virtual] bool IOutputPane::canNavigate() const
Determina se os botões de navegação do painel de saída podem ser ativados. Quando esta função retorna ` false`, os botões estão desativados e não podem ser ativados.
Veja também IOutputPane::canNext() e IOutputPane::canPrevious().
[pure virtual] bool IOutputPane::canNext() const
Determina se o botão “ Next ” no painel de saída está ativado. É sobrescrito quando o método ` canNavigate() ` retorna ` false`.
Veja também IOutputPane::canNavigate(), IOutputPane::canPrevious() e IOutputPane::goToNext().
[pure virtual] bool IOutputPane::canPrevious() const
Determina se o botão “ Previous ” no painel de saída está ativado. É sobrescrito quando a função ` canNavigate() ` retorna ` false`.
Veja também IOutputPane::canNavigate(), IOutputPane::canNext() e IOutputPane::goToPrev().
[pure virtual] void IOutputPane::clearContents()
É chamada ao clicar no botão “Limpar”.
QString IOutputPane::displayName() const
Retorna o nome de exibição traduzido do painel de saída.
Veja também setDisplayName().
[slot] void IOutputPane::flash()
Emite o sinal flashButton().
Veja também IOutputPane::flashButton().
[signal] void IOutputPane::flashButton()
Faz com que o botão da barra de status do painel de saída pisque.
[pure virtual] void IOutputPane::goToNext()
É chamado ao clicar no botão “ Next ”.
Veja também IOutputPane::canNext().
[pure virtual] void IOutputPane::goToPrev()
É chamado ao clicar no botão “ Previous ”.
Veja também IOutputPane::canPrevious().
[pure virtual] bool IOutputPane::hasFocus() const
Retorna ` true ` quando o painel de saída está em foco.
Veja também IOutputPane::canFocus().
[slot] void IOutputPane::hide()
Emite o sinal hidePage().
Veja também IOutputPane::hidePage().
[signal] void IOutputPane::hidePage()
Oculta o painel de saída.
Utils::Id IOutputPane::id() const
Retorna o ID do painel de saída.
Veja também setId().
[slot] void IOutputPane::navigateStateChanged()
Emite o sinal navigateStateUpdate().
Veja também IOutputPane::navigateStateUpdate().
[signal] void IOutputPane::navigateStateUpdate()
Notifica o gerenciador do painel de saída de que o estado de canNext, canPrevious ou canNavigate foi alterado e que os botões precisam ser atualizados.
[pure virtual] QWidget *IOutputPane::outputWidget(QWidget *parent)
Retorna o widget de saída (como filho de ` parent`) para o painel de saída.
[slot] void IOutputPane::popup(int flags)
Emite o sinal showPage(int flags) com o parâmetro fornecido flags.
Veja também IOutputPane::showPage().
int IOutputPane::priorityInStatusBar() const
Determina a posição do painel de saída na barra de status e a visibilidade padrão.
Veja também setPriorityInStatusBar().
[signal] void IOutputPane::setBadgeNumber(int number)
Exibe “ number ” no botão da barra de status pertencente ao painel de saída (por exemplo, número de problemas na construção).
[protected] void IOutputPane::setDisplayName(const QString &name)
Define o nome de exibição traduzido do painel de saída como name.
Veja também displayName().
[pure virtual] void IOutputPane::setFocus()
Coloca o foco na janela do painel de saída.
Veja também hasFocus().
[slot] void IOutputPane::setIconBadgeNumber(int number)
Emite o sinal ` setBadgeNumber(int number) ` com o parâmetro fornecido ` number`.
Veja também IOutputPane::setBadgeNumber().
[protected] void IOutputPane::setId(const Utils::Id &id)
Define o ID do painel de saída como id. Isso é usado para manter o estado de visibilidade.
Veja também id().
[protected] void IOutputPane::setPriorityInStatusBar(int priority)
Define a posição do painel de saída na barra de status e a visibilidade padrão como “ priority ”.
- números maiores ficam mais à frente
- >= 0 são exibidos na barra de status por padrão
- < 0 não são exibidos na barra de status por padrão
Veja também priorityInStatusBar().
[signal] void IOutputPane::showPage(int flags)
Exibe o painel de saída. O parâmetro flags controla o comportamento.
Veja também IOutputPane::Flags.
[slot] void IOutputPane::toggle(int flags)
Emite o sinal togglePage(int flags) com o parâmetro especificado flags.
Veja também IOutputPane::togglePage().
[signal] void IOutputPane::togglePage(int flags)
Alterna entre os estados de ocultar e exibir do painel de saída. O parâmetro flags controla o comportamento.
Veja também IOutputPane::hidePage(), IOutputPane::showPage() e IOutputPane::Flags.
[virtual] QList<QWidget *> IOutputPane::toolBarWidgets() const
Retorna os widgets da barra de ferramentas do painel de saída.
[virtual] void IOutputPane::visibilityChanged(bool visible)
É chamado quando a visibilidade é alterada. ` visible ` é ` true ` quando o painel de saída está visível ou ` false ` nos demais casos.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.