gui.cpp

changeset 113
bbaa40226ec9
parent 112
fa2f00081357
child 114
fe1bfc5f59ed
equal deleted inserted replaced
112:fa2f00081357 113:bbaa40226ec9
561 561
562 case OBJ_Radial: 562 case OBJ_Radial:
563 { 563 {
564 LDRadial* pRad = static_cast<LDRadial*> (obj); 564 LDRadial* pRad = static_cast<LDRadial*> (obj);
565 zText.format ("%d / %d %s", pRad->dSegments, pRad->dDivisions, 565 zText.format ("%d / %d %s", pRad->dSegments, pRad->dDivisions,
566 g_saRadialTypeNames[pRad->eRadialType]); 566 pRad->radialTypeName());
567 567
568 if (pRad->eRadialType == LDRadial::Ring || pRad->eRadialType == LDRadial::Cone) 568 if (pRad->eRadialType == LDRadial::Ring || pRad->eRadialType == LDRadial::Cone)
569 zText.appendformat (" %d", pRad->dRingNum); 569 zText.appendformat (" %d", pRad->dRingNum);
570 570
571 zText.appendformat (" %s", pRad->vPosition.getStringRep (true).chars ()); 571 zText.appendformat (" %s", pRad->vPosition.getStringRep (true).chars ());
577 break; 577 break;
578 } 578 }
579 579
580 QTreeWidgetItem* item = new QTreeWidgetItem ((QTreeWidget*) (null), 580 QTreeWidgetItem* item = new QTreeWidgetItem ((QTreeWidget*) (null),
581 QStringList (zText.chars()), 0); 581 QStringList (zText.chars()), 0);
582 item->setIcon (0, QIcon (str::mkfmt ("icons/%s.png", g_saObjTypeIcons[obj->getType ()]).chars())); 582 item->setIcon (0, getIcon (g_saObjTypeIcons[obj->getType ()]));
583 583
584 // Color gibberish red 584 // Color gibberish orange on red so it stands out.
585 if (obj->getType() == OBJ_Gibberish) { 585 if (obj->getType() == OBJ_Gibberish) {
586 item->setBackground (0, QColor ("#AA0000")); 586 item->setBackground (0, QColor ("#AA0000"));
587 item->setForeground (0, QColor ("#FFAA00")); 587 item->setForeground (0, QColor ("#FFAA00"));
588 } else if (lv_colorize && 588 } else if (lv_colorize &&
589 obj->dColor != -1 && 589 obj->dColor != -1 &&

mercurial