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 MenuItemsList & | getItemsList () 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) |
class to draw toolbar and toolbar customize windows
MRVIEWER_API void MR::Toolbar::drawCustomize | ( | ) |
draw toolbar customize window
window is modal window
MRVIEWER_API void MR::Toolbar::drawToolbar | ( | ) |
draw toolbar window
don't show if there isn't any items or not enough space
|
inline |
return current width of toolbar 0.0 if it is not present
|
inline |
get acces to items
|
inline |
get item list version
MRVIEWER_API void MR::Toolbar::openCustomize | ( | ) |
MRVIEWER_API void MR::Toolbar::readItemsList | ( | const Json::Value & | root | ) |
read toolbar items from json
MRVIEWER_API void MR::Toolbar::resetItemsList | ( | ) |
reset items list to default value
default value is taken from RibbonSchemaHolder
|
inline |
set item list's upgrade rules
|
inline |
set item list version
MRVIEWER_API void MR::Toolbar::setRibbonMenu | ( | RibbonMenu * | ribbonMenu | ) |
set pointer on ribbon menu to access it
|
inline |