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

Class for loading ribbon schema from structure files (basically called from RibbonMenu, but can be called separately) More...

#include <MRRibbonSchema.h>

Public Member Functions

 RibbonSchemaLoader ()=default
 
virtual ~RibbonSchemaLoader ()=default
 
virtual MRVIEWER_API void loadSchema () const
 Loads schema from files.
 

Static Public Member Functions

static MRVIEWER_API void readMenuItemsList (const Json::Value &root, MenuItemsList &list)
 Reads schema items list from root to list
 
static MRVIEWER_API void recalcItemSizes ()
 Recalc items sizes.
 

Protected Member Functions

virtual MRVIEWER_API std::vector< std::filesystem::path > getStructureFiles_ (const std::string &fileExtension) const
 finds structure json files in exe directory
 
MRVIEWER_API void sortFilesByOrder_ (std::vector< std::filesystem::path > &files) const
 sort structure json files by order
 
MRVIEWER_API void readItemsJson_ (const std::filesystem::path &path) const
 appends one menu items json info
 
MRVIEWER_API void readItemsJson_ (const Json::Value &root) const
 
MRVIEWER_API void readUIJson_ (const std::filesystem::path &path) const
 appends one ui json info
 
MRVIEWER_API void readUIJson_ (const Json::Value &root) const
 

Detailed Description

Class for loading ribbon schema from structure files (basically called from RibbonMenu, but can be called separately)


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