MeshLib Documentation
Loading...
Searching...
No Matches
MR::Toolbar Class Reference

class to draw toolbar and toolbar customize windows More...

#include <MRToolbar.h>

Public Member Functions

MRVIEWER_API void setRibbonMenu (RibbonMenu *ribbonMenu)
 set pointer on ribbon menu to access it
 
MRVIEWER_API void drawToolbar ()
 
MRVIEWER_API float getCurrentToolbarWidth () const
 
MRVIEWER_API void openCustomize ()
 
MRVIEWER_API void drawCustomize ()
 
MRVIEWER_API void readItemsList (const Json::Value &root)
 read toolbar items from json
 
MRVIEWER_API void resetItemsList ()
 
MRVIEWER_API const MenuItemsListgetItemsList () const
 get acces to items
 
MRVIEWER_API int getItemsListVersion () const
 get item list version
 
MRVIEWER_API void setItemsListVersion (int version)
 set item list version
 
MRVIEWER_API void setItemsListMigrations (const MenuItemsListMigrations &migrations)
 set item list's upgrade rules
 
MRVIEWER_API void setScaling (float scale)
 

Detailed Description

class to draw toolbar and toolbar customize windows

Member Function Documentation

◆ drawCustomize()

MRVIEWER_API void MR::Toolbar::drawCustomize ( )

draw toolbar customize window

window is modal window

◆ drawToolbar()

MRVIEWER_API void MR::Toolbar::drawToolbar ( )

draw toolbar window

don't show if there isn't any items or not enough space

◆ getCurrentToolbarWidth()

MRVIEWER_API float MR::Toolbar::getCurrentToolbarWidth ( ) const
inline

return current width of toolbar 0.0 if it is not present

◆ getItemsList()

MRVIEWER_API const MenuItemsList & MR::Toolbar::getItemsList ( ) const
inline

get acces to items

◆ getItemsListVersion()

MRVIEWER_API int MR::Toolbar::getItemsListVersion ( ) const
inline

get item list version

◆ openCustomize()

MRVIEWER_API void MR::Toolbar::openCustomize ( )

◆ readItemsList()

MRVIEWER_API void MR::Toolbar::readItemsList ( const Json::Value & root)

read toolbar items from json

◆ resetItemsList()

MRVIEWER_API void MR::Toolbar::resetItemsList ( )

reset items list to default value

default value is taken from RibbonSchemaHolder

◆ setItemsListMigrations()

MRVIEWER_API void MR::Toolbar::setItemsListMigrations ( const MenuItemsListMigrations & migrations)
inline

set item list's upgrade rules

◆ setItemsListVersion()

MRVIEWER_API void MR::Toolbar::setItemsListVersion ( int version)
inline

set item list version

◆ setRibbonMenu()

MRVIEWER_API void MR::Toolbar::setRibbonMenu ( RibbonMenu * ribbonMenu)

set pointer on ribbon menu to access it

◆ setScaling()

MRVIEWER_API void MR::Toolbar::setScaling ( float scale)
inline

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