// place test markers on panel /*private*/ void SetTrainIconRouteFrame::placeTestIcons() { Editor* editor = PanelMenu::instance()->getEditorByName(Setup::getPanelName()); if (editor == NULL) { // JOptionPane.showMessageDialog(this, MessageFormat.format(tr("LoadPanel"), // new Object[]{Setup.getPanelName()}), tr("PanelNotFound"), // JOptionPane.ERROR_MESSAGE); QMessageBox::critical(this, tr("Panel not found!"), tr("You need to load panel \"%1\"").arg(Setup::getPanelName())); } else { if (_tIon != NULL) { _tIon->remove(); } // icon _tIon = editor->addTrainIcon(_rl->getName()); // TODO: _tIon->getTooltip().setText(_route->getName()); // _tIon->getTooltip().setBackgroundColor(QColor(Qt::white)); _tIon->setLocation(_rl->getTrainIconX(), _rl->getTrainIconY()); setTrainIconNameAndColor(); addIconListener(_tIon); } }