Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::Separator Class Reference

#include <berrySeparator.h>

Inheritance diagram for berry::Separator:
Collaboration diagram for berry::Separator:

Public Member Functions

 Separator ()
 
 Separator (const QString &groupName)
 
void Fill (QMenu *menu, QAction *before) override
 
void Fill (QToolBar *toolbar, QAction *before) override
 
bool IsSeparator () const override
 

Detailed Description

A separator is a special kind of contribution item which acts as a visual separator and, optionally, acts as a group marker. Unlike group markers, separators do have a visual representation for menus and toolbars.

This class may be instantiated; it is not intended to be subclassed outside the framework.

This class is not intended to be subclassed by clients.

Definition at line 36 of file berrySeparator.h.

Constructor & Destructor Documentation

berry::Separator::Separator ( )

Creates a separator which does not start a new group.

Definition at line 25 of file berrySeparator.cpp.

berry::Separator::Separator ( const QString &  groupName)

Creates a new separator which also defines a new group having the given group name. The group name must not be null or the empty string. The group name is also used as the item id.

Parameters
groupNamethe group name of the separator

Definition at line 29 of file berrySeparator.cpp.

Member Function Documentation

void berry::Separator::Fill ( QMenu *  menu,
QAction *  before 
)
override

Definition at line 34 of file berrySeparator.cpp.

void berry::Separator::Fill ( QToolBar *  toolbar,
QAction *  before 
)
override

Definition at line 46 of file berrySeparator.cpp.

bool berry::Separator::IsSeparator ( ) const
override

The Separator implementation of this IContributionItem method returns true

Definition at line 58 of file berrySeparator.cpp.


The documentation for this class was generated from the following files: