MeshLib
 
Loading...
Searching...
No Matches
MR::RibbonMenuItem Class Referenceabstract

#include <MRRibbonMenuItem.h>

+ Inheritance diagram for MR::RibbonMenuItem:

Public Types

using DropItemsList = std::vector<std::shared_ptr<RibbonMenuItem>>
 

Public Member Functions

 MR_DELETE_MOVE (RibbonMenuItem)
 
MRVIEWER_API RibbonMenuItem (std::string name)
 
virtual ~RibbonMenuItem ()=default
 
virtual bool action ()=0
 
virtual bool isActive () const
 
virtual bool blocking () const
 
const std::string & name () const
 
virtual const std::string & uiName () const
 
void setRibbonItemType (RibbonItemType type)
 
virtual RibbonItemType type () const
 
MRVIEWER_API void setDropItemsFromItemList (const MenuItemsList &itemsList)
 
virtual const DropItemsListdropItems () const
 
virtual std::string getDynamicTooltip () const
 
- Public Member Functions inherited from MR::ISceneStateCheck
virtual ~ISceneStateCheck ()=default
 
virtual std::string isAvailable (const std::vector< std::shared_ptr< const Object > > &) const
 

Protected Attributes

RibbonItemType type_ { RibbonItemType::Button }
 
DropItemsList dropList_
 

Member Typedef Documentation

◆ DropItemsList

using MR::RibbonMenuItem::DropItemsList = std::vector<std::shared_ptr<RibbonMenuItem>>

Constructor & Destructor Documentation

◆ RibbonMenuItem()

MRVIEWER_API MR::RibbonMenuItem::RibbonMenuItem ( std::string name)

◆ ~RibbonMenuItem()

virtual MR::RibbonMenuItem::~RibbonMenuItem ( )
virtualdefault

Member Function Documentation

◆ action()

◆ blocking()

◆ dropItems()

virtual const DropItemsList & MR::RibbonMenuItem::dropItems ( ) const
inlinevirtual

Reimplemented in MR::OpenFilesMenuItem.

◆ getDynamicTooltip()

virtual std::string MR::RibbonMenuItem::getDynamicTooltip ( ) const
inlinevirtual

◆ isActive()

virtual bool MR::RibbonMenuItem::isActive ( ) const
inlinevirtual

Reimplemented in MR::StateBasePlugin.

◆ MR_DELETE_MOVE()

MR::RibbonMenuItem::MR_DELETE_MOVE ( RibbonMenuItem )

◆ name()

const std::string & MR::RibbonMenuItem::name ( ) const
inline

◆ setDropItemsFromItemList()

MRVIEWER_API void MR::RibbonMenuItem::setDropItemsFromItemList ( const MenuItemsList & itemsList)

◆ setRibbonItemType()

void MR::RibbonMenuItem::setRibbonItemType ( RibbonItemType type)
inline

◆ type()

virtual RibbonItemType MR::RibbonMenuItem::type ( ) const
inlinevirtual

◆ uiName()

virtual const std::string & MR::RibbonMenuItem::uiName ( ) const
inlinevirtual

Member Data Documentation

◆ dropList_

DropItemsList MR::RibbonMenuItem::dropList_
protected

◆ type_

RibbonItemType MR::RibbonMenuItem::type_ { RibbonItemType::Button }
protected

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