MeshLib
 
Loading...
Searching...
No Matches
MRRibbonSchema.h File Reference
#include "MRViewerFwd.h"
#include "MRMesh/MRMeshFwd.h"
#include "MRPch/MRJson.h"
#include "MRMesh/MRphmap.h"
#include <filesystem>
#include <vector>
#include <string>
#include <memory>

Go to the source code of this file.

Classes

struct  MR::MenuItemCaptionSize
 
struct  MR::MenuItemInfo
 
struct  MR::RibbonTab
 
struct  MR::RibbonSchema
 
class  MR::RibbonSchemaHolder
 
struct  MR::RibbonSchemaHolder::SearchResult
 struct to hold information for search result presentation More...
 
struct  MR::RibbonSchemaHolder::SearchResultWeight
 ancillary struct to hold information for search result order More...
 
class  MR::RibbonSchemaLoader
 
class  MR::RibbonMenuItemAdder< T >
 
class  MR::RibbonMenuItemCall< T >
 

Namespaces

namespace  MR
 

Macros

#define MR_REGISTER_RIBBON_ITEM(pluginType)    static MR::RibbonMenuItemAdder<pluginType> ribbonMenuItemAdder##pluginType##_;
 registers plugin on module loading, and unregister plugin on module unloading
 
#define MR_RIBBON_ITEM_CALL(pluginType, f, g)    static MR::RibbonMenuItemCall<pluginType> ribbonMenuItemCall##func##pluginType##_( f, g );
 calls f(const std::shared_ptr<plugin> &) on module loading, and calls g(const std::shared_ptr<plugin> &) on module unloading
 

Typedefs

using MR::SplitCaptionInfo = std::vector<std::pair<std::string_view, float>>
 
using MR::ItemMap = HashMap<std::string, MenuItemInfo>
 
using MR::TabsGroupsMap = HashMap<std::string, std::vector<std::string>>
 
using MR::GroupsItemsMap = TabsGroupsMap
 

Macro Definition Documentation

◆ MR_REGISTER_RIBBON_ITEM

#define MR_REGISTER_RIBBON_ITEM ( pluginType)     static MR::RibbonMenuItemAdder<pluginType> ribbonMenuItemAdder##pluginType##_;

registers plugin on module loading, and unregister plugin on module unloading

◆ MR_RIBBON_ITEM_CALL

#define MR_RIBBON_ITEM_CALL ( pluginType,
f,
g )    static MR::RibbonMenuItemCall<pluginType> ribbonMenuItemCall##func##pluginType##_( f, g );

calls f(const std::shared_ptr<plugin> &) on module loading, and calls g(const std::shared_ptr<plugin> &) on module unloading