MeshLib C++ Docs
Loading...
Searching...
No Matches

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

#include <MRViewer/MRRibbonSchema.h>

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

virtual std::vector< std::filesystem::path > getStructureFiles_ (const std::string &fileExtension) const
 finds structure json files in exe directory
void sortFilesByOrder_ (std::vector< std::filesystem::path > &files) const
 sort structure json files by order
void readItemsJson_ (const std::filesystem::path &path) const
 appends one menu items json info
void readItemsJson_ (const Json::Value &root, const std::string &schemaName={}) const
void readUIJson_ (const std::filesystem::path &path) const
 appends one ui json info
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: