src/viewer/scrollview.cpp
void ScrollView::MenuItem(const char *parent, const char *name) {
  if (parent == nullptr) {
    parent = "";
  }
  SendMsg("addMenuBarItem('%s','%s')", parent, name);
}
// Add new submenu to menubar.
Add new submenu to menubar.
Add new submenu to menubar .
void ScrollView::MenuItem(const char *parent, const char *name) {
  if (parent == nullptr) {
    parent = "";
  }
  SendMsg("addMenuBarItem('%s','%s')", parent, name);
}
void ScrollView :: MenuItem ( const char * parent , const char * name ) { if ( parent == nullptr ) { parent = " " ; } SendMsg ( " " , parent , name ) ; }
Add new submenu to menubar.
Add new submenu to menubar .