MeshLib Documentation
Loading...
Searching...
No Matches
MR::OpenDirectoryMenuItem Class Reference

#include <MRIOFilesMenuItems.h>

+ Inheritance diagram for MR::OpenDirectoryMenuItem:

Public Member Functions

 OpenDirectoryMenuItem ()
 
std::string isAvailable (const std::vector< std::shared_ptr< const Object > > &) const override
 
bool action () override
 
void openDirectory (const std::filesystem::path &directory) const
 
- Public Member Functions inherited from MR::RibbonMenuItem
 MR_DELETE_MOVE (RibbonMenuItem)
 
MRVIEWER_API RibbonMenuItem (std::string name)
 
virtual ~RibbonMenuItem ()=default
 
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
 

Additional Inherited Members

- Public Types inherited from MR::RibbonMenuItem
using DropItemsList = std::vector<std::shared_ptr<RibbonMenuItem>>
 
- Protected Attributes inherited from MR::RibbonMenuItem
RibbonItemType type_ { RibbonItemType::Button }
 
DropItemsList dropList_
 

Constructor & Destructor Documentation

◆ OpenDirectoryMenuItem()

MR::OpenDirectoryMenuItem::OpenDirectoryMenuItem ( )

Member Function Documentation

◆ action()

bool MR::OpenDirectoryMenuItem::action ( )
overridevirtual

Implements MR::RibbonMenuItem.

◆ isAvailable()

std::string MR::OpenDirectoryMenuItem::isAvailable ( const std::vector< std::shared_ptr< const Object > > & ) const
overridevirtual

Reimplemented from MR::ISceneStateCheck.

◆ openDirectory()

void MR::OpenDirectoryMenuItem::openDirectory ( const std::filesystem::path & directory) const

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