class to draw toolbar and toolbar customize windows More...
#include <MRToolbar.h>
Public Member Functions | |
void | setRibbonMenu (RibbonMenu *ribbonMenu) |
set pointer on ribbon menu to access it | |
void | drawToolbar () |
float | getCurrentToolbarWidth () const |
void | openCustomize () |
void | drawCustomize () |
void | readItemsList (const Json::Value &root) |
read toolbar items from json | |
void | resetItemsList () |
const MenuItemsList & | getItemsList () const |
get acces to items | |
int | getItemsListVersion () const |
get item list version | |
void | setItemsListVersion (int version) |
set item list version | |
void | setItemsListMigrations (const MenuItemsListMigrations &migrations) |
set item list's upgrade rules | |
void | setScaling (float scale) |
class to draw toolbar and toolbar customize windows
void MR::Toolbar::drawCustomize | ( | ) |
draw toolbar customize window
window is modal window
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
void MR::Toolbar::openCustomize | ( | ) |
void MR::Toolbar::readItemsList | ( | const Json::Value & | root | ) |
read toolbar items from json
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
void MR::Toolbar::setRibbonMenu | ( | RibbonMenu * | ribbonMenu | ) |
set pointer on ribbon menu to access it
|
inline |