<source>ICON_SELECT</source>
<translation>select1.png</translation>
</message>
+ <message>
+ <source>ICON_VERTEX_MARKER_1</source>
+ <translation>marker_1.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_2</source>
+ <translation>marker_2.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_3</source>
+ <translation>marker_3.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_4</source>
+ <translation>marker_4.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_5</source>
+ <translation>marker_5.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_6</source>
+ <translation>marker_6.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_7</source>
+ <translation>marker_7.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_8</source>
+ <translation>marker_8.png</translation>
+ </message>
+ <message>
+ <source>ICON_VERTEX_MARKER_9</source>
+ <translation>marker_9.png</translation>
+ </message>
<message>
<source>ICO_ARC</source>
<translation>arc.png</translation>
setPreferenceProperty( step, "precision", 3 );
// Set property for type of vertex marker
- QStringList aTypeOfMarkerList;
QList<QVariant> anTypeOfMarkerIndexesList;
+ QList<QVariant> anTypeOfMarkerIconsList;
- aTypeOfMarkerList.append( tr("TOM_PLUS") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_PLUS);
-
- aTypeOfMarkerList.append( tr("TOM_POINT") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_POINT);
-
- aTypeOfMarkerList.append( tr("TOM_STAR") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_STAR);
-
- aTypeOfMarkerList.append( tr("TOM_O") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_O);
-
- aTypeOfMarkerList.append( tr("TOM_X") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_X);
-
- aTypeOfMarkerList.append( tr("TOM_O_POINT") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_O_POINT);
-
- aTypeOfMarkerList.append( tr("TOM_O_PLUS") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_O_PLUS);
-
- aTypeOfMarkerList.append( tr("TOM_O_STAR") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_O_STAR);
-
- aTypeOfMarkerList.append( tr("TOM_O_X") );
anTypeOfMarkerIndexesList.append(Aspect_TOM_O_X);
+ // Create icons list
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ for (int i = 1; i<=9; i++) {
+ QString str = "ICON_VERTEX_MARKER_";
+ str.append( QString::number(i) );
+ QPixmap pixmap (resMgr->loadPixmap("GEOM", tr( str.toLatin1().data() )));
+ anTypeOfMarkerIconsList.append(pixmap);
+ }
- setPreferenceProperty( typeOfMarker, "strings", aTypeOfMarkerList );
setPreferenceProperty( typeOfMarker, "indexes", anTypeOfMarkerIndexesList );
+ setPreferenceProperty( typeOfMarker, "icons", anTypeOfMarkerIconsList );
// Set property for Vertex Marker scale
setPreferenceProperty( markerScale, "min", 1. );