MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::OpenDirectoryMenuItem Class Reference

#include <MRCommonPlugins/ViewerButtons/MRIOFilesMenuItems.h>

Inheritance diagram for MR::OpenDirectoryMenuItem:

Public Member Functions

 OpenDirectoryMenuItem ()
std::string isAvailable (const std::vector< std::shared_ptr< const Object > > &) const override
 return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement
bool action () override
 returns true if state of item changed
void openDirectory (const std::filesystem::path &directory) const
Public Member Functions inherited from MR::RibbonMenuItem
 MR_DELETE_MOVE (RibbonMenuItem)
 RibbonMenuItem (std::string name)
virtual ~RibbonMenuItem ()=default
virtual bool isActive () const
 for state items returns true if activated
virtual bool blocking () const
 true if this item is blocking (only one blocking item can be active at once)
const std::string & name () const
virtual const std::string & uiName () const
void setRibbonItemType (RibbonItemType type)
virtual RibbonItemType type () const
 type of this item, base RibbonMenuItem can be only button
void setDropItemsFromItemList (const MenuItemsList &itemsList)
virtual const DropItemsListdropItems () const
virtual std::string getDynamicTooltip () const
 return not-empty string with tooltip that shall replace the static tooltip from json
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_

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