#include <MRSceneControlMenuItems.h>
Inheritance diagram for MR::SetViewPresetMenuItem:Public Types | |
| enum class | Type { Type::Front , Type::Top , Type::Bottom = 3 , Type::Left , Type::Back , Type::Right , Type::Isometric , Type::Count } |
Public Types inherited from MR::RibbonMenuItem | |
| using | DropItemsList = std::vector<std::shared_ptr<RibbonMenuItem>> |
Public Member Functions | |
| SetViewPresetMenuItem (Type type) | |
| virtual bool | action () override |
| returns true if state of item changed | |
Public Member Functions inherited from MR::RibbonMenuItem | |
| MR_DELETE_MOVE (RibbonMenuItem) | |
| MRVIEWER_API | 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 | |
| MRVIEWER_API void | setDropItemsFromItemList (const MenuItemsList &itemsList) |
| virtual const DropItemsList & | dropItems () 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 |
| virtual std::string | isAvailable (const std::vector< std::shared_ptr< const Object > > &) const |
| return empty string if all requirements are satisfied, otherwise return first unsatisfied requirement | |
Additional Inherited Members | |
Protected Attributes inherited from MR::RibbonMenuItem | |
| RibbonItemType | type_ { RibbonItemType::Button } |
| DropItemsList | dropList_ |