#include <berrySubContributionItem.h>
A SubContributionItem
is a wrapper for an IContributionItem
. It is used within a SubContributionManager
to control the visibility of items.
This class is not intended to be subclassed.
Definition at line 31 of file berrySubContributionItem.h.
◆ SubContributionItem()
◆ berryObjectMacro()
◆ Fill() [1/7]
void berry::SubContributionItem::Fill |
( |
QMenu * |
parent, |
|
|
QAction * |
before |
|
) |
| |
|
overridevirtual |
◆ Fill() [2/7]
virtual void berry::IContributionItem::Fill |
Fills the given menu with controls representing this contribution item. Used by MenuManager
.
- Parameters
-
parent | the parent menu |
before | |
◆ Fill() [3/7]
virtual void berry::IContributionItem::Fill |
Fills the given menu bar with controls representing this contribution item. Used by MenuBarManager
.
- Parameters
-
parent | the parent menu |
before | |
◆ Fill() [4/7]
void berry::SubContributionItem::Fill |
( |
QStatusBar * |
parent | ) |
|
|
overridevirtual |
Fills the given status bar control with controls representing this contribution item. Used by StatusLineManager
.
- Parameters
-
Implements berry::IContributionItem.
◆ Fill() [5/7]
virtual void berry::IContributionItem::Fill |
Fills the given status bar control with controls representing this contribution item. Used by StatusLineManager
.
- Parameters
-
◆ Fill() [6/7]
void berry::SubContributionItem::Fill |
( |
QToolBar * |
parent, |
|
|
QAction * |
before |
|
) |
| |
|
overridevirtual |
Fills the given tool bar with controls representing this contribution item. Used by ToolBarManager
.
- Parameters
-
parent | the parent tool bar |
before | |
Implements berry::IContributionItem.
◆ Fill() [7/7]
virtual void berry::IContributionItem::Fill |
Fills the given tool bar with controls representing this contribution item. Used by ToolBarManager
.
- Parameters
-
parent | the parent tool bar |
before | |
◆ GetId()
QString berry::SubContributionItem::GetId |
( |
| ) |
const |
|
overridevirtual |
Returns the identifier of this contribution item. The id is used for retrieving an item from its manager.
- Returns
- the contribution item identifier, or
null
if none
Implements berry::IContributionItem.
◆ GetInnerItem()
Returns the inner contribution item.
- Returns
- the inner contribution item
◆ IsDirty()
bool berry::SubContributionItem::IsDirty |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is dirty. A dirty item will be recreated when the action bar is updated.
- Returns
true
if this item is dirty
Implements berry::IContributionItem.
◆ IsDynamic()
bool berry::SubContributionItem::IsDynamic |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is dynamic. A dynamic contribution item contributes items conditionally, dependent on some internal state.
- Returns
true
if this item is dynamic, and false
for normal items
Implements berry::IContributionItem.
◆ IsEnabled()
bool berry::SubContributionItem::IsEnabled |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is enabled.
- Returns
true
if this item is enabled
Implements berry::IContributionItem.
◆ IsGroupMarker()
bool berry::SubContributionItem::IsGroupMarker |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is a group marker. This information is used when adding items to a group.
- Returns
true
if this item is a group marker, and false
for normal items
- See also
- GroupMarker
-
IContributionManager::appendToGroup(String, IContributionItem)
-
IContributionManager::prependToGroup(String, IContributionItem)
Implements berry::IContributionItem.
◆ IsSeparator()
bool berry::SubContributionItem::IsSeparator |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is a separator. This information is used to enable hiding of unnecessary separators.
- Returns
true
if this item is a separator, and false
for normal items
- See also
- Separator
Implements berry::IContributionItem.
◆ IsVisible()
bool berry::SubContributionItem::IsVisible |
( |
| ) |
const |
|
overridevirtual |
Returns whether this contribution item is visibile within its manager.
- Returns
true
if this item is visible, and false
otherwise
Implements berry::IContributionItem.
◆ SaveWidgetState()
void berry::SubContributionItem::SaveWidgetState |
( |
| ) |
|
|
overridevirtual |
Saves any state information of the control(s) owned by this contribution item. The contribution manager calls this method before disposing of the controls.
Implements berry::IContributionItem.
◆ SetParent()
Sets the parent manager of this item
- Parameters
-
parent | the parent contribution manager |
Implements berry::IContributionItem.
◆ SetVisible()
void berry::SubContributionItem::SetVisible |
( |
bool |
visible | ) |
|
|
overridevirtual |
Sets whether this contribution item is visibile within its manager.
- Parameters
-
visible | true if this item should be visible, and false otherwise |
Implements berry::IContributionItem.
◆ Update() [1/2]
void berry::SubContributionItem::Update |
( |
| ) |
|
|
overridevirtual |
Updates any controls cached by this contribution item with any changes which have been made to this contribution item since the last update. Called by contribution manager update methods.
Implements berry::IContributionItem.
◆ Update() [2/2]
void berry::SubContributionItem::Update |
( |
const QString & |
id | ) |
|
|
overridevirtual |
Updates any controls cached by this contribution item with changes for the the given property.
- Parameters
-
id | the id of the changed property |
Implements berry::IContributionItem.
The documentation for this class was generated from the following file: